Repository navigation
docs: check the five predecessor live-pass boxes and doxBench 1.3 (D10 governance) - #49
Merged
Merged
Conversation
…0 governance) The separate governance commit the D10 runbook requires, applied against the merged, signed evidence (PR #48, 93ea5c1): - add-staging-workbench 6.5, add-workbench-bullseye-and-create 7.2, add-workbench-branch-sessions 9.2 — PASS WITH FINDINGS (F1-F12 register); add-propose-verb 4.3 — PASS; add-dashboard-repo-selector 6.2 gains its completed deliberate-human-observation note. - add-workbench-integrated-editor-chat 1.3 closes; 1.5's progress note records that zero predecessor tasks remain and the archive chain is unblocked. - Lands the four serve-plane gate-action records of the pass (propose descriptor + record, open-pr, abandon-session), completing the audit trail the verbs leave untracked by design (F10). Strict OpenSpec validation: 58 passed, 0 failed. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR records D10 governance completion by checking predecessor acceptance-task boxes and adding the serve-plane gate-action audit artifacts (and propose commissioning descriptor) that the verbs intentionally leave untracked during the live run.
Changes:
- Marks the D10 predecessor live-pass tasks (6.5, 7.2, 9.2, 4.3) and doxBench 1.3 as completed, with “PASS / PASS WITH FINDINGS” narrative and evidence pointers.
- Adds gate-action record YAMLs for
open-prandabandon-session(session ref) and forpropose(topic id), plus the commissionedworkflow-jobdescriptor. - Appends the “no predecessor tasks remain open” update to unblock the archive chain.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| openspec/changes/add-workbench-integrated-editor-chat/tasks.md | Checks doxBench 1.3 and records signed D10 combined-pass details; updates archive-chain blocker status. |
| openspec/changes/add-workbench-bullseye-and-create/tasks.md | Checks 7.2 with “passed with findings” narrative and evidence link. |
| openspec/changes/add-workbench-branch-sessions/tasks.md | Checks 9.2 with “passed with findings” narrative and evidence link. |
| openspec/changes/add-staging-workbench/tasks.md | Checks 6.5 with “passed with findings” narrative and evidence pointers. |
| openspec/changes/add-propose-verb/tasks.md | Checks 4.3 and records propose commissioning artifacts and evidence link. |
| openspec/changes/add-dashboard-repo-selector/tasks.md | Adds the completed deliberate-hosted refresh observation note and evidence pointer. |
| ideation/dashboard/gate-records/draft-consent-instrument-contract/open-pr-20260801T005443Z.gate-action.yaml | Adds audit record for session open-pr. |
| ideation/dashboard/gate-records/draft-consent-instrument-contract/abandon-session-20260801T012037Z.gate-action.yaml | Adds audit record for session abandon-session, including reason narrative. |
| ideation/dashboard/gate-records/consent-instrument-contract/propose-20260801T012134Z.workflow-job.yaml | Adds the commissioned workflow-job descriptor for proposal authoring. |
| ideation/dashboard/gate-records/consent-instrument-contract/propose-20260801T012134Z.gate-action.yaml | Adds audit record for propose referencing the workflow-job descriptor. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+11
to
+13
| target: | ||
| topic_id: consent-instrument-contract | ||
| at: '2026-08-01T01:21:34Z' |
| snapshot). The open-pr merge-ending cannot observe the merge in this environment: | ||
| the served checkout is a dedicated D10 worktree and the shared refs/heads/main is | ||
| held at c782d6d by another live session; advancing it would sweep that session. | ||
| Abandoning per the propose refusals own guidance to clear the commission path; branch |
brettheap
added a commit
that referenced
this pull request
Aug 10, 2026
#163) * A session notebook never outlives its session: reconcile the namespace Brett, 2026-08-10: "fix the session teardown notebook gap" — the gap PR #161's brainstorm captured after two orphans had to be deleted by hand. Through the protocol rather than straight into the code, because this is GOVERNED DELETION on an account shared across the family: brainstorm -> `ideation/staging/session-notebook-reconciliation/` (+ INDEX row) -> `add-session-notebook-reconciliation` (deltas to `lifecycle-notebook-projection` and `ideation-dashboard`) -> realization here. THE GAP. Both governed endings retire the session notebook. Sessions also end a third way — a probe clears up, crash residue is swept, someone runs `git worktree remove` — and that way retires nothing. `--session-ref --session-retire` cannot clean it up BY DESIGN: it resolves liveness first and refuses a dead branch, which is exactly what stops it inventing a session and retiring a LIVE one's notebook. So the dead case gets its own door, and it establishes death differently: from no live session anywhere claiming the notebook. `--session-sweep`, report-only by default: * FORWARD-DERIVED. `notebook_alias` is injective but not invertible (the readable half strips `draft/` and lowercases; the key half is a digest), so a title can never be resolved back to a (repository, branch). The mode computes every live session's alias and treats an `xf-session-` notebook matching none as dead. * FAIL CLOSED. A repository it cannot enumerate looks exactly like one whose sessions have ended, and the difference is unrecoverable after a delete. Any such repository refuses the whole run and retires nothing. * WORKSPACE-SCOPED, by PREFIX not by parsing: repository names and flattened branches both contain hyphens, so any title parse is ambiguous exactly where being wrong deletes someone else's notebook. * `retire`, never a scratch `delete` — the same operation both governed endings take, with its own session-prefix guard. An adapter without it refuses loudly. THE LIVE DRY RUN EARNED ITS PLACE IN THE TASK LIST. Its first run reported BOTH of Brett's live sessions as dead: DEAD xf-session-openxfactory-subject-document-estate-… (discards 10 sources) DEAD xf-session-openxfactory-company-provisioning-… (discards 11 sources) With --apply that retires two live sessions' notebooks over unmerged work. The cause: a session's container is keyed on the checkout it was OPENED FROM (`<checkout>-worktrees/sessions/`), and both were opened from a FEATURE WORKTREE — not the canonical checkout the enumeration asked. Fail-closed could not fire and never could: "no sessions in this checkout" is a legitimate answer, indistinguishable from "the sessions are in another worktree". No unit test could see it either, because they all stub the enumeration. The enumeration is now COMPLETE — every worktree git lists for the repository, which is readable precisely because linked worktrees share one git dir — and a failure to read that list is an error, not an answer. Second run: KEEP xf-session-openxfactory-subject-document-estate-… (a live session claims it) KEEP xf-session-openxfactory-company-provisioning-… (a live session claims it) 2 live session(s); no orphans Pinned by `test_a_session_opened_from_a_feature_worktree_is_seen_as_live` against a real repository with a real linked worktree, and stated as a requirement in the delta. A second fail-safe fell out of writing the tests and is pinned too: a workspace resolving NO session repositories retires nothing — pointing this mode at the wrong root is inert rather than destructive. `live_session_branches_of` lands in `branch_session.py`, beside `live_session_worktree`, so the projection tooling still cannot invent a second liveness rule (PR #49 finding 12). It returns `(branches, errors)` because every failure mode yields FEWER branches, and a bare list would make a broken checkout look like a clean one. Runbook §4a: which mode cleans up after a hand teardown, why the targeted route still refuses a dead branch, and the run-from-the-workspace-root rule. Suites: tests/ideation-dashboard + tests/ideation_dashboard + tests/notebooklm — 2945 passed, 19 skipped (exit 0). openspec validate --all --strict 57/0. doc-health exit 0, errors unchanged at 5 pre-existing. * List add-session-notebook-reconciliation in the README's OpenSpec Records The convention every active change follows (CLAUDE.md working rules): a new active change is listed in openxFactory's README so the record is discoverable without walking `openspec/changes/`. Carries the finding worth reading before running the mode: the owed live dry run called two LIVE sessions dead, because a session's container is keyed on the checkout it was opened FROM and both were opened from a feature worktree the enumeration never asked. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
brettheap
pushed a commit
that referenced
this pull request
Aug 19, 2026
The adversarial review of the outline tab came back FIX FIRST. The core held — EOL end-to-end, fence-aware anchoring, the click-time race, the gate-off no-listener posture, the 3.5 invariant — and five confirmed findings did not. Fixed here as review-fix commits (PR #196's precedent), never an amend. F1 — A TEST-COVERAGE REGRESSION THIS SLICE INTRODUCED, and the worst of the five because it silently removed a guard. Widening `renderOutlinePanel`'s signature made the loosened substring pin in `test_session_confinement.py` a prefix of the DECLARATION as well as the call, so it stopped constraining the call site at all: the reviewer replaced `sourceBase` with `null` at the call and the whole suite stayed green — re-opening PR #49's finding 16, "a draft view mistaken for main", which is the entire reason that test exists. The pin is now a regex that must run through the call's own closing arguments, which no declaration can supply. The mutation was re-run against the final tree: exit 1, `test_the_outline_pane_reads_through_the_active_keys_source_base` fails. F2 — THE CONTRACT'S EXTENSION GRANT WAS UNUSABLE. `insertSection` applied a rank-wide duplicate rule on BOTH routes, and `sectionRank` matches by substring. On a fully templated fragment that refused "Exit criteria", "Why we deferred", "Impact analysis", "Claims log", "Prior art on why", "Conflicts with promoted specs" and "Open questions for Brett" — each naming a section the human never asked for, and an explicit `after=` target could not get round it because the refusal fired before the anchor was read. The same loose match silently canonicalized the near misses: "Notes on conflicts" was written as `## Conflicts` with the conflict-bullet seed and the typed heading was simply gone. Since the free-form control is the ONLY route to "either a human or an AI may add a section beyond the required set", the ratified grant was unreachable in practice — and it got worse the more conformant a topic became. The two routes are now separated by an explicit `required` flag rather than by guessing from the string. The gap row sets it and keeps both loose behaviours, where they are doing necessary work: it asks by the contract's LABEL, so it must resolve to the canonical heading and seed, and it must refuse a required section already present under the skeleton's longer spelling. Everything else is exact — exact-title duplicates, the human's heading verbatim, the generic skeleton, and canonical placement only for a title that already IS a canonical heading letter for letter. One `resolveTemplate` answers "which route" for both callers, so the rank and the heading cannot disagree. F3 — A W-10 REGRESSION. The refusal branch echoed the seam's `error` text, which both other consumers of `applyProposal` explicitly forbid: doxbench-chat.js calls its mapping a WHITELIST and drops the seam text unread, and the canvas states its sentences "remain the canvas's and are never echoed". The consequence was real, not theoretical — the settling window is reachable by pressing add inside a keystroke's hash flight, and the human got "the buffer identity is still settling" with no way out of it, while the stale sentence said "proposal", a noun this tab never uses. `outcome.code` now maps to four fixed tab-voiced sentences, each naming its own recovery, and the seam's own two refusals gained codes so they map accurately instead of falling through to the generic one. F4 — THE DUPLICATE GUARD FAILED EXACTLY WHEN IT WAS NEEDED. On a fragment ending inside an unclosed fence the insert appended INSIDE the fence, the model then saw no sections at all, "already carries" could never fire, and repeated presses piled up copies — each reporting success. `insertSection` refuses on an unclosed fence now, through the same `isFence` rule `outlineSections` toggles on (one fact that loop already knows and did not report, not a second scanner). REFUSAL, NOT REPAIR: closing the fence would rewrite a fragment nobody asked us to change, which task 3.3 forbids outright. F5 — `"Added-by: brett · 20"` passed on a literal "20". The date half is a `\d{4}-\d{2}-\d{2}` match, which also survived the UTC rollover mid-session that a hardcoded date would not have. H1 — the `onText` invocation is CONTAINED. Callers do not await `renderViewer`, so a throw inside a caller's derivation was a silent unhandled rejection, and it happened after the document had already rendered. The honest degraded outcome is a missing index and nothing said on the page: a message about a caller's bug would libel the document. Proven by removing the guard and watching the promise reject. H2 — the index header says "as stored". It describes the SAVED fragment while the canvas holds unsaved work, so after an add a gap row above ("no pre-document idea notes section") sits over a refusal below ("this outline already carries…") — two honest answers about two different texts, which without the label reads as one surface arguing with itself. The two-renderings split itself is deliberate and stays. EVERY NEW REGRESSION TEST WAS VALIDATED AGAINST THE PRE-FIX CODE rather than assumed, by running the previous commit's `insertSection` over each fixture. That is what caught the one place the first draft of these tests was worthless: F2's seven headings only misbehave on a FULLY templated fragment, so the original three-section fixture would have passed before and after and proven nothing. The fixture is now the whole ratified skeleton, with a test asserting it really is conforming — if it drifts, the seven cases stop testing anything. The unclosed fence, the settling window (driven through a holdable hash seam, including that its advice is TRUE: the same press lands once the identity settles) and the throwing `onText` were each verified the same way. 72 cases across the two files, up from 40. Gates, exit codes read directly: `pytest tests/ideation-dashboard -q` 3131 passed, 6 skipped, exit 0; `openspec validate --strict` exit 0 and `--all --strict` exit 0 (61/61); doc-health single-repo exit 0, and its report identical to the pre-change baseline once the UTC date rollover and the aging counters it moves are normalized — 0 new findings. `tests/doc-health` still carries the same 4 pre-existing `test_client_identity_composition.py` failures reproduced at a4a6f6e with this work stashed. Co-Authored-By: Claude Opus <[email protected]>
brettheap
added a commit
that referenced
this pull request
Aug 25, 2026
) (#304) * The whole-suite pytest run collects again: one basename made self-qualifying (#292) `python3 -m pytest tests/` could not collect at all. It died 6,228 tests in, and per-directory invocation was the only thing that worked: ==================================== ERRORS ==================================== ____ ERROR collecting tests/ideation-dashboard/test_header_value_readers.py ____ import file mismatch: imported module 'test_header_value_readers' has this __file__ attribute: /.../tests/doc-health/test_header_value_readers.py which is not the same as the test file we want to collect: /.../tests/ideation-dashboard/test_header_value_readers.py HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules =========================== short test summary info ============================ ERROR tests/ideation-dashboard/test_header_value_readers.py !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! 6228 tests collected, 1 error in 23.78s The module namespace these two files share is FLAT, and it has to stay flat. `tests/doc-health/` and `tests/ideation-dashboard/` are hyphenated, so neither can be a Python package; `pytest.ini` is the deliberately option-free rootdir anchor for the FR-043 hermeticity guard (PR #49 review finding 17) and may not grow an `--import-mode`; and a per-directory `conftest.py` is the one repair that is explicitly forbidden, because `conftest` is an ambient top-level module name and hijacking it broke `from conftest import FakeGit` for the doc-health modules once already. So a test file's basename IS its global module name here, and the fix is to make one of the two carry its suite. Renamed the doc-health copy. Both files were born in the same commit (42cc321), so neither has seniority, and nothing live references either path — the only mentions anywhere are two archived openspec tasks documents, left untouched as the historical records they are. The tiebreak is convention plus churn risk: `tests/ideation-dashboard/` already prefixes basenames with the subsystem under test (`test_doxbench_*`, `test_gate_*`), so its copy reads as conforming, while `tests/doc-health/` names files after the `doc_health` module they cover (`test_inventory.py`, `test_organizer_dispatch.py`) and this concern-named file was already the outlier there. `tests/ideation-dashboard/` is also the far larger and more actively worked suite, so renaming inside it courts more collision with in-flight branches. Swept the rest of the BASENAME class, since collection stops at the first duplicate and more can hide behind it. `find tests -name 'test_*.py' -printf '%f\n' | sort | uniq -d` now reports only `test_topology_lifecycle.py`, and that pair is a false positive of the heuristic: both copies sit inside real packages (`tests/hermes_runtime_contracts/__init__.py` and its `postgres/__init__.py`), so their module names already differ. Collection proves it — there is no second error behind the first. That sweep is bounded by its own glob, and the bound is worth stating plainly: it matches only `test_*.py`, so it structurally CANNOT see the other flat-namespace contention in this repository. `tests/doc-health/`, `tests/avatar_runtime/`, and `tests/ideation-dashboard/` each carry a conftest.py with no `__init__.py`, and `conftest` is a single top-level module slot. The whole-suite run below is unaffected, but multi-directory invocations are ORDER-DEPENDENT: measured, `pytest tests/doc-health tests/avatar_runtime` fails with 23 collection errors, while `pytest tests/avatar_runtime tests/doc-health` collects 841 clean. This commit does not repair that and does not claim to — the whole-suite green below says nothing about it. The real repair is `--import-mode=importlib`, which pytest.ini's ratified option-free design forecloses; changing that is a separate, specced decision. GREEN: `python3 -m pytest tests/ --collect-only -q` completes clean at 6,232 tests collected, 0 errors. Co-Authored-By: Claude Fable 5 <[email protected]> * Every pull request to main now runs the Python suite (#292) No trigger in this repository ran pytest at all. `wallet-validation.yml` runs two wallet scripts, `doc-health-reusable.yml` is workflow_call-only, and `session-open-pr.yml` is workflow_dispatch. Roughly 6,200 tests — the whole ideation-dashboard suite and every behavioral pin in it — were enforced by nothing but local discipline. `pytest-suite` is the gate, and it runs the whole suite rather than a collect-only guard plus a subset, because the whole suite measurably fits in a PR budget. MEASURED by simulating this job exactly: a fresh clone into a directory named `openxFactory` with NO aggregation workspace above it, a clean venv holding only the hash-pinned lock, node 22 on PATH, Python 3.12 — 5877 passed, 17 skipped, 338 deselected, 15 subtests passed, 0 failed 937s (15m37s), exit 0 5,877 + 17 + 338 = 6,232, exactly what `--collect-only` reports, so the run covers everything collection sees. The 17 skips are self-skipping guards ("no sibling openxFactory checkout") that stand down when no aggregation workspace surrounds the repo — true on a runner, and true in this simulation. That isolation mattered: locally those same doc-health readiness tests resolve the AGGREGATION submodule instead and run, so a developer's worktree and CI legitimately differ by two skips. Dependencies come from `requirements/hermes-runtime-contracts.lock` installed with `--require-hashes`, not an ad-hoc pip list. That lock is the ratified validator-input source — `specs/005-customer-subject-runtime/quickstart.md` provisions the bench from it and `release.py` carries the `.in`/`.lock` pair as AUXILIARY_MEMBERS — so the gate runs against the same hash-pinned inputs the contract work was ratified against rather than whatever the index serves that day. The `.in` pins all five directly (pyyaml, jsonschema, referencing, rfc3339-validator, pytest) and records why `rfc3339-validator` is not optional: jsonschema registers its date-time format checker only when that package is importable, and the canonical validators fail closed without it. Nothing beyond the lock is needed — the suite is structurally hermetic (tests/hermeticity.py makes the real `nlm` and `gh` unreachable, FR-043) and every test needing git builds its own repository with its own identity under tmp_path. Four choices are measurements, not defaults, and the header records why: `-m "not postgres"` — the marked set drives real Docker against digest-pinned images and has no docker-detection auto-skip by design: without the images those tests FAIL at the session fixture. They belong to their own release-gate runner, scripts/run-hermes-runtime-postgres-tests.sh. The repository documents the paired deselection scoped to the contracts subtree (`pytest tests/hermes_runtime_contracts -m 'not postgres'`); this gate applies the same deselection at whole-suite scope for the same reason. Those are the 338 deselected. The harness's own unmarked test_runner_contract.py still runs here, and passes. `path: openxFactory` — `find_validator` walks up looking for `openxFactory/scripts/validate-ideation-dashboard-contracts.py`, and test_snapshot.py::test_find_validator_locates_pinned_checkout asserts it resolves. Proven both ways: a flat checkout fails that assert with `assert None is not None`; the same tree inside a directory named `openxFactory` passes 17/17. The default runner workspace would satisfy this only by the coincidence of the repository's name, which a rename or a fork would quietly break. `actions/setup-node@v4` — 41 test files gate DOM and JS probes on `shutil.which("node")` and SKIP when it is absent rather than failing. The measured run had node 22, so those probes are inside the numbers above. Leaving node to the runner image means a future image could silently drop dozens of files' worth of assertions and still report this gate green, which is the exact failure this issue exists to end. No paths filter — an earlier draft filtered to tests/**, scripts/**, and pytest.ini. That was wrong twice. A large group of tests scans real repository content rather than fixtures (the trust-anchor validator gate, release inventory, workbench guard, derive-possibles, and the ideation readiness and dispatch suites read contracts/, ideation/, docs/, openspec/), so a content-only change is exactly the kind that can turn this red while matching no filtered path. And a filter on a check later marked REQUIRED deadlocks every PR it skips — the check never reports and GitHub waits forever. Running unconditionally removes both hazards; `push: main` catches content-only merges for the same first reason; and concurrency cancels superseded runs per ref so a rapid push sequence does not queue duplicate quarter-hour suites. SCOPE. This pins the `pytest tests/` whole-suite shape only. `conftest` is a single flat module slot and three test directories carry one without an `__init__.py`, so multi-directory invocations are order-dependent — measured, `pytest tests/doc-health tests/avatar_runtime` fails with 23 collection errors while the reverse order collects 841 clean. A green `pytest-suite` says nothing about that. The real repair is `--import-mode=importlib`, foreclosed by pytest.ini's ratified option-free design; changing it is a separate decision. Timeout is 35 minutes against the worst measurement of 15m37s (an earlier, contended run took 17m21s) — roughly 2x headroom for a slower runner and a hard stop for the known hang in test_doxbench_bridge.py, which drives a real child process over real pipes and can stall under CPU contention. README documents the gate and the single ruleset click-path to mark it required, alongside the existing wallet-validation entry. Co-Authored-By: Claude Fable 5 <[email protected]> * Two fixtures that were borrowing the developer's environment (#292) The first real CI run of `pytest-suite` (PR #304, run 32778659788) failed 23 tests in two classes. Neither is a defect in the workflow — both are places where the suite quietly depended on something a developer machine has and a fresh runner does not. Both repairs belong in the tests. TWENTY-ONE — `git commit failed (rolled back): Author identity unknown`, all in tests/ideation-dashboard/test_intent_apply_lane.py. The fixtures build a corpus with `git init` and then commit into it, and they were careful to pass `-c user.name/-c user.email` on their own git calls. But the code UNDER test commits too: the apply lane runs its own `git commit`, with no `-c` flags, so it fell back to an ambient identity. On a developer's machine `~/.gitconfig` supplies one and the tests pass; on a runner there is none and the lane rolls back, exactly as it is designed to when a commit fails. The fix is repo-LOCAL identity set right after `git init`, in both repositories the file builds — the corpus in `_corpus` and the second clone in the push-race test. That makes the fixture hermetic with respect to the host's global git config rather than merely well-behaved on one host. Deliberately NOT fixed by exporting GIT_AUTHOR_*/GIT_COMMITTER_* in the workflow. That would have turned CI green while leaving the suite dependent on ambient configuration, which is the same class of hidden coupling that let this reach CI in the first place. RED locally, reproducing the runner by denying the ambient config: GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_NOSYSTEM=1 \ python3 -m pytest tests/ideation-dashboard/test_intent_apply_lane.py -q 21 failed, 19 passed GREEN after the fix, same command: 40 passed. Swept the rest of the suite for the same latent dependence. Sixteen files build git repositories; eleven already set repo-local identity, and the five that did not — test_release_inventory, test_nightly_lane, test_proposal_origin, test_session_git, test_session_harness — were each run under the same stripped environment and are clean (38, 21, 29, 66 and 20 passed). This file was the only one where the RUNTIME, rather than the fixture, was the committer. TWO — `FileNotFoundError: 'openspec'` in tests/proposal-support/test_proposal_support.py. That suite drives the real `openspec` binary; it is a genuine external dependency, not a mock. Its tests already carried `@unittest.skipUnless(shutil.which("openspec"), "openspec CLI required")` — but two of them, added later, did not, so they raised instead of skipping. Both now carry the same guard as their siblings. The guard is only half the repair. A guard alone would leave the gate green while silently testing nothing, so the workflow now installs the CLI as well (`npm install -g @fission-ai/[email protected]`, pinned to the version this repository is developed against) and those tests actually run in CI. Measured both ways: RED with a PATH that excludes the CLI (2 failed, 33 passed); with the guards and no CLI, 33 passed / 3 skipped; with the CLI present, 36 passed / 0 skipped — the guards skip, they do not mask. The workflow header is corrected accordingly. It claimed "every test that needs git builds its own repository with its own identity," which these 21 tests disproved; it now records what is actually true, why the fix is in the fixture rather than in the job environment, and why openspec is a CI dependency. Co-Authored-By: Claude Fable 5 <[email protected]> * Record the post-fix simulation numbers in the gate header (#292) The re-simulation after the two fixture repairs, run the way the runner runs — fresh clone into a directory named openxFactory, hash-pinned lock only, node 22 and the pinned openspec CLI on PATH, and GIT_CONFIG_GLOBAL=/dev/null GIT_CONFIG_NOSYSTEM=1 so there is no ambient git identity to borrow: 5877 passed, 17 skipped, 338 deselected, 15 subtests passed, 0 failed 925s (15m25s), exit 0 Identical to the count before the repairs, which is what makes them repairs rather than suppressions: nothing was skipped away or lost, the suite simply no longer depends on the developer's environment to reach it. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
brettheap
pushed a commit
that referenced
this pull request
Aug 27, 2026
…fix and relocation dates Adversarial review of PR #403 found four blockers in the prior pass: - tests/hermetic_unittest.py stated in the present tense that codexFactory's scripts/validate-docs.sh "falls back to python3 -m unittest discover" — false since codexFactory commit 5a22cb7 (PR #49 finding 17's fix, 2026-07-27), which switched that fallback to codexFactory's own copy of this guarded runner. Reworded to past tense, anchored on the fix. - Two other files anchored the bare-unittest-fallback measurement on the doc-health relocation (2026-08-03) instead of the fix (2026-07-27), a week earlier — the wrong event entirely. Re-anchored on the fix; kept the relocation date only where it explains why the script stopped running these tests at all. - Several citations read as if codexFactory's script reaches into openxFactory's tree ("ran this tree's tests"), which is backwards and also wrong for tests/ideation-dashboard/, never covered by that script at all. Reworded to "ran these tests when they lived in codexFactory, before the doc-health relocation" everywhere, with the full adopt-neutral-tooling-home (ratified 2026-08-03; archived 2026-08-05) citation on first use per file. - The hermetic_unittest.py usage example cited tests/review-lane/, which does not exist in openxFactory. Replaced with tests/notebooklm/ and tests/proposal-support/, both verified to discover and pass under this runner. Also folded in the reviewer's cheap nits: merged a double parenthetical into one clause, split a triple-em-dash sentence, gave a dangling clause an explicit subject, quoted the pytest-suite.yml command identically everywhere it's cited, stopped calling tests/hermetic_unittest.py itself a "fallback", and stopped implying codexFactory's own guarded unittest route ended at the relocation (it didn't — only its reach into this tree did). python3 -m pytest tests/ideation-dashboard/test_hermeticity.py -q: 24 passed python3 -m pytest tests/notebooklm -q: 149 passed, 24 subtests passed python3 tests/hermetic_unittest.py tests/notebooklm/ tests/proposal-support/: OK (149 + 36 tests) Co-Authored-By: Claude Sonnet 5 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Aug 27, 2026
…odexFactory and no longer runs this tree (#403) * Prose: correct validate-docs.sh citations that outlived the doc-health relocation pytest.ini, tests/conftest.py, tests/hermeticity.py, tests/hermetic_unittest.py, tests/ideation-dashboard/test_hermeticity.py, tests/notebooklm/test_hermeticity_guard.py, and tests/notebooklm/test_workbench_sweep_wiring.py cited codexFactory's scripts/validate-docs.sh as a current consumer of this repo's pytest/unittest routes. Since adopt-neutral-tooling-home (archived 2026-08-05) relocated the doc-health tooling to openxFactory, that script only runs codexFactory's own test tree; it stopped running openxFactory's tests/. The historical PR #49 review finding 17 measurements it cites are unchanged and still real — they were made in codexFactory's script before the relocation. Reworded each citation to either name the current consumer (.github/workflows/pytest-suite.yml's required `python3 -m pytest tests/ -q -m "not postgres"`) or mark the measurement historical. Also worded the "third route" (unittest discover fallback) prose honestly: no gate in this repository currently invokes tests/hermetic_unittest.py — it is retained as the guarded runner for any pytest-less host that runs this tree directly. No code changed, only comments and docstrings. Closes #306 Co-Authored-By: Claude Sonnet 5 <[email protected]> * Fix review blockers: anchor the validate-docs.sh prose on the actual fix and relocation dates Adversarial review of PR #403 found four blockers in the prior pass: - tests/hermetic_unittest.py stated in the present tense that codexFactory's scripts/validate-docs.sh "falls back to python3 -m unittest discover" — false since codexFactory commit 5a22cb7 (PR #49 finding 17's fix, 2026-07-27), which switched that fallback to codexFactory's own copy of this guarded runner. Reworded to past tense, anchored on the fix. - Two other files anchored the bare-unittest-fallback measurement on the doc-health relocation (2026-08-03) instead of the fix (2026-07-27), a week earlier — the wrong event entirely. Re-anchored on the fix; kept the relocation date only where it explains why the script stopped running these tests at all. - Several citations read as if codexFactory's script reaches into openxFactory's tree ("ran this tree's tests"), which is backwards and also wrong for tests/ideation-dashboard/, never covered by that script at all. Reworded to "ran these tests when they lived in codexFactory, before the doc-health relocation" everywhere, with the full adopt-neutral-tooling-home (ratified 2026-08-03; archived 2026-08-05) citation on first use per file. - The hermetic_unittest.py usage example cited tests/review-lane/, which does not exist in openxFactory. Replaced with tests/notebooklm/ and tests/proposal-support/, both verified to discover and pass under this runner. Also folded in the reviewer's cheap nits: merged a double parenthetical into one clause, split a triple-em-dash sentence, gave a dangling clause an explicit subject, quoted the pytest-suite.yml command identically everywhere it's cited, stopped calling tests/hermetic_unittest.py itself a "fallback", and stopped implying codexFactory's own guarded unittest route ended at the relocation (it didn't — only its reach into this tree did). python3 -m pytest tests/ideation-dashboard/test_hermeticity.py -q: 24 passed python3 -m pytest tests/notebooklm -q: 149 passed, 24 subtests passed python3 tests/hermetic_unittest.py tests/notebooklm/ tests/proposal-support/: OK (149 + 36 tests) Co-Authored-By: Claude Sonnet 5 <[email protected]> * Fix precision nits: correct inverted provenance and remaining prose issues Re-verification of PR #403's fixes found no blockers, but six precision nits: - N1 (the important one): "codexFactory's own copy of this guarded runner" had the provenance backwards at 5 sites. codexFactory created the ORIGINAL on 2026-07-27 (commit 5a22cb7); this repo's tests/hermetic_unittest.py is the COPY, adopted 2026-08-03 from codexFactory main@e4caa03b. Reworded all 5 sites to "its own guarded runner (the original this file was later copied from)" or equivalent, and made sure no site ties this file's existence to the 2026-07-27 fix date. - N2: "these tests" was globally scoped in the two module docstrings (tests/hermetic_unittest.py, tests/hermeticity.py) where codexFactory's script only ever ran the doc-health and notebooklm suites among what's here now. Named them instead of overclaiming. - N3: "(measured; adopt-neutral-tooling-home, 2026-08-03)" in tests/hermeticity.py made the relocation date read as the measurement. Moved "measured" back onto the conftest-hijack breakage clause. - N4: verified the two bare "2026-08-03" sites (tests/hermeticity.py, test_hermeticity.py) both come after the full "ratified ...; archived ..." form earlier in the same file — already consistent, no change needed. - N5: dropped a comma in test_hermeticity.py so "pytest was unavailable" reads as a condition, not a second clause. - N6: restructured test_hermeticity.py's conftest-hijack sentence to avoid ending on a nested "))" . python3 -m pytest tests/ideation-dashboard/test_hermeticity.py -q: 24 passed python3 -m pytest tests/notebooklm -q: 149 passed, 24 subtests passed Co-Authored-By: Claude Sonnet 5 <[email protected]> --------- Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Sonnet 5 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Aug 27, 2026
…n subtree (#305) (#406) * Each directory conftest claims the ambient `conftest` slot for its own subtree `conftest` is an ambient top-level module name with exactly one `sys.modules` entry, and `_importconftest` deletes that entry before importing each rootless conftest.py (`_pytest/config/__init__.py:753`). `_set_initial_conftests` loads EVERY path argument's conftest before collection begins (`:615`), so with two directory arguments the last one loaded owned the slot and the first argument's ~133 `from conftest import AS_OF, FakeGit, ...` sites read the wrong module: `pytest tests/doc-health tests/avatar_runtime --collect-only` gave 184 collected with 27 collection errors, the same two arguments swapped gave 993 clean. `claim_conftest_slot(globals())` (tests/hermeticity.py, beside CONFTEST_HOOKUPS because every directory conftest already imports that module) installs two hooks into the calling conftest's namespace, both dispatched through the node's path-scoped `ihook` (`_pytest/main.py:731`) so a directory's copy can never fire for a sibling: `pytest_collectstart`, immediately before a Module imports (`_pytest/runner.py:588`), and `pytest_runtest_setup`, before each test body (`:241`) — the leg the seven run-time `from conftest import ...` sites need, and which nothing in the suite covered before. All three rootless directory conftests call it. `tests/conftest.py` must NOT: pluggy's LIFO hook order would make its claim the last to run and clobber every directory's. pytest.ini stays option-free (PR #49 finding 17, FR-043); no import site was rewritten and no conftest.py added. After: every order collects 993 / 5475 / 5572 clean, `pytest tests/` 6976. Pinned by four new tests in tests/ideation-dashboard/test_hermeticity.py, written RED first, including a negative control that reproduces the collision in a scratch tree without the claim. Both hook-deletion mutants die. Closes #305 Co-Authored-By: Claude Opus 5 <[email protected]> * Review round: key the claim's refusal on __init__.py, refuse hook collisions, pin the real invocation Adversarial review of #406. Five findings, all closed. The three prose edits deferred until #403 landed are applied on top of its wording, leaving its validate-docs.sh sentences byte-identical: the hazard is now stated as what an UNCLAIMING conftest does. NIT-1 (the one that could break a run). The precondition keyed on `namespace["__name__"] != "conftest"`, but under `--import-mode=importlib` or `consider_namespace_packages=true` — both reachable through PYTEST_ADDOPTS — pytest names a ROOTLESS conftest `a.conftest` (measured). The guard would have raised inside conftest collection, aborting the whole run at rc=4 with the FR-043 guard never registered, over a configuration that merely renames modules; main only collected with errors. It now keys on the conftest directory's missing `__init__.py`, which is the actual condition for contending for the flat slot. A real package still raises. Pinned both ways. NIT-2. The two hooks were written into `globals()` by plain assignment, so a conftest defining its own `pytest_collectstart` silently defeated the claim in either order. The helper now returns the hook pair and refuses if either name is already bound, with a message saying to call the returned function from inside your own implementation; the define-it-afterwards direction, which no runtime check can see, is pinned by source against HOOKS_INSTALLED_BY_THE_CLAIM. The reviewer's real worry: the claim on the shipped conftests was pinned only by a text grep. `test_the_real_two_directory_invocation_collects_the_same_in_either_order` now runs the real `pytest --co` over two directory PAIRS, both orders, and requires the orders to agree — 11.06s, four child collections. Dropping the claim from doc-health's or ideation-dashboard's conftest reds it (measured); avatar_runtime's is not observable, since nothing there imports through `conftest`, and the docstring says so rather than implying coverage it lacks. NIT-3. "the seven directories that have none" was wrong: measured 2026-08-27, 18 test-bearing directories, 13 with no conftest of their own, 10 of those rootless. The measurement command is in pytest.ini beside the number, and the pre-existing "Seven of the nine" on line 11 is corrected the same way. The 184/27/993 counts are now labelled as measured at f9457d6 and explained as pinning the DIFFERENCE between two orders, which the behavioural test re-measures on the live tree. Verification after merging origin/main (ef79163, #403): tests/ideation-dashboard/test_hermeticity.py 31 passed; the fixed shape `pytest tests/doc-health tests/avatar_runtime` 1017 passed (it aborted with 27 collection errors at base). Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Sep 28, 2026
docs/opendox-carve-admissions.yaml gains 37 created: entries, the governed form's "one-line diff in the pull request that bumps the destination's pin": - openxdox_code, 24: openXdox-code#29 (T040; 15 files, the base-repo fixture listed file by file, because the verifier matches exact paths), #30 (T041; 4), #31 (T042; 4) and #33 (T044; 1). - opendox_code, 13: the 11 files openDox-code #33 and #37-#49 added after d816cf06, and #31's two (93ccc3dd), which the arrival run at d816cf06 already needed as --allow-created. Each since is the file's introducing commit, the leg's own squash landing, checked with git log --diff-filter=A; each path is present at the new pin. The lists are DERIVED, not run green: at both new pins verify-carve-arrival.py --phase B refuses arrival-undeclared-edit first, because phase 1's arc edits to carved files carry no declared-edit act (batch A's addendum to 11.1). tests/carve_arrival's committed-admissions test records the fourteenth amendment and pins all 37 by path and since, counted in the committed file. A moved since and a planted extra entry each fail it. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap
added a commit
that referenced
this pull request
Sep 29, 2026
…57e2b8f2, with T045 and T046's host wiring (plan 034) (#1181) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Arc: neutral-product-standalone-operability **T047, and it stays DRAFT.** This PR is plan 034's task **T047**: phase 1's consumer pins, carrying the host wiring of **T045** and **T046** (slice P1-K) as T047's task text requires (*"openxFactory then moves both pin pairs in ONE PR, which also carries T045 and T046"*). Per `#656` comment `5856475254` finding 3, it lands after T007 batch E (#1183). Batch E has now landed as `b9742534`, and it is merged into this branch at `96ca2b06`. - **Plan**: `specs/034-opendox-standalone-operation/tasks.md` at `main`. The T045–T047, T090 and T092 lines are unchanged since `468863d1` (checked at `main` `e369cb25`). - **Claim**: T047, `#656` comment `5873306432` (P1-K's was `5852803348`). - **Ruled**: R1Q1 (a), R1Q2 (a), R1Q4 (a), R1Q9 (a) (`5817152735`); P1-K's three questions, all (a) (`5856475254`). - **Rule 6**: the net diff against `main` touches no `openspec/` path. The `openspec/` changes on the branch are all main's, merged in: batch B (#1194) at `f79a72f3`, and batch E (#1183) at `96ca2b06`. Both touch `openspec/changes/add-neutral-product-standalone-operability/tasks.md`. - **Landing order, done**: - Batch E has landed (`b9742534`). - opensoft/openXdox#20 has landed, squashed to `57e2b8f2`. - `1a32fe8d` re-points this PR's `openXdox` gitlink and `contracts/openxdox-pin.yaml` to that LANDED sha (runbook § 3 step 1: *"NEW_SHA must be on opensoft/openXdox main"*). - The PR stays DRAFT until the coordinator marks it READY. ## The pins: both pairs in ONE commit (`b4e701cb`) | pair | gitlink | pin file `commit:` | `digests.tree_sha256` | | --- | --- | --- | --- | | openDox | `dc7aa08f` → **`663ac683`** | same | `adc049c9…7cee` → **`ec826603…9d5d`** (28 records) | | openXdox | `069fe471` → `6495ba98` (`b4e701cb`) → **`57e2b8f2`** (`1a32fe8d`) | same | `3ad15b72…3b48` → `ff568ab3…8e31` → **`e52c1383a0fcc71a4abd7fa75821f6f2473c52ac1211e448acf0a2ba0c1a6390`** (29 records) | - `663ac683` is openDox root `main`, two commits ahead of `dc7aa08f`: - opensoft/openDox#12 (`36ded1cd`) changes only `contracts/CHANGELOG.md`; - opensoft/openDox#13 (`663ac683`, T039) moves `code` `d816cf06` → `2d116415` with `contracts/code-pin.yaml`. Nothing else changes. `dox-v1.0` still tags `dc7aa08f`, which is an ancestor of `663ac683`. - **`57e2b8f2` is opensoft/openXdox `main`, where #20 squash-landed.** - #20 moves `code` `e28930bf` → `6158151e`. That is openXdox-code `main` after #29–#33, which are T040–T044; T044 landed as #33 → `6158151e`. - #20 also moves `contracts/opendox-pin.yaml` `dc7aa08f` → `663ac683` (T090 step 5). - `b4e701cb` pinned #20's head at the time, `6495ba98`. - `1a32fe8d` re-points to the landing. Its tree is #20's final head, `4b7555f3`, whose two review commits change only `contracts/CHANGELOG.md` and `contracts/manifest.yaml` prose. So only the digest moves, and the derived `contracts/opendox-pin.yaml` is the same blob. - Every digest was recomputed three ways, with controls on the old values: `repo_shape.tree_digest`, an independent `ls-tree` + `sha256`, and the forge's tree listing. `57e2b8f2`'s digest was recomputed the same way. - **Why one commit and not "one commit each" (T090 step 6).** The runbook's § 4 comparison prints `DIFFERENT`: `openXdox@6495ba98 derives openDox 663ac683c04c…; this repository pins dc7aa08fe48c…`. So § 3 step 8 moves the openDox pair *"in the SAME commit"*. Each pair still moves as one unit (box 9.5). Split, the first commit would fail `verify-opendox-pin.py` check 5. **The holder confirmed the single commit** (answer 1 below). This PR therefore deliberately departs from T090 step 6's "one commit each". - The re-point, `1a32fe8d`, moves the openXdox pair alone. At `57e2b8f2`, § 4 prints `openXdox@57e2b8f2 derives openDox 663ac683…; this repository pins 663ac683…`, so the openDox pair does not move. - Both pin files are edited in place, keeping 216 and 154 lines. The openDox `migration:` triple keeps `range` and `reversible` (`2d116415`'s `migrations/` holds the same two files). Its `runbook` names the new code leg. The block is identical to openXdox's derived copy, which `tests/opendox_pin` asserts. - **Gates**: - At `96ca2b06`, `verify-openxdox-pin.py` prints `OK openxdox-pin verified: openXdox@57e2b8f2…, gitlink read from HEAD`, with digest `e52c1383…`. - `verify-opendox-pin.py` prints `OK … openDox@663ac683…, lockstep with openXdox confirmed`. - On the staged index before `1a32fe8d`, both printed `OK`, the openXdox one reading `gitlink read from the index`. - In the openXdox root, `make pins` and `make validate` exit 0 at `4b7555f3`, whose tree `57e2b8f2` carries. ## What else it carries | commit | what | F11.1 surface | | --- | --- | --- | | `b31829d3`…`c4dcaba8` | P1-K's host wiring (T045, T046): below, under "History" | HOST, HOST_TESTS, batch A's two COMPOSITION_TESTS | | `4303e67c` | `scripts/route_extension.py` resynced `34802071` → `7781665d` (62817 B, sha256 `d81124e6…87515`). `scripts/sync-notebooklm-books.py`'s `session_source_set()` calls `opendox_host.register_openxfactory()` first. A test holds that order. | named arc edits, `5856475254` items 1–2 (batch E) | | `7cd76cdb` | T034's 4 moved cases and 9 of T035's 13, in six files under `tests/domain_profile/` | HOST_TESTS | | `e54d8253` | 37 `created:` admissions in `docs/opendox-carve-admissions.yaml`, pinned in `tests/carve_arrival` | **none**: batch E admits it (answer 2) | | `a5898490` | the two batch-E composition tests, each moved to the seam phase 1 put in place | batch E's COMPOSITION_TESTS | | `b05175f7` | two tests that record the pins' own values: the openXdox pin suite's snapshot literal, and the seal's by-name leg modules (with the lane's `RENDER_LEG_MODULES`) | **none**: batch E admits it (answer 2) | | `f79a72f3` | merge of `main` `e369cb25` (batch B, #1194) | none (main's own change) | | `42a998dc` | `scripts/opendox_host.py` names the home seam as the one seam that overwrites, and says why that overwrite never reaches another host's home (Copilot, at `f79a72f3`). Two subprocess tests pin both cases. No behaviour change. | HOST, HOST_TESTS | | `16134cc9` | `register_seams()` checks every declared seam's take-back calls before anything is written, so a later refusal's take-back never meets a missing call (Copilot, at `42a998dc`). One parametrized test with four cases. No change at the pinned leg. | HOST, HOST_TESTS | | `1a32fe8d` | the re-point: the `openXdox` gitlink and `contracts/openxdox-pin.yaml` move `6495ba98` → `57e2b8f2`, #20's landing, with the new `tree_sha256`. The file keeps 154 lines. | PIN_PAIRS | | `96ca2b06` | merge of `main` `b9742534`: #1195 (the hermeticity probe; `EXPECT_SKIPPED` 6 → 5) and batch E (#1183) | none (main's own change) | | `091a32f9` | a clean-interpreter test of the standalone NotebookLM sync (Copilot, at `96ca2b06`). Loading the script imports neither `opendox` nor the host. The first `session_source_set()` installs the pinned reach, registers, and reads; the second reads the same documents through the same profile. It catches both planted breaks. The measurement is in comment `5880677597`. | HOST_TESTS | | `6de2b407` | `test_workbench_manifest_validation.py`'s import-time resolution answers None for `CarveReachUnavailable` (a leg not on disk), so its three cases skip rather than failing collection (Copilot, at `091a32f9`). Two tests pin it. | HOST_TESTS | **The `route_extension` row has no note to extend.** Batch E admits the resync *"provided the row's `note` is EXTENDED, never rewritten"*. The row (`docs/opendox-carve-manifest.yaml:2993`) is `not_moved / replicated_at_destination` with no `edits[]` entry at all, so it has no `note`. F11.1's content check refuses any other field change, so the manifest is untouched. Its `evidence` records the `carve_commit` blob, which is still true. Batch E records the unchanged row (answer 2). ## The falsifiers, at the COMMITTED pins T047's falsifiers are `make pins` in the openXdox root, `verify-opendox-pin.py` and `verify-openxdox-pin.py` (all above), and `pytest-suite`. Every run below is the `pytest-suite` step exactly: `pytest tests/ -q -m "not postgres"`, Python 3.12.3, the hash-pinned lock, node 24, `PINNED_CORE_CHECKOUT` at codexFactory `b21f0100`. It runs in a checkout named `openxFactory`, whose gitlinks are the committed pins, recursively initialized: openDox/code `2d116415`, openDox/spec `8fe8c4c7`, openXdox/code `6158151e`, openXdox/spec `f088b097`. This is the first run that can adjudicate `tests/snapshot_equivalence/`, and it passes 115 of 115. | run | tree | result | | --- | --- | --- | | T1a | the pins commit alone, `b4e701cb` (with P1-K's wiring) | **interrupted: 1 error during collection** | | T1 | the same, with `--continue-on-collection-errors` | **266 failed, 1 error**, 8547 passed, 6 skipped | | T3 | `b05175f7` | **8886 passed, 6 skipped, 0 failed, 0 errors**, 412 subtests (JUnit counts 9304 = 8886 + 6 + 412) | | T4 | `f79a72f3` (adds main `e369cb25`) | **8886 passed, 6 skipped, 0 failed, 0 errors**, 412 subtests | | CI | `f79a72f3` | `pytest-suite`: `8886 passed, 6 skipped`, read as `selected=9304 passed=9298 skipped=6 failures=0 errors=0`; floors met with margin 2254, `skipped==6`. All 12 checks pass. | | CI | `42a998dc` | `openxdox-consumer-gate` passes (105/105/0 and 1480/1480/0), and so do the other checks. | | CI | `16134cc9` | **All 12 checks pass.** `pytest-suite`: `8892 passed, 6 skipped` (the six added cases), read as `selected=9310 passed=9304 skipped=6 failures=0 errors=0`, with margin 2260 and `skipped==6`. `openxdox-consumer-gate`: 105/105/0 and 1480/1480/0. Copilot's review here has no findings. | | T5 | `96ca2b06` (head: the landed pin, with main `b9742534`) | **8896 passed, 5 skipped, 0 failed, 0 errors**, 412 subtests. The consumer gate chain: both verifiers `OK`, 105/105/0, 1480/1480/0. | | CI | `96ca2b06` | **All 12 checks pass.** `pytest-suite`: `8896 passed, 5 skipped`, read as `selected=9313 passed=9308 skipped=5 failures=0 errors=0`, with margin 2263 and `skipped==5`. `openxdox-consumer-gate` passes. | | CI | `6de2b407` (head) | **All 12 checks pass.** `pytest-suite`: `8899 passed, 5 skipped`, read as `selected=9316 passed=9311 skipped=5 failures=0 errors=0`, with margin 2266 and `skipped==5`. Copilot's review here: "Needs a closer look", with no findings and no open thread. | - **The skips are main's own, node for node.** - Through `16134cc9` there were 6. T4's skipped set equals the one from a run of `main` `468863d1` at the old pins. - At `96ca2b06` there are 5, `main`'s `EXPECT_SKIPPED: "5"` since #1195. The one case that left the set is #1195's own: `test_hermeticity_guard`'s in-process-runner case now asserts. No case entered it. - **`openxdox-consumer-gate`** (CI at `f79a72f3`, and locally at `b05175f7`): both verifiers print `OK`. The pin suites give 105 / 105 / 0 (margin 0). `tests/ideation-dashboard` gives 1480 / 1480 / 0 against floors of 1137 and exactly 0 (margin 343). - **The other PR gates** exit 0 at `b05175f7`: `validate-carve-manifest`, `validate-sequenced-after`, `validate-clearing-dispatch`, `validate-release-tag-gate`, `validate-signed-execution-chain --require-pinned-wallet-vocabulary`, `verify-openxwallet-pin` and `validate-former-id-arrival`. At `42a998dc` and at `16134cc9`, `validate-carve-manifest` (`456 file(s) in the declared surface with none undeclared`) and `validate-former-id-arrival --base main --head HEAD` pass again. At `16134cc9`, `tests/domain_profile` gives 74 passed, and the suites that import the host give 643 passed: the cli and serve column splits, route_extension, the source seal, the display facet and snapshot_equivalence. ## The red list, for batch E (#1183) Every red at the committed pins (T1), and what answers it. T1's 267 entries are 260 in A1, and 1 error and 6 failures in A2. One more red was hidden behind the collection error. The exact node ids are in the lane's `PROGRESS-T047.md`. At the head, the list is empty (T3, T4, and CI at `f79a72f3`). **A1. 260 reds, one cause.** Every one raises `AttributeError: module 'route_extension' has no attribute 'collect_handler_contributions'`. openxFactory's stale replica is found ahead of the leg's copy. `4303e67c` cures all 260, and no test is edited. The 260 are spread over these files: | reds | file | | ---: | --- | | 148 | `tests/ideation-dashboard/test_doxbench_routes.py` | | 52 | `tests/ideation-dashboard/test_gate_routes.py` | | 20 | `tests/ideation-dashboard/test_serve_column_split.py` | | 15 | `tests/ideation-dashboard/test_route_extension.py` | | 8 | `tests/ideation-dashboard/test_intent_feed.py` | | 5 | `tests/ideation-dashboard/test_snapshot_abstract_noninterference.py` | | 4 | `tests/ideation-dashboard/test_staging_seed.py` | | 3 | `tests/ideation-dashboard/test_shared_identity.py` | | 2 | `tests/ideation-dashboard/test_intent_plane_boundary.py` | | 2 | `tests/domain_profile/test_openxfactory_host_wiring.py` | | 1 | `tests/test_engineering_profile_display_facet.py` | **A2. The other seven: one collection error and six failures.** 1. **`tests/ideation-dashboard/test_doxbench_status_exemption.py`: a COLLECTION ERROR**, which in CI interrupts the whole suite. - Its `from test_doxbench_packet import …` executes openXdox-code `6158151e`'s `from conftest import assert_not_at_this_leg, carved_module_path`. In this process `conftest` is this directory's, which has neither name. - `a5898490` lends both names as refusals for that one import and takes them back. - **Batch E names this file, but does not yet record this edit.** 2. `tests/domain_profile/test_openxfactory_host_wiring.py::test_the_lanes_column_arrives_where_the_pinned_leg_binds_it` names the stale replica, as designed. `4303e67c` cures it. 3. `tests/ideation-dashboard/test_extension_point_parity.py::test_the_mixins_precede_simplehttprequesthandler_in_the_mro`: the same as item 2. 4. `tests/ideation-dashboard/test_authoring_classify_derivation.py::test_the_gate_reaches_the_corpus_only_through_the_two_public_names`: *"authoring.py binds [] out of the adapter package"* (T020/T021). The assertion becomes `bound == []`, and the two public names are asserted as `DocumentId` and `home` (`a5898490`). 5. `tests/openxdox_pin/test_openxdox_pin_verifier.py::test_ruling_q7_two_direct_upstreams_in_lockstep`. Its snapshot literal moves `dc7aa08f` → `663ac683`, and its comment says it *"is expected to move on every future bump"* (`b05175f7`). **Not an F11.1 surface.** 6. and 7. `tests/ideation-dashboard/test_dashboard_source_seal.py::test_the_render_leg_modules_are_what_the_render_unit_imports_by_name` and `::test_the_serve_leg_modules_are_what_the_serve_entry_imports_by_name`. - #1166's seal (on `main`) holds the render unit's by-name leg imports to an `ast` read of the entry and its host bootstrap. T046's `opendox_host.seams()` imports four more modules: `corpus_adapter`, `doxbench_packet`, `serve_wire` and `workbench`. - `b05175f7` adds the four to `RENDER_UNIT_IMPORTS` and to the lane's `RENDER_LEG_MODULES` (`scripts/ideation_dashboard/dashboard_refresh_lane.py`). The seal carries a leg's whole `src/`, so no sealed artifact changes. - This red is #1166 merging with the host wiring, and it appears at any pin. **Neither file is an F11.1 surface.** **Hidden behind item 1.** `tests/ideation-dashboard/test_doxbench_status_exemption.py::test_the_dependence_on_the_carved_rail_sits_at_exactly_one_line` could not run in T1, and it is red once the file collects. - It asserts exactly one import of `ideation_dashboard.doxbench_status_exemption` in the leg's `doxbench_packet.py`. - openDox-code `d816cf06` has that import once, at line 177. `2d116415` has none, because T027 removed it. - `a5898490` moves the pinned count from one to none, and asserts `_status_exemption()` as the one reader of the registered rail. **C. Where the proposed destinations would have been red.** - **The carve surface refuses a new file.** `tests/ideation-dashboard/` is inside the manifest's `moved_paths:`. So `validate-carve-manifest.py` refuses `carve-file-undeclared` for each of the six moved-case files at their proposed paths (measured). F11.1 forbids the row that would declare them. - So they land under `tests/domain_profile/`, with the proposed basenames. That directory is outside the surface and is F11.1's HOST_TESTS prefix. - Batch E's two T034 COMPOSITION_TESTS entries, `tests/ideation-dashboard/test_outline_template_agreement.py` and `…/test_memory_gateway_roster.py`, name files that cannot exist there. Batch E records the relocation (answer 2). - **Held: T035's three hermeticity route cases.** In openxFactory, two FAIL: `test_a_pytest_run_started_inside_a_conftestless_directory_is_guarded` (`1 passed, 1 skipped`, where `2 passed` is expected) and `test_the_bare_unittest_route_is_detected_as_unguarded` (the bare route exits 0). - The cause is `tests/notebooklm/test_hermeticity_guard.py:87`, which still asks `find_spec("ideation_dashboard.workbench")`. That is None since the shed, so the probe's layer-2 case silently skips, and it is one of the six `EXPECT_SKIPPED`. This is P1-G decision 5's "find_spec probe goes silent". - Measured: with `find_spec("opendox.workbench")`, the pytest route and the negative control pass. The `tests/hermetic_unittest.py` route then errors (`No module named 'opendox'`), because that runner installs no reach. - A repair touches that probe, `tests/hermetic_unittest.py`, and `EXPECT_SKIPPED` 6 → 5. None of the three is an F11.1 surface. These cases are now on #1195 (answer 2). - **Held: T035's `test_worktree_container_is_gitignored_in_the_aggregation_repo`.** It skips wherever no xFactory aggregation checkout encloses the tree, CI included, so it would move `EXPECT_SKIPPED` 6 → 7. Batch E records it as held (answer 2). ## The admissions (`e54d8253`) The coordinator's step 4: `docs/opendox-carve-admissions.yaml` gains 37 `created:` entries. Each `since` is the file's introducing commit, the leg's own squash landing, checked with `git log --diff-filter=A`. Each path is present at the new pin. - **`openxdox_code`, 24.** - openXdox-code#29 (T040), `d84b5048`: 15 files. The `base-repo` fixture is listed file by file, because the verifier matches exact paths (`if relpath in allow_created`). - #30 (T041), `5fbd188e`: 4. - #31 (T042), `4e16db95`: 4. - #33 (T044), `6158151e`: 1, the coordinator's entry, verbatim. - **`opendox_code`, 13, beyond the coordinator's list.** - 11 are the files openDox-code #33 and #37–#49 added after `d816cf06`. - 2 are openDox-code#31's (`93ccc3dd`). The arrival run at `d816cf06` already needed them as `--allow-created`, and no earlier bump admitted them. - **Kept** (answer 3). - **Derived, not run green.** At both new pins, `verify-carve-arrival.py --phase B` refuses `arrival-undeclared-edit` before it reaches the created-file walk. Phase 1's arc edits to carved files carry no declared-edit act (batch A's addendum to 11.1). So each list is the set of files added between the last pin where the run was green (openXdox-code `e28930bf`, which is OK with 34 admissions; openDox-code `d816cf06`) and the new pin. - **The pinning test.** `tests/carve_arrival`'s committed-admissions test records the fourteenth amendment, and pins all 37 by path and `since`, counted in the committed file. A moved `since` fails it, and so does a planted extra entry (both measured). `tests/carve_arrival` and `tests/carve_manifest` together: 409 passed. ## Copilot, on T047 Copilot raised eleven threads at `b05175f7`, `f79a72f3` and `42a998dc`. Each is answered and resolved, and two changed code: - **The home seam's overwrite** is answered in `42a998dc`. Its documentation changes, two tests are added, and there is no behaviour change. - **The take-back calls** are now checked before any write, in `16134cc9`. - **The `openXdox` gitlink and the openXdox-code replica** were already moved and resynced, in `b4e701cb` and openXdox-code#29. - **The pin-scope pair** is answered by this description. - **The admissions order** was already sorted: `c` < `d`. - **The two composition assertions** always sit on the new leg, because the pin move precedes them in this PR. - **The `route_extension` replica** stays byte-identical to both legs. The nested-scope point is recorded for openDox-code's owner. - **The arrival verifier** needs no manifest change (answer 2). ## The holder's answers (relayed by the coordinator, 2026-09-28) 1. **One commit for both pin pairs**, as the runbook requires (§ 3 step 8, § 4 `DIFFERENT`). `b4e701cb` is that commit. It deliberately departs from T090 step 6's "one commit each". 2. **Batch E (#1183) records the rest**: - the five paths edited outside every F11.1 surface, as admitted arc edits: - `docs/opendox-carve-admissions.yaml`; - `tests/carve_arrival/test_verify_carve_arrival.py`; - `tests/openxdox_pin/test_openxdox_pin_verifier.py`; - `tests/ideation-dashboard/test_dashboard_source_seal.py`; - `scripts/ideation_dashboard/dashboard_refresh_lane.py`; - the status-exemption collection fix; - the unchanged `route_extension` manifest row; - the relocation of the moved cases to `tests/domain_profile/`; - the held hermeticity and aggregation `.gitignore` cases. The hermeticity cases are now on #1195 (READY). This answers questions 2 to 5. 3. **Keep** the 13 `opendox_code` admissions. 4. **T092's phase-1 notes go to the T049 checkpoint bookkeeping**, not to this PR. ## History: P1-K (T045, T046) P1-K's measurements, from `b31829d3` to `c4dcaba8`, were verified with a local composition that points at openDox-code main, as a measurement only, never committed. - **The wiring.** - `profile_openxfactory.HANDLER_CONTRIBUTIONS = (LaneRoutes,)`, which `opendox_host.FACETS` forwards (T045). - One process-start call, `register_openxfactory()`, fills openDox-code phase 1's five seams (T046): the home corpus, the session-notebook scope `documents`, the scoped health check, the doxBench validators and the status-exemption rail. - It asserts that its profile is the registered one (R1Q4 (a)). It fills all five seams or none, and it takes back its own partial writes on a refusal. - **Tests.** `tests/domain_profile/test_openxfactory_host_wiring.py` held 28 tests at `c4dcaba8`. `42a998dc` adds two and `16134cc9` adds one parametrized test with four cases, for 34 cases. Batch A's two composition tests move with the facet. - **CI at `c4dcaba8`** (the current pins then): `8500 passed, 6 skipped`. - **The red list at openDox-code `main`**, then: comment `5853319553`. - **Copilot.** Five threads, each answered and resolved. The last review, at `c4dcaba8`, had no findings. ## Rulings Brett answered P1-K's three questions at (a), recorded in `#656` comment `5856475254` (2026-09-27T13:54:40Z): 1. The stale `route_extension.py` copies are resynced to openDox-code #40's, and batch E admits both as named arc edits. openxFactory's copy is resynced in T047's PR, which is `4303e67c` here. openXdox-code's was resynced in openXdox-code#29. 2. The NotebookLM sync's missing `register_openxfactory()` call goes in T047's PR, which is `4303e67c` here. 3. F11.1's `COMPOSITION_TESTS` arm lands as a bookkeeping PR with batch E, before T047. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Oct 8, 2026
…entity bound by layer, the single-writer rows and the holder's batch-3 flags (plan 038) (#1263) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) ## T002c: plan 038's third bookkeeping batch (plan 038) Bookkeeping: no `Arc:` line, and no `openspec/changes/` path. It encodes rulings already posted on #656 and landings already merged, each cited by comment id or merge commit, with no new decision. It follows #1251 and #1257 in form, and redoes nothing either did. #1257 landed as `c70bdbd9`, so this PR is not stacked; `origin/main` (`c9dfd4f8`) is merged into the branch, never rebased. **Realizes / Falsifier:** none (bookkeeping). The gates are listed under "Gates" below. ### What changed (specs/038-opendox-document-tool-self-maintenance/) **Ticks, each merge commit read through GraphQL (`pullRequest{mergeCommit{oid}}`) before it was written.** The sweep covered every PR merged since 2026-10-06T23:30Z in openDox-code, openXdox-code, openDox, openXdox, openDox-spec and openxFactory, re-run at 2026-10-08T16:16Z: - openXdox-code: T095 #46 → `e2340bb6`, T101 #48 → `8b0401a1`, T098 #51 → `fc1115d6`, T103 #49 → `6f259156`, T096 #53 → `34e1c1f2`, T100 #54 → `2a3d8c09`, T099 #47 → `4aa3070a`, T102 #52 → `e7815ac5`, T097 #50 → `4dab93fc`, T022 #41 → `aefd1091`. - openDox-code: T104 #94 → `d616da3e`, T072 #95 → `99220883` (the arc's first realization). - Follow-ons recorded on the task they follow: T021's openXdox-code#55 → `da736090`, and T096's openXdox-code#56 → `9720925e`. - T095's Landed line also records Copilot r4201411760 as the holder's READY note did (`6027382308`, accepted limit under `5988818366`; the fix rides T073). - Nothing is ticked whose PR has not merged. T029 and T073 (openXdox-code#44, #45) and T012/T013 (openDox-code#90) stay open. **New task T105** (R2-INV-P5, read-only, lane 3; holder `6027341795`, claimed `6027346843`): ticked on lane 3's DONE line (2026-10-07T00:28:59Z), its summary `6028122920`, the map `lane-coord-034/r2/R2-INV-P5.md`, and the holder's ruling `6028138991`. Verdicts: T041, T042 and T043 READY-WITH-NOTES; T045, T047, T048 and T049 blocked by plan order only. Placed under "Wave 1's readiness" before W1, with a row in the Phase 5 slice table. The task count is 91 and plan.md's two stale "79 tasks" cites now read 91 tasks and T001 to T105 (`6028364555` item 5). **The four slice notes** (`6028138991`; no requirement or falsifier changes), as implementation notes on T042, T043, T045 and T047, refined by the holder's batch-3 flags (`6028364555`) and the Copilot-thread ruling (`6064169640`): - T042: the token `RESET_CONFIRMATION` stays byte-identical, its wording may change; Files gain `docs/runtime.md` (R2-INV-P5 § T042: its two table arrays move with `identity.TABLES`, which `test_deploy_shape.py` holds); `RULED_TABLES` is encoded as the map words it. - T042's SQL column is `full_run` (`6064169640`, fix-now, resolving Copilot 4205521074): the words "quote it or" are gone from T042, and `data-model.md` gains one line saying the SQL column is `full_run` because PostgreSQL 16 reserves `full`. **Files and falsifiers:** - T073: Files gain `tests/test_host_plane.py` and the `opendox-snapshot-*` farm exclusion scoped to the `opendox_spec` owner; the falsifier gains the farm case (Copilot r4201411760, accepted at #46's landing, `6027382308`, reply 4201421102). plan.md's conftest and `test_host_plane.py` rows, and the T020, T026 and T095 Files chains, end with T073. - T015 and T016: Files gain `tests/test_capability_honesty.py` and `tests/test_lens_seed_actions.py` (`6027633398`), with the same-kind enumeration collateral pre-authorized in the minimal way and listed in each PR body, and `tests/test_default_profile.py` (`6023619783` item 1, corrected by `6026622117` item 2), with the chain T015 → T016. plan.md gains two single-writer rows. - T041, T046, T057: the `identity` bound is split by layer (`6027706377` item 1, refining `6018624750`). T041 narrows to the module's own serialized finding shape; T046 gains it on `health list --json`; T057 gains it on the HTTP Health response; FR-011's coverage row cites all three. - T022's falsifier gains the root-`.gitignore` source check (`6026275158` item 2); T102's gains the widened no-bypass scan (`6026275158` item 3); `6028364555` item 4. - T012's Ruled line: `6026275158` item 1 and `6026622117` item 1. - T072's Files name openDox-code#95, and T071's entry names its ratification record, openxFactory#1261 (a DRAFT PR that exists now). T015's PR does not exist yet, so its number is not named. **Qualifiers and counts:** "plan 034's" on spec.md (two places) and clarify-questions.md (one place), found by content, nothing else moved (`6027706377` item 2). tasks.md's header and plan.md each carry a revision paragraph. ### Ruled and Decisions Ruled (all on #656): `6027341795`, `6027346843`, `6027382308`, `6027633398`, `6027706377`, `6026275158`, `6026622117`, `6023619783`, `6028122920`, `6028138991`, `6028364555`, `6064169640`. Decisions: none new. ### Readings, disclosed - T042's Files wording follows R2-INV-P5 § T042 (the `docs/runtime.md` arrays move with `identity.TABLES`); the holder's `6028364555` item 2 words the cause as the `full` rename, and cites the same map section. - plan.md's `tests/test_default_profile.py` row says the chain "follows `default_profile.py`'s", as `6023619783` words it; T046 and T057 are not given the file in their own Files lines. - `6023619783` item 2 (T071's record header) is not in this batch's items and is not encoded here. - Lane 3's other R2-INV-P5 observations (moved #1144 line references, floor and census counts, T015's census line) stay informational and are not encoded (`6028364555` item 7). ### Gates - `python3 scripts/validate-openspec-cli-pin.py --all --strict` at the merged head `b236fa6c`: exit 0 (the one accepted exception is `add-chain-attestation`'s disposition, as on main). - doc-health (`scripts/doc-health.py --single-repo .`) at `b236fa6c` against `origin/main` `c9dfd4f8`, same clone: identical reports, 31 critical, 26 error, 69 warning, 19 info, zero differences after SHA normalization. - Local `python -m pytest tests/ -q -m "not postgres" -n 8` at `3e6feb6b`: 9206 passed, 7 skipped, 1 failed. The failure is `tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]`, a 30 s subprocess timeout that fails identically on `origin/main` in the same clone. Later commits change only spec text and chain records. - CI at the head `b236fa6c`: every check SUCCESS (rollup SUCCESS, read through GraphQL), including `pytest-suite`, `doc-health-py314`, `openspec-cli-pin` and SonarCloud. The head adds only the merge of `origin/main` `c9dfd4f8` (the archive of amend-worker-input-budget-dispatch-wording, #1269) to `c675894d`, whose rollup was SUCCESS too. - Copilot: at `a9fc7e7b` two threads (4205521074 → fixed in `4263d665` on `6064169640`; 4205521173 → fixed in `c3409c03`). At `3e6feb6b` two threads (4221525148, the PR description, updated; 4221525277, the T020, T026 and T095 chains, fixed in `c675894d`). At `c675894d` and at the head `b236fa6c`: "Approval recommended", 0 open findings. All four threads are answered and resolved. ### NOT done No requirement text, no contract file and no `openspec/changes/` path is touched. No box is ticked in #1144. refs #656 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <[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.
The separate governance commit the D10 runbook mandates ("checking the owning-ledger boxes happens after the evidence is reviewed — never during the run"), applied against the merged, signed evidence set (PR #48,
93ea5c1).Boxes checked:
add-staging-workbench6.5,add-workbench-bullseye-and-create7.2,add-workbench-branch-sessions9.2 (PASS WITH FINDINGS, register F1–F12),add-propose-verb4.3 (PASS), and doxBenchadd-workbench-integrated-editor-chat1.3.add-dashboard-repo-selector6.2 (already checked) gains its completed deliberate-human-observation note.Also lands the four serve-plane gate-action records of the pass (propose descriptor + record, open-pr, abandon-session) — the audit artifacts the verbs leave untracked by design (F10) — giving 4.3 its commit sha.
Effect: zero open tasks remain in any predecessor ledger; the archive chain (doxBench task 1.5) is fully unblocked.
Strict OpenSpec validation: 58 passed, 0 failed.
🤖 Generated with Claude Code