Repository navigation
add-sequenced-after-substrate: machine-readable ordered-delta parents + strict front-matter loader (ratified) - #567
Conversation
…iged in prose and nothing can walk it Dependency 0.5 of codexFactory `realize-provenance-gated-autonomous-merge`, which convener ruling R1 (2026-08-28) ordered to compose the ordered-delta chain MECHANICALLY. `release-realization` already obliges a proposal to sequence against an earlier change's outcome — and discharges it in PROSE. All three candidate links were measured and all three fail. The prose obligation is mechanism-agnostic. The `Sequenced-after:` header is free text no schema validates: THREE occurrences, all in ARCHIVED proposals. And the one mechanical reader, doc-health's `modified-block-currency` family, resolves ordering by a WHOLE-TOKEN occurrence of a sibling change id anywhere in the declaring proposal — which cannot distinguish a parent from a mention, cannot express a fork, and is author-mutable in the very document the author writes. So: an OPTIONAL front-matter sibling `sequenced_after:`, a SEQUENCE of parent change references, with `sequenced_after: []` a POSITIVE ratification-covered ROOT CLAIM and ABSENCE fail-closed and meaning nothing at all. Nine ADDED requirements, thirty scenarios, on `release-realization`. The substrate is deliberately POLICY-FREE. No depth ceiling, no fan-out cap, no composition operator, no co-modifier cross-check — the consuming gate's FOUR hops and INTERSECTION stay in codexFactory, and the cross-check's key is a per-repository corpus fact a neutral field cannot carry. What it owes instead is well-formedness and walkability: shape, a repository-qualified entry grammar whose FOREIGN entries are DECLARABLE (skipping one would fabricate a root out of a declaration that says the opposite), resolvability, acyclicity, and archive-stable identity — two ANCHORED locations, exactly-one, and no rewrite on archival, because 122 of 152 changes are already archived and a chain's ROOT archives FIRST, so an active-only rule would self-disable in the worst order. And root status is PROVED, never inferred from absence — stated as neutral doctrine so the next consumer cannot rediscover the fail-open read: before adoption "absence is the root" makes every chain a depth-one root with the refusal unreachable, and after adoption it makes declaration author-opt-in, penalizing honest declaration under any narrowing operator. A control that rewards omission is not a control. ONE STRICT LOADER over the whole realization-axis block, reaching `scope_globs:` too — the shipped `scripts/scope_globs.py` uses `yaml.safe_load`, which resolves DUPLICATE KEYS silently last-wins, so two blocks show a reviewer the FIRST and authorize the LAST, and the consuming verifier already refuses that. That retrofit repairs a ratified sibling's shipped code, so it is held as OQ-1 for the convener rather than executed as an authoring decision. Corpus sweep, requirement-granular and normalized, at `origin/main` 31fc2b6: 152 change ids, 104 co-modified (real ordered deltas that would each owe a declaration) vs 48 sole modifiers, 19/11 among the 30 active, 0 occurrences of `sequenced_after:` anywhere. No migration pass is proposed; adoption is opt-in per change, exactly as `scope_globs` adoption is. The delta is ALL-ADDED as a MEASURED choice: `govern-sibling-added-modified-deltas` holds an active MODIFIED block over "Ordered deltas and branch vocabulary" and `add-structured-scope-substrate` one over "Realization axis declaration", so a MODIFIED block over either would incur that change's relative-declaration obligation and its archive-order hold. And the change is its own first instance: it declares `sequenced_after: [add-structured-scope-substrate]` even though its nine novel requirement titles give it ZERO requirement-granular co-modifiers and would let it claim ROOT at depth 1. Declaring must never be worth less than omitting. AUTHORED AND NOT RATIFIED. Group 0 of tasks.md is the convener gate and the only human task in the packet; OpenSpec ratifies, Speckit builds. Nothing is pushed. Validation: `openspec validate add-sequenced-after-substrate --strict` and `--all --strict` (84 passed, 0 failed); `scripts/validate-scope-globs.py` clean; doc-health `proposal-origin` 0 findings and `modified-block-currency` 0 critical/error/warning with none implicating this change; tests/scope_globs 51 passed. Co-Authored-By: Claude Fable 5 <[email protected]>
…26-09-01)
Ratified AS AUTHORED by Brett Heap (convener) on 2026-09-01: nine ADDED
requirements, thirty scenarios, no amendment to the spec delta.
The five open questions are ruled at the same sitting and recorded in the
proposal's new § Ratification record:
OQ-1 the strict-loader retrofit lands INSIDE this change — one loader over
the whole realization-axis block for BOTH structured fields, repairing
the `yaml.safe_load` duplicate-key hole in the ratified sibling's
shipped `scripts/scope_globs.py`. Sets Group 2's scope and Group 4's
test set.
OQ-2 multi-parent declarations ALLOWED (a fork must be declarable for a
consumer's fork refusal to be reachable).
OQ-3 doc-health's whole-token ordering reader UNTOUCHED; its migration is a
named follow-on.
OQ-4 cycle refused, depth and fan-out unbounded — no cap and no composition
operator in the substrate.
OQ-5 no gate_rules_council co-sign required beyond convener ratification.
S1 … S9 confirmed as written, none vetoed. Group 0 closes and Groups 2–5 are
authorized; nothing is pushed and nothing is merged.
Co-Authored-By: Claude Fable 5 <[email protected]>
…cope_globs retrofit OQ-1 ruled in `scripts/frontmatter_strict.py` is the single strict loader for the realization-axis front-matter block, over BOTH its structured fields (`scope_globs:`, `sequenced_after:`). It REFUSES rather than resolves: duplicate keys at ANY level (by construction — a `SafeLoader` subclass whose `construct_mapping` raises, NFC-normalized first, so nesting depth cannot smuggle a duplicate past a top-level check), anchors, aliases, merge keys, non-UTF-8 bytes (refused, never replaced), a block over the OPERATIVE `CEILING_BYTES = 65_536` applied BEFORE the parse, plus the two parity extras the consuming verifier also refuses — `%YAML`/`%TAG` directives and more than one document. The retrofit convener ruling OQ-1 placed inside this change: `scope_globs.py` no longer calls `yaml.safe_load`, whose last-duplicate-key-wins behaviour let a proposal carrying two `scope_globs:` blocks show a reviewer the FIRST and authorize the LAST. It delegates the fence split, the prose/structured split and the strict parse to the shared loader and keeps its own `ScopeGlobsError` surface, so every caller catching that type keeps catching every refusal this reader can raise. How the field is LOADED changes; what it MEANS does not — asserted over the LIVE corpus against a re-implementation of the permissive loader it replaced. The refused set MIRRORS codexFactory `scripts/merge_master/change_digest.py` (`StrictLoader`, `_scan_refused_constructs`, `strict_load`, `CAP_STRICT_YAML_BYTES` — the same 65,536) because openxFactory cannot import it, and the docstring records that a change to either set must be made in LOCKSTEP with the other. CONSUMER NOTE, recorded loudly at the head of Group 2 in tasks.md: codexFactory vendors `scripts/scope_globs.py` byte-for-byte, so `test_the_vendored_file_matches_its_recorded_digest[scope_globs.py]` and `test_the_vendored_bytes_equal_the_source_at_the_pinned_contract_version[scope_globs.py]` both move on a re-vendor, and the retrofit adds a SECOND vendored file — the copy now imports the sibling loader, so copying `scope_globs.py` alone leaves it unimportable. Nothing in codexFactory is touched here. tests/scope_globs/test_strict_loader.py: 22 fixtures, one per refused form (top-level duplicate, nested duplicate, deep duplicate, NFC-equivalent duplicate, anchor, alias-not-named-anchor, merge key, non-UTF-8 from a path and from bytes, over-ceiling, directive, multi-document, unparseable) plus the positive block, the prose-header read, the corpus read-identically proof, and the docstring parity-note assertion. tests/scope_globs: 73 passed. Co-Authored-By: Claude Fable 5 <[email protected]>
…e resolution and the house validator
`scripts/sequenced_after.py` is the substrate:
* READING through the shared strict loader, with ABSENCE returned as a
distinct `ABSENT` sentinel rather than `[]`. The two are different facts —
`[]` is a positive, ratification-covered ROOT CLAIM, absence is no
declaration at all — and presence is decided by the KEY, never by the value,
so a `sequenced_after:` line with no value is PRESENT-and-malformed rather
than silently absent.
* SHAPE: a sequence, possibly empty, of non-empty strings; no nulls, no
nested collections, no duplicates after normalization. A bare string is
refused rather than coerced to a one-entry list.
* GRAMMAR: bare `<change-id>` matching `[a-z0-9][a-z0-9-]*` with no `/`, or
`<repository>:<change-id>` with the origin-id repository token grammar
`[A-Za-z0-9_.-]+`. A SELF-QUALIFIED entry normalizes to the bare form, so a
walk, a duplicate check and a resolution cannot disagree about it, and
`[a, openxFactory:a]` is the duplicate it is.
* RESOLUTION over EXACTLY TWO ANCHORED locations —
`openspec/changes/<id>/` and
`openspec/changes/archive/<YYYY>-<MM>-<DD>-<id>/` with the date exactly
`\d{4}-\d{2}-\d{2}` and the remainder EXACTLY the id, never a prefix strip
and never a split on the first hyphen. The union must hold exactly one:
zero is unresolvable, two or more is AMBIGUOUS, and neither is resolved by
preference. An archived hop's declarations are read from the archived
directory, which carries the frozen ratified text.
* A FOREIGN qualified entry is well-formedness-checked ONLY: the neutral
validator cannot read another repository's corpus and must not pretend to.
* CYCLE REFUSAL keyed on the CURRENT PATH, not on everything ever seen, so an
honest DIAMOND (two parents sharing a grandparent) validates while a cycle
refuses naming the repeated id and printing the loop.
* NO DEPTH LIMIT AND NO FAN-OUT LIMIT. `chain_depth` MEASURES the longest
resolvable declared chain for the sweep and enforces nothing.
* The RETENTION (freeze) comparison and archive gate, mirroring
`scope_globs.scope_retention_at_archive`, with absence, `[]` and null kept
DISTINGUISHABLE in the canonical form — a change must not be able to
promote itself to a declared root between ratification and archive without
registering as a contested-class mutation.
`scripts/validate-sequenced-after.py` wires it into the house validate route
(the only route available: `openspec validate` is the external CLI), with
`--archive-gate`/`--ratified-ref` and `--repository`.
THE VALIDATOR VALIDATES ITSELF: over the live corpus it reports 31 active
changes, 1 declaring the field — this change, whose bare entry
`add-structured-scope-substrate` resolves to exactly one active directory,
breaks no grammar rule and closes no cycle, at a measured chain depth of 1 hop.
Co-Authored-By: Claude Fable 5 <[email protected]>
…ubstrate
THE SWEEP IS SHIPPED, NOT A ONE-OFF. `sequenced_after.corpus_sweep` +
`validate-sequenced-after.py --sweep` report the change-id population over both
corpora, the co-modified / sole-modifier split at REQUIREMENT granularity
(normalized NFC + whitespace-collapsed + case-folded, because two changes
writing one requirement under a re-wrapped title ARE ordered deltas), how many
changes declare the field, how many declare an explicit `[]` root claim, the
surviving prose `Sequenced-after:` headers, and THE DEEPEST DECLARED CHAIN IT
RESOLVES. Re-running it is what makes the measured-not-assumed obligation
discharge over time instead of ageing into a stale sentence, and a ZERO reading
renders with its own note that zero is ZERO EVIDENCE about any gate's ceiling.
An UNRESOLVED hop no longer inflates the depth measure: the number reported is
the deepest chain the sweep RESOLVES, so a dangling parent (a validation
failure elsewhere) counts as no hop.
LIVE READING, first post-adoption: 153 change ids (31 active + 122 archived),
104 co-modified, 49 sole modifiers, 19/12 active, 1 declaring the field, 0
explicit root claims, 3 prose headers (all archived), deepest declared chain 1
hop from add-sequenced-after-substrate. It re-derives the ratified authoring
measurement exactly once this change's own directory is discounted — 152 / 104 /
48 / 19 / 11 — and the delta is only this change, a sole modifier at
requirement granularity that declares a parent anyway.
tests/sequenced_after/: 108 fixtures.
test_schema.py — ABSENT is not `[]` (and a valueless field is
present-and-malformed, not absent); the grammar, one
refusal per rule; shape; the duplicate that crosses the
qualification forms; no jsonschema.
test_validate.py — both anchored locations; archived parents resolve;
active+archived and two-archive-date AMBIGUITY with no
preference; a prefix-only remainder and a NESTED
changes/ tree do not resolve; dangling bare FAILS while
foreign needs only well-formedness; cycles (two-node,
self-loop, three-node, through an archived hop) refuse
naming the loop; a DIAMOND is not a cycle; a two-parent
and a nine-hop chain both VALIDATE; the corpus gate; the
CLI naming change + entry + rule; and this change
validating its own declaration.
test_integrity.py — the freeze, including root-promotion and the three
distinct facts absence / `[]` / null; and the archival
no-rewrite fixture, which moves a change to
archive/<date>-<id>/ and asserts the entries survive
byte-unchanged and still resolve.
test_sweep.py — requirement- vs capability-granularity, the zero-evidence
note, prose headers counted but never as declarations,
the sweep never gating, and the live reading.
Co-Authored-By: Claude Fable 5 <[email protected]>
…ost-adoption sweep reading `docs/sequenced-after-trust-root-floor.md`, modelled on its `scope_globs` sibling and cross-referenced to it: the four trust-root properties (base-read, ratification-covered, non-author-mutable, frozen after ratification); absence as fail-closed and NEVER a root claim, with the co-modifier cross-check left to the consumer because its key is a per-repository corpus fact; the split between what openxFactory asserts (the freeze, the policy-free validator, the one strict loader, no-rewrite-on-archival) and what only an enrolled repository's envelope and verifier can enforce (the floor, the base read, parking a candidate that would write the declaration, refusing a foreign entry under a NAMED identifier rather than skipping it); and the explicit statement that no autonomous merge writes the declaration surface. Task 5.6: the depth ceiling, the fan-out disposition and the composition operator are the CONSUMING GATE's and are declared in its own specification. The first consumer's values — FOUR hops inclusive of the terminal change, INTERSECTION — are cited AS THE FIRST INSTANCE, explicitly not adopted as neutral doctrine. Task 5.5: the first post-adoption sweep reading, DATED 2026-09-01, replaces the authoring-time "0 declarations, deepest chain 0 hops BY CONSTRUCTION" with a real measurement — 153 change ids, 104 co-modified, 1 declaring, deepest chain 1 HOP — and states plainly that a one-hop reading is still ZERO EVIDENCE about any gate's ceiling: no honest chain has approached the four-hop bound, so that bound remains UNMEASURED rather than validated. The record is dated, not current; the re-runnable sweep is the authority, and the doc says how to re-run it. tests/sequenced_after/test_doctrine.py asserts the record's substance rather than its existence, and deliberately does NOT tie the dated reading to today's sweep — a currency assertion there would red the required suite on ordinary corpus growth. tests/sequenced_after/__init__.py: this directory mirrors tests/scope_globs/ and therefore repeats three of its basenames, which collide on the sys.modules name under pytest's prepend import mode and abort collection for the WHOLE run. The package is the same remedy the house already applies to tests/hermes_runtime_contracts/. Its one consequence — the implementation is loaded as `sequenced_after_substrate`, never as the package's own name — is recorded there and observed in all four modules. Group 6.8 records the coordinated codexFactory re-vendor as the consumer's tracked act. tests/sequenced_after + tests/scope_globs: 191 passed. Co-Authored-By: Claude Fable 5 <[email protected]>
…ys.path Both `scripts/scope_globs.py` and `scripts/sequenced_after.py` reached the shared strict loader through `sys.path.insert(0, <own directory>)` at import time. That is a library module changing import resolution for the WHOLE PROCESS that imports it — and `scope_globs.py` is VENDORED BYTE-FOR-BYTE into codexFactory's merge gate, where making a package's own directory shadow every top-level module name is exactly the side effect a reviewer of that gate would refuse. `_sibling()` tries the plain import first — so the ordinary CLI route (`validate-scope-globs.py` / `validate-sequenced-after.py`, which put `scripts/` on the path in their own fresh process) resolves normally, and a VENDORED copy resolves its OWN sibling from its own directory — and falls back to a by-location load for the route that loads the file directly by path (the test suite). `sys.path` is left untouched either way, asserted by a probe in the verification run. No behaviour change: tests/scope_globs + tests/sequenced_after 191 passed, both house validators green, and the front-matter-adjacent suites (proposal-support, document_catalog, intent-compliance, conformance-gate, review_lane_pin) 426 passed. Co-Authored-By: Claude Fable 5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR introduces a new realization-axis front-matter field, sequenced_after:, to declare ordered-delta parents in a machine-walkable way, alongside a shared strict front-matter loader that is used by both sequenced_after and the existing scope_globs reader. It adds a house validator, archive-retention (freeze) checks, a re-runnable corpus sweep, and supporting tests/docs/spec artifacts.
Changes:
- Add
scripts/sequenced_after.pysubstrate (schema/grammar, anchored active+archive resolution, cycle refusal, archive retention, corpus sweep) plus a house validator CLI. - Add
scripts/frontmatter_strict.pystrict loader and retrofitscripts/scope_globs.pyto delegate loading through it. - Add comprehensive pytest coverage for strict loading, validation behavior, integrity/freeze behavior, sweep reporting, and doctrine/readme linkage.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/sequenced_after/init.py | Makes tests/sequenced_after a package to avoid pytest module-name collisions. |
| tests/sequenced_after/test_schema.py | Unit tests for sequenced_after shape/grammar, ABSENT vs [], and strict-loader path. |
| tests/sequenced_after/test_validate.py | Validation tests for resolution, dangling refs, cycles/diamonds, multi-parent, and validator CLI behavior. |
| tests/sequenced_after/test_integrity.py | Tests archive retention/freeze behavior (including a real git snapshot workflow). |
| tests/sequenced_after/test_sweep.py | Tests the corpus sweep metrics (population, co-modification logic, deepest chain, re-runnability). |
| tests/sequenced_after/test_doctrine.py | Asserts doctrine doc presence/content and README index linkage. |
| tests/scope_globs/test_strict_loader.py | Strict-loader negative fixtures and asserts scope_globs reads identically vs the previous permissive loader across the live corpus. |
| scripts/frontmatter_strict.py | Implements strict structured-field loading (duplicate keys, anchors/aliases/merge keys, directives, multi-doc, UTF-8, size ceiling). |
| scripts/sequenced_after.py | Implements the new sequenced_after substrate, including strict loading, resolution, validation, retention, and sweep. |
| scripts/validate-sequenced-after.py | New house validator CLI for corpus validation, archive-gate retention, and sweep output. |
| scripts/scope_globs.py | Retrofits scope_globs front-matter parsing to delegate to the shared strict loader. |
| docs/sequenced-after-trust-root-floor.md | Adds the trust-root-floor doctrine record for sequenced_after, including first post-adoption sweep reading guidance. |
| README.md | Adds doctrine link and a detailed OpenSpec Records entry for add-sequenced-after-substrate. |
| openspec/changes/add-sequenced-after-substrate/.openspec.yaml | Adds the packet’s machine-readable origin and related links. |
| openspec/changes/add-sequenced-after-substrate/design.md | Design/decisions and measured corpus context for the substrate. |
| openspec/changes/add-sequenced-after-substrate/proposal.md | Ratified proposal + front-matter declaring sequenced_after for this change. |
| openspec/changes/add-sequenced-after-substrate/specs/release-realization/spec.md | All-added spec delta defining the field, strict loading, validation, archival identity, retention, and measurement doctrine. |
| openspec/changes/add-sequenced-after-substrate/tasks.md | Task breakdown and downstream coordination notes (including vendoring implications). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| import importlib.util | ||
| import re |
| import importlib.util | ||
| import re |
|
Heads-up from a neighboring lane:
So the count moved at #563 — Same defect class as #510's carriage-ledger pin last night: an exact corpus-count assertion outrun by a sibling landing between authoring and merge. Fix is this lane's per the test's own doctrine — re-derive and move the named count, saying which subject moved and why ( |
…563 (#568) `test_the_live_sweep_reproduces_the_AUTHORING_measurement` pinned `sweep.active_co_modified == 19`; the live corpus reads 18, and has since `ded8b9f1`, when PR #563 archived `add-release-tag-publication-check`. That change was ACTIVE and carried a `## MODIFIED Requirements` block, so it was co-modified; archiving moved it out of the active corpus (active 30 -> 29, archived 122 -> 123) and `active_co_modified` fell 19 -> 18 while the corpus-wide `co_modified` held at 104 — it is still a co-modifier, just no longer an active one. PR #567 (`43cf5933`) then landed this test carrying an authoring measurement taken three minutes BEFORE that archive. Every push since main's last green (`518c670b`) had its pytest cancelled by the concurrency group, so `6856f502` was the first completed run and the first red one. Re-derived EVERY live assertion against the tip with a fixed counting method, per commit since the last green: 518c670 ids 152 (30a/122r) co 104 sole 48 active 19/11 decl 0 chain 0 ded8b9f ids 152 (29a/123r) co 104 sole 48 active 18/11 decl 0 chain 0 43cf593 ids 153 (30a/123r) co 104 sole 49 active 18/12 decl 1 chain 1 a951be7 ids 153 (30a/123r) co 104 sole 49 active 18/12 decl 1 chain 1 6856f50 ids 153 (30a/123r) co 104 sole 49 active 18/12 decl 1 chain 1 ONE assertion moved. `co_modified` (104), `change_ids - 1` (152), `sole_modifiers - 1` (48), `active_sole - 1` (11), the three archived prose headers, the single declaration and the zero root claims are all untouched. `active_sole - 1 == 11` survives ON ITS MERITS, not by a cancelling pair of errors: #563's archive removed a CO-modified active, never a sole one, so `active_sole` read 11 both before and after it and moved to 12 only when this change added itself. Recorded in a comment rather than left as a silent coincidence, since the archive landing mid-authoring makes it worth ruling out. The move is recorded in a dated MOVEMENT LOG in the test's own docstring, following the sibling carriage ledger's practice in `tests/doc-health/test_modified_block_currency_self_gate.py`. The authoring measurement recorded in `proposal.md`, `design.md` and the README OpenSpec Records block is DELIBERATELY untouched: it is a historical record of what was measured then, and those three report one coherent pre-adoption snapshot (152/104/48/19-11/0 occurrences) that moving a single number would falsify into a corpus that never existed. The LIVE pin is the test. Verified: `pytest tests/sequenced_after -q` 118 passed; `pytest tests/doc-health -q` 1384 passed; `OPENSPEC_TELEMETRY=0 openspec validate --all --strict` 83 passed, 0 failed. Co-authored-by: Claude Fable 5 <[email protected]>
…e, and ITS delta promotes (#1066) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs #656 (stays OPEN). CLAIM [`5698423421`](#656 (comment)). **RE-POINTED TO `main`** (2026-09-18, after #1056 → #1057 → #1060 → #1065 all landed by merge commit). It was stacked on `change/rehome-lens-document-selection`; it is not any more, and the full gate runs. **Rule 6 applies** (this touches `openspec/changes/` and README's OpenSpec Records block): the landing lane posts the LANDING line first. # § 6.2 — the fifth box, and the only one that is not a re-home `split-opendox-two-layer-product` `tasks.md` § 6.2 and `design.md` § D9 use the same words: this change *"archives in `openxFactory` on its own evidence, and only its FORWARD half — the surviving `-v2` family's requirements — re-homes to openDox."* **The packet's own spec counts FOUR, not five.** *"Under RULING Q6 those **four** changes stop where they stand, so their `## ADDED` blocks never promote HERE."* This is the fifth — the exception that sentence is counting around. Its realization **merged in this repository** (PR #564, squash `6856f502`) and its `contract-v3.0` cut **is published** (annotated tag `59f4f51f`, peeling from the remote to `ff9ed815`). So it archives the ordinary way, and **its delta PROMOTES.** ## What is in the diff | | | | --- | --- | | `openspec/changes/retire-doxbench-chat-turn-v1/` → `openspec/changes/archive/2026-09-16-…/` | 6 files, `.openspec.yaml` included, a true rename — verified `git ls-tree HEAD openspec/changes/` carries nothing at the old path | | `openspec/specs/ideation-dashboard/spec.md` | **+224 lines, 0 deletions** — **157** the promotion, every byte taken from the ratified delta by script; **67** the dated ERRATUM added below the first requirement, which is marked as not part of the ratified text and says so in its first line. The erratum carries THREE corrections, each measured on the landed text: the `typed_proposal` clause (§ 2.1), the v1-served scenario bounded by the removal this cut performs, and the short release count — the last two found by Copilot at `c431a3e3`. Every figure here is RE-MEASURED where it is written, never adjusted from the one before it: **157** with no erratum, **186** with the first correction, **213** with all three, **224** after the third was itself corrected — Copilot having caught at `91644a2d` that it still counted the unpublishable `contract-v2.6` as a release. The published run from the deprecation to the removal is **twenty** releases, measured by TAG (`git ls-remote --tags origin 'contract-v*'`), the versioning policy § *`contract-v2.6` — Instance Six* ruling an untaggable bundle *"permanently unreleased"*. A stale insertion count in an evidence table is the same defect this pull request keeps correcting in other people's prose, and it has now been this pull request's defect twice. | | `review/archive-2026-09-16.md` | the closure record, `Status: record` | | `README.md` | active bullet retired (89 lines), archived-ledger entry added newest-first | | `tests/sequenced_after/corpus-ledger.yaml` | the one live coupling — `--seed-ledger`, in the commit that follows this PR's number | `tasks.md` is **not edited and no box is ticked**: in this lane every `tasks.md` tick rides the bookkeeper's single amendment, and this record exists so that amendment can tick from a measurement rather than a memory. ## The promotion, measured both ways Every promoted byte is taken from the ratified delta **by script**, not retyped: both `## ADDED` requirements appended, and the `## MODIFIED` block replacing the promoted requirement of the same title — which gains three paragraphs and three scenarios and loses nothing, so the diff is insertions only. | doc-health `promotion-fidelity`, `--single-repo` | errors | | --- | ---: | | this closure's head, **move alone, no promotion** | **23** | | this closure's head, **as pushed** | **20** | Twenty is what the four re-homed closures already owe, and **none of the twenty is this packet's**. So this change takes **no** `health/dispositions.yaml` entry, and the aggregation companion ([xFactory #454](opensoft/xFactory#454)) carries a header comment forbidding one by analogy. **And one block can land nowhere else.** The forward half carries two of the three requirements into `opensoft/openDox` as `carry-doxbench-chat-turn-v2-family` ([openDox-spec #15](opensoft/openDox-spec#15)). The third — *The doxBench chat-turn v1 envelope family is REMOVED at `contract-v3.0`* — travels nowhere, openDox having removed nothing. Closed the way the other four closed, that ratified requirement would exist in **no** promoted specification anywhere. ## The seven open boxes: six discharged BY MEASUREMENT, one named Every command and its output is in the closure record. **7.1 — the validator at the tag. MET, three conjuncts.** The tag read *from the remote* (`git ls-remote --tags origin contract-v3.0` → `59f4f51f…`), checked out detached: `0 error(s), 0 warning(s)`; `--strict` exit 0; and a packaged instance whose `kind` is the **retired** `workbench-chat-turn` refused `[kind] unrecognized document (no known kind, no 'possibles_register' section)`. **7.2 — the fallback against the RUNNING SERVE, both directions. PERFORMED.** An earlier session reported this box no longer performable here, because § 5.2's shed (`cc4ae9d3`, PR #940) took `serve.py` off `main`. **That report was about the wrong tree**: § 7.1 already directs the verification AT THE TAG, and the tag still carries the serve. Taken there, on a real loopback `ThreadingHTTPServer` driven over a real socket by `http.client` — the suite's own `build_server` harness, so the thing answering is the server and not a handler called in-process: ``` DIRECTION 1 kind="workbench-chat-turn" (RETIRED), client_turn_id="turn-0001" -> HTTP 400 {"schema_version": 1, "kind": "workbench-chat-turn-v2-failure", "client_turn_id": "turn-0001", "error": "unrecognized_turn_kind", "message": "this route does not serve the chat-turn kind the request declared"} DIRECTION 2 same kind, NO wire-valid client_turn_id -> HTTP 400 {"ok": false, "error": "unrecognized_turn_kind", "message": "this route does not serve the chat-turn kind the request declared"} CONTROL kind="never-was-a-kind", with identity -> HTTP 400 … byte-for-byte direction 1's body but for the correlation key the client itself sent ``` Direction 1 is the surviving family's closed failure envelope; direction 2 the pre-identity shape with **no fabricated `client_turn_id`**, which is the half the requirement says must stay unchanged. The injected model port recorded **zero calls** in all three — the refusal never reaches a provider. The control is the requirement's central claim answered on the wire: *"after the removal a retired kind and a kind that never existed are the same fact about the wire."* **8.1 — merged, and the merge commit's suite. HALF MET, AND THE OTHER HALF IS NOT THIS PACKET'S.** §§ 2-5 merged: PR #564, squash `6856f502`, an ancestor of `main`. Its `pytest-suite` (check run `100000861624`) is **failure**: `1 failed, 8576 passed` — one assertion, `assert 18 == 19` in `tests/sequenced_after/test_sweep.py::test_the_live_sweep_reproduces_the_AUTHORING_measurement`. It is **proven inherited, not argued to be**. The same assertion fails identically at `a951be76`, the merge's **parent**, run here in a detached worktree at that commit — one commit before this packet's bytes reached `main`. `main`'s own remedy `d308c012` (PR #568) re-derives why, per commit: PR #563's archive of `add-release-tag-publication-check` moved `active_co_modified` 19 → 18, PR #567 then landed a test carrying an authoring measurement taken three minutes earlier, and `6856f502` was merely the first pytest run the concurrency group did not cancel. The proposal disclosed an inherited red in advance and attributed it to *"PR #510's carriage-ledger subject"*. **That attribution is not what stood at the merge**, and the record says so rather than smoothing it; the class the proposal named — a carriage-ledger count pinned in a test, moved by somebody else's archive — is exactly right. **8.3 — `openspec validate --all --strict`. MET.** `validate-openspec-cli-pin.py --all` → exit 0, `Totals: 101 passed, 1 failed (102 items)`, **0 UNDISPOSITIONED failures**. The one failure is the accepted `add-chain-attestation` exception, which reads the same on `main`; the item count falls 103 → 102 because this packet leaves the active corpus. **8.4 — the 4.7 run at `0 error(s), 0 warning(s)`. MET, with an erratum.** § 4.7's parenthetical records *"81 negative example(s)"*; the validator says **80** — at `6856f502`, the very commit 4.7 measured, and at the tag, with `examples/ideation-dashboard/` byte-identical between them. The box counted **files** and the validator counts **checks**: 81 files, of which `negative/duplicate-turn-pair/` is two files forming **one** paired check. The line § 8.4 asks for is exact. **8.5 — the seven refusal-class dispositions. MET, in § 4.4's own table.** All seven re-expressed as named `-v2` fixtures, **zero stated losses**; all seven present at the tag and inside the 80 the validator confirms invalid. **1.8 — the adversarial review. OPEN, and routed by the packet itself**: *"A CODEX PASS REMAINS OWED and is blocked by nothing in this packet — it and those four route to the amendment lane, not to doubt about the ratification."* Named here so the move does not lose it. ## Why the governed archive route is not available `scripts/proposal-support.py archive`'s `archive_change` raises **`change has incomplete tasks`** on any `- [ ]` line *before* it ever resolves the CLI, and this packet has seven. The pinned CLI (**1.12.0**) does expose `--skip-specs` — that is not the obstacle, and it would be the wrong flag here anyway: **this closure wants the promotion.** ## Coupling sweep `grep -rn "retire-doxbench-chat-turn-v1" --include='*.py' --include='*.yaml' --include='*.yml' --include='*.json'` over the tree: thirty hits outside the packet, **exactly one a live coupling** — the sweep-ledger row. The rest are historical prose in test comments naming the change as the authority for a re-pin already taken; the move falsifies none of them. `_LEDGER_SUBJECTS` does **not** move, exactly as § 6.3's closure predicted in the constant's own comment. No `openspec-cli-pin.yaml` disposition and no `target-release-register.yaml` entry exist for this id. ## Gate CI on this repository runs `pull_request: branches: [main]` only, so a stacked PR shows lane-line, merge-master-approval and Sonar and cannot show a full green gate until its base is re-pointed. The local evidence above stands in until then. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
What
Dependency 0.5 of the provenance-gated autonomous-merge program, ratified by the convener 2026-09-01 as authored (OQ-1 fix-loader-inside; OQ-2 multi-parent allowed; OQ-3 doc-health reader untouched + named follow-on; OQ-4 no cap/operator in the substrate; OQ-5 no council co-sign — the scope_globs disposition).
sequenced_after:— the machine-readable ordered-delta parent declaration in change front matter: explicit[]root vs ABSENT (three distinguishable facts: absent /[]/ null), repository-qualified hop syntax, multi-parent (forks declarable), cycle refusal keyed on the current path (diamonds validate), resolution over active + archive with exactly-one anchoring.scripts/frontmatter_strict.py— the shared strict loader (OQ-1): refuses duplicate keys (NFC, any depth, by construction), anchors, aliases, merge keys,%directives, multi-doc, 65,536-byte ceiling. Mirrors codexFactorychange_digest.py's refused set exactly (parity is the requirement's stated rationale).scripts/scope_globs.pyretrofit — the ratified sibling'syaml.safe_load(silent last-wins duplicate keys: reviewer sees the FIRST block, machine authorizes the LAST) replaced by a 4-line delegation to the strict loader; every caller's exception contract preserved; a corpus-wide test proves every existing proposal reads identically under both loaders.scripts/validate-sequenced-after.py,docs/sequenced-after-trust-root-floor.md, the re-runnable corpus sweep (153 ids: 104 co-modified / 49 sole; deepest declared chain = 1 — this change itself, which declaressequenced_after: [add-structured-scope-substrate]and validates itself).Adoption is opt-in per change — no flag-day migration of the 104 existing chains (most archived and frozen; no consumer exists for their declarations yet).
Consumer coordination (codexFactory) — read before advancing the pin
codexFactory vendors
scope_globs.pywith a source-equality lockstep test that reads this file at thestack.yamlcontract_refsha. Merging this PR breaks nothing; the momentcontract_refadvances past it,test_the_vendored_bytes_equal_the_source_at_the_pinned_contract_version[scope_globs.py]reds by design until a re-vendor that must copy two files (scope_globs.pynow importsfrontmatter_strict.py) and extendVENDORED_SHA256/VENDORED_SOURCE_PATHS. Sequence: merge → pin advance → re-vendor, one coordinated window (tracked as the change's task 6.8).Validation
openspec validate --strictvalid ·--all --strict84/84 ·tests/sequenced_after+tests/scope_globs191 passed ·validate-scope-globs.py/validate-sequenced-after.py/validate-trust-anchor.pyall clean · full gatepytest tests/ -m "not postgres"8543 passed / 18 skipped / 1 failed — the failure istest_validator_cli.py::test_release_mode_field_is_preserved…, a pre-existing 30s-subprocess-budget timeout on a loaded box (40.9s at base vs 36.6s at HEAD; the validator references none of this change's surfaces; CI is ~1.7× faster and should pass).🤖 Generated with Claude Code