Repository navigation
Stage substantive-review-lane-questions: track the review-lane proposal's open questions - #179
Merged
Conversation
…al's open questions add-substantive-review-lane (PR #178, ad-hoc origin, Status: draft) declares five open questions but doesn't decide them. This topic gives them a durable staging home so they iterate and surface on the ideation dashboard while the proposal awaits ratification, mirroring manager-review-approval-scope-kind's tracking pattern. Explicitly NOT the proposal's origin -- the proposal's own .openspec.yaml records ad_hoc, created before this topic existed. Co-Authored-By: Claude Opus 4.8 <[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
Stages a new ideation topic to track (outside the proposal PR) the five explicitly “open, not decided” questions from the in-flight add-substantive-review-lane proposal, and registers it in the staging index so it appears on the ideation dashboard.
Changes:
- Added a new staging fragment documenting context, settled principles, and the five open questions for the substantive review lane.
- Updated
ideation/staging/INDEX.mdto register the new topic (table row + detailed section) per staging index maintenance conventions.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| ideation/staging/substantive-review-lane-questions/substantive-review-lane-questions.md | New staging packet capturing context, settled baseline, open questions, and exit paths for the substantive review lane proposal. |
| ideation/staging/INDEX.md | Registers the new staging topic in the index table and adds the corresponding detailed section. |
Suppressed comments (1)
ideation/staging/substantive-review-lane-questions/substantive-review-lane-questions.md:52
- The inline code span for the merge-readiness verdicts is split across lines, which is invalid Markdown (inline code can’t include a newline) and will render unpredictably. Put the entire
ready | blocked | needs_human_reviewcode span on one line.
lead-integration, which judges individual PRs `ready | blocked |
needs_human_review`), plus the aggregation repo's mechanical
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+31
to
+32
| block declares `kind: ad_hoc`, `id: | ||
| openxFactory:adhoc:2026-08-15-add-substantive-review-lane`, authored directly |
brettheap
pushed a commit
that referenced
this pull request
Sep 4, 2026
… pending re-ratification The rescued snapshot 2ffe180 amended a RATIFIED, MERGED change packet (ratified 2026-08-25, docs on main via #260/#261/#356) including its `specs/doc-health/spec.md` delta, in place and silently. This reshapes that into the form the estate's own two precedents use, without changing one word of what the originating lane concluded. WHAT THIS COMMIT DOES NOT DO. It does not flip `Status:`, add a second ratification citation line, touch the 2026-08-25 `Ratified:` line, or alter the amended spec delta. The delta stands exactly as the snapshot wrote it — that is the text Brett is being asked to rule on. 1. RETAINED TEXT RESTORED, AMENDMENTS FILED FORWARD (the #592 §9.2 style, and `add-clearing-dispatch-boundary`'s own convention). The snapshot REWORDED five passages of the ratified packet in place. Each is restored verbatim and the amended text now sits beneath it as a dated, clearly-pending note: - `proposal.md` § What Changes, the lane bullet; - `design.md` Decision 3, the five-step recipe (both recipes now stand, the ratified one first, the amended one labelled and following); - `design.md`'s "read from Omnigent-Install `main`" note; - `design.md`'s "starts with a FRESH checkout" reproducibility argument; - `design.md` § Next steps, item 3; - `tasks.md` 3.1, whose body was rewritten while the box stayed unticked. The front-matter `code_surface:` line is a single machine-read value and cannot carry both, so its pre-amendment wording is preserved phrase by phrase in the new proposal section instead. 2. `proposal.md` GAINS § AMENDED AFTER RATIFICATION, 2026-09-04 — modelled on `archive/2026-09-01-add-release-tag-publication-check`, which is this estate's worked precedent for amending a ratified delta, down to its sentence "Recorded here as an amendment awaiting Brett rather than absorbed into the realization". It states the ruling, the contradiction the ruling exposes (a lane whose recipe requires a private-repo clone on a worker its own authority requirement forbids a repository credential to), the correction, and all five delta movements with before/after. 3. THE STANDING IS MADE HONEST. The snapshot's `Amended: 2026-09-01 by Brett` line cites a ruling about the RUNNER DESIGN, not an act of consent to the amended delta text. Both estate precedents cite a consenting act of their own ("accept the amendment"; "by the same ratifier, in a SEPARATE and LATER act"). The line is extended to say so, and the amendment is marked PENDING RE-RATIFICATION wherever it appears. 4. A DEFECT IN THE AMENDMENT, MEASURED. The amended recipe and the amended delta both call for generation "using the manifest-pinned source revision and timestamp" via `--generated-at`. `--source-revision` is real; `--generated-at` IS NOT an argument of `ideation_dashboard.cli generate`. `_generation_stamp` otherwise derives the stamp with `git show -s` inside the scanned tree, and `RealGitDates` degrades "to None … outside a git checkout" — which a sealed source artifact is. So the amended lane would publish a snapshot carrying no `generated_at` at all. The REQUIREMENT is right and the INTERFACE is missing; filed as new task 3.6. 5. `tasks.md` GAINS § 9, the adoption record. Every cross-repository merge sha the seventeen `[x]` flips assert was re-verified against the provider API and every one is real, merged, and the sha named (Omnigent-Install #129 509b7d65, #146 575bc26f, #153 da0bdeba; aggregation #141 c1bba45d, #179 de9a1d99). No flip was altered. The host- and org-admin facts this identity cannot reach are listed as unconfirmed rather than doubted. The archive gate is unmoved: `target_release: implementation_pending`, §7 has no ticked task, and the lane has still never run. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBPLWRL4rhgRbmjP8Li41
This was referenced Sep 4, 2026
brettheap
added a commit
that referenced
this pull request
Sep 4, 2026
…ett's re-ratification), packet file-forward, and the smoke tools (rescued from the shared checkout, #591) (#595) * Rescue (snapshot): nightly-refresh edits (2026-09-02) from the shared checkout at 6612d32 Snapshot ONLY. Every byte is the shared detached checkout's working tree at 6612d32, copied unchanged; nothing here was authored, renamed, re-homed or "fixed" by the rescuing lane. The source checkout was left untouched, so this snapshot removes nothing from it and cannot conflict with the originating lane. The originating lane (LANES.md draft row `openxfactory-nightly`) has UNKNOWN liveness — last file touch 2026-09-02 09:41 -0400. Its notes are ~/projects/xFactory/HANDOFF-nightly-refresh-session.md (untracked, 66 KB). Content: the ratified add-nightly-dashboard-refresh change amended for Brett's 2026-09-01 in-session host ruling (the artifact rider holds no repository credential; source crosses as a sealed parent artifact), 17 enablement tasks recorded complete, and the Playwright acceptance tooling reworked. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01WNxTJoaJQkcDi2ybmLCZgW * Adopt the nightly-refresh amendment in its lawful form: file-forward, pending re-ratification The rescued snapshot 2ffe180 amended a RATIFIED, MERGED change packet (ratified 2026-08-25, docs on main via #260/#261/#356) including its `specs/doc-health/spec.md` delta, in place and silently. This reshapes that into the form the estate's own two precedents use, without changing one word of what the originating lane concluded. WHAT THIS COMMIT DOES NOT DO. It does not flip `Status:`, add a second ratification citation line, touch the 2026-08-25 `Ratified:` line, or alter the amended spec delta. The delta stands exactly as the snapshot wrote it — that is the text Brett is being asked to rule on. 1. RETAINED TEXT RESTORED, AMENDMENTS FILED FORWARD (the #592 §9.2 style, and `add-clearing-dispatch-boundary`'s own convention). The snapshot REWORDED five passages of the ratified packet in place. Each is restored verbatim and the amended text now sits beneath it as a dated, clearly-pending note: - `proposal.md` § What Changes, the lane bullet; - `design.md` Decision 3, the five-step recipe (both recipes now stand, the ratified one first, the amended one labelled and following); - `design.md`'s "read from Omnigent-Install `main`" note; - `design.md`'s "starts with a FRESH checkout" reproducibility argument; - `design.md` § Next steps, item 3; - `tasks.md` 3.1, whose body was rewritten while the box stayed unticked. The front-matter `code_surface:` line is a single machine-read value and cannot carry both, so its pre-amendment wording is preserved phrase by phrase in the new proposal section instead. 2. `proposal.md` GAINS § AMENDED AFTER RATIFICATION, 2026-09-04 — modelled on `archive/2026-09-01-add-release-tag-publication-check`, which is this estate's worked precedent for amending a ratified delta, down to its sentence "Recorded here as an amendment awaiting Brett rather than absorbed into the realization". It states the ruling, the contradiction the ruling exposes (a lane whose recipe requires a private-repo clone on a worker its own authority requirement forbids a repository credential to), the correction, and all five delta movements with before/after. 3. THE STANDING IS MADE HONEST. The snapshot's `Amended: 2026-09-01 by Brett` line cites a ruling about the RUNNER DESIGN, not an act of consent to the amended delta text. Both estate precedents cite a consenting act of their own ("accept the amendment"; "by the same ratifier, in a SEPARATE and LATER act"). The line is extended to say so, and the amendment is marked PENDING RE-RATIFICATION wherever it appears. 4. A DEFECT IN THE AMENDMENT, MEASURED. The amended recipe and the amended delta both call for generation "using the manifest-pinned source revision and timestamp" via `--generated-at`. `--source-revision` is real; `--generated-at` IS NOT an argument of `ideation_dashboard.cli generate`. `_generation_stamp` otherwise derives the stamp with `git show -s` inside the scanned tree, and `RealGitDates` degrades "to None … outside a git checkout" — which a sealed source artifact is. So the amended lane would publish a snapshot carrying no `generated_at` at all. The REQUIREMENT is right and the INTERFACE is missing; filed as new task 3.6. 5. `tasks.md` GAINS § 9, the adoption record. Every cross-repository merge sha the seventeen `[x]` flips assert was re-verified against the provider API and every one is real, merged, and the sha named (Omnigent-Install #129 509b7d65, #146 575bc26f, #153 da0bdeba; aggregation #141 c1bba45d, #179 de9a1d99). No flip was altered. The host- and org-admin facts this identity cannot reach are listed as unconfirmed rather than doubted. The archive gate is unmoved: `target_release: implementation_pending`, §7 has no ticked task, and the lane has still never run. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBPLWRL4rhgRbmjP8Li41 * Repair the rescued debug fork: a hard SyntaxError under -W error, and a docstring that claimed to be the other file Two defects the snapshot preserved faithfully, both in `tests/ideation-dashboard/tools/playwright-smoke-debug.py`, neither fixed by the rescue because a snapshot may not author. 1. `page.evaluate("""() => { … }""")` at line 518 carries a JavaScript regex `/<textarea[\s\S]*?<\/textarea>/g` inside a NON-RAW triple-quoted Python string. `\s` and `\/` are not Python escapes, so this is a SyntaxWarning on every import today and a HARD SyntaxError under `-W error` — which the repository's own tooling reaches for. Fixed by making the literal raw. PROVED SEMANTICS-PRESERVING, not assumed. Python retains an unrecognized escape verbatim, so the string handed to `page.evaluate` was already the bytes the JS needs. The constant was extracted from the AST before and after and hashed: sha256 `e45e19201d519c18…` both times, IDENTICAL. The browser sees exactly what it saw. 2. The docstring was copied verbatim from `playwright-smoke.py`, so the file announced itself as "T098: the scratch-repository doxBench Playwright smoke" and told its reader to run `playwright-smoke.py`. It is not that tool. It is that tool plus ONE fifteen-line hunk: step 4's Document-tab click wrapped in a try/except that screenshots and dumps the canvas DOM before exiting `DEBUG4:`. `diff -u playwright-smoke.py playwright-smoke-debug.py` was that single hunk and is now that hunk plus this docstring — nothing else. The new head says what the file is, that the ORACLE is `playwright-smoke.py` and never this fork, and — the part that matters to whoever finds it next — that NOTHING keeps the two in sync, so the fork should be re-copied from the smoke and re-patched rather than edited, or deleted once step 4 is understood. The remaining 1,164 lines of the original docstring are retained because they still describe correctly how to run this file. RECOMMENDATION, FOR BRETT, NOT ACTED ON HERE: this fork is session scaffolding. Its entire value is fifteen lines of one-off DOM capture, and it costs a 1,164-line duplicate that will rot the first time the smoke is edited. Deleting it is defensible and this lane would not argue. It is kept because the rescue existed so that nothing stranded is lost, and discarding another lane's work on this lane's judgement is not what "adopt" was ruled to mean. One word removes it. NOT THIS CHANGE'S CODE SURFACE. Neither smoke tool is: `proposal.md` names "tests under `tests/ideation-dashboard/` over the status artifact, the no-change short-circuit, and the envelope-shaped diff the lane may produce", and these drive the doxBench editor UI (T098, quickstart §7 — outline editing, Save ordering, session branches). They ride this PR because they were stranded in the same working tree, not because the amendment reaches them. No task is ticked for them. The PR body carries the full analysis of the sibling `playwright-smoke.py` rework. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBPLWRL4rhgRbmjP8Li41 * Flag the pending delta amendment in the README's add-nightly-dashboard-refresh record The record describes the lane as "fresh openxFactory `main` checkout, `--strict` snapshot generation from THAT checkout" — the design as ratified 2026-08-25, and the design an amendment now pending Brett's re-ratification would change. The index is where a reader who is not opening the packet finds out what a change says, so leaving it silent would let the amendment sit unannounced in exactly the place the estate keeps its active-change inventory. The ratified description is NOT rewritten: it is what still governs, and it stays first and unedited. A dated paragraph follows it naming the ruling, what the amendment moves and why, its shape in the delta (two ADDED scenarios, one ADDED prohibition paragraph, no requirement title moved, no MODIFIED block), its rescue provenance (#595, #591), and where the full record lives. The archive gate is stated unmoved because it is: `target_release` does not move and no §7 task is ticked whichever way the amendment is ruled. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBPLWRL4rhgRbmjP8Li41 * Unwrap a source path inside new task 3.6 so it renders as one path `scripts/ideation_dashboard/generator.py` was line-wrapped inside its backticks by the previous commit, so Markdown renders it as two tokens with a space in the middle — a path a reader cannot paste. Prose only; the task's content, its number and its unticked state are unchanged. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBPLWRL4rhgRbmjP8Li41 * Take Copilot's hardcoded-path finding on the debug fork — but not its remedy, which would delete the artifact Copilot, PR #595 review of 2026-09-02, on `playwright-smoke-debug.py:539`: "This hardcodes a host-absolute path ('/tmp/...') ... Use a runtime-derived path (e.g., under the script's temp workspace) instead." TAKEN ON THE DIAGNOSIS. `page.screenshot(path="/tmp/t098-step4.png")` is the ONLY host-absolute literal in either smoke tool — the parent `playwright-smoke.py` has zero, and puts everything under its own `tempfile.mkdtemp` workspace. It is also not portable: this tool is meant to run on the Windows rider, where `/tmp` does not exist, and two concurrent runs would overwrite each other's evidence. DECLINED ON THE REMEDY, for a reason worth recording. "Under the script's temp workspace" means `base`, and `main()`'s `finally` does `shutil.rmtree(base, ignore_errors=True)`. This branch exits through that `finally` by `raise SystemExit(f"DEBUG4: {e}")`, so a screenshot written under `base` is DELETED before the operator can open it — the suggestion would have silently destroyed the one artifact this fork exists to produce. WHAT LANDED INSTEAD: a fresh `tempfile.mkdtemp(prefix="t098-debug-step4-")`, which is durable (nothing removes it), collision-free between concurrent runs, and rooted at `gettempdir()` on every platform — `%TEMP%` on the Windows rider, `/tmp` on Linux, so the original behaviour is preserved where it worked. The path is now PRINTED as `STEP4 SCREENSHOT: <path>` beside the existing `STEP4 DOM:` dump, because a debug artifact at an unpredictable path that nobody is told about is not an artifact. The comment states all three reasons so the next reader does not "simplify" it back to either broken form. `python3 -W error -m py_compile` still clean. Behaviour on the SUCCESS path is untouched: this whole block runs only when the step-4 Document-tab click raises. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBPLWRL4rhgRbmjP8Li41 * Take all three of Copilot's round-2 findings — including a self-contradiction inside the amendment itself Copilot re-reviewed at head `e883a378` and, unlike round 1, reached the GOVERNANCE half. All three findings are real and all three are TAKEN. 1. THE AMENDED DELTA CONTRADICTED ITSELF, and this is the one that mattered. The sentence the amendment adds — "The worker SHALL perform no repository clone, fetch, or push" — FORBIDS IN ITS CLOSING CLAUSE THE VERY ACT THE SAME SENTENCE REQUIRES, a push to `acropensoftxfactoryqa.azurecr.io`. Not prose-picking: this packet calls the push target an "image repository" in `tasks.md` § 2 and in the authority requirement's own "scoped to the single image repository", so "repository" is overloaded across these very requirements. The new prohibition paragraph carried the same ambiguity — its "repository network access on the worker are prohibited" reads on the registry too. Both are now qualified to GIT repositories explicitly, and the prohibition paragraph closes by saying so and by stating that the push-scoped credential for the single `ideation-dashboard` IMAGE repository is neither widened nor withdrawn. NO OBLIGATION MOVES — this is the reading every other sentence in the packet already assumes. THESE ARE THE ONLY WORDS OF THE AMENDMENT THIS LANE HAS CHANGED, and the change is recorded in `proposal.md` § AMENDED AFTER RATIFICATION as its own dated paragraph, because it edits the text put to Brett for ratification. A lane that quietly rewrites what it asks to be ratified has broken the thing that section exists to protect. 2. Task 1.3 is CONDITIONAL ("If 1.2 shows the installation cannot be extended…") and was ticked with a note reading "NOT INVOKED" — a checkbox whose meaning did not match its text. This repository has a convention for exactly that, and Copilot cited it: `[x]` plus an explicit `**N/A — <reason>**` opening the task line (`archive/2026-08-24-govern-openspec-corpus-membership/tasks.md:54-63`, four consecutive instances). Verified, and followed. The originating lane's tick and its whole note are retained; only the N/A marker is added. 3. THE REPOSITORY CONSTITUTION FORBIDS COMMITTED HOST-ABSOLUTE PATHS OUTRIGHT — `.specify/memory/constitution.md` principle IV, "Committed files MUST NOT contain host-absolute paths; use repo-relative paths or runtime resolution." THIS LANE GOT THAT WRONG in its round-1 disposition, where it said the rule was narrower than Copilot claimed and reached only release and contract metadata. It searched `docs/` and `tests/` and never opened the constitution. The rule is repo-wide and Copilot was right. The offending lines were this lane's OWN: the new docstring described the fix as writing `/tmp/t098-step4.png`, and the new comment argued against a hardcoded "/tmp/...". Both now describe the behaviour without an absolute path, and the comment cites principle IV as the third reason not to regress it. The code itself was already compliant as of `e883a378`. DECLINED, with the reason: the `~/doxbench-operator/t100_serve.py` mention Copilot also flagged in the retained docstring is `$HOME`-relative rather than host-absolute, and is retained text byte-identical to the same line in `playwright-smoke.py`, which is already on `main`. Changing it here would edit retained text to fix a defect this PR did not introduce and would leave the parent tool divergent. `openspec validate --all --strict` 87 passed / 0 failed; `python3 -W error -m py_compile` clean. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBPLWRL4rhgRbmjP8Li41 * Take Copilot round 4: a checkbox that implied evidence nobody has, and a docstring that sent operators to the wrong file Both findings are this lane's own defects, not the originating lane's. 1. TASK 1.3's N/A REASON CLAIMED SOMETHING 1.2 HAS NOT SHOWN. Round 2 added the marker "N/A — 1.2's condition did not arise", which reads as though 1.2 had concluded. IT HAS NOT: 1.2 is `[ ]`, it owes a CALL-TIME write proof, and that proof is deferred to §7.1. Copilot is right that a checklist stating a conclusion resting on pending evidence misleads a reader about what is actually verified — the exact failure mode the seventeen ticks were audited for in §9. The marker now separates the two questions instead of eliding them. 1.3 asks whether the installation CANNOT be extended; it demonstrably can, because it is already organization-wide (`repository_selection: all`) and Omnigent-Install is in scope with no extension act at all. That is independent of 1.2's outstanding call-time proof, and the text now says so in terms — "Nothing here asserts 1.2's proof has been taken." 1.2 stays `[ ]` and is untouched. 2. THE DEBUG FORK TOLD OPERATORS TO RUN THE OTHER TOOL. Its retained docstring carried `python3 tests/ideation-dashboard/tools/playwright-smoke.py` — the correct instruction in `playwright-smoke.py`, and the wrong one in a fork whose entire purpose is to be run INSTEAD of the smoke when step 4 fails. Someone debugging step 4 would have run the tool that cannot show them anything. This lane made that worse rather than better: the new head it added in `366a42cc` asserted the retained docstring was kept "because every word of it still describes how to run this file", which was false of precisely this line. The invocation now names this file, the correction is marked in place so it is not read as drift from the parent, and the blanket claim is narrowed to what is actually true. This is an exception to the retained-text rule, and a deliberate one: the rule protects a RATIFIED PACKET's record. This file is new, uncommitted before the rescue, and the line is not a record of anything — it is an instruction that was wrong the moment the file was copied. `python3 -W error -m py_compile` clean; `openspec validate add-nightly-dashboard-refresh --strict` valid. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBPLWRL4rhgRbmjP8Li41 * Record Brett's re-ratification of the amended delta and delete the debug smoke tool (#595) Brett Heap, 2026-09-04 ~02:2xZ, in-session, verbatim: "re-ratify and merge 595, delete the debug tool, roll out lane-line". - proposal.md: § AMENDED AFTER RATIFICATION heading flips from "flagged, PENDING re-ratification" to "RE-RATIFIED 2026-09-04"; records the ruling as the consenting act for the five-movement amendment (including the Copilot-round-4 "Git repository" qualification), on PR #595 at head e84d060. The pending-state paragraph is retained, prefixed as superseded rather than removed. The `Amended:` front-matter line gets the same citation appended; `Status: ratified` and the single `Ratified:` line are untouched. - tasks.md §9: dated ruling entry recording the debug tool's deletion and where its ~15 lines of DOM-capture diff remain recoverable (rescue commit 2ffe180). - tests/ideation-dashboard/tools/playwright-smoke-debug.py: deleted per the ruling. No other file references its filename (grep checked); the tool's own docstring was its only self-reference. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01KeBPLWRL4rhgRbmjP8Li41 * Reconcile the re-ratification wording across the header, index, recipe and tool comment (#595) Four Copilot findings on PR #595, all taken in one commit: - proposal.md front-matter `Amended:` line was internally contradictory (asserted both "NOT YET RE-RATIFIED" and "Re-ratified 2026-09-04" in the same live header). Rewritten to one consistent statement: the runner-design ruling stands as quoted, and the amended delta is RE-RATIFIED 2026-09-04 by Brett Heap, verbatim "re-ratify and merge 595, delete the debug tool, roll out lane-line" (see § AMENDED AFTER RATIFICATION, already the section that carries the history). `Status: ratified` and the single `Ratified:` line are untouched. - README.md's OpenSpec Records entry for add-nightly-dashboard-refresh said the delta amendment was still pending re-ratification; updated to state it was amended 2026-09-04 and re-ratified the same day. - design.md's amended recipe snippet used `--generated-at`, a flag the note immediately below says does not exist yet; added an inline `# requires task 3.6 — flag not yet implemented` marker on that line so a copy/paste does not fail silently. - tests/ideation-dashboard/tools/playwright-smoke.py's git-identity comment read as if `git config user.name` itself "falls through" to the operator's global identity; reworded to say that WITHOUT setting the checkout's local user.name/user.email, later commits fall back to the operator's global git config. The fifth open thread (subject/verb on "Git repository ... access ... prohibited") is a reasoned DECLINE already on record and is left untouched. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013f11Yb8DF5FTL6NuV7xWYb * Say re-ratified everywhere a reader would take it as current (#595) Two Copilot findings on PR #595 pointed at a reader-facing summary blockquote (proposal.md) and a task-gating paragraph (tasks.md) that still described the 2026-09-01 amendment as "pending re-ratification" after Brett Heap's 2026-09-04 re-ratification (verbatim: "re-ratify and merge 595, delete the debug tool, roll out lane-line"). Reworded both, plus five stragglers found by grepping the whole packet (tasks.md 3.1 note; design.md Decision 3 header, the amended-recipe header, and two inline amendment asides) that carried the same stale "(pending re-ratification)" phrasing a reader would take as current. The superseded paragraph inside proposal.md's § AMENDED AFTER RATIFICATION, which is explicitly marked superseded, is untouched, as is the single Ratified: line. Task 3.6 (the --generated-at CLI surface) is now stated as REQUIRED realization work on this change's code surface rather than conditional on a future ratification; the task itself stays unticked since it is not yet done. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013f11Yb8DF5FTL6NuV7xWYb * Say "not re-verified by the adopting lane", not "not verified" (#595) The §9 label read as contradicting the [x] ticks above it (e.g. 1.5/1.6). Reword the label and its lead-in so the meaning is unambiguous: these are host/org-admin facts the adopting lane could not check from outside the host, and the ticks above stand on the originating lane's own evidence — they are not withdrawn. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013f11Yb8DF5FTL6NuV7xWYb --------- Co-authored-by: Claude Fable 5.1 <[email protected]> Co-authored-by: Brett Heap <[email protected]>
brettheap
added a commit
that referenced
this pull request
Sep 4, 2026
…ct (nightly-refresh re-realization S2; lands after #641) (#648) * Retire the refresh lane's raw-clone `--phase build` recipe (nightly-refresh re-realization S4) `dashboard_refresh_lane.py` carried a SECOND, independent realization of the pre-amendment build recipe: `build_and_push()`, reached only by `--phase build` and configured by `BuildPlan.corpus_url/corpus_ref/corpus_paths`. Its first step was a raw `git clone --filter=blob:none` of the corpus onto the worker, followed by sparse-checkout, `--strict` generation, `docker build`, `az acr login` and `docker push`. Nothing reaches it. `doc-health-reusable.yml` invokes this module four times — `--phase decide` twice, `--phase pin`, `--phase record-pr` — and passes none of the six build-only flags; the aggregation's `dashboard-image-worker.yml` does the whole recipe in bash inside the child. But the re-ratified amendment to `add-nightly-dashboard-refresh` prohibits the worker from holding a Git credential at all, so a module-side path that clones contradicts a ratified requirement whether or not a caller exists today — and two realizations of one recipe are how the pair drifted apart in the first place. The plan's recommendation is delete, not port: a ported copy would be a third place the recipe lives. Deleted: `build_and_push`, `BuildPlan`, `default_tag`, `_digest_from_push`, `_digest_from_inspect`; the `build` phase and the six flags that fed it (`--corpus-url`, `--dockerfile`, `--context-root`, `--registry`, `--tag`, `--acr-login`); the three `BuildPlan`-only constants and the now-unused `shlex` import. Kept: `--phase pin`'s synthesized `BuildResult` path byte-for-byte; `verify_one_revision`/`OneRevisionViolation`, whose caller moved to the child but whose property is the contract's; `git_head_revision`, a `rev-parse` read over a checkout the caller already has, which the parent's sealing step will need; and `run_refresh_lane`'s injected-build seam, retyped to an opaque handle. `--corpus-ref` stays — `--phase decide` reads with it. Tests: the three that drove `build_and_push` directly are removed with their `FakeBuildWorld`/`_plan` fixtures, and two take their place — an `ast`-based assertion that no code string literal in the module names `clone`, `sparse-checkout`, `docker` or `az`, and one that the CLI now refuses `--phase build` loudly instead of skipping silently. No packet file, no spec, no contract and no substrate row is touched; slice S6 records the acts and corrects task 3.4's note, which still describes the child as running `dashboard-refresh-nightly.py --phase build`. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013f11Yb8DF5FTL6NuV7xWYb * Say precisely which part of the retired recipe the module still holds Bot round 1, Copilot (TAKEN): "THIS MODULE HOLDS THE PREDICATE AND NOTHING ELSE" reads as literally false — the module still holds the decision core, the pin rendering and the report section. The sentence was scoped to the recipe the paragraph describes, but nothing said so. It now does: of that recipe the module holds only `verify_one_revision`, never the generation, the build, or the assertion's call site. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_013f11Yb8DF5FTL6NuV7xWYb * Scope the void-by-contract docstring to valid phases, not argparse usage errors Bot round 2, Copilot: main()'s docstring said every path "falls through" and the process "exits 0" without qualifying that against the CLI's own usage- error path. The module's FAILURE SEMANTICS paragraph ("every error path is a recorded outcome and exit 0") was always scoped to the lane's own runtime logic for decide/pin/report/record-pr, never to CLI parsing, so this makes main()'s docstring say that precisely instead of changing behaviour: exit-0 covers every valid phase's own failure path; an unrecognized phase -- including the retired `build` -- is a usage error argparse itself refuses with SystemExit(2) before any lane logic runs, and that exit code is deliberately outside the void-by-contract promise. test_the_cli_refuses_a_ build_phase already pins the SystemExit behaviour this describes. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TqM41pKPnpz7utYe8vanuE * The credentialed parent seals the bounded source artifact the child consumes The re-ratified requirement prohibits a Git repository credential, deploy key, credential helper or repository network access on the artifact worker, and the worker's own readiness gate fails closed unless its heartbeat attests `repository_credentials_absent`. The lane's recipe, meanwhile, had the child raw-cloning two private repositories. The lane could be READY or it could fetch; never both. This is the parent half of the fix: the credentialed hosted parent materializes the source, and the child will consume only that (re-realization S2 of add-nightly-dashboard-refresh). WHAT THE PARENT SEALS. `--phase seal` takes the decide phase's own decision file and produces one directory: the corpus at ONE revision under `openxFactory/`, the pinned build recipe at `recipe/Dockerfile`, and `manifest.json` carrying the source head, that commit's own committer date, both path-scoped input revisions, the seal and baked path sets, a per-file sha256 index, and one `tree_digest` over that index. The workflow uploads it as `dashboard-image-source-<correlation_id>` and the dispatch is gated on it. THE SEAL SET IS NOT THE DECISION SET, and PR #179 already paid for that once. `snapshot.find_validator` walks UP for `openxFactory/scripts/ validate-ideation-dashboard-contracts.py` — a TOP-LEVEL `scripts/*.py` that `CORPUS_BAKED_PATHS` does not name. The child's sparse-cone checkout carried it as a side effect of cone mode; a `git archive` over a path list does not, and a seal without it fails `--strict` with "validator unavailable" and no finding to read. So the seal set is `CORPUS_BAKED_PATHS ∪ {the validator}` and the DECISION set stays exactly `CORPUS_BAKED_PATHS`: widening the decision scope would make `_same_scope` fire `REASON_SCOPE_CHANGED` against every recorded pin and force one rebuild for nothing. Both halves are asserted, and the layout is proven by running the real locator over a real sealed tree. THE REVISION IS PROVEN, NOT ASSERTED. Today the child proves snapshot `source_revision == HEAD` against a real `.git`; after this change both sides come from one manifest and that check is tautological on its own. So the parent keeps the end that still touches a repository: `git archive` records the commit it was made from in a global extended pax header, and the seal refuses unless that header equals the `source_head` it is about to record. The child's own recomputation of `tree_digest` is the other half, and the rule is written INTO the manifest (`tree_digest_spec`) so the artifact carries its own verification rule. A test recomputes the digest from that prose by an independent implementation, which is what makes the child's side authorable from the manifest alone. `--generated-at` GETS THE COMMIT'S DATE, NOT A WALL CLOCK. The manifest names the field (`generated_at_field: source_committed_at`), and `git_commit_datetime` makes byte-for-byte the call `generator.RealGitDates.commit_date` makes, `--` included: the change moves where the stamp comes from, never what it says, so the snapshot stays byte-identical across it. The parent's own wall clock is `sealed_at` and is diagnostic only. FAILURE SEMANTICS, unchanged from the rest of the lane. A refused seal is a recorded SKIP and exit 0 — no manifest is written, nothing is dispatched, and the next run catches up in one hop. The dispatch reads the upload step's `outcome` and not merely `sealed`, because `continue-on-error` makes its `conclusion` always success and a child dispatched against an artifact that never uploaded would fail on the download with nothing here saying why. Retention is one day and `include-hidden-files: true`: v4 drops dotfiles by default and the manifest's index is the authority on what the download must contain, while a private corpus should not sit in artifact storage for ninety days to be read once inside the same nightly. No contract byte moves and no substrate row moves. The child's own intake is S3, in the aggregation; this lands first so the artifact exists before anything downloads it. Measured on the real corpus: 3511 files, 35,123,275 bytes. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TqM41pKPnpz7utYe8vanuE * Stage the seal's tar outside the artifact, and refuse an overlay seal Two holes in the first cut, both of the same shape — something that is not part of the sealed revision reaching the `files` index, which is the authority on what the child must find after download. The intermediate tar was written beside the seal directory, which for the workflow's `--seal-out dfr-seal` means a dotfile in the checkout root. It is now staged in a `TemporaryDirectory` outside both the seal and the checkout, so it cannot be swept into the index (a 35 MB `.tar` in there would be the whole corpus downloaded twice) and it is cleaned up on every path including a refusal, rather than by an `unlink` at each `raise`. And a seal is now refused into a NON-EMPTY directory. A leftover from an earlier attempt would otherwise be indexed, digested and shipped as though the parent had sealed it. `finalize` runs on `ubuntu-latest` so the live workspace is always fresh; the refusal is for the library caller and the re-run nobody plans. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TqM41pKPnpz7utYe8vanuE * Name `seal` in the void-by-contract phase list too #641's `b23e3381` scoped `main`'s exit-0 contract to the VALID phases and enumerated them; this slice adds a fifth. The enumeration is the point of that docstring — a phase missing from it reads as one argparse refuses — so it carries `seal`, and says explicitly that a refused seal is one of the SKIPPED outcomes the contract covers. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TqM41pKPnpz7utYe8vanuE * Refuse an escaping tar member on both branches, and canonicalize the id once Both findings from Copilot's round on #648, both taken. THE EXTRACTION FALLBACK WAS UNGUARDED. `_extract_seal_archive` extracts under the `data` filter where the interpreter has one and falls back to a bare `extractall` where it does not — and the fallback would happily write an absolute or `..`-bearing member outside the seal. "git produced this archive so its names are fine" is exactly the assumption an extraction hazard is made of. The member names are now checked BEFORE anything is extracted — absolute, traversing, and any name whose resolved target is not under the destination — so the guarantee holds on both branches rather than on one. THE CORRELATION ID WAS CANONICALIZED IN ONE PLACE OF TWO. `seal_artifact_name` strips, the manifest recorded the raw value, and the child compares the artifact name against the manifest field — so a value arriving with surrounding whitespace would have made the child refuse a perfectly good seal over a space. It is stripped once, at the top of `seal_source`, and both now come from the same string. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TqM41pKPnpz7utYe8vanuE * Assert the seal stamp's INSTANT, not its spelling — the zero offset is git's Two of the new tests pinned `source_committed_at` to the literal `2026-09-04T01:02:03+00:00` and went red on the Actions runner, which returned `2026-09-04T01:02:03Z` for the same commit: `git show -s --format=%cI` renders a ZERO offset as `+00:00` on git 2.43 and as `Z` on the runner's git. The assertions pinned a git version, not a property. The manifest records whatever git said VERBATIM, and that is deliberate — the `--generated-at` contract is that the value is "recorded in the snapshot EXACTLY as given … never normalised", and normalising here would be this module inventing a stamp. Both spellings are RFC 3339 and both are accepted by `generator.is_rfc3339_datetime`, which is the property the child depends on. So the tests now assert the INSTANT (and RFC-3339 conformance) rather than the rendering, with the measurement of both spellings recorded beside the helper. Byte-identity across runs is unaffected: one parent's git renders one spelling, so two seals of one revision still name the same stamp — proven by `test_the_tree_digest_of_one_revision_is_stable_across_two_seals` and by `test_the_manifest_carries_every_field_the_child_reads`. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TqM41pKPnpz7utYe8vanuE * Do not let an unrelated manifest problem swallow the tree-digest check Copilot round 2, taken. `verify_seal` guarded the digest recomputation with `and not problems`, so a wrong `kind`, an unreadable `schema_version` or a correlation-id disagreement suppressed it — contradicting the function's own contract, which is to report ALL of what is wrong in one pass because "a seal that is missing four files and disagrees about the revision is one diagnosis, not four runs". The whole-tree disagreement is the most useful line in that list and it was the one being dropped. It now recomputes whenever every indexed path WAS hashed. A per-file mismatch then shows up twice, as its own line and again in the digest line; that is the right side of the trade for a diagnosis a human reads once. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TqM41pKPnpz7utYe8vanuE * Reflow the lines the seal edits left long Cosmetic only, no behaviour: the `seal` insertion into `main`'s docstring left one line running past the file's width, and four of the new statements were 82-90 columns. The `..` membership test also reads better as `".." in parts` than as the generator it was. Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TqM41pKPnpz7utYe8vanuE * verify_seal refuses escaping and symlinked manifest paths; the seal writer never emits them (#648) `verify_seal` is the reference for S3's child-side intake gate, so it must not trust `manifest["files"]` keys as safe relative paths before joining them under the seal root. Add `_contained_relpath(root, relpath)`, which refuses an absolute path, a `.`/`..`/empty component, a backslash, a symlink at any path component, or a resolved location outside the seal root — BEFORE any join or open — and route every manifest-file lookup in `verify_seal` through it. Apply the same helper on the writer side (`seal_file_index`, and the `seal_paths`/validator joins in `seal_source`) so the writer and the reference verifier enforce one rule rather than two that could drift apart. Manifest schema and `tree_digest_spec` unchanged. Add regression tests: a tampered `files` index that escapes via `..` (with the outside file present and `tree_digest` recomputed to match), an absolute path, a symlinked entry, and a `..`-free path that escapes through a symlinked directory are all refused; the honest seal still verifies (existing coverage). Lane: openxfactory-f2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TqM41pKPnpz7utYe8vanuE --------- Co-authored-by: Brett Heap <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]> Co-authored-by: Brett Heap <[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.
Purpose
add-substantive-review-lane(PR #178, branchchange/add-substantive-review-lane, Status: draft) was proposed ad-hoc to generalize codexFactory's provengate_rules_council+merge_readiness_council+ mechanical Merge Master enforcer from its single nightly doc-health lane into a substantive PR review lane spanning governed xFactory repos, piloted onopensoft/openxFactoryreviewed by codexFactory's councils. That proposal declares five open questions but does not decide them. This PR stages a topic so those questions iterate independently and surface on the ideation dashboard while the proposal awaits Brett's ratification -- the same pattern as the existingmanager-review-approval-scope-kindtopic, which tracks a sibling in-flight artifact's parked question.Not the proposal's origin. The proposal's own
.openspec.yamlorigin block declareskind: ad_hoc, authored 2026-08-15 directly from verified current-state facts, created BEFORE this topic existed. This topic is purely post-proposal tracking of its parked open questions -- it makes no claim to be a staged origin.The five tracked questions
company-policy-leadseat joins per-PRmerge_readiness_councildeliberation, or remains rules-council-only as today.APPROVEsatisfying required-review, vs. a required check-run, and whether human review remains an alternate satisfying path.Six decided principles from the proposal are carried into the topic's Claims section as settled context, explicitly NOT reopened.
Changes
ideation/staging/substantive-review-lane-questions/substantive-review-lane-questions.md(primary staging fragment: context, 6 settled claims, 5 open questions, exit path).ideation/staging/INDEX.mdwith the topic's table row + detail section per the kept-current maintenance rule.Validation
scripts/doc-health.py --single-repo .run pre-edit (baseline: 3 critical / 6 error / 39 warning / 3 info) and post-edit (identical counts) -- zero new findings (--new-findings-outreturned[]).scripts/validate-ideation-routing.py . --strict-- clean, unaffected.## Exitsection and INDEX.md's bullet-style- Exit:lines avoid literally citingadd-substantive-review-lane(that change is active-but-unmerged; citing it in an Exit context would trip doc-health'slocation-conformance"staged material already cites proposal" check once PR Propose add-substantive-review-lane: governed council review for substantive PRs #178 lands).Do not merge -- awaiting review.
🤖 Generated with Claude Code