Skip to content

corpus: read entries from locks/schema-<N>/ (DSE-2143) - #124

Merged
ernestprovo23 merged 1 commit into
mainfrom
claude/dse2143-schema-path
Oct 24, 2026
Merged

ernestprovo23 merged 1 commit into
mainfrom
claude/dse2143-schema-path

Conversation

@ernestprovo23

Copy link
Copy Markdown
Member

Consumer half of DSE-2143 (option 2, approved by Ernest 2026-10-24).

  • Coordinate.relative_dir() → locks/schema-<SCHEMA_VERSION>/<eco>/<segment>/<version> (CORPUS_SCHEMA_DIR, today schema-4).
  • Legacy schema-3 entries at locks/<eco>/... are never read: NOVEL instead of the current fail-closed WRD-CONSENSUS-SCHEMA-MISMATCH that breaks every 2.x consumer.
  • A lock whose schema_version disagrees with its subtree still fails closed (unchanged check).
  • Signatures are unaffected: the v2 statement binds digest + coordinate, not the path.
  • Fixture corpus moved under locks/schema-4/; gen_corpus.py uses the constant; new test test_legacy_layout_entries_are_never_read.
  • Docs: COMMUNITY_CORPUS.md §4, SYSTEM_CONTEXT_DIAGRAM, CHANGELOG [Unreleased].

Builder: 1530 passed, 7 skipped.

Follow-ups: release 2.2.0; mcp-warden-locks writes new entries under locks/schema-4/ and re-attests all coordinates.

The community corpus is append-only and locks/<eco>/<segment>/<version>/<attester>.lock had no slot for a second lock schema of one coordinate, so every schema-3 entry written by 1.x made 2.x fail closed with WRD-CONSENSUS-SCHEMA-MISMATCH. Coordinate.relative_dir() now prefixes locks/schema-<SCHEMA_VERSION>/; legacy entries are never read (NOVEL). Fixture corpus moved, new regression test, COMMUNITY_CORPUS.md section 4, CHANGELOG.
@ernestprovo23
ernestprovo23 merged commit 347a765 into main Oct 24, 2026
20 checks passed
@ernestprovo23 ernestprovo23 mentioned this pull request Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant