Skip to content

Implement versioned namespace registry state and authorization seam #10257

Closed

Description

@dezren39

Problem 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.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    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):

  3. 6 remaining items

  4. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    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.

  5. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    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.

  6. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  7. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  8. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1

  9. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    agent-note:v1

  10. added a commit that references this issue on Nov 23, 2026
  11. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions