Skip to content

Define versioned configuration schema and hard invariants #10178

Closed

Description

@dezren39

Problem and goal

Establish the minimum validated V2 config contract needed before admission gates consume configuration.

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/crosscut/versioned-design.md#configuration-data-model-and-precedence (section: Configuration data model and precedence).
Tier: crucial.
Statement IDs: S7.1, S7.10, S7.11, S7.12, S7.13
Enables: Specify canonical versioned ConfigDocument, hard non-overridable ceilings, config validation errors, mechanism-versus-behavior classification, and secure unknown-field policy. This minimal schema is a V2 prerequisite for core gates.

Scope and ownership

Parent: #9111 (native component/meta parent).

  • pkgs/id/config/id-config-v1.schema.json (new; owner: 9111-01)
  • pkgs/id/crates/id-config/src/lib.rs (new; owner: 9111-01)
  • pkgs/id/crates/id-config/Cargo.toml (new; owner: 9111-01)
  • pkgs/id/tests/config_invariants.rs (new; owner: 9111-01)
    Hard dependencies (native blockers): 9110-02 — Required output from slice 9110-02.; 9141 — consume owned contract only; do not wait for full sibling program
    Soft sequencing (not blockers): none

Test / evidence first

Create or validate pkgs/id/tests/config_invariants.rs first. Proposed command: cargo test --manifest-path pkgs/id/Cargo.toml --test config_invariants
Oracle: invariant — expected Canonical V2 config rejects any attempt to disable fixed gates and resolves deterministically.; verifier: Independent schema/reference validator with generated invalid-config matrix..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: doc/2026-11-13T00-41-00Z_design_id-atlas-primitives-federation-namespaces/note.md; doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-b/versioned-design.md.
Rollback: Reject the candidate config schema and keep the last valid version; fixed admission invariants remain compiled and enforced.

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
    task: 17027
    lane: code-b
    summary: Preflight for slice 9111-01 (task 17027, lane code-b, 2026-11-14). Native-blocker check: GET repos//issues/10178/dependencies/blocked_by returns two blockers, #9141 and #10160, and BOTH are still OPEN (fresh verify this shift; #10160's implementation is follow-on task 17131). Per the preflight packet, task 17027 self-blocks with structural dependency blocks on #9141 and #10160 and NO implementation was performed. Contingent research trigger: none; none started. Issue #10178 carries no hard-stop labels (no held / user/owned / do-not-merge / do-not-auto-edit).
    next: when #9141 and #10160 both close, the broker auto-releases task 17027 to the pool; the claiming lane then implements 9111-01 within the issue's approved scope and stated oracle.

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — task 19134 (lane code-c)

  4. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    on Nov 17, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane (code-h), worker repo-worker-code, queue task 17027
    state: blocked (reason_class: blocked)
    preflight: native blockers checked 2026-11-17T17:47Z — #9141 OPEN, #10160 CLOSED. Since #9141 remains open, no implementation was started (9111-01 stays out of scope).
    resume: when #9141 is closed, requeue or re-claim task 17027 and run the mandatory preflight again before implementing.

  6. removed their assignment
    on Nov 20, 2026
  7. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    Agent note — native-blocker preflight (task 17027, lane oc-code-04)

    State: preflight complete; work PAUSED — native blocker remains open; task 17027 self-blocked per the 9111-01 contract.

    Fresh GitHub check (2026-11-20):

    Per the packet, no implementation was performed and no production rollout is authorized. Revalidation of #9141 releases the dep block.

  8. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Agent note — native-blocker preflight RE-RUN (queue task 17027, lane lane-cq / archer, 2026-11-23T03:11Z claim, 4h lease line: claimed via fleet agent next)

    Fresh GitHub REST check (2026-11-23):

    Native dependencies/blocked_by for #10178 lists exactly #10160 and #9141 — both are now closed, so the mandatory preflight for slice 9111-01 PASSES. Per the packet ("if all are closed, proceed only within the issue's approved scope and stated oracle"), this lane is proceeding with the implementation within the approved scope only:

    • pkgs/id/config/id-config-v1.schema.json (new)
    • pkgs/id/crates/id-config/ (new crate: Cargo.toml + src/lib.rs)
    • pkgs/id/tests/config_invariants.rs (new; oracle command cargo test --manifest-path pkgs/id/Cargo.toml --test config_invariants)
    • plus the minimal workspace wiring in pkgs/id/Cargo.toml (member + dev-dependency) without which the owned files cannot build.

    Singular-ownership check: no live claim by another worker on this slice (latest issue activity is the 2026-11-20 oc-code-04 preflight park, whose resume condition — "#9141 closes" — is exactly what has now happened; no open PR references #10178). No production rollout is authorized or being performed; this is the schema/crate/test slice only.

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

    @dezren39
    MemberAuthor

    Agent note — slice 9111-01 COMPLETE (queue task 17027, lane lane-cq / archer)

    Preflight: passed. Native blockers #9141 (closed 2026-11-23T03:04Z) and #10160 (closed 2026-11-14) both closed on fresh REST revalidation; dependencies/blocked_by for this issue lists exactly those two. Claim + preflight record: #10178 (comment)

    Landed: PR #12871 — merged 2026-11-23T04:08:47Z, merge commit 2dc8cb829c9da29ecd3b3ea07fcf58cad2605a55 (head 526ba8c448df guarded at merge). Verified post-merge: all four owned files present on origin/main, whose tip is the merge commit.

    Changed files:

    • pkgs/id/crates/id-config/Cargo.toml, pkgs/id/crates/id-config/src/lib.rs (new) — leaf crate: canonical ConfigDocument; fixed gates reject any disable attempt (mechanism, not behavior); hard ceilings narrow-only at lower scopes; mechanism-vs-behavior field classification; fail-closed unknown-field policy (namespaced extensions retained, never executed); deterministic resolver with per-field provenance.
    • pkgs/id/config/id-config-v1.schema.json (new) — JSON Schema form of the same contract (gates const: true, additionalProperties: false).
    • pkgs/id/tests/config_invariants.rs (new) — the oracle test: an independent validator that generates its invalid-config matrix from the schema file (per-gate disable attempts, per-required-field removals, unknown fields at every level) plus semantic cases and determinism checks.
    • pkgs/id/Cargo.toml, pkgs/id/Cargo.lock — workspace member/default-member registration + dev-dependency wiring (the only files beyond the owned four; without them the owned files cannot build).

    Evidence (the issue's exact oracle command, run in pkgs/id under nix develop on the laptop):

    cargo test --manifest-path pkgs/id/Cargo.toml --test config_invariants
    test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
    

    Two fix iterations are part of the record: a borrow error in the first test draft and a fixture bug (the valid fixture omits gates, which one generated case tried to mutate) — both in the test file, neither in the crate; the final run after rustfmt reproduced 7/7.

    Done check: the issue's Done condition — "the declared oracle passes and test/evidence output plus changed-file summary is attached" — is met by this note and the PR. Closing as completed. The stale status/blocked / queue/blocked labels predate the blocker closures and no longer describe this issue.

    No production rollout was performed or authorized; this is the schema/crate/test slice only. No new problems were found that needed a separate issue.

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

    effort/mMedium: expected under 1 day of workpriority/highImportant and time-sensitivequeue/blockedQueue or user escalation statestatus/blockedQueue or user escalation statestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testswork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions