Repository navigation
Record the retirement-gate clearance and the step-8 runbook — Brett's 2026-08-26 ruling - #394
Conversation
…d 4.4/4.5 ticks Brett Heap ruled 2026-08-26 that the 2026-08-24 retirement hold is discharged on its own stated terms — the 228KB `openspec/specs/ideation-dashboard/spec.md` now HAS a projected form — with the live provider check as post-hoc confirmation rather than a precondition. The clearance record assembles four repo-verifiable facts: the F4 oversized path exists in code (MAX_TEXT_ARG_BYTES + temp-file upload and rename, its own comment naming this document as the case that forced it); the manifest carries a canon row for that path with a content hash; canon reached title-set equality (102 -> 113 live, the `PARITY FAIL: 1 missing` gone); and a convergence dry run plans zero operations. IT ALSO RECORDS WHAT WEAKENS THE OLDER EVIDENCE, because the record would be dishonest without it. The 2026-08-24 parity figure (608/608) came from a mode `add-projection-title-uniqueness` later proved could not see this class of gap — it compared derived TITLES to live TITLES, so it "reports OK on a book that is missing documents", measured at three collisions, eight documents, five displaced. `ideation-medxfactory` is named in its table AND appears in our own evidence as `PARITY OK: 48 titles match`. So 4.5 is ticked against the 2026-08-25 run taken AFTER that fix, under the amended document-based rule, which is the ordering that change insisted on. 4.4 was owed since 2026-08-24: PR #289 recorded the evidence document but touched no task box, so the list read as unstarted work that had already run. Ticked against that recorded evidence, with the session-notebook half explicitly NOT claimed — step 5 is separately held. 4.6 stays UNTICKED on purpose. The gate is cleared; the ACT is not performed, and nothing in this repository can perform it — it renames seven notebooks inside [email protected], needing an nlm session bound to the legacy account, and profile selection is process-global user state the sync refuses to switch. So it is prepared instead: docs/notebook-projection-retirement-runbook-step8.md, one sitting, seven exact renames with the legacy ids resolved from each workspace record's own provider_notebook_id rather than transcribed, three verifications, and the abort conditions — including the one that matters, that renaming under the company profile would retitle the LIVE books. The runbook deletes nothing. The 2026-08-10 precedent deleted a retired book only as a separate later act; the legacy books are the only copy of anything the migration got wrong and cost nothing to keep. The workspaces YAML keeps saying PENDING RETIREMENT, because the gate clearing and the act happening are different things and only the second changes that line. Gates: openspec 77/77 strict, hosting validator 0 errors, YAML parses at 7 workspaces, doc-health 65 findings all pre-existing — none on the added or edited files. Co-Authored-By: Claude Fable 5 <[email protected]>
… guard
Review findings A-1 through A-5, on the artifact an operator will actually run.
A-1, THE ONE THAT MATTERED. The runbook said the seven legacy ids were "resolved
from each workspace record's own provider_notebook_id". That is FALSE, and I can
see how I produced it: my lookup read the COMPANY ids out of those fields and
mapped them through a dict I had hand-built from the comment block. The values
were right; the provenance sentence described the half of the operation that did
not supply them.
Measured before fixing: no legacy id appears in any provider_notebook_id field.
They exist nowhere in this repository except the legacy->company mapping at
examples/lifecycle-notebook-workspaces.yaml lines 21-28 — which the runbook now
says, adding that if that block is ever edited these seven values have no second
source to check against. Corrected in all three places (runbook, clearance record
§5, tasks 4.6).
A-1b, the reviewer's stronger finding, folded into the runbook's own text: the
id-presence check is STRUCTURAL, and the record undersold it. The seven legacy
uuids exist only in the legacy account; `nlm notebook rename` addresses by uuid;
so running the renames on the company profile ERRORS rather than retitling the
live books. The step-0 warning claimed the opposite ("renaming there would
retitle the LIVE books") and is corrected to say what the abort is actually for —
saving the operator seven confusing failures, not preventing a silent corruption
that is structurally unavailable.
A-2: a paraphrase set in quotation marks is replaced by the supported verbatim
("Five sources short, in exactly the three books the census names", that change's
proposal.md), with a line saying which it was.
A-3: a parenthetical noting the "228KB spec" of Brett's hold measures 270,834
bytes today. The quotation stands verbatim; the note stops a checker finding
264 KiB and thinking the wrong file is meant.
A-4, the conscious call: the operator's execution output lands in
docs/notebook-projection-migration-evidence-2026-08-24.md, under a new
"Step 8 — EXECUTED" heading beside the existing "Step 8 — HELD by ruling".
Reason, in one line: a hold and its discharge belong in one place, so a reader
who finds the hold cannot miss that it was lifted.
A-5: the drift-artifact adjudication is recorded in the clearance record (§2.5)
with the MECHANISM CORRECTED. It is not that a one-repo workspace makes the
family skip — skipping happens only when `agg_root` is None or the sync script is
absent. A scratch parent holding one repository resolves both, so an AGGREGATION
run executes over a PARTIAL assembly: ~246 derivable documents against 675 live
managed sources, and the missing nine repositories' sources plan DELs. The number
measures how much of the workspace was absent. The authoritative drift figure
needs a complete assembly.
Gates: openspec 77/77 strict, hosting validator 0 errors, workspaces YAML parses
at 7 records, all seven legacy uuids still present verbatim in the runbook.
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 ✨
|
@codex review |
There was a problem hiding this comment.
Pull request overview
This PR records the 2026-08-26 decision that the step-8 “retirement gate” is cleared based on repository-verifiable evidence, and documents the remaining operator-executed retirement act (without performing it). It updates the change’s task tracking to reflect completed parity/derivation evidence and adds a dedicated decision record plus an operator runbook for the step-8 retirement procedure.
Changes:
- Ticks completed tasks (4.4/4.5) and records the step-8 gate clearance while keeping step 4.6 intentionally unticked (operator action pending).
- Adds a decision record documenting the evidence chain and the 2026-08-26 ruling.
- Adds a step-8 operator runbook and updates the lifecycle workspace mapping header with the gate-cleared status and pointers.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| openspec/changes/add-notebook-projection-identity/tasks.md | Marks recorded completion of 4.4/4.5 and documents 4.6 as “ready, awaiting operator execution,” referencing the new ruling/runbook. |
| openspec/changes/add-notebook-projection-identity/review/retirement-gate-clearance-2026-08-26.md | New decision record capturing the evidence chain and ruling that clears the retirement gate. |
| examples/lifecycle-notebook-workspaces.yaml | Adds a gate-cleared header note while keeping retirement pending, and points to the ruling/runbook. |
| docs/notebook-projection-retirement-runbook-step8.md | New operator runbook for step-8 archive-renames and verification/recording steps. |
Suppressed comments (1)
docs/notebook-projection-retirement-runbook-step8.md:79
- Step 1’s pipeline is not runnable as written: the heredoc (
<<'IDS') and the pipe both try to supply stdin togrep, so the heredoc will override the pipedjqoutput andgrepwon’t actually filter the notebook list. Feed the ID list via a separate file descriptor (or another mechanism) so stdin remains thejqoutput.
```bash
nlm notebook list --json | jq -r '.[] | "\(.id)\t\(.title)"' | grep -F -f - <<'IDS'
b83e63e3-262a-4dfe-9b9f-332b3d27d1bb
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| **`docs/notebook-projection-retirement-runbook-step8.md`** — seven exact | ||
| renames with the legacy ids resolved from the legacy→company mapping recorded | ||
| at the head of `examples/lifecycle-notebook-workspaces.yaml` (lines 21–28, | ||
| their only source here; the records' own `provider_notebook_id` fields carry | ||
| the COMPANY ids), three verifications, and the abort conditions. Tick this |
| written to be run in one sitting, with the seven legacy ids resolved from the | ||
| legacy→company mapping recorded at the head of | ||
| `examples/lifecycle-notebook-workspaces.yaml` (lines 21–28). | ||
|
|
| Legacy id is what you rename. The new id is listed only so you can prove you are | ||
| not touching it. Both columns were resolved from the legacy→company mapping | ||
| recorded at the head of `examples/lifecycle-notebook-workspaces.yaml` | ||
| (lines 21–28). | ||
|
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d6bdc89bb5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| record per live book. | ||
| - PROCEDURE LANDED, code gap OPEN and stated: runbook step 5 makes the record replacement an explicit numbered step with the reason `ensure_workspace_record()` will not do it. The function still returns `reconcile by hand`; teaching it to replace is a code change that belongs with the migration run, not before it. | ||
| - [ ] 4.4 Re-derive the three lifecycle books under `[email protected]` | ||
| - [x] 4.4 Re-derive the three lifecycle books under `[email protected]` |
There was a problem hiding this comment.
Keep task 4.4 open until session notebooks migrate
When the two live session notebooks remain on the personal account, marking this task complete hides the only execution item that requires migrating them: the task's own next lines include that work, while the new note explicitly says that half is still held and not claimed. The migration evidence confirms those sessions remain in the account being abandoned, yet the clearance record now describes the change as archive-reachable after unrelated steps; leave 4.4 unchecked or split the session migration into a separately tracked incomplete task.
Useful? React with 👍 / 👎.
| ## 1. Prove the legacy notebooks are still there, under the expected ids | ||
|
|
||
| ```bash | ||
| nlm notebook list --json | jq -r '.[] | "\(.id)\t\(.title)"' | grep -F -f - <<'IDS' |
There was a problem hiding this comment.
Feed grep patterns separately from notebook output
When an operator pastes this structural preflight, the here-document overrides grep's piped stdin. As grep --help specifies, -f - reads patterns from standard input and, with no file operand, grep also expects searchable input from standard input; the here-document supplies only the UUID patterns, so the nlm | jq output is discarded and the command prints nothing with status 1 even when all seven notebooks exist. Use a separate pattern file/descriptor or filter the JSON output without consuming stdin twice.
Useful? React with 👍 / 👎.
Copilot on PR #394, and self-inflicted three times over: the previous commit's provenance fix cited the mapping as "lines 21–28", and the gate-clearance header that SAME commit inserted into lifecycle-notebook-workspaces.yaml pushed the block down to line 38. Three citations went stale in the act of being written. Fixed by citing the ANCHOR instead — the block's own header line, `# Legacy (still live, pending retirement) -> new (live, registered) ids:` — in the runbook, the clearance record and tasks 4.6. Verified the string matches the YAML verbatim and is unique there, so the citation resolves by search. The durable form was always the right one. A line-number citation into a file the same change edits rots by construction, and this one did not even survive its own commit. Each site now says so in a sentence, so the next person reaches for the header rather than re-deriving the lesson. Gates: openspec 77/77 strict, workspaces YAML parses at 7 records, the header string present once in the YAML and cited in all three places. Co-Authored-By: Claude Fable 5 <[email protected]>
@copilot — correct, and self-inflicted three times over. Fixed in
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
docs/notebook-projection-retirement-runbook-step8.md:92
- The heredoc is attached to
grep, which replacesgrep's stdin; that means thejqoutput from the pipe never reachesgrep, so this check won't actually filter the notebook list. Write the IDs to a temp file (or use process substitution) and thengrep -fthat file against the piped output.
nlm notebook list --json | jq -r '.[] | "\(.id)\t\(.title)"' | grep -F -f - <<'IDS'
| written to be run in one sitting, with the seven legacy ids resolved from the | ||
| legacy→company mapping recorded at the head of | ||
| the mapping block at the head of | ||
| `examples/lifecycle-notebook-workspaces.yaml` headed | ||
| `# Legacy (still live, pending retirement) -> new (live, registered) ids:`. |
Brett Heap ruled 2026-08-26 that the 2026-08-24 retirement hold is discharged on its own stated terms — the oversized
openspec/specs/ideation-dashboard/spec.mdnow has a projected form — with the live provider check as post-hoc confirmation, not a precondition.The evidence chain
Four facts, each verifiable from the repository without provider access:
MAX_TEXT_ARG_BYTES = 100_000with a temp-file upload and rename, its own comment naming this document as the case that forced it.canonrow for that path, with a content hash, written by the 08-25 apply.PARITY FAIL: 1 missingis gone.The uncomfortable half, recorded rather than glossed
The 2026-08-24 parity figure (608/608) came from an instrument that could not see this class of gap.
add-projection-title-uniquenessestablished that title-vs-title parity "reports OK on a book that is missing documents", and measured three collisions, eight documents, five displaced — namingideation-medxfactory, which our own evidence records asPARITY OK: 48 titles match.So 4.5 is ticked against the 2026-08-25 run taken after that fix, under the amended document-based rule (675/675, 0 unprojected). That is the ordering the uniqueness change insisted on.
4.4 was owed since 08-24 — PR #289 recorded the evidence document but touched no task box.
Step 8: READY, not done
4.6 stays unticked on purpose. The gate is cleared; the act is not performed, and nothing here can perform it — it renames seven notebooks inside
[email protected].Prepared instead:
docs/notebook-projection-retirement-runbook-step8.md, one sitting, seven exact renames, three verifications, abort conditions. It deletes nothing.Review fixes in this branch
provider_notebook_idwas false — measured: those fields carry only the company ids. The legacy ids exist nowhere but the mapping atlifecycle-notebook-workspaces.yaml:21-28. Values were right, provenance wasn't. Fixed in all three places.Chain
4.6 → 5.1 → archive. 4.7 is the long pole, not step 8 — it needs task 2.4's company-policy actor, still unnamed.
Gates: openspec 77/77 strict, hosting validator 0 errors, doc-health zero-new.
🤖 Generated with Claude Code