GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(id): versioned config schema and hard invariants (9111-01, #10178) by dezren39 · Pull Request #12871 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Implements slice 9111-01 for #10178 — the minimum validated V2 config contract needed before admission gates consume configuration. Design basis: doc/2026-11-13T03-40-00Z_design_id-atlas-summit/crosscut/versioned-design.md, section "Configuration data model and precedence" (S7.1, S7.10–S7.13).

Preflight (mandatory for this slice): native blockers #9141 and #10160 are both CLOSED (fresh-verified 2026-11-23; #9141 closed today after its done-check, #10160 closed 2026-11-14), so the triage gate passed and implementation proceeded within the approved scope only. Record: #10178 (comment)

Changed files (the four owned files + minimal wiring):

  • pkgs/id/crates/id-config/Cargo.toml + src/lib.rs (new leaf crate, no workspace deps): canonical ConfigDocument; FixedGates — any attempt to disable signature-verification / validation / replay-protection / authorization / tenant-scope is rejected (FixedGateDisabled), because gates are mechanism, not behavior; hard Ceilings that scoped overrides may only narrow (widening is CeilingWidened, never a clamp); mechanism-versus-behavior field_class classification; fail-closed unknown-field policy (deny_unknown_fields everywhere; extension keys must be namespaced and are retained verbatim, never executed); deterministic resolve() (mode defaults → document behavior → scoped overrides in scope-name order) with per-field provenance and canonical JSON output.
  • pkgs/id/config/id-config-v1.schema.json (new): JSON Schema (draft 2020-12) form of the same contract — gates as "const": true, additionalProperties: false, namespaced-extension key pattern.
  • pkgs/id/tests/config_invariants.rs (new): the slice oracle as an independent validator — it loads the schema file and generates the invalid-config matrix from it (one gate-disable attempt per schema-declared gate, one missing-field case per schema-required field, unknown fields at every level), plus semantic cases (ceiling widening, behavior beyond a narrowed ceiling, duplicate scopes, zero ceilings) and resolver determinism (authoring-order independence, byte-identical canonical JSON).
  • pkgs/id/Cargo.toml / Cargo.lock: workspace member + default-member registration and a dev-dependency (the facade does not link id-config in production builds yet; gates will take a real dependency when they start consuming resolved config).

Evidence (oracle command from the issue):

$ cargo test --manifest-path pkgs/id/Cargo.toml --test config_invariants   # in pkgs/id nix develop, laptop
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

(7 tests: schema/Rust lockstep, gate-disable matrix, missing/unknown-field matrix, invalid-config matrix, determinism, precedence+ceilings+provenance, classification stability. Re-run after rustfmt: same result.)

Rollback: reject this schema and keep the last valid version; fixed admission invariants remain compiled and enforced (per the slice manifest).


See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
feat(id): versioned config schema and hard invariants (9111-01, #10178)
526ba8c
Slice 9111-01 of the ID/Atlas V2 program: the minimal validated V2 config
contract that admission gates will consume, per
doc/2026-11-13T03-40-00Z_design_id-atlas-summit/crosscut/versioned-design.md
("Configuration data model and precedence"; S7.1, S7.10-S7.13).

- pkgs/id/crates/id-config (new leaf crate): canonical ConfigDocument,
  FixedGates that reject any disable attempt (mechanism, not behavior),
  hard Ceilings that scopes may only narrow, a mechanism-versus-behavior
  field classification, a fail-closed unknown-field policy (namespaced
  extensions retained, never executed), and a deterministic resolver with
  per-field provenance.
- pkgs/id/config/id-config-v1.schema.json (new): the JSON Schema form of
  the same contract (gates as const true, additionalProperties false).
- pkgs/id/tests/config_invariants.rs (new): the slice oracle — an
  independent validator that generates its invalid-config matrix from the
  schema file (one disable attempt per declared gate, one missing-field
  case per required field) plus the semantic invariants (ceiling
  widening, behavior beyond ceiling, duplicate scopes) and resolver
  determinism. 7 passed, 0 failed.
- pkgs/id/Cargo.toml + Cargo.lock: workspace member/default-member and a
  dev-dependency so the root package's tests can exercise the contract.

Preflight: native blockers #9141 and #10160 both closed (verified fresh
2026-11-23), so the mandatory triage gate for 9111-01 passed; record on
#10178.
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 04:08
@dezren39
dezren39 merged commit 2dc8cb8 into main Nov 23, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0cfddeec-ab62-4bc9-84f6-5cfe89406282
Commits

Reviewing files that changed from the base of the PR and between 813c0bc and 526ba8c.

Files ignored due to path filters: 1

  • pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 5

  • pkgs/id/Cargo.toml
  • pkgs/id/config/id-config-v1.schema.json
  • pkgs/id/crates/id-config/Cargo.toml
  • pkgs/id/crates/id-config/src/lib.rs
  • pkgs/id/tests/config_invariants.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the lane-cq/10178-config-schema branch November 23, 2026 04:08
This was referenced Nov 23, 2026
Define versioned configuration schema and hard invariants #10178
Closed
feat(id-config): resolve layered mode overrides (#10193) #12928
Merged
Implement mode bundles and safe override precedence #10193
Closed
@developing-today-fleet developing-today-fleet Bot added the audit:complete PR fully implemented spawning issue label Nov 27, 2026
@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 27, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.