GeezerVison is showing github.com — Implement versioned namespace registry state and authorization seam · Issue #10257 · developing-today/code
Implement versioned namespace registry state and authorization seam #10257DescriptionProblem and goal
Persist local registry generations and authorize mutations without merging unrelated ID world/group authority.
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#9116--local-namespace-registry (section: #9116 — Local namespace registry).
Tier: crucial.
Statement IDs: S4.2, S4.3, S4.4, S4.5, S4.6, S4.7, S4.8, S4.9, S4.10, S4.18
Enables: Version-aware, auditable local namespace configuration.
Scope and ownership
Parent: #9116 (native component/meta parent).
pkgs/id/crates/id-store/src/namespace_registry.rs (new; owner: A9116-registry-state)
pkgs/id/crates/id-store/tests/namespace_registry_model.rs (new; owner: A9116-registry-state)
Hard dependencies (native blockers): A9116-registry-record — Requires namespace definition bound to exactly the content-addressed or array-addressed core ID from A9116-registry-record.; 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-store/tests/namespace_registry_model.rs first. Proposed command: cargo test -p id-store --test namespace_registry_model
Oracle: model — expected Registry state machine; mutation requires injected authorized context and increments one generation.; 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 new registry mutations and resolve through the last verified registry generation; preserve existing Iroh namespace registries and IDs unchanged.
Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.
Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 14, 2026 agent-note:v1
state: blocked (dependency) — mandatory preflight result
task: 17097
issue: #10257 (ID/Atlas slice A9116-registry-state)
lane: code-c (repo-worker-code)
at: 2026-11-14T18:00Z
Preflight performed exactly as the A9116-registry-state packet mandates (triage/preflight only; no implementation attempted, no production rollout authorized):
- Native blocker check: issues design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083, Define versioned capability-oriented port contracts #10160 ("Define versioned capability-oriented port contracts"), and Define local namespace registry record and two-core constraint #10243 are all OPEN — verified fresh via gh at this claim.
- Result: task 17097 is self-blocked, structurally, on issues design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083, Define versioned capability-oriented port contracts #10160, and Define local namespace registry record and two-core constraint #10243 (blocked_deps recorded for all three; broker rechecks on its cycle; 3-day max TTL). When every native blocker is closed, the task returns to the pool by itself and the claiming lane proceeds only within the slice's approved scope and stated oracle.
- No contingent research trigger exists for this slice (packet: none), and none was started.
dezren39 commented on Nov 20, 2026
Blocked — task 17097, lane oc-code-07, 2026-11-20.
Fresh preflight: #10257 OPEN, no hard-stop labels. Native blockers: #9083 OPEN, #10160 CLOSED, #10243 OPEN. Two of three remain open, so task 17097 self-blocks per its packet. No implementation; no rollout. Labels at rest: status/blocked + queue/blocked only.
Resume: re-claim task 17097 and rerun the preflight once #9083 and #10243 are closed. dezren39 commented on Nov 22, 2026
Fresh native-dependency check (2026-11-22): #10243 (registry-record) is CLOSED and satisfied; #10160 is CLOSED and satisfied. #9083 (authenticated tenant/scope context contract) remains OPEN, so A9116-registry-state stays dependency-blocked on #9083. No implementation performed; resume after #9083 closes and its accepted context contract is available. dezren39 commented on Nov 23, 2026
Triage verdict — task 19192, lane archer (Lane CS), 2026-11-22. UNBLOCKED: all native blockers satisfied; premise live; ready for implementation.
Fresh verification this pass (gh REST + contents API):
Routing: the scoped follow-on packet already exists — queue task 17097 ("Preflight ID/Atlas A9116-registry-state: Implement versioned namespace registry state and authorization seam", same dedupe key), currently blocked in repo-health-code-pilot solely on #9083. With #9083 closed, its resume condition is met; release runs through the normal shepherd / broker-watched dependency flow (the queue has no unblock verb — #12777). No duplicate packet filed.
Scope for the follow-on (unchanged from the issue body): new pkgs/id/crates/id-store/src/namespace_registry.rs + model test pkgs/id/crates/id-store/tests/namespace_registry_model.rs, test-first, oracle = the registry state-machine model (cargo test -p id-store --test namespace_registry_model). The status/blocked / queue/blocked labels on this issue are stale as of this verdict. dezren39 commented on Nov 23, 2026
Picked up — task 17097, lane archer (Lane DC), 2026-11-22.
Fresh native-blocker preflight for A9116-registry-state: #9083 CLOSED completed (2026-11-23T03:07:11Z), #10160 CLOSED completed, #10243 CLOSED completed. All native blockers satisfied, so per the packet this proceeds within the issue's approved scope: pkgs/id/crates/id-store/src/namespace_registry.rs + tests/namespace_registry_model.rs, test-first against the recorded model oracle (cargo test -p id-store --test namespace_registry_model). No production rollout. dezren39 commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026
Done — task 17097, lane archer (Lane DC), 2026-11-22. A9116-registry-state implemented, oracle passing, merged.
Preflight (fresh gh REST this pass): #9083 CLOSED completed, #10160 CLOSED completed, #10243 CLOSED completed — all native blockers satisfied, so the packet proceeded within the approved scope. No other live claim covered the implementation.
Landed: PR #12867, merged 2026-11-23T04:05:53Z, merge commit 641657a54e52e50ae7ca461d9e131c188ae7a743 (head 150f480685a). Changed files (3, +1267):
pkgs/id/crates/id-store/src/namespace_registry.rs (new) — RegistryState: record-layer LocalRegistry + generation + audit log. One transition for create/update/revoke: authorize (injected MutationContext + RegistryAuthorizer seam; shipped judge AdminScopeAuthorizer; no tenancy defined here) → expected-generation check (GenerationConflict for concurrent writers) → apply through the record layer. Success increments exactly one generation and appends an audit entry; failure changes nothing. Updates cannot change a namespace's core (CoreChange). Canonical-CBOR persistence, version 1, strict fields; Iroh registries untouched.
pkgs/id/crates/id-store/tests/namespace_registry_model.rs (new) — the model oracle test.
pkgs/id/crates/id-store/src/lib.rs — one line, pub mod namespace_registry; (crate-root export the manifest assigned to 9110-02, which closed before this module existed).
Evidence — cargo test -p id-store --test namespace_registry_model (nix develop in pkgs/id, laptop worktree off origin/main): 9 passed / 0 failed — generated_operations_match_the_model (3 seeds × 300 generated ops vs an independent reference model, every state and error compared), exactly-one-generation increments, unauthorized-changes-nothing, generation-conflict, core-change refusal, byte-exact persistence round-trip, decode rejection, registry coexistence, authorizer substitutability. cargo fmt -p id-store -- --check clean. Both new files re-read on main post-merge (27,038 B and 16,659 B).
Closing as completed: the declared oracle passes and the test/evidence output plus changed-file summary are attached here and on PR #12867. No production rollout was performed or authorized.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|