Skip to content

Ratify reconcile-lifecycle-books-count: canon stops counting three lifecycle books - #321

Merged
brettheap merged 2 commits into
mainfrom
change/reconcile-lifecycle-books-count
Aug 25, 2026
Merged

brettheap merged 2 commits into
mainfrom
change/reconcile-lifecycle-books-count

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

The ruling, as ratification act

Commissioned in-session by Brett on 2026-08-24, verbatim: "commission the successor change reconciling the lifecycle-books count" — given on the residual PR #317's closing comment had flagged in the same words:

Residual still owed by neither packet (both carry ratified text faithfully): the stale 'three lifecycle books' count, made stale by split-ideation-book-per-repo on 2026-08-10 and present in canon plus five places in docs/lifecycle-notebook-projection.md — a small successor change reconciling the count is the lawful fix.

No approving OpenSpec change exists to name, because the amending act is this change. The proposal therefore carries the record-citing Ratified: spelling sanction-ratified-record-spelling sanctioned for that case, clearing the three-way floor on two axes — approver (by Brett) and date (2026-08-24). Exactly one citation line sits in the header window.

Why the count was stale, and why two changes carried it forward on purpose

split-ideation-book-per-repo (ratified 2026-08-10, after the shared Ideation book hit the platform's 300-source cap mid-sync) replaced the single shared Ideation book with one Ideation book per governed repository — title family xFactory Ideation — <RepoName>, alias family xf-ideation-<repo-slug> — beside the shared Working Drafts and Canon books, and retired the legacy shared book and its xf-ideation alias. The family is 2 + N, and N moves whenever the family gains or loses a repository. A fixed count cannot describe it.

That split's own Impact declared "no changes to hybrid notebooks, imports, drafts/canon membership, or scan scope", which is why the count was never in its diff. The staleness was collateral: the split changed what the book family is without touching the requirement that counts it.

The count then reached the promoted spec on 2026-08-25 through apply-branch-sessions-deltas (#316), which promoted 2026-07-26 ratified text byte-for-byte and said so in terms: "Not a rewrite, not a re-derivation, not a reconciliation with anything learned since 2026-07-26. Any improvement to that text is a separate change with its own ratification." The parallel session's independent packet (#317) derived the identical text and was closed as the duplicate. Neither declined the correction by oversight — editing ratified text inside a promotion change is the defect the promotion-fidelity family exists to catch, and the codex PR #85 discipline both followed forbids it. This is the lawful exit both named.

The new wording, derived from the ratified source

Every phrase is split-ideation-book-per-repo's own ratified vocabulary, reused verbatim: "one Ideation book per governed repository", "the shared Working Drafts book", "the shared Canon book". Nothing invented; no new topology ratified here. Both replacements are count-free, so the next split cannot restale them.

The word-diff — two edits, nine scenarios untouched

Corpus scan scope
  The[-three-] LIFECYCLE BOOKS' projection {+— one Ideation book per governed
  repository, plus the shared Working Drafts and Canon books —+} SHALL scan
  exactly the governed corpus at the default branch: …

Branch-session notebooks
  … and it SHALL NOT be one of the[-three-] lifecycle books. …

The second sentence states non-membership, so it needs no enumeration and gains none. The promotion moves exactly two lines in the promoted spec (4 ++--, 2 insertions / 2 deletions). All four Corpus scan scope scenarios and all five Branch-session notebooks scenarios are byte-identical.

Fidelity by sha256, not assertion

Each block was extracted from canon and substituted, never retyped. The pre-promotion hashes match what #316 recorded when it promoted the same blocks — which is what proves the delta restates the ratified text rather than a paraphrase of it:

requirement canon before canon after == this delta
Corpus scan scope 99fa2a84…d66dc8c (matches #316's record) 94565264…1253c50
Branch-session notebooks 107ede78…8d42057e (matches #316's record) f5be6d40…09cbd85a

Each block extracted from canon after promotion hashes identical to this packet's delta block.

The standard doc — five places

§ before after
1, main-only rule The three books are MAIN-ONLY without exception The lifecycle books are MAIN-ONLY without exception
7, hybrid exclusion A hybrid is not one of the three lifecycle books A hybrid is not one of the lifecycle books
9, session exclusion It is not one of the three books It is not one of the lifecycle books
9, shared-quota note consumed by the three books consumed by the lifecycle books
10, workspace records The three books are registered as external_source_workspace records The lifecycle books are registered as external_source_workspace records

None gains an enumeration: §1's book table states the topology two paragraphs above the first of them, and §11 already says "3+N books". The doc records the amending act on an Amended by: header line — the convention split-ideation-book-per-repo set on this same document. The three grounding docs in §3 and §11 are a different three and stay untouched.

Gates

gate figure
openspec validate reconcile-lifecycle-books-count --strict Change 'reconcile-lifecycle-books-count' is valid, exit 0
openspec validate --all --strict, change active Totals: 76 passed, 0 failed (76 items)
openspec validate --all --strict, after archive Totals: 75 passed, 0 failed (75 items) — against the 75 baseline at the branch point
openspec validate --all --strict, after merging main Totals: 76 passed, 0 failed (76 items) — identical to main at 055a514b (main gained one active change)
pytest tests/doc-health 796 passed, 7 skipped — identical to main at 055a514b (764/7 at the branch point, before #320's 32 new tests)
promotion-fidelity family, real code path 0 findings, run through #320's new basis code after merging main
single-repo doc-health report 4 critical, 8 error, 73 warning, 4 info — every finding line byte-identical to main's; only the canon word count moves

This change is now the latest archived writer of both requirements, so the promotion-fidelity family measures it against canon from the moment it archived. It reads zero, and no finding appears anywhere else.

Out of scope, reported not fixed

  • README.md's archived-change row for Apply add-workbench-branch-sessions' two unpromoted ratified deltas (promotion-fidelity 5.1) #316 quotes the 2026-07-26 amendment's own words. It is a record — an accurate historical statement — and editing it would falsify the record this change's history rests on.
  • scripts/sync-notebooklm-books.py (3), scripts/ideation_dashboard/branch_session.py (2, one a message a human reads), tests/notebooklm/test_sync_notebooklm_books.py (2), tests/ideation-dashboard/test_session_harness.py (1). Code surface; this change declares code_surface: none and does not quietly acquire one. Owed as a separate change.
  • openspec/changes/add-notebook-projection-identity/tasks.md §4.4 says "Re-derive the three lifecycle books" — an active change's task text, its author's to correct.
  • ideation/staging/notebook-projection-identity/ (3) and ideation/staging/workbench-branch-sessions/ (1): staging fragments, rewritten when their topic is next worked.
  • contracts/schemas/xfactory-document-tag-registry.schema.yaml:20 ("three lifecycle values") is a different three — not this defect.

code_surface: none, so the packet archived on landing. No merge taken here.

🤖 Generated with Claude Code

brettheap and others added 2 commits August 24, 2026 23:02
…fecycle books

Canon and the Status: standard workflow doc both said "the three lifecycle
books". They have been wrong since 2026-08-10, when split-ideation-book-per-repo
replaced the single shared Ideation book with ONE IDEATION BOOK PER GOVERNED
REPOSITORY — title family "xFactory Ideation — <RepoName>", alias family
xf-ideation-<repo-slug> — beside the shared Working Drafts and Canon books, and
retired the legacy shared book and its xf-ideation alias outright. The family is
2+N, and N moves whenever the family gains or loses a repository. A fixed count
cannot describe it.

That split's own Impact declared "no changes to hybrid notebooks, imports,
drafts/canon membership, or scan scope", which is why the count was never in its
diff. The staleness was collateral: the split changed what the book family IS
without touching the requirement that counts it.

Two later changes then carried the stale count forward ON PURPOSE, and both were
right to. It reached the promoted spec through apply-branch-sessions-deltas,
which promoted 2026-07-26 ratified text byte-for-byte and said so in terms: "Not
a rewrite, not a re-derivation, not a reconciliation with anything learned since
2026-07-26. Any improvement to that text is a separate change with its own
ratification." A parallel session's independent packet (PR #317) derived the
identical text and was closed as the duplicate, flagging the residual in its
closing comment. Editing ratified text inside a promotion change is the defect
the promotion-fidelity family exists to catch, and the codex PR #85 discipline
both packets followed forbids it. The lawful exit both named is the successor
change with its own ratification. This is that change, commissioned in-session
by Brett on 2026-08-24: "commission the successor change reconciling the
lifecycle-books count".

The replacement wording is derived, not invented — every phrase is
split-ideation-book-per-repo's own ratified vocabulary, reused verbatim:

  Corpus scan scope
    - The three LIFECYCLE BOOKS' projection SHALL scan …
    + The LIFECYCLE BOOKS' projection — one Ideation book per governed
      repository, plus the shared Working Drafts and Canon books — SHALL scan …
  Branch-session notebooks
    - … and it SHALL NOT be one of the three lifecycle books.
    + … and it SHALL NOT be one of the lifecycle books.

The second states non-membership, so it needs no enumeration and gains none.
Both are count-free, so the next split cannot restale them.

Fidelity proven by sha256 rather than asserted. Each block extracted from canon
BEFORE promotion hashes identical to what apply-branch-sessions-deltas recorded
when it promoted them, which is what proves the delta restates the ratified text
and not a paraphrase of it:

  Corpus scan scope         canon before 99fa2a84…  after 94565264…
  Branch-session notebooks  canon before 107ede78…  after f5be6d40…

Each block extracted AFTER promotion hashes identical to this packet's delta
block. The promotion moves exactly two lines; the word-diff is "three" out plus
the topology clause in, twice, and all nine scenarios are byte-identical.

The workflow doc's five instances move with them — §1 main-only rule, §7 hybrid
exclusion, §9 session exclusion, §9 shared-quota note, §10 workspace records —
each to "the lifecycle books", none gaining an enumeration, because §1's book
table states the topology two paragraphs above the first of them and §11 already
says "3+N books". The doc records the amending act on an Amended by: header line,
the convention that same split set on this same document. The three grounding
docs in §3 and §11 are a different three and stay untouched.

Behavior moves nowhere: the sync has projected per-repository books since
2026-08-10, and only the text lagged. code_surface: none, so it archives on
landing.

Gates: openspec validate --all --strict green in both states, 76 items with the
change active and 75 after it archived, against a 75 baseline. python3 -m pytest
tests/doc-health 764 passed 7 skipped, at baseline. The promotion-fidelity family
— which this change is now the latest archived writer for, on both requirements —
reads 0 findings. The single-repo doc-health report moves on NO finding line:
4 critical, 8 error, 73 warning, 4 info before and after, with only the canon
word count shifting by the clause this change adds.

Out of scope and reported, not fixed: the phrase survives in three code comments
in scripts/sync-notebooklm-books.py, two in scripts/ideation_dashboard/
branch_session.py (one of them a message a human reads), and two test comments.
That is code surface; this change declares none and does not quietly acquire one.
README's archived-change row for apply-branch-sessions-deltas quotes the
2026-07-26 amendment's own words and stays as the record it is.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 25, 2026 03:05

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@brettheap
brettheap merged commit 65f3819 into main Aug 25, 2026
2 of 3 checks passed
@brettheap
brettheap deleted the change/reconcile-lifecycle-books-count branch August 25, 2026 03:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ratifies and applies a governance-text successor change that removes the stale fixed count “three lifecycle books” from the promoted lifecycle-notebook-projection canon and its Status: standard workflow doc, replacing it with count-free topology wording aligned with the post–split-ideation-book-per-repo reality.

Changes:

  • Updates the promoted OpenSpec requirement text to replace “three lifecycle books” with a topology clause (per-repo Ideation + shared Working Drafts + shared Canon), and to remove “three” from the branch-session non-membership sentence.
  • Updates docs/lifecycle-notebook-projection.md to replace five “three books” references with “lifecycle books” and records the amendment in the header.
  • Adds a new archived change packet (proposal.md, tasks.md, .openspec.yaml, and the delta spec file) and records the archive in README.md.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Adds an archived-change record entry for reconcile-lifecycle-books-count.
openspec/specs/lifecycle-notebook-projection/spec.md Reconciles stale “three lifecycle books” wording in two promoted requirements.
docs/lifecycle-notebook-projection.md Reconciles five stale “three books” references and adds an Amended by: header line.
openspec/changes/archive/2026-08-25-reconcile-lifecycle-books-count/.openspec.yaml Declares the archived change’s origin/approval metadata.
openspec/changes/archive/2026-08-25-reconcile-lifecycle-books-count/proposal.md Documents rationale/scope and the exact wording changes being promoted.
openspec/changes/archive/2026-08-25-reconcile-lifecycle-books-count/tasks.md Captures the task checklist and evidence for the reconciliation/promotion.
openspec/changes/archive/2026-08-25-reconcile-lifecycle-books-count/specs/lifecycle-notebook-projection/spec.md Adds the delta file that restates the two corrected requirement blocks.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +13 to +15
`docs/lifecycle-notebook-projection.md`: §1 main-only rule (line 67),
§7 hybrid exclusion (198), §9 session-notebook exclusion (266), §9
shared-quota note (285), §10 workspace records (344). Five, matching
Comment on lines +70 to +74
- **The wording is derived, not invented.** Every phrase above is
`split-ideation-book-per-repo`'s own ratified vocabulary — "one Ideation
book per governed repository", "the shared Working Drafts book", "the shared
Canon book" — reused verbatim. This change ratifies no new topology; it
makes two requirements say the topology that was ratified on 2026-08-10.
brettheap pushed a commit that referenced this pull request Aug 25, 2026
#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]>
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.

2 participants