GeezerVison is showing github.com — Enforce universal signed-and-validated admission gate for both cores · Issue #10275 · developing-today/code
Enforce universal signed-and-validated admission gate for both cores #10275DescriptionProblem and goal
Require signature, signer binding, semantic validation, namespace/tenant authorization and policy checks at every admission path, including local producers after signing.
Version and design basis
Version: V2. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-addressing/versioned-design.md#9120--content-address-core (section: #9120 — content-address core).
Tier: crucial.
Statement IDs: S1.12, S1.13, S1.14, S1.15, S1.16, S1.17, S1.18, S1.19, S1.20, S3.4, S3.5, S3.6, S3.7, S3.8, S3.9, S3.10, S4.19, S4.20, S4.21, S4.22, S4.23, S4.24, S4.25, S4.26, S4.27, S4.28
Enables: One auditable acceptance invariant without trusted-local bypass.
Scope and ownership
Parent: #9120 (native component/meta parent).
pkgs/id/crates/id-core/src/admission_gate.rs (new; owner: A9120-signature-gate)
pkgs/id/crates/id-core/tests/admission_gate.rs (new; owner: A9120-signature-gate)
pkgs/id/hosted-worker/src/admission-gate.ts (new; owner: A9120-signature-gate)
pkgs/id/hosted-worker/test/admission-gate.test.ts (new; owner: A9120-signature-gate)
Hard dependencies (native blockers): A9114-envelope-identities — Requires PayloadId, canonical Body, detached-signature preimage and nonrecursive EnvelopeId types from A9114-envelope-identities.; A9116-registry-state — Requires versioned local registry read/mutate operations and mutation authorization check from A9116-registry-state.; A9120-content-store — Requires immutable content adapter that commits only after complete digest validation from A9120-content-store.; 9110-02 — Adds this consumer module to the crate root and owns Cargo manifest/export changes; this slice owns only its distinct module and tests.; 9083 — Consumes the authenticated tenant/scope context contract; this slice does not define tenancy.
Soft sequencing (not blockers): none
Test / evidence first
Create or validate pkgs/id/crates/id-core/tests/admission_gate.rs first. Proposed command: cargo test -p id-core --test admission_gate && cd pkgs/id/hosted-worker && bun test admission-gate.test.ts
Oracle: model — expected Ingress model: every accepted state transition has verified signature and all validation decisions; no route bypass exists.; verifier: Generate the listed operations against the specified state/reference model and compare every resulting state and error..
Done and rollback
Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Disable the new content writer/admission route; keep legacy content readers and all previously verified content-addresses intact. Never delete or rehash data as rollback.
Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.
Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 14, 2026
Agent note — task 17114 preflight outcome: BLOCKED on native blockers (lane code-a, 2026-11-14)
Mandatory triage/preflight for slice A9120-signature-gate, performed per the task spec — no implementation attempted, no production rollout authorized or started.
Native blockers read from this issue's GitHub blocked-by graph at 2026-11-14T18:49Z — all OPEN:
All blockers remain open, so task 17114 has self-blocked exactly as prescribed (fleet queue block 17114 --reason-class blocked with --blocked-by-issue naming all five, blocker: "waiting on native issue blockers"). Work stays paused until every blocker closes; the block re-serves the preflight when they clear. dezren39 commented on Nov 17, 2026 agent-note:v1 — openchamber scheduled lane (code-g), queue task 19207 (triage). Verdict: still blocked. Fresh check 2026-11-17: #10275 OPEN; blockers #10226, #10244, #10257 and #9083 still OPEN (#10160 is CLOSED). Work stays paused until they close. Task blocked with reason class blocked. dezren39 commented on Nov 17, 2026
Agent note (repo-queue task 17114, lane code-h, openchamber-scheduled-lane): preflight for A9120-signature-gate. Native blocker check at 2026-11-17T18:40Z: #10160 CLOSED; still OPEN: #9083, #10226, #10244, #10257. Per the packet, no implementation was done and the task is self-blocked (blocked, reason class blocked) until every native blocker closes. This is not production rollout authorization. dezren39 commented on Nov 20, 2026
Picked up queue task 17114 in scheduled lane code-j. Revalidating the mandatory native-blocker preflight; no implementation or rollout is authorized while dependencies remain open. dezren39 commented on Nov 20, 2026
Preflight complete: #9083, #10226, #10244, and #10257 remain open; #10160 is closed (verified 2026-11-20). No implementation or rollout was started. Queue task 17114 is blocked until all native dependencies close; resume by rechecking every blocker. dezren39 commented on Nov 23, 2026
Agent note — task 17114 preflight outcome: ALL NATIVE BLOCKERS CLOSED — proceeding to implementation (lane ER, archer, 2026-11-22)
Mandatory triage/preflight for slice A9120-signature-gate, re-run fresh via gh REST at 2026-11-23T04:26Z:
#10275 is OPEN and carries no live claim (last activity 2026-11-20 was a blocked note). Per the packet acceptance, with every native blocker closed I proceed within the issue's approved scope and stated oracle only: new files pkgs/id/crates/id-core/src/admission_gate.rs, pkgs/id/crates/id-core/tests/admission_gate.rs, pkgs/id/hosted-worker/src/admission-gate.ts, pkgs/id/hosted-worker/test/admission-gate.test.ts. No crate-root/manifest changes (owned by 9110-02); no production rollout. dezren39 commented on Nov 23, 2026
Done — A9120-signature-gate implemented and merged (lane ER, archer, 2026-11-22).
Preflight: all five native blockers re-verified CLOSED fresh via gh REST (#9083, #10160, #10226, #10244, #10257) — record at #10275 (comment). With the gate condition flipped, the packet's own terms authorized implementation within the approved scope.
Landed: PR #12893 merged — merge commit 6ceb90671341472ec59bfa4dc754cdcd60da3712, diff exactly the slice's four owned files (+1759/−0), all four re-read on origin/main post-merge:
pkgs/id/crates/id-core/src/admission_gate.rs — one AdmissionGate pipeline on both paths (admit / admit_canonical): semantic validation with canonical round trip → A9114 signature + payload verification (digest recomputed on receipt) → signer binding (directory key == body key; authenticated principal == signer) → namespace/tenant authorization via the injected A9116-pattern seam (shipped ScopeBindingAuthorizer) → policy (admitted domains, payload budget). AdmissionReceipt has private fields and no constructor outside the gate — holding one proves every check ran; no route bypass. Consumes the design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083 context shape; defines no tenancy.
pkgs/id/crates/id-core/tests/admission_gate.rs — the declared model oracle.
pkgs/id/hosted-worker/src/admission-gate.ts + test/admission-gate.test.ts — TS mirror, same stages/classes; compiles the atlas SHA-256 verifier, refuses raw-blake3-256 as unsupported in this build (blake3 admissions stay with the Rust core).
- No crate-root/manifest changes (9110-02 owns them); the test includes the module by path, per the sibling-slice pattern.
Verification (the issue's exact oracle command, laptop worktree off origin/main, post-rustfmt):
cargo test -p id-core --test admission_gate → 6 passed / 0 failed — including generated_operations_match_the_model (48 proptest cases × up to 24 generated operations: valid / tampered-payload / forged-signature / unknown-signer / rebound-key / wrong-principal / wrong-scope / oversized / unadmitted-domain / garbage-bytes / non-canonical / duplicate, accepted set and rejection class compared after every op) and the targeted receipt, no-unsigned-local-exception, wire≡constructed, and context-validation tests.
cd pkgs/id/hosted-worker && bun test admission-gate.test.ts → 8 pass / 0 fail.
rustfmt --check clean on both Rust files.
Issue auto-closed by the PR (verified: closed / completed).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|