Repository navigation
feat(contracts): additive latent_v1 capsule/grant/receipt manifests (lane L1) - #86
Merged
Merged
Conversation
Co-Authored-By: Claude Mythos 5.1 <noreply@anthropic.com>
…v1 bounds Review items addressed: - add verify_latent_use binding capsule, grant and receipt (digests, anchor, namespace, lane, fence, recipient, slot counts, grant window) - lane-scope the fence: lane_id on grant and receipt - cap grant lifetime at 900 s (hosted short-lived authority cap) - digestable bounds: JSON-safe integers for shape/byte_count/positions, oversize-tensor rejection, strictly increasing positions - immutable dtype table with a single Dtype literal and a consistency test - Ident for model ids and reason_code - template/mask digests optional, required only when INJECTED - docstrings and docs updated Co-Authored-By: Claude Mythos 5.1 <noreply@anthropic.com>
…ntegers - each verify_latent_use failure case now asserts its own message; added cases for grant-digest, anchor, namespace, adapter, issued_at boundary (passes), and an invalid reason_code - SafeInt/PositiveSafeInt bound codec_version, created_at, fence, issued_at, expires_at, used_at and positions to the JSON-safe range - grant lifetime error text derives from MAX_GRANT_SECONDS - verify_latent_use docstring states it checks binding only Co-Authored-By: Claude Mythos 5.1 <noreply@anthropic.com>
…rsion floors Co-Authored-By: Claude Mythos 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lane L1 (W1 "durable meaning") of the Predator/Atlas V2 plan: the additive latent-handoff contracts, beside the frozen hosted SC-CONTEXT-01 set. Nothing in the hosted V1 models,
schema-v1.json, the engine or the NumPy-only core changes; a test proves the core never imports pydantic or this module.New records (
aether_context/contracts/latent_v1.py, allClosed: extra forbidden, frozen, strict; integers, strings and hashes only, no floats):TensorRefV1(schemaLatentTensorRefV1): tensor identity by sha256 + dtype + shape + byte_count; never the bytes.LatentCapsuleV1: source model/adapter/codec identity, slots, tensor ref, exact-IRanchor_digest,base_revision;losslessis alwaysfalse.ContextHandoffGrantV1: short-lived (≤ 900 s, hosted authority cap) lane-fenced authority for one recipient principal/model/adapter to inject one capsule.LatentUseReceiptV1: injection point, slots/positions (strictly increasing), template/mask digests,INJECTED/REFUSED/NOT_RUNwith a reason code.verify_latent_use(capsule, grant, receipt): pure binding check (digests, namespace, lane, fence, recipient,slots_injected <= max_slots <= capsule.slots, grant window). Binding only; a pass does not imply an injection happened.Tests (
tests/test_latent_contracts.py, 10): model rules, every verifier check pinned by message (mutation-tested), the 21 hosted schemas unchanged, NumPy-only import boundary.Verification (local; GitHub Actions is not running on private Aether repos right now, an account-level startup_failure). Interpreter: system CPython 3.13.5 on Windows 10 (pydantic 2.12.5, numpy 2.3.2), run from the repo root.
python -m pytest -q: 675 passed, 5 skipped, 1 failed (tests/test_cli.py::test_pool_resize_is_non_destructive_reindex, fails identically onorigin/main606c636; unrelated).ruff check aether_context testsandpython -m mypy aether_contextclean. Latest branch head 7866bf9:python -m pytest tests/test_latent_contracts.py -qgives 10 passed.Unbound: nothing trains, injects or transports a capsule yet; that is lane L7. The CodePro durable IR records and codec live in the companion AETHER-CLOUD PR AetherAI3/AETHER-CLOUD#2132.
🤖 Generated with Claude Code