Repository navigation
Being generated never made a document immutable; being captured did - #468
Merged
Merged
Conversation
`ideation/cross-reference.md` says "GENERATED FILE — do not edit by hand" on line 8 and `Status: record` on line 3. Both cannot hold. It is re-rendered in place from `ideation/cross-reference.yaml`, so the only correct way to update it is the act `record-immutability` reports as a CRITICAL — one of the five standing, carried by three archived packets as pre-existing rather than fixed. Promoted canon already said the header was wrong. `ideation-cross-reference` names "the cross-reference index and its rendered twin" among generated artifacts that are NOT records, because "nothing about a regenerable projection is immutable evidence". The file disagreed with canon about itself. The conflation dates to the vocabulary's first day: the 2026-07-09 migration mapped "generated simulation report / generated runbook / simulated reviews" to `record` — all one-shot captures — and being GENERATED was taken to be what makes a document a record. It is not. Being CAPTURED is. No re-derived projection existed then, so the line was never drawn. This adds the ninth standing, `projection`, and draws it: a document a named generator rewrites IN PLACE from a declared source of truth has no captured state for immutability to protect, while a dated one-shot capture does and keeps `record`. Spelled `projection` rather than `generated` (OD-1) because `docs/document-lifecycle.md` must go on saying generated evidence is `record`, and a status literally named `generated` would sit one page from that sentence. Every existing value was tried first and none is both honest and inert: the five in `PROJECTED_STATUSES` would start pushing a 4,797-line index into a NotebookLM book, and `superseded`/`retired` are false about a live file. The value is added at all four sites that would otherwise disagree in silence — `TAXONOMY`, the promotion-fidelity split whose two sets are asserted to exhaust it, the NotebookLM regex, and the dashboard snapshot enum — and the generator itself emits it, so regeneration cannot reintroduce `record`. Canon pins that as its own scenario. The renderer was proven deterministic before being trusted: byte-identical against the committed file beforehand, a one-line diff after. `record-immutability` goes 5 criticals to 4. NO family is skipped, no path allowlisted, no disposition suppresses anything, and its code is untouched — the file leaves the list because it is no longer a record, which is what the ruling required. The four that remain are genuine hand-maintained records and still fire. The per-stage census moves one document and nothing else. One act is owed ELSEWHERE and is named rather than left to be found: the finding is CONTESTED, so the nightly will raise `uncited-resolution` unless `health/dispositions.yaml` — which exists only at the aggregation root — carries an entry citing this change. tasks.md 5.1; the packet does not archive without it. pytest tests/doc-health 1249 -> 1250 passed, 0 failed. openspec validate --all --strict 77 passed, 0 failed. No contract bundle owed: the one edited file under contracts/ is a member of none of the 48 inventories. Co-Authored-By: Claude Fable 5 <[email protected]>
…ted-projection-status
Re-measured after origin/main was merged in: it landed add-unclassified-finding-class, which touches modified_block_currency.py and adds twenty-one tests plus a fixture repository. tests/doc-health reads 1271 passed / 0 failed on the merged head against 1250 at the branch point — grown by main's twenty-one and by none of this packet's. Both numbers are kept rather than the later overwriting the earlier. The self-gate ledger merged cleanly and carries eight subjects: main's seven and this packet's one. Co-Authored-By: Claude Fable 5 <[email protected]>
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 controlled lifecycle Status: value, projection, to correctly classify deterministically re-rendered, in-place generated documents (specifically ideation/cross-reference.md) as non-record artifacts, eliminating a standing record-immutability CRITICAL caused by legitimate regeneration.
Changes:
- Add
projectionto the controlled status taxonomy and align dependent “closed lists” (promotion-fidelity split, NotebookLM scan regex, dashboard snapshot schema). - Update the cross-reference renderer to emit
Status: projectionand regenerate the rendered markdown accordingly. - Add regression coverage asserting
projectionis controlled (nostatus-validityerror) and exempt fromrecord-immutability, plus ledger updates for modified-block-currency self-gating.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
scripts/doc_health/__init__.py |
Extends TAXONOMY with projection and documents the captured-once vs re-derived distinction. |
scripts/doc_health/promotion_fidelity.py |
Places projection into the “ratified-or-beyond” bucket to preserve the taxonomy exhaustiveness invariant. |
scripts/sync-notebooklm-books.py |
Extends the closed Status: regex alternation to recognize projection so behavior is rule-driven rather than regex-accidental. |
scripts/render-ideation-cross-reference.py |
Makes the renderer emit Status: projection for the generated cross-reference index. |
ideation/cross-reference.md |
Regenerated output reflecting the new Status: projection. |
docs/document-lifecycle.md |
Updates lifecycle documentation to define projection and clarify that “generated” ≠ “record” unless captured once. |
contracts/schemas/ideation-dashboard-snapshot.schema.yaml |
Extends lifecycle_status enum to include projection to keep snapshot validation aligned with taxonomy. |
tests/doc-health/test_families.py |
Adds regression test asserting projection is controlled and skipped by record-immutability. |
tests/doc-health/test_modified_block_currency_self_gate.py |
Updates the self-gate ledger to account for the taxonomy widening workstream. |
README.md |
Adds an Active changes entry documenting the rationale and operational implications (including the owed external disposition act). |
openspec/changes/declare-generated-projection-status/.openspec.yaml |
New change packet metadata declaring origin and approval. |
openspec/changes/declare-generated-projection-status/proposal.md |
New proposal describing the contradiction, measurements, and mechanism. |
openspec/changes/declare-generated-projection-status/tasks.md |
New task ledger recording measurements, gates, and the explicitly owed aggregation-root disposition. |
openspec/changes/declare-generated-projection-status/specs/document-lifecycle/spec.md |
New spec delta restating and modifying the controlled taxonomy requirement to include projection. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
tests/doc-health does not read contracts/schemas/ideation-dashboard-snapshot.schema.yaml, so the three suites that do were run separately: tests/ideation-dashboard, tests/ideation_dashboard and tests/notebooklm. 4869 passed, 16 skipped, 26 subtests passed, 0 failed in 786.79s under pipefail, exit read from $?. Widening an enum is additive and no test pins its contents — grepped before the run and confirmed by it. Co-Authored-By: Claude Fable 5 <[email protected]>
…ted-projection-status # Conflicts: # README.md
Brett ruled on 2026-08-28, by a multi-choice put to him by the orchestrating session and relayed the same day. The selections reaching this packet: the `projection` SPELLING IS APPROVED — OD-1's departure from the commission's first word stands as authored — and both pull requests merge on green, which confirms OD-2's premise that this packet lands on its own gate. He took the packet's own recommendation on both, so THE CLEARANCE MOVES NOTHING: none of the seven sites carrying the value is renamed, the generator still emits it, and the delta is untouched. OD-1's argument is KEPT as marked history rather than collapsed into its verdict, because it is the reason the taxonomy now distinguishes CAPTURED from RE-DERIVED, and a later reader naming a tenth standing needs the reasoning. The aggregation disposition entry is REASSIGNED, not discharged: the orchestrating session writes it as part of the merge sequence. Still owed, still keyed the same way, still in opensoft/xFactory, and this packet still does not archive until it lands — the ruling names the performer, not a waiver. Task 5.1 stays UNTICKED for exactly that reason; reassignment is not performance. OD-3 and OD-4 were NOT put to him and are NOT covered. No verbatim wording reached this session, so none is quoted. Task 7.3 names what the ruling did NOT do: this proposal's header stays `Status: draft`, because "merge on green" is an authorization to land and not a ratification act this session will spell on Brett's behalf. It cannot stay `draft` through archiving — PRE_RATIFICATION would discount this packet's own document-lifecycle MODIFIED block, the defect the sibling packet measured from the other end. Co-Authored-By: Claude Fable 5 <[email protected]>
Merged origin/main a second time without waiting for a conflict report, so this packet does not race its sibling's merge. Same conflict shape as the sibling's: #463 added two active-change entries at the head of the OpenSpec Records block where this packet had added one — a pure both-sides-inserted-at-the-head conflict in README.md ALONE. Every code file, the delta, the regenerated projection and both test files merged clean; the taxonomy value and the self-gate ledger row were re-checked present afterwards. Resolved by keeping BOTH sides, this entry at the head and main's two blocks verbatim beneath it. tests/doc-health HOLDS at 1271 passed / 0 failed — unmoved, because the second merge brought governance text and an archive act rather than tests. validate --all --strict moved 77 to 78 for main's two new active packets. The floor is unmoved at 4 critical / 11 error / 41 warning / 12 info. Co-Authored-By: Claude Fable 5 <[email protected]>
…ted-projection-status # Conflicts: # README.md # tests/doc-health/test_modified_block_currency_self_gate.py
Merged origin/main a third time, after clean-doc-health-floor merged as #465 (c79d6e5). Two conflicts, both both-sides-added, neither semantic: README.md, the OpenSpec Records block again — resolved keeping BOTH, this packet's entry at the head and MAIN'S version of the clean-doc-health-floor entry taken verbatim, since that entry now reflects the landed state main holds. Verified byte-identical to origin/main:README.md by diff rather than by eye. test_modified_block_currency_self_gate.py, where the sibling's ledger row and this packet's landed at the same spot — resolved keeping BOTH rows. clean-doc-health-floor is merged but still ACTIVE, so its MODIFIED block is still in the set that arm reads, and dropping its row would have failed the gate that compares the set with ==. The ledger now carries nine subjects. Every other file merged clean; the `projection` value was re-checked present at all seven of its sites afterwards, and no status-consumer this packet touches moved in the merge (diffed against the merge's first parent). Re-verified on the merged head: validate --all --strict 79 passed / 0 failed; pytest tests/doc-health 1279 passed / 0 failed, EXIT=0 under pipefail; census still projection 1 / record 29; cross-reference.md still absent from record-immutability's four criticals. THE FLOOR NOW SHOWS BOTH PACKETS AT ONCE — 4 critical / 7 error / 41 warning / 13 info, against the 5 critical / 11 error this session started from. Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ideation/cross-reference.mdsays "GENERATED FILE — do not edit by hand" on line 8 andStatus: recordon line 3. Both cannot hold.It is re-rendered in place from
ideation/cross-reference.yamlbyscripts/render-ideation-cross-reference.py, so the only correct way to update it is the actrecord-immutabilityreports as a CRITICAL. That critical is one of the five standing, carried by three archived packets as "pre-existing" rather than fixed.This is the third of the three workstreams Brett commissioned on 2026-08-28 ("lets do all 3 in order"); the other two ship as
clean-doc-health-floor(#465).Promoted canon already said the header was wrong
openspec/specs/ideation-cross-reference/spec.md:449-452:"Its rendered twin" is this file. Canon says it is not a record; the file says it is. No change has ever ruled the other way.
The root cause
The 2026-07-09 migration mapping (
add-document-lifecycle-vocabulary/design.md:67) mapped "generated simulation report / generated runbook / simulated reviews" torecord— all one-shot captures. Being GENERATED was taken to be what makes a document a record. It is not. Being CAPTURED is. In 2026-07-09 no re-derived projection existed, so the line was never drawn.What this adds
A ninth standing,
projection: a document a named generator rewrites in place from a declared source of truth has no captured state for immutability to protect. A dated one-shot capture does, and keepsrecord— the doc-health run's own report, the readiness evidence YAMLs and the derive-possibles records are all explicitly on therecordside and untouched.✅ OD-1 — spelled
projection, notgenerated— RULED 2026-08-28: APPROVEDFlagged, because the commission's first word was "generated".
docs/document-lifecycle.mdmust go on saying generated evidence isrecord(one-shot captures still are), and a status literally namedgeneratedwould sit one page from that sentence.projectionnames the distinguishing property, and it is the word promoted canon already uses for this exact file. Not vetoed — Brett approved the spelling on 2026-08-28; the mechanical-rename remedy stands unused.OD-2 — a new value for a class of one
Measured: exactly one governed document declares itself generated in its header. Every existing value was tried and none is both honest and inert — the five in
PROJECTED_STATUSESwould start pushing a 4,797-line index into a NotebookLM book, andsuperseded/retiredare false about a live file. The two alternatives that avoid a new value (silence the family for this path; exempt byKind:) were rejected on the ruling itself, which required the finding to clear because the file is no longer a record, not because the family was silenced.The mechanism
The value is added at all four sites that would otherwise disagree in silence —
doc_health.TAXONOMY, thepromotion_fidelitysplit whose two sets are asserted to exhaust the taxonomy, the NotebookLM sync's closed regex alternation, and the dashboard snapshot schema enum — and the generator itself emits it, so regeneration cannot reintroducerecord. Canon pins that as its own scenario.All three writers of the file funnel through one
render_markdown()line, so one edit covers every path. The renderer was proven deterministic before being trusted: byte-identical against the committed file beforehand, a one-line diff after.The consumer check
Every reader of
ideation/cross-reference.{md,yaml}was enumerated before the value was chosen. Non-readers of the status: the cross-reference validator (keys on the YAMLkind:), bothpin_class.pyregistry rows (read only the pin line), the threeideation_dashboardreaders,document_catalog.py. Readers:corpus.py(the file leaves therecordstage census),inventory.py(records the literal value, no branch), andsync-notebooklm-books.py— the one load-bearing consumer, and the reason a new value was required.ideation/cross-reference.yamlcarries no status field at all (zero occurrences in 12,058 lines) and is unreachable by doc-health regardless; the whole problem lives in the.md.Gates
record30record29,projection1pytest tests/doc-healthopenspec validate --all --strictExactly one critical cleared, and no error, warning or other critical moved.
record-immutability's code is untouched — no family skipped, no path allowlisted, no disposition suppressing anything. The four remaining criticals are genuine hand-maintained records and still fire. The added INFO ismodified-block-currencynaming this packet's own MODIFIED block; its self-gate compares with==and fell due by design, discharged by one ledger row. The scenario RENAME is declared to the marker arm with**Merged into ... by declare-generated-projection-status (2026-08-28):**, so that arm reads zero.Repo validators run:
validate-ideation-dashboard-contracts.py0 errors;validate-ideation-cross-reference.py0 errors on the real index (its 3 errors are on an untouched test fixture and are verified pre-existing on a branch carrying none of these edits).record-immutabilityis CONTESTED, so a finding present in the previous report and absent from the current one is re-emitted as anuncited-resolutionERROR unless disposed.health/dispositions.yamldoes not exist in openxFactory — it lives only at the aggregation root. An entry is owed inopensoft/xFactory, keyed(record-immutability, openxFactory, ideation/cross-reference.md)and citing this change. Recorded astasks.md5.1; the packet does not archive until it lands. Not a silencer — the finding really is resolved by a cited change, which is the case that instrument exists to record.contracts/is a member of none of the 48 inventories.document-lifecycleis ADDED-only on an unrelated requirement.Open questions Q1 (machine-readable generator/source declaration) and Q2 (a guard against re-classing a projection back to
recordto hide a hand edit — recommending--check-mode regeneration in CI instead) carry recommendations and are named as follow-ups.🤖 Generated with Claude Code