Repository navigation
No code string counts three lifecycle books: the §6.1 stragglers swept - #323
Merged
Merged
Conversation
#321 retired the fixed "three lifecycle books" count from canon and the Status: standard workflow doc, and recorded in its §6.1 that the phrase still survived in code prose it could not touch — that packet declares code_surface: none and would not quietly acquire one. Brett ruled the stragglers fixed. This is that sweep: eight instances, all prose, aligned to the vocabulary #321 ratified. No new OpenSpec packet, which is the shape PR #161 set for exactly this class when it swept stale xf-ideation references after split-ideation-book-per-repo: realization alignment to already-ratified vocabulary ratifies nothing of its own, so there is nothing here for an approver to decide. Every instance was verified prose before it was touched, because in this script books RESOLVE BY TITLE and a title or alias string is functional: scripts/sync-notebooklm-books.py :46 module docstring "the three lifecycle books above" -> "the lifecycle books above" :53 module docstring "the three books stay MAIN-ONLY" -> "the lifecycle books stay MAIN-ONLY" :1057 block comment "beside the three lifecycle books" -> "beside the lifecycle books" scripts/ideation_dashboard/branch_session.py :2774 docstring "the three lifecycle books" -> "the lifecycle books" :2785 OPERATOR NOTICE "its quota is spent on the three lifecycle books" -> "… on the lifecycle books" tests/ideation-dashboard/test_session_harness.py :282 test docstring "any of the three books" -> "any of the lifecycle books" tests/notebooklm/test_sync_notebooklm_books.py :820 comment "the three lifecycle books are untouched" -> "the lifecycle books are untouched" :1019 comment "three books already exist" -> "the fixture's lifecycle books already exist" Not one is a book title or an alias. The one user-visible string is notebook_degradation_notice's FR-042/D19 text, whose docstring warns that the phrasing IS the requirement — the requirement being that the notice names the shared quota's competing populations without blaming the reader, which the new wording keeps exactly. No test asserts on that string and no spec pins it, both checked before the edit. No assertion changed, because none carried the phrase. Two counts that are NOT this defect were deliberately left standing: "a fourth notebook family" and "three competing populations" count FAMILIES and POPULATIONS, not books, and both remain true. Reported, not touched: tests/notebooklm/test_sync_notebooklm_books.py's LIFECYCLE_BOOKS fixture still lists the retired legacy alias xf-ideation alongside xf-drafts and xf-canon. That is functional fixture data whose correction changes test semantics, so it is a deliberate change of its own, not a line in a prose sweep. The comment at :1019 now says "the fixture's" so it describes that local three rather than implying a topology. §6.1 is ticked in the archived packet with an inline dated pointer naming this fix and the ruling behind it — openly rather than silently, the way document-lifecycle resolves a contested finding by citation, and the same shape PR #161 used to tick §4.3 of the archived split packet. Gates: pytest tests/notebooklm 115 passed 13 subtests passed; tests/ideation- dashboard/test_session_harness.py 19 passed 1 skipped; tests/ideation-dashboard -k workbench 140 passed 4015 deselected; tests/doc-health 796 passed 7 skipped, at main's baseline. Single-repo doc-health 4 critical, 8 error, 73 warning, 4 info, with every finding line BYTE-IDENTICAL to main's — the archived-tasks tick raises nothing, from record-immutability or any other family. Grep proves zero remaining in-scope instances and nothing outside the five files. 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 pull request performs a targeted “prose sweep” to remove the stale fixed-count phrase “three lifecycle books” from code-adjacent strings (docstrings/comments and one operator-facing notice), aligning wording with the already-ratified lifecycle notebook vocabulary without changing any functional title/alias strings.
Changes:
- Replace “three lifecycle books” / “three books” wording with count-free “lifecycle books” in docstrings/comments across scripts and tests.
- Update the operator-facing
notebook_degradation_noticeprose to avoid a stale fixed count while keeping the intent of the notice. - Tick and annotate the archived OpenSpec packet task (§6.1) to record the discharge with a citation-style note.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| scripts/sync-notebooklm-books.py | Updates module docstring and block comment to remove stale fixed-count phrasing. |
| scripts/ideation_dashboard/branch_session.py | Updates the degradation notice docstring/string to refer to “lifecycle books” without a fixed count. |
| tests/ideation-dashboard/test_session_harness.py | Updates a test docstring to remove the stale “three books” wording. |
| tests/notebooklm/test_sync_notebooklm_books.py | Updates test comments to remove stale fixed-count phrasing and clarify fixture context. |
| openspec/changes/archive/2026-08-25-reconcile-lifecycle-books-count/tasks.md | Marks §6.1 as discharged and appends an explanatory note recording the follow-on sweep. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+88
to
+92
| together. — Discharged 2026-08-24 by the follow-on fix | ||
| `fix/lifecycle-books-count-code-strings`, on Brett's ruling "fix the | ||
| code-surface stragglers in §6.1": all eight instances aligned to this | ||
| change's ratified vocabulary, each verified prose (docstring, comment, | ||
| or operator notice) and none a book title or alias, since books resolve |
brettheap
pushed a commit
that referenced
this pull request
Aug 25, 2026
…owhere Brett ruled it on 2026-08-25, verbatim: "fix the FAMILY_IDS drift" - the §5.2 item add-family-enumeration-check recorded. `report.render` iterates FAMILY_IDS to emit "## Findings By Family", so a registered family missing from that list reports findings that count in the headline and appear in the ranked plan while rendering under NO SECTION AT ALL. Two families were missing: staged-topic-template, registered in FAMILIES since 2026-08-15, and proposal-origin. Between them they carried 61 findings - 28 warnings and 33 more of which THREE ARE ERRORS - with nowhere to show them. The absence was recorded as a known omission three separate times and deferred each time on the "not in this change's evidence" rule. That rule was right about scope every time and the deferral still outlived its reason. EXIT PATH: the #323 class - mechanical realization alignment to an authority already established elsewhere, so no OpenSpec packet. Confirmed before building that canon does not pin FAMILY_IDS membership: the promoted doc-health spec never names the list. families.py's own docstring is the authority it aligns to, "FAMILIES at the bottom of this module is the count". Both entries added in FAMILIES' own order - staged-topic-template after status-validity, proposal-origin after ideation-routing - which happens to make the two lists order-identical today, though only MEMBERSHIP is pinned. Order is the sequence sections render in, so it is a layout choice nobody has decided, and pinning it would constrain something this fix has no mandate over. THE CLASS DIES, NOT THE INSTANCE. The old test pinned the two absences at exactly those two so a third could not join silently - which recorded the drift rather than preventing it. It is replaced by test_the_reporting_list_mirrors_the_registry_exactly, pinning set(FAMILY_IDS) == set(FAMILIES) in both directions plus no-duplicates, so a twenty-second family omitted from the reporting list fails by name. That equality does not promote the reporting list to a second authority for which families exist - FAMILIES remains the sole one - it makes the reporting list that authority's complete projection onto the report. A third test asserts every registered family is reachable by the renderer's own iteration, so the consequence is checked end to end rather than inferred. THE ACTIVE DELTA IS AMENDED IN THE SAME COMMIT, because it would have ratified the defect. add-family-enumeration-check has not archived, and its delta said the reporting list "is a separate declaration and is allowed to be a subset", with a scenario saying the missing direction MUST NOT be reported. That was written from the state of the code rather than from what the code should be. Amended before promotion, with the original wording quoted inside the amendment rather than deleted, and the scenario now says the missing direction is checked by the suite's own tests - both values being constants of one package, a runtime finding would fire identically on every run for every repository and tell a report's reader nothing actionable. MEASURED CONSEQUENCE, every changed line accounted: the single-repo report gains 67 lines and loses NONE. Two section headings, four blanks, and 61 finding lines - 28 under ideation/ paths and 33 under openspec/ paths, exactly the previously sectionless findings. Sections 22 -> 24. The ranked plan is byte-identical at 90 lines and the headline is unchanged at 5 critical, 8 error, 73 warning, 4 info, because these findings were always counted; only their rendering changed. Nothing moved and nothing was hidden - 61 already-counted findings now render where a reader can see them. doc-health 889 passed / 7 skipped against main's 888/7 (two tests replaced by three). openspec --all --strict unchanged at 76 items. All three self-checking families read this branch clean at --fail-on error, exit 0. Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap
pushed a commit
that referenced
this pull request
Aug 25, 2026
… STOP Brett ruled it on 2026-08-25, verbatim: "sweep the three proposal-origin errors" - the three the FAMILY_IDS fix made visible. DERIVED, NEVER INVENTED. The proposal-origin family splits ERROR from WARNING on CONTRACT_DATE 2026-08-07: a packet created after it owes a declaration, one created on or before is pre-contract legacy. All three errors are post-contract packets. `kind: ad_hoc` REQUIRES reason, approved_by and approved_on - "the explicit approval provenance the ad-hoc exception requires" - and `kind: staged` requires a staging id plus a path that resolves at the recorded source revision. Neither kind can be declared without a record behind it, which is what makes two of these three unfixable rather than merely unfixed. FIXED - archive/2026-08-14-add-worker-credential-by-reference. Its own record establishes every required field. The forcing fact is a live outage its § Why records: three Omnigent worker lanes dark from 2026-07-25 to 2026-08-13 because one host-profile OAuth session expired silently. The ownership split was pre-ruled 2026-08-11 per its tasks § 1.1. The approval is in its own lifecycle header - "Ratified: 2026-08-14 by Brett Heap - in-session, verbatim: 'I ratify the contract - implement the realization'" - giving approved_by and approved_on directly. `created: 2026-08-14` was verified against the packet's first commit 8eae26b rather than assumed from the archive folder prefix. Declared ad_hoc and NOT staged, deliberately. The packet names the `hermes-stack-topology-per-client` staging topic twice, and it is not a transition source: that topic's INDEX row exits to OpsxFactory `add-request-intake-boundary`, and this packet's tasks § 1.2 calls its own relationship to the topic a "follow-through pointer" added BY this change. Declaring staged against it would misstate the record to clear a finding. STOPPED - create-medxchart-overlay-boundary and create-medxpractice-overlay-boundary. Their records establish NO origin, and that is not my reading: `govern-openspec-corpus-membership`'s archived task record already read both packets exhaustively and concluded "The record names no ratification act... no approver/approved_on pair at all... tasks.md is implementation and verification throughout with no ratification task and no approval line... No pull request exists for either packet," and of the three things that could establish ratification, "None of those three exists here." Both are legitimately `Status: draft`. With no approver and no approval date in the record, ad_hoc cannot be declared without fabricating approval provenance for packets a prior ratified read-back found were never approved; with no staging topic, staged is unavailable too. An honest partial sweep beats an invented declaration, so these two keep their errors and this reports them by name. EXIT PATH: the #323/#343 mechanical class - metadata alignment to an authority the record already carries, no OpenSpec packet. Confirmed nothing demands more: 78 of 94 archived packets already carry .openspec.yaml, many with origins backfilled by the 2026-07-12 migration, so an origin file beside an archived packet is precedented rather than novel. `.openspec.yaml` is outside the governed corpus - corpus.py never references it - so record-immutability cannot fire on it, and `schema:` is validated nowhere. Measured rather than assumed: the report diff is three lines out and one in and nothing else. Headline 8 error -> 7 error, not 5: exactly the one derivable error cleared. Removed the finding line, its ranked-plan line, and the old headline; added the new headline. Every other line byte-identical. doc-health 889 passed / 7 skipped, unchanged from main. openspec --all --strict unchanged at 76 items. All three self-checking families exit 0 at --fail-on error. Touched exactly one file. The two active packets belong to other lanes and were not edited at all. Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap
pushed a commit
that referenced
this pull request
Aug 25, 2026
…ord lacked Brett ruled it on 2026-08-25, verbatim: "admit the two medx boundary packets". That ruling IS the governance act PR #344's STOP said was missing, so the two remaining proposal-origin errors discharge on it. WHY AN ACT WAS NEEDED, and it was measured twice before it was asked for. govern-openspec-corpus-membership's archived read-back found of MedxChart "The record names no ratification act ... no approver/approved_on pair at all ... tasks.md is implementation and verification throughout with no ratification task and no approval line ... No pull request exists for either packet", of MedxPractice "The same, on its own record", and of the three things that could establish ratification "None of those three exists here." PR #344 then STOPPED rather than declare an origin on that record: ad_hoc requires approved_by and approved_on, staged requires a staging topic, and neither existed. Brett's admission supplies exactly the approval that was absent. Both declarations quote the read-back and cite the STOP, so a future reader can reconstruct the whole chain from the metadata alone. AN ADMISSION, NOT A RATIFICATION, and the declarations say so in those words. The act supplies the origin/approval pair the proposal-origin contract requires and nothing more. Both packets remain Status: draft, carry no ratification citation, and owe none - the promoted lifecycle rule requires one only for Status: ratified. Whether their content is ratified is a separate act that has not happened. Verified: the proposal.md files are untouched, both still read Status: draft, and the only files this commit changes are the two .openspec.yaml. DERIVED, NOT ASSUMED, on all three fields that had a choice. - created: BOTH files already carried created: 2026-08-23, and both were verified against the packets' true first commits in git rather than trusted - 86f4372 for MedxChart, a324868 for MedxPractice, both dated 2026-08-23, matching the six-commit list the corpus-membership read-back recorded. Correct as they stood, so neither value was rewritten. - id: the date component is the CREATED date, not the approval date. Derived from the corpus rather than picked: existing ad_hoc ids track created:, and the case where the two differ settles it - an archived packet with created: 2026-08-10 carries id-date 2026-08-10 against approved_on 2026-08-11. So the ids read 2026-08-23 while approved_on reads 2026-08-25. - kind: ad_hoc, with NO staging origin claimed, because none exists - searched across ideation/staging/ and its INDEX for both packets in #344. NOTE FOR THE RECORD: these are MODIFIED files, not new ones. Both packets already carried .openspec.yaml with schema: and created: and were missing only the origin: block - unlike worker-credential in #344, which had no metadata file at all. So each diff is an append. EXIT PATH: the #323/#343/#344 mechanical class - metadata alignment carrying an authority the ruling now supplies, no OpenSpec packet. Nothing read demanded more: the field shape mirrors #344's, no spec requirement changes, and .openspec.yaml is outside the governed corpus so record-immutability cannot fire on it. Headline 7 error -> 5 error. Five lines out - the old headline, two finding lines, two ranked-plan lines - and one in, the new headline. Every other line byte-identical, and NO new finding appeared, so both declarations satisfy the contract cleanly rather than trading one finding for another. The proposal-origin family now exits 0 at --fail-on error: the error class is fully discharged, and the five remaining errors belong to location-conformance and status-validity. doc-health 889 passed / 7 skipped and openspec --all --strict 76 items, both unchanged from main. Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Sep 10, 2026
…ed, 0.3 pure moves" (Brett Heap, 2026-09-10, over f36d2bc) RULING. Brett Heap, repository owner, first-hand, in session, to lane codexfactory-1 (window codeXfactory-1), 2026-09-10T11:31:31Z, verbatim "ratify 886, 0.2 as narrowed, 0.3 pure moves", over head f36d2bc. Recorded in review/ratification-2026-09-10.md, per the last "RULING —" heading in session-handoff-2026-09-05-lane-codeXfactory-1.md. WHAT FLIPPED. - proposal.md: Status: draft -> ratified; added a Ratified: citation line (approver + date + record path, no approving OpenSpec change to name). Authored: line kept as history, with the now-stale "RATIFICATION IS OWED" clause removed. - tasks.md Group 0: lead paragraph OPEN -> CLOSED with both rulings quoted; 0.1, 0.2, 0.3 and 0.6 ticked with dated annotations quoting the word; 0.4 and 0.5 left unticked with a one-line "ratified as they stand" note, since the word did not name them individually. - README "OpenSpec Records": the active-changes row's status text moved DRAFT -> RATIFIED, citing the record; the stale "THE WORD CHOSE THE DOOR AND RATIFIED NO TEXT" sentence corrected to note ratification followed separately. - New: review/ratification-2026-09-10.md, recording authority, the text ratified (head f36d2bc, its 5 commits, the two ADDED release-realization requirements/7 scenarios, the reader realization modules and tests, the README row), both dispositions below, and that this record performs no merge. THE TWO RULINGS, ENCODED EXACTLY. - 0.2 AS NARROWED: add-sequenced-after-substrate's ratified sentence ("a prose Sequenced-after: header ... SHALL NOT constitute a machine-readable parent declaration") stands, narrowed to the legacy prose spelling alone. The strict, schema-validated sequenced_after: header line inside the 15-line lifecycle header window DOES declare, equivalently to the front-matter key. - 0.3 PURE MOVES: OQ-H1's five out-of-window codexFactory carriers (lines 20, 24, 33, 36, 38) are resolved by pure line moves of their existing sequenced_after: line into the window (the codexFactory #323 shape: same multiset of lines, no text change, no fencing) rather than by widening the window. Successor: task 4.3, owner lane codeXfactory-1 in codexFactory, after the re-pin (task 4.1) — not ticked here. - 0.4 (OQ-H2) and 0.5 (H-1...H-7) were not named by the word and are ratified AS THE PACKET STATES THEM, not separately ruled. GATES, RE-RUN ON THIS COMMIT. - OPENSPEC_TELEMETRY=0 openspec validate accept-sequenced-after-header-line --strict -> "Change ... is valid", exit 0. - OPENSPEC_TELEMETRY=0 openspec validate --all --strict -> 99 passed, 3 failed (102 items), exit 0. Confirmed via git-stash before/after on the unmodified head: IDENTICAL totals with and without this diff. The 3 failures are pre-existing and unrelated: disposition-codexfactory-declared- renames (no deltas), neutral-product-pin and repo-boundary-governance (a requirement missing SHALL/MUST on its first line). - python3 -m pytest tests/sequenced_after tests/scope_globs -q -> 356 passed. - doc-health --single-repo . --family status-validity / ratified-provenance: zero findings naming this packet in either family. Full single-repo sweep (all families) shows IDENTICAL totals with and without this diff (11 critical, 5 error, 57 warning, 13 info; "New regressions vs previous report: 0"), confirmed by comparing against the review/ file removed and the tracked edits stashed. NOTHING ELSE MOVES. .openspec.yaml, the specs/ delta and the realization code are untouched. Group 4 (codexFactory re-vendor/pin advance, the pure- line-move disposition, other consumers' re-pins, the archive) stays unticked. This commit does not merge PR #886; the merge follows on a separate word. Lane: codexfactory-1 Co-Authored-By: Claude Sonnet 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.
Scope
PR #321 retired the fixed "three lifecycle books" count from canon and the
Status: standardworkflow doc, and recorded in its §6.1 that the phrase still survived in code prose it could not touch — that packet declarescode_surface: noneand would not quietly acquire one. Brett ruled the stragglers fixed. This is that sweep: exactly the eight instances §6.1 catalogued, nothing more.No new OpenSpec packet. §6.1 says the correction is "owed as a separate change"; PR #161 is the house's own worked example of what that looks like for this class — it swept stale
xf-ideationreferences out ofsync-notebooklm-books.py,authoring.pyand two test files aftersplit-ideation-book-per-repo, as a plain fix PR with no packet of its own. Realization alignment to already-ratified vocabulary ratifies nothing new, so there is nothing here for an approver to decide.Out of scope, same as #321: the active change's own task text, README records quoting history, staging fragments, and the two false positives.
Functional-string verification
In this script books resolve by title, so a title or alias string is functional and must not be reworded. Every instance was classified before it was touched:
sync-notebooklm-books.py:46sync-notebooklm-books.py:53sync-notebooklm-books.py:1057branch_session.py:2774branch_session.py:2785test_session_harness.py:282test_sync_notebooklm_books.py:820test_sync_notebooklm_books.py:1019Not one is a book title or an alias. No title constant, alias constant, or fixture list was touched.
The one user-visible string is
notebook_degradation_notice's FR-042/D19 text, whose own docstring warns "The PHRASING is the requirement, not a nicety." The requirement is that the notice names the shared quota's competing populations without blaming the reader — which the new wording keeps exactly. Checked before editing: no test asserts on that string (grepfor the function and its text acrosstests/returns nothing), and no spec or doc pins it.Per-instance old → new
scripts/sync-notebooklm-books.py:46—Only \xf-wb-*` titles are ever candidates — the three lifecycle books above can never be swept.→… — the lifecycle books above can never be swept.`:53—above: the three books stay MAIN-ONLY→above: the lifecycle books stay MAIN-ONLY:1057—A fourth notebook family beside the three lifecycle books and the swept→A fourth notebook family beside the lifecycle books and the sweptscripts/ideation_dashboard/branch_session.py:2774—populations — the three lifecycle books, every live \xf-wb-` reference set,→populations — the lifecycle books, every live `xf-wb-` reference set,`:2785(operator notice) —its quota is spent on the three lifecycle books plus every live reference-set…→its quota is spent on the lifecycle books plus every live reference-set…tests/ideation-dashboard/test_session_harness.py:282—contributes NO source, title, or repository to any of the three books.→… to any of the lifecycle books.tests/notebooklm/test_sync_notebooklm_books.py:820—# the three lifecycle books are untouched by an ending→# the lifecycle books are untouched by an ending:1019—# three books already exist and the account holds no more→# the fixture's lifecycle books already exist and the account holds no moreNo assertion changed, because no assertion carried the phrase. Two counts that are not this defect were deliberately left standing: "a fourth notebook family" and "three competing populations" count families and populations, not books, and both remain true.
Reported, not touched
tests/notebooklm/test_sync_notebooklm_books.py'sLIFECYCLE_BOOKSfixture still lists the retired legacy aliasxf-ideationbesidexf-draftsandxf-canon. That is functional fixture data whose correction changes test semantics — a deliberate change of its own, not a line in a prose sweep. The:1019comment now reads "the fixture's lifecycle books" so it describes that local three rather than implying a topology.§6.1 tick
Ticked in the now-archived
2026-08-25-reconcile-lifecycle-books-count/tasks.mdwith an inline dated pointer on the box line — naming this fix, the ruling behind it, the prose-not-title verification, and the no-packet precedent — openly rather than silently, the waydocument-lifecycleresolves a contested finding by citation. That is the shape PR #161 used when it ticked §4.3 of the archived split packet; the heavier trailing## Bookkeeping correctionsection belongs to the register campaign's content alterations (header lines added), not to a tick.Gates
pytest tests/notebooklm115 passed, 13 subtests passedpytest tests/ideation-dashboard/test_session_harness.py19 passed, 1 skippedpytest tests/ideation-dashboard -k workbench140 passed, 4015 deselectedpytest tests/doc-health796 passed, 7 skipped— at main's baseline4 critical, 8 error, 73 warning, 4 info— every finding line byte-identical to main'sThe archived-tasks tick raises nothing:
record-immutabilityand every other family are unmoved, verified by diffing the finding lines againstorigin/mainat65f3819b. Grep proves zero remaining in-scope instances and nothing outside the five files.No merge taken here.
🤖 Generated with Claude Code