Skip to content

feat(contracts): additive latent_v1 capsule/grant/receipt manifests (lane L1) - #86

Merged
AetherAI3 merged 4 commits into
mainfrom
feat/v2-l1-latent-contracts
Oct 22, 2026
Merged

AetherAI3 merged 4 commits into
mainfrom
feat/v2-l1-latent-contracts

Conversation

@AetherAI3

@AetherAI3 AetherAI3 commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

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, all Closed: extra forbidden, frozen, strict; integers, strings and hashes only, no floats):

  • TensorRefV1 (schema LatentTensorRefV1): tensor identity by sha256 + dtype + shape + byte_count; never the bytes.
  • LatentCapsuleV1: source model/adapter/codec identity, slots, tensor ref, exact-IR anchor_digest, base_revision; lossless is always false.
  • 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_RUN with 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 on origin/main 606c636; unrelated). ruff check aether_context tests and python -m mypy aether_context clean. Latest branch head 7866bf9: python -m pytest tests/test_latent_contracts.py -q gives 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

AetherAI3 and others added 4 commits October 21, 2026 13:39
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>
@AetherAI3
AetherAI3 merged commit d5e2b10 into main Oct 22, 2026
0 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant