Repository navigation
Plan 034 T040 (P1-I): clear the carve residue, classes B–G, and declare rfc3339-validator; the opendox pin bump waits on P1-R - #29
Conversation
Plan 034 task T040, slice P1-I (openxFactory specs/034-opendox-standalone-operation/). jsonschema registers its date-time format checker only when rfc3339-validator is importable, and this leg's scripts/validate-ideation-dashboard-contracts.py refuses to run without that checker. T005's whole-suite run at e28930b, with Group 2 simulated, found 23 red results asking for the package (its class M): 21 in tests/test_doxbench_blank_reason.py and 2 in tests/test_snapshot.py. Declared, the 21 clear. tests/test_validator_schema_home.py, which importorskips the package, also runs its 12 cases instead of skipping. It is a TEST dependency and stays out of `dependencies`, for the reason the file's jsonschema paragraph already records: nothing under src/ imports it. The floor, >=0.1.4, is what openxFactory's validator-input lock pins (requirements/hermes-runtime-contracts.in), the same source PyYAML's floor was read from. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… own Plan 034 task T040, slice P1-I. test_create_project.py, test_edit_project.py and test_register_edit_lane.py drive their wire half through `from test_gate_routes import _post, _serving`. That module is openxFactory's tests/ideation-dashboard/test_gate_routes.py, whose carve-manifest row is not_moved (stays_openxfactory_adapter), so all three failed collection on "No module named 'test_gate_routes'" (T005's class B, research R10). tests/gate_routes_harness.py is the helper of their own. It carries exactly the two names they import and the four definitions those reach, copied from openxFactory at the carve tag opendox-carve-0 (b075fd91). An AST comparison against that source finds every definition identical except the declared change: the served web root is the pinned openDox bundle, opendox_bundle.web(), read per call, in place of the pre-carve scripts/ideation_dashboard/web path. `serve` is opendox.serve, the carve's own import rewrite, and staging_fragment comes from staging_shapes. It is not named test_*.py, so pytest never collects it as a suite and 12.5's protected-suite grep over tests/test_*.py cannot select it. With it, none of the three fails on test_gate_routes. Each now fails collection one layer further in, on doc_health, at openxdox/gate_console.py:63. That is T041's declared exclusion (R1Q6 (d)), not carve residue. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Plan 034 task T040, slice P1-I. test_doxbench_knowledge_service.py and test_doxbench_thread_wiring.py import their harness from `test_doxbench_routes` at module scope, and test_doxbench_blank_reason.py inside one test. That module is openxFactory's tests/ideation-dashboard/test_doxbench_routes.py, whose carve-manifest row is not_moved (stays_openxfactory_adapter), so all three failed on "No module named 'test_doxbench_routes'" (T005's class C). tests/doxbench_routes_harness.py is ONE helper for all three, which keeps the reason they give for importing the harness rather than copying it. It carries exactly the 21 names they import and the definitions those reach: 52 of the source module's 272 top-level statements, copied from openxFactory at the carve tag opendox-carve-0 (b075fd91). An AST comparison against that source finds every definition identical, under the declared rewrites, except the one declared change, `released_only`: - the carve's import rewrites: serve, doxbench_hash and doxbench_model are opendox.X, and generator is openxdox.generator; - the served web root is the pinned openDox bundle, opendox_bundle.web(), read per call; - the four wire kinds come from openDox's own declaration, opendox.serve_wire.DOXBENCH_*_KIND. Those are the kinds the routes emit and the keys they look an injected validator up by, whereas the source read them from doxbench_contracts, which stays in openxFactory; - released_only skips here, naming why: the released-contract rung needs openxFactory's doxbench_contracts, and so does build_server's default validator seam, and this checkout carries neither. The two module-scope importers now fail collection one layer further in, on doc_health, where the harness's fixture snapshot reaches openxdox/generator.py:66. That is the declared doc_health reach (R1Q6 (d), T041's exclusion), and the harness does not hide it. In blank_reason the one test that takes the harness meets the same doc_health. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Plan 034 task T040, slice P1-I. test_doxbench_bridge.py takes FORBIDDEN_PORT_MEMBERS with `from test_doxbench_model import ...` inside two tests. That module is openxFactory's tests/ideation-dashboard/ test_doxbench_model.py, whose carve-manifest row is not_moved (stays_openxfactory_adapter), so both tests failed on "No module named 'test_doxbench_model'" (T005's class D). tests/doxbench_port_ban.py carries the one name, the same sixteen members at the carve tag opendox-carve-0 (b075fd91) and at openxFactory main today. The AST comparison finds it identical. openxFactory's module is not brought whole, because at main it imports a further openxFactory-only helper (carved_reach), which T005's experiment hit when it copied that module in. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…e_omp_child.py Plan 034 task T040, slice P1-I. test_doxbench_bridge.py drives a real child over real pipes at `Path(__file__).parent / "fixtures" / "fake_omp_child.py"`. The carve moved that fixture to openDox-code only (its manifest row is moved_verbatim, destination opendox_code), so here 32 of the suite's cases failed on BridgeUnavailable or ThreadMirrorFailed (T005's class E). The file is a byte-identical copy: git blob e51045f, the same blob at openxFactory's carve tag opendox-carve-0, at openDox-code 5c137a90 (this leg's pin) and at openDox-code main. Mode 100644, as there. The suite runs it as `sys.executable <path>`, so it needs no exec bit. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…se-repo Plan 034 task T040, slice P1-I. tests/conftest.py names BASE_REPO = tests/fixtures/base-repo, and test_register.py and test_snapshot_validation_launch.py read it. That corpus is an openxFactory test fixture (tests/ideation-dashboard/fixtures/base-repo), whose eleven carve-manifest rows are not_moved (stays_openxfactory_adapter), so it never arrived: 13 red results (T005's class F), 9 in the launch suite and 4 in test_register.py. The tree is a byte-identical copy: git tree cef59fd, the same tree at openxFactory's carve tag opendox-carve-0 and at its main today, eleven blobs, each mode 100644. The copy edits no suite, and test_snapshot_validation_launch is one of 5.4a's protected suites. Its `openspec/changes/` paths are fixture content, a copy of another repository's layout, not an OpenSpec record of this one. With it, test_register.py passes whole (10 passed), and the launch suite finds its fixture. It then fails its 9 cases one layer further in, on ProfileNotRegistered at build_parser(), which T016's default registration addresses at the phase-1 pin (T005's experiment saw the same layer). Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Plan 034 task T040, slice P1-I. Four suites read openDox and openXdox modules at their pre-carve path, scripts/ideation_dashboard/<module>.py, a directory this leg does not have (T005's class G). This commit respells the reads in three of them, test_scope_column_split.py, test_doxbench_blank_reason.py and test_doxbench_bridge.py, and the conftest serve surface two of them read through: - tests/conftest.py: serve_surface_paths() reads each serve file at its carved home, through carved_module_path(). openDox's four come through the PIN, from the installed opendox package, and openXdox's two from this leg's src/openxdox/. carved_module_path() refuses a name found in both homes or in neither. The one file of the tuple that did not come to either, openxFactory's own lane column serve_openxfactory_lanes.py (not_moved), is NAMED in SERVE_SURFACE_NOT_AT_THIS_LEG, not dropped from the tuple, so any other absence still refuses the read; - test_doxbench_bridge.py and test_doxbench_blank_reason.py: the module each already imports, read through its __file__, the repair § 3.4 slice S8 made for MODULE_PATH; - test_scope_column_split.py: the package its parser means is both halves the carve made of ideation_dashboard, openDox's through the pin and openXdox's here, and it reads opendox/openxdox spellings beside the pre-carve two. A mutation check fed a reader the back-edge in five spellings, including `from openxdox.doxbench_scope import ScopeKey`, and every one was caught. It also fed a reader with its types import removed, which the non-vacuity assertion caught. With Group 2 simulated at the current pin: test_scope_column_split 6/6, test_doxbench_bridge 60/60 (with classes D and E), and blank_reason's three class G cases pass. Not respelled: tests/test_doxbench_packet.py's 13 class G reads. That file is one of the seven that R1Q24 (a) (#656 comment 5850003126) sends to the declared exclusion under T041/T043, and it is left to that act. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Reviewer's GuideThis draft clears the measured carve residue at the current openDox pin by extracting only the required test-helper closures, adding their required fixtures, relocating source and package-resolution checks to carved module homes, and declaring the missing RFC3339 test dependency. The openDox pin bump and final whole-suite remeasurement remain deferred until P1-R lands. Sequence diagram for resolving carved module paths in testssequenceDiagram
participant Suite as Test suite
participant Conftest as tests/conftest.py
participant Resolver as carved_module_path()
participant OpenDox as Installed opendox
participant OpenXdox as openxdox source
Suite->>Conftest: serve_surface_paths()
Conftest->>Resolver: carved_module_path()
alt openDox module
Resolver->>OpenDox: Read module from installed package
OpenDox-->>Resolver: Module path
else openXdox module
Resolver->>OpenXdox: Read module from src/openxdox
OpenXdox-->>Resolver: Module path
end
Resolver-->>Conftest: Resolved path or refusal
Conftest-->>Suite: Serve surface paths
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The RPC fixture’s documented --help behavior remains unresolved, and the declared scope conflicts with a changed excluded file.
Review effort: Lite
Findings: None
What changed in this PR
This PR clears carve-era test residue for the split openDox/openXdox layout while deferring the dependency pin update until P1-R.
Changes:
- Adds local test harnesses and fixtures.
- Updates split-package path and scope handling.
- Declares
rfc3339-validatorfor tests.
| File | Description |
|---|---|
tests/test_scope_column_split.py |
Supports both carved package namespaces. |
tests/test_register_edit_lane.py |
Uses the local gate harness. |
tests/test_edit_project.py |
Uses the local gate harness. |
tests/test_doxbench_thread_wiring.py |
Uses the shared doxBench harness. |
tests/test_doxbench_knowledge_service.py |
Uses the shared doxBench harness. |
tests/test_doxbench_bridge.py |
Uses relocated helpers and module paths. |
tests/test_doxbench_blank_reason.py |
Uses local harnesses and carved module paths. |
tests/test_create_project.py |
Uses the local gate harness. |
tests/gate_routes_harness.py |
Adds gate-route test helpers. |
tests/fixtures/fake_omp_child.py |
Adds the RPC child fixture. |
tests/fixtures/base-repo/project-register.yaml |
Adds project-register fixture data. |
tests/fixtures/base-repo/openspec/changes/archive/2026-07-12-add-document-cataloging/proposal.md |
Adds archived OpenSpec fixture content. |
tests/fixtures/base-repo/openspec/changes/add-ideation-governance/tasks.md |
Adds OpenSpec task fixture content. |
tests/fixtures/base-repo/openspec/changes/add-ideation-governance/proposal.md |
Adds OpenSpec proposal fixture content. |
tests/fixtures/base-repo/ideation/staging/keyword-lens/README.md |
Adds staging fixture documentation. |
tests/fixtures/base-repo/ideation/staging/ideation-governance/README.md |
Adds staging fixture documentation. |
tests/fixtures/base-repo/ideation/cross-reference.yaml |
Adds cross-reference fixture data. |
tests/fixtures/base-repo/ideation/brainstorm/legacy-note.md |
Adds brainstorm fixture content. |
tests/fixtures/base-repo/ideation/brainstorm/dtn-register.md |
Adds brainstorm fixture content. |
tests/fixtures/base-repo/ideation/brainstorm/doc-health-checks.md |
Adds brainstorm fixture content. |
tests/fixtures/base-repo/ideation/brainstorm/avatar-client-lab.md |
Adds brainstorm fixture content. |
tests/doxbench_routes_harness.py |
Adds shared doxBench route helpers. |
tests/doxbench_port_ban.py |
Adds port-member restrictions. |
tests/conftest.py |
Resolves serve modules from carved homes. |
pyproject.toml |
Adds the validator test dependency. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Copilot's review overview (review 1. The RPC fixture's
|
…t them Plan 034 task T040, slice P1-I. tests/test_doxbench_packet.py read openDox's modules at their pre-carve path, scripts/ideation_dashboard/<module>.py, at three sites. Those sites are 13 of T005's class G results. d266db3 left the file alone because it is also one of the seven files R1Q24 (a) sends to the declared exclusion. The holder read T040 against R1Q24 (a), and the lane coordinator relayed that reading to this slice on 2026-09-27. T040's own text and falsifier name these source paths, so they are T040's. R1Q24 (a) covers only the file's exemption-rail failures, which stay for T041/T043. This commit makes the three-site fix and changes nothing else in the file: - MODULE_PATH is Path(pk.__file__), the installed openDox module the file already imports. Slice S8 of section 3.4 made the same repair in test_doxbench_turns.py. It covers the read at :309 and the 11-case parametrized test at :1054; - the watch-list sweep (:963) reads each module at its carved home through conftest's carved_module_path(). One module of the sweep did not come to this leg: doxbench_status_exemption.py, openxFactory's rail (not_moved). It is NAMED in SWEEP_NOT_AT_THIS_LEG and stays in the tuple, which is only ever widened. tests/conftest.py: carved_module_homes() factors out the two homes that carved_module_path() already searched. assert_not_at_this_leg() holds a "not at this leg" declaration to its word: it refuses once a declared file is present in either home, so a skip can never hide code this leg carries. The sweep and serve_surface_paths() both call it, so the serve surface's SERVE_SURFACE_NOT_AT_THIS_LEG gets the same check. With Group 2 simulated at the current pin, the whole suite differs from d266db3 in exactly 13 results. All 13 are in this file, and each went from failure to passed. The file's 54 exemption-rail failures and 3 doc_health failures are the same tests with the same causes. A plain run (no shim) is identical to d266db3. A mutation check of 28 cases showed that each respelled read catches its needles, and that each declaration refuses once its file arrives in either home. The required job gives 558 passed and 6 skipped, triple 564/558/6. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Copilot's re-review at
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
Plan 034 task T040, slice P1-I, on Brett Heap's ruling of 2026-09-27 (opensoft/openXfactory#656 comment 5856475254, P1-K's question 1, answered at (a)): "openxFactory scripts/route_extension.py and openXdox-code src/route_extension.py are resynced to openDox-code #40's src/route_extension.py. T007 batch E admits both as named arc edits, each with its reason. ... openXdox-code's in P1-I (T040, openXdox-code#29)." src/route_extension.py is the carve's replica of the neutral route extension point (carve manifest row scripts/route_extension.py, not_moved / replicated_at_destination, RULING Q-L1). It still held the carve-time blob 3480207 (30,017 bytes). openDox-code's copy moved on in opensoft/openDox-code#40 (merge 0f10b1f5, plan 034 T010), which declares the handler-contribution facet (R1Q1 (a)). This commit copies that file byte for byte: blob 3480207 -> 7781665 size 30,017 -> 62,817 bytes, mode 100644 unchanged sha256 d81124e62dba9df33abe44f3eb467188c98156f002cc7a92e297cd689da87515 The blob is the same at that PR's head c8d5c802, at its merge 0f10b1f5, and at openDox-code main 796838e8. The change is additive. No top-level name is removed, 30 are added (HANDLER_FACET, collect_handler_contributions, compose_handler, declared_handler_contributions and their private helpers), and the only changed definition is RouteBindingError's docstring. This copy is the one a test session imports. pyproject.toml's pytest pythonpath and the root conftest put src/ ahead of site-packages, so openXdox's own columns and the installed openDox both resolve the bare `import route_extension` to this file (measured: blob 7781665 from src/route_extension.py, with and without --noconftest). The pinned wheel's copy in site-packages is shadowed. Verified at the current pin (5c137a90), Group 2 simulated: the whole suite gives 107 failed, 1026 passed, 10 skipped and 126 errors, with 0 outcome differences from 0336288. A plain run (no shim) shows 0 differences. The required job gives 558 passed and 6 skipped, triple 564/558/6. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Copilot's third review at The file is a byte-for-byte resync, not an authored change. Brett Heap's ruling (opensoft/openXfactory#656 comment Both points, measured against this copy with a probe (
I have raised both with the lane holder as openDox-code follow-ups. Either would come back here as a resync. Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
Plan 034 task T040, slice P1-I: the pin move. T039 (P1-R) landed as opensoft/openDox#13 (merge 663ac683), which pins the code leg at openDox-code 2d116415159b721b55613fe20a159afc46202d1f, the phase-1 openDox-code commit. This moves pyproject.toml's `opendox @` from 5c137a90 to that commit. The ratchet is unchanged, since phase 1 closes no openXdox reach (T040; plan.md section Pins, step 3). Measured in a fresh venv built from this pyproject.toml (pip records direct_url.json commit_id 2d116415), with NO Group 2 shim, since T011 landed Group 2 in openDox-code: - The whole suite gives 106 failed, 1027 passed, 10 skipped and 126 errors (232 red). Its test ids are the same as the old pin's shim run. Classes B to G and M are 0: no collection error names test_gate_routes, test_doxbench_routes or test_doxbench_model, no test reads a scripts/ideation_dashboard/ path, test_register.py passes 10 of 10, and the bridge suite passes 60 of 60. - The pin moves three things. The 87 rail results (test_doxbench_packet 54, test_doxbench_turns 32, test_doxbench_abstract_envelope 1) now fail closed at openDox's status-exemption seam (StatusExemptionNotRegistered, opendox/doxbench_packet.py:304, 70 of them; the rest at :1555), which is still R1Q24 (a)'s class. The 9 ProfileNotRegistered cases of test_snapshot_validation_launch clear (T016), and behind them the suite reaches doc_health through opendox/consumer_reach.py:120 -> src/openxdox/corpus_root.py:34, which is T041's class. The shim's own red in test_dependency_direction is gone. - The required job gives 558 passed and 6 skipped, triple 564/558/6. tests/opendox_bundle.py agrees: declared_pin() == installed_commit() == 2d116415, and find() resolves the installed bundle. - src/route_extension.py is 7781665 at 2d116415 too, byte-identical to this branch's copy (openDox-code#40 is the only commit touching it since 5c137a90). So are src/subcommand_extension.py and tests/fixtures/fake_omp_child.py. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 4 days and 17 hours by commenting @sourcery-ai review. Upgrade to get a review now.
|
READY at 37fac9f — Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
…, as ruled
RULED openxFactory#656 comment 5859927858 (Brett Heap, 2026-09-27, "(b)
Exclude it until T008's arc"): "The test leaves T042's integration step, with
its stated reason: cli_gate imports openxFactory's doc_health at load time,
which is R1Q6 (d)'s kind of exclusion. It runs again once the doc_health
direction arc (T008) lands. F9.2 is unchanged."
So:
* validate.yml's `integration (9.3)` step deselects
tests/integration/test_assembled_surface.py::test_the_assembled_help_tree_is_the_31_entry_tree_the_manifest_records
and prints it, with its reason and the ruling, as an open extraction
(a `::notice::` line on the run's page). Deselected is not skipped: no
report counts it, and the exact skip pin is untouched.
* A new test beside it, test_the_help_tree_is_left_out_only_while_its_
stated_reason_holds, runs in the step and passes only while the same
child fails exactly as the reason says: `doc_health` not found, on the
way in through openxdox/cli_gate.py. Once the arc lands and the child
builds, it fails and names the exclusion to remove, so the pull request
that clears the reason takes the deselect out, and that test with it.
* T041's declared exclusion lists tests/test_*.py files alone and cannot
carry one test here, so the workflow says T043's whole-suite step leaves
it out the same way.
* F9.2 is unchanged: it still runs the test by name and stays red on it
until T008.
Measured at the pin proxy (this branch with pyproject's pin line exactly
#29's 37fac9f, openDox-code 2d116415), the three steps run as validate.yml
writes them: named list 558 passed / 6 skipped; integration `10 passed, 1
deselected`; Pin the triple selected=574 passed=568 skipped=6 failures=0
errors=0, green at the current floors (margin 10 and 10). The whole suite
with the conftest chain: 1 failed (the help-tree test), 874 passed, 10
skipped. F9.2 verbatim: rc=1 at the help-tree test only, as ruled. The new
test against three plants: doc_health made importable (T008 simulated),
fails naming the deselect to remove; doc_health present but needing another
missing module, fails as a reason the exclusion does not state; doc_health
reached before cli_gate, fails the same way. The earlier 18 plants and 12
loophole probes are still all caught.
Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…o 2d116415 #29 (T040) landed as the squash commit d84b504, whose tree is #29's head 37fac9f's tree. This branch already carried every #29 commit but the last, 37fac9f ("bump the opendox pin to openDox-code 2d116415"), so the merge brings one line: pyproject.toml's opendox pin, openDox-code 5c137a90 -> 2d116415. The merge result's tree equals fe7c8d7, the local tree (576b371 with 37fac9f merged) the PR body measured ahead at this pin. #30's base is now main. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#30 now carries main (#29's squash, d84b504), so this branch's pin moves to openDox-code 2d116415, the composition this PR lands in. It also took this branch's recursive glob byte for byte (2769e8b), so this PR's diff to tests/test_declared_exclusion.py empties, and it now takes doc_health's cause only as a lone checkout's interpreter gives it (7000db6). Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ts reason; stacked on #29 (#30) Plan 034, task **T041**, the first task of slice P1-J (openXdox green alone, less the declared exclusion). The plan is `specs/034-opendox-standalone-operation/tasks.md` at opensoft/openxFactory `main` `133e37d9`. This PR realizes box **9.2 (part)** of the ratified `add-neutral-product-standalone-operability`. - **Ruled:** R1Q6 (d), openxFactory#656 comment `5817152735`; R1Q24 (a) and R1Q25 (b), comment `5850003126`. - **Claim:** openxFactory#656 comment `5857409686`. - **Authored ahead of its dependencies**, on Brett's ruling `5857365170` ("Draft ahead in phase 1", which names P1-J's T041). - **Its dependencies have landed.** T041 is `After: T040`, so this PR was stacked on #29 (T040). #29 landed as the squash commit `d84b5048`. This PR is now based on `main`, merged `main` in at `30beadb` (no force-push), and was re-measured at T040's pin, openDox-code `2d116415`. P1-G's openDox-code#51 (T035), which sends two cases here, landed as `80acead1`, and its final list still names exactly those two. ## What changes | file | what | |---|---| | `tests/declared_exclusion.yaml` | **new.** The declared exclusion: 66 test files, each with its reason, and the count. | | `conftest.py` (repository root) | Derives `collect_ignore` from the file, refuses a declaration that breaks one of its rules, and prints the exclusion at the end of every run that loads it, as an open extraction. A listed file that the run collects all the same, because its command line names it, is printed as collected. The emptied list (`count: 0`, no reasons, no entries) loads, and the run then prints that nothing is left out. | | `tests/test_declared_exclusion.py` | **new.** The falsifier: T007 batch B's three assertions, the declaration's rules, the conftest's refusals, and each listed file run ALONE. | | `tests/test_hermeticity_gate_verbs.py` | **new.** The two cases openDox-code#51 moves here, which join the exclusion on `doc_health`. | | `tests/hermeticity.py` | Layer 2 of the hermeticity guard turned on at this leg (see the finding below). | | `tests/test_hermeticity_runner_seams.py` | **new.** Layer 2 proved where the whole suite runs: the seam table, openDox-code's own two refusal cases, and the two ports a CLI verb declares, driven with no runner injected. | Twenty-six commits, one of them the merge of `main`: - `cb22294` turns layer 2 on; - `4d2e5f0` holds the moved cases; - `aa51a5f` is the exclusion; - `7ad389f` refuses malformed types and ids, for Copilot's first review; - `67a67bd` proves layer 2 where the whole suite runs, and `4582eac` admits only the ruled reasons, one-line texts and keys given once. Both are for Copilot's second review; - `d1fc5a2` refuses an entry naming the check, a path not written plainly, an `only` listing a file twice, and a `ruled` citing another ruling, for Copilot's third; - `58e5eb1` refuses a reason that is not an id, and stops unknown keys of two types from crashing the loader, for Copilot's fourth. It keeps a sweep of malformed declarations as a case; - `f74c6d2` refuses a file that is not UTF-8, or YAML nested past the recursion limit, as unreadable, for Copilot's fifth; - `6f9a36a` holds the consumer's schemas to `tests/test_snapshot.py` in the conftest, as R1Q25 (b) rules, for Copilot's sixth; - `8dcf00a` ties the contracts evidence to the trees the contract family reads, and makes the gate-verb fixture record whichever registry state the pinned openDox keeps. Both are for Copilot's seventh; - `0763181` narrows the contracts evidence to the exact contract files the listed files read, for Copilot's eighth; - `0651221` makes every reason take its cause as raised, and only when that cause is all the result shows, for Copilot's ninth; - `4b9e129` judges each result by the exception that ended the test, for Copilot's tenth; - `96db95c` holds the causes that arrive inside an assertion to pytest's account of that assertion, and keeps unhashable keys as refusal cases, for Copilot's second review at the same head; - `54d06b8` matches each cause whole, so no text can follow it, for Copilot's review at `4b9e1291`; - `d3d634a` adds the rail's other-module cases, for Copilot's review at `96db95cf`; - `b1b2b97` reads the whole exception chain, and prints a listed file that the command line names as collected, for Copilot's review at `d3d634a5`; - `387b9e9` holds the validator's result to the consumer's refusal alone, for Copilot's review at `b1b2b970`; - `9e703a7` shows each result an assertion reads whole and matches it exactly, and loads no installed plugin in the child runs, for Copilot's review at `387b9e98`; - `4f579f8` lets the emptied list load and report that nothing is left out, and rebases the rule cases on a sample declaration, for Copilot's review at `9e703a78`; - `576b371` refuses an optional key given as null, and makes the sweep fail on any malformed declaration that loads, for Copilot's review at `4f579f82`; - `30beadb` merges `main`, #29's squash `d84b5048`. It brings one line: the opendox pin, moved to openDox-code `2d116415`; - `2769e8b` takes T042's recursive glob from `759099a` (#31) byte for byte, so the whole-suite collection check reads `tests/integration/` once #31 adds it; - `7000db6` takes `doc_health`'s cause only in the one form a lone checkout's interpreter gives, for Copilot's review at `576b3710`; - `5b0e1c3` drives layer 2 through the two ports a CLI verb declares, with no runner injected, for Copilot's review at `7000db6d`. No protected suite is edited. No `openspec/` path is touched, so no Rule 6 window applies. ## The declaration, by reason | reason (`id`) | ruled | open until | files | |---|---|---|---| | `doc_health` | R1Q6 (d) | the direction arc (T008) | 59 | | `status-exemption-rail` | R1Q24 (a) | T008 | 3 | | `openxfactory-contracts` | R1Q24 (a) | T008 | 5 | | `consumer-schemas` | R1Q25 (b) | 7.3 (T061, phase 2) | 1, `tests/test_snapshot.py` alone | That is 66 files, 68 reasons. - R1Q24 (a)'s seven are the rail's three (`test_doxbench_packet.py`, `test_doxbench_turns.py`, `test_doxbench_abstract_envelope.py`) and the contract family's four (`test_validate_ideation_dashboard_contracts.py`, `test_wheel_action_contracts.py`, `test_project_schema_election.py`, `test_project_action_contracts.py`). - `test_doxbench_blank_reason.py` joins the contracts class as the eighth file, as T005's experiment predicted (analyze round 1a, C8). - R1Q25 (b)'s one narrow exclusion is `tests/test_snapshot.py`, whose two schema cases fail on the consumer's schemas. **The two-cause files.** The plan gives the rule in T041's own text: *"An entry may name two reasons, as `test_doxbench_packet.py`'s does once T040 has cleared its residue (`doc_health` and the rail), and the test then checks both."* This PR follows it for both files that need it: - `test_doxbench_packet.py`: `[doc_health, status-exemption-rail]`. 54 cases need the rail and 3 reach `doc_health`. - `test_doxbench_blank_reason.py`: `[doc_health, openxfactory-contracts]`. One case reaches `doc_health`, and one reads openxFactory's `contracts/manifest.yaml`. For each, the check requires both reasons to be shown, and every red result to be one of the two. **Where this departs from the plan's split, and why.** tasks.md T041 says *"T041 writes the `doc_health` entries, and T043's triage adds the entries for the other three reasons"*, and plan.md's single-writer row says the same. The holder's brief for this PR directs all four reasons' entries here: R1Q24 (a)'s seven, the `doc_health` modules, and R1Q25 (b)'s schema file. - The split cannot hold for the two-cause files in any case. Listed with `doc_health` alone, they would turn the exclusion test red on their other reason. Left out, the `doc_health` set would be incomplete. - So T043's triage becomes a re-run at T040's pin, which confirms or moves these entries (single-writer order T041 → T043 → T044 → T061). **Written from a run, not from the lists.** The file is written from a run of each file ALONE, not from T005's list at `e28930bf`. Every red result falls under exactly one reason, as the next section's evidence decides, with none unattributed and none matching two. ## For T007 batch B: the name and format F9.1 needs - **Path:** `tests/declared_exclusion.yaml`, in openXdox-code. - **Format:** YAML with these keys and no others. The root conftest refuses an unknown key, and a key given twice in one mapping. A malformed declaration is refused, naming its rule, and never crashes the loader. - `schema_version: 1` (the integer) and `kind: declared-test-exclusion`; - `count: <int>`, an integer equal to the number of entries; - `reasons:`, a list (empty once every reason has left), each `{id, reason, ruled, open_until}` with each text on one line and `ruled` starting with the ruling that admits it, plus an optional `only: [paths]` listing each file once. `consumer-schemas` must carry exactly `only: [tests/test_snapshot.py]`, since R1Q25 (b) admits it for that file alone; - `entries:`, each `{path, reasons: [<id>, ...]}` with an optional one-line `note`, one per line, in path order. Each path is written plainly, as `tests/<name>`. `tests/test_declared_exclusion.py`, the check, is never an entry. - **Reason ids:** drawn from the four the rulings admit, and the conftest refuses any other. They are `doc_health` (batch B's), then `status-exemption-rail`, `openxfactory-contracts` and `consumer-schemas` (batch F's three). A reason leaves with its last entry. - **What the run prints**, under `-q` as well, just before pytest's final count line: - a separator line titled `open extraction: the declared exclusion`; - `declared exclusion: <count> files, listed in tests/declared_exclusion.yaml and left out of this run. It is an OPEN extraction: ...`; - one ` reason <id> (<n> files): <reason>; open until <open_until>; ruled <ruled>` line per reason; - one ` excluded <path>: <id>[, <id>]` line per entry. pytest collects a file that its command line names, whatever `collect_ignore` says. A listed file that a run names is printed as ` collected <path>: <id>[, <id>]` instead. The second line then reads `declared exclusion: <count> files, listed in tests/declared_exclusion.yaml. <n> are left out of this run, and <m> are collected all the same, since pytest collects a file named on the command line whatever collect_ignore says. It is an OPEN extraction: ...`. A run that names no listed file prints every entry as `excluded`, and batch B's run is one of those. The emptied list is `count: 0` with `reasons: []` and `entries: []`. It loads, and the run prints `declared exclusion: 0 files, listed in tests/declared_exclusion.yaml. Nothing is left out of this run, and no extraction is open.` under the title `the declared exclusion`. Batch B's three assertions hold there with `COUNT=0`. - **Batch B's three assertions,** as commands, from the checkout root: ```sh python - <<'PY' import yaml d = yaml.safe_load(open("tests/declared_exclusion.yaml")) ids = {r["id"] for r in d["reasons"]} assert type(d["count"]) is int and d["count"] == len(d["entries"]) # (1) count equals entries assert all(e.get("reasons") and set(e["reasons"]) <= ids for e in d["entries"]) # (2) every entry carries its reason PY python -m pytest -q > out.txt # (3) the run prints it COUNT=$(python -c 'import yaml; print(yaml.safe_load(open("tests/declared_exclusion.yaml"))["count"])') grep -F "declared exclusion: ${COUNT} files, listed in tests/declared_exclusion.yaml" out.txt test "$(grep -c '^ excluded tests/' out.txt)" = "$COUNT" ``` The same three are named tests: `tests/test_declared_exclusion.py::test_the_count_equals_the_entries`, `::test_every_entry_carries_its_reason` and `::test_a_run_that_loads_the_root_conftest_prints_the_exclusion`. ## How the check attributes a failure `tests/test_declared_exclusion.py::test_each_listed_file_fails_alone_for_exactly_its_reasons[<path>]` runs each listed file in a child pytest of its own. pytest collects a path named on its command line whatever `collect_ignore` says (pytest 8.4.2). The child shows every value an assertion reads whole (`-o verbosity_assertions=2`), and loads no installed plugin (`PYTEST_DISABLE_PLUGIN_AUTOLOAD=1`). The check reads each failure and error in the child's JUnit report through three things: its message, the lines pytest marks `E`, and the lines pytest uses to join a chain's exceptions (*"The above exception was the direct cause of the following exception:"* and *"During handling of the above exception, another exception occurred:"*). So a source line that a traceback quotes is never read as evidence. Each reason has one piece of evidence: Each result is judged by its **final exception**, the one that ended the test. That is JUnit's `message`, unwrapped for a setup or teardown error. For a collection failure, whose `message` names none, it is the last exception the lines show, whole. That exception must BE the reason's cause, matched whole, in one of the shapes the 233 red results take: | reason | its cause, matched whole | |---|---| | `doc_health` | `ModuleNotFoundError: No module named 'doc_health'`, and no other module shown. Where `doc_health` is absent, the interpreter names `doc_health` itself for any of its modules, so a lone checkout gives no other form. | | `status-exemption-rail` | `opendox.doxbench_packet.StatusExemptionNotRegistered: ` plus openDox's own constant `STATUS_EXEMPTION_NOT_REGISTERED` (T027, openDox-code#41). Or openDox's `AttributeError` for a rail name, `module 'opendox.doxbench_packet' has no attribute '<name>': the status-exemption rail cannot answer it (<the constant>)`, raised from that refusal, which pytest shows before it. The constant is read from the pinned openDox, and a pin before the seam has none. | | `openxfactory-contracts` | `FileNotFoundError` on one of exactly four contract files. Or the interpreter's `can't open file` on the validator, followed by pytest's account of the assertion on its return code. That account shows the whole process, which must be `CompletedProcess(args=[<interpreter>, <validator>], returncode=2, stdout='', stderr=<the interpreter's line>)`. The four are the ones the five contracts files report when each runs alone: `contracts/schemas/gate-intent.schema.yaml` and `contracts/schemas/project-register.schema.yaml` above the checkout, where the family's `parents[2]` takes openxFactory's root to be; the validator `scripts/validate-ideation-dashboard-contracts.py` above the checkout; and `contracts/manifest.yaml` at the checkout's own root. A path a new run shows joins the set in the pull request that quotes that run. | | `consumer-schemas` | the consumer validator's own refusal, which names this checkout's `contracts/schemas` and runs to *"no mode may report success"*. The test either asserts on it, or meets it where it expected another refusal. If it asserts on it, pytest's account shows the validator's whole result. That result must be the harness error's: `ValidationResult(ok=False, returncode=2, stdout='', stderr=<the refusal>, validator=<this checkout's validator>, outcome='validator-unavailable', unavailable_reason=<validate_snapshot's reason for exit 2>)`. If it meets it, the refusal is the whole `Input:` of the pattern that did not match, and the `openxdox.snapshot.SnapshotInvalid` that carried it must be shown before that, whole. | **And the cause must be all the result shows.** Every exception pytest shows before the final one must be one the cause comes with. For most causes that is none. The exceptions are the rail's refusal, under the `AttributeError` raised from it, and the `SnapshotInvalid`, under the consumer's regex mismatch. A reason must also account for every missing module, missing file and refusal its result shows. So each of these is unattributed: - a cause followed by an unrelated failure; - a cause raised while an unrelated exception was being handled, or raised from one; - a cause with anything after it; - a cause's words, or its whole exception, quoted in some other assertion; - a cause beside an unrelated one; - a validator's result or process that shows anything but the cause. So no two reasons can take one result. All 233 red results the 66 files give, each run alone, fit this. 17 of them show the rail's refusal before its `AttributeError`, and 1 shows the `SnapshotInvalid`. The other 215 show one exception each. A listed file must fail (exit 1 or 2). Every red result must match exactly one reason, and that reason must be one its entry names, and every reason the entry names must be shown. The child drops `PYTHONPATH`, `CONTRACTS_DIR`, `PYTEST_ADDOPTS`, `PYTEST_PLUGINS` and the parent's hermeticity ledger variable. So the claim checked is the declaration's own: these files fail in a lone checkout. The measured control: `tests/test_snapshot.py` alone passes 17 of 17 with `CONTRACTS_DIR` pointed at openXdox-spec's `contracts/`, and its exclusion case still passes with that variable exported, because the child drops it. The children run in parallel, eight at a time: about 10 seconds for all 66. ## The falsifier, passing **Where it was measured.** At this head, `5b0e1c3`, whose pin is T040's, openDox-code `2d116415`, since `main` was merged in. The venv is fresh and installed as CI installs it: `pip install -e ".[test]"`, which fetches `opendox` from GitHub at that commit. Python 3.12.3, pytest 8.4.2. Earlier heads were measured at openDox-code `71b631bc` in a scratch copy, and at a scratch merge of #29's head. The merge commit `30beadb` gives the same results as that scratch merge, apart from each run's own paths and ids. ``` $ python -m pytest -q tests/test_declared_exclusion.py tests/test_hermeticity_runner_seams.py 212 passed in 19.08s $ python - <<'PY' # batch B (1) and (2) ... count 66 == entries 66; every entry carries a declared reason $ python -m pytest -q > out.txt; echo rc=$? # batch B (3), and the whole suite less the exclusion rc=0 $ grep -F "declared exclusion: 66 files, listed in tests/declared_exclusion.yaml" out.txt declared exclusion: 66 files, listed in tests/declared_exclusion.yaml and left out of this run. It is an OPEN extraction: ... $ grep -c '^ excluded tests/' out.txt 66 $ tail -1 out.txt 870 passed, 10 skipped in 40.15s ``` The module's 207 cases are the following: - 141 on the declaration, the conftest and the evidence: - batch B's three; - the four ruled reasons, and `consumer-schemas` for `tests/test_snapshot.py` alone; - every path a real `tests/test_*.py`, written plainly, once, in order; - the conftest admitting the same four reasons with their rulings, holding the consumer's schemas to `tests/test_snapshot.py`, and naming this module as the check; - `collect_ignore` equal to the entries; - a sample declaration that keeps every rule, and 39 breakages of it and 2 keys given twice, each refused naming its rule; - a sweep of 861 variants of the sample, each of which must be refused, and never crash, unless its value is still well formed where it went; - five files the loader cannot read (bytes that are not UTF-8, YAML nested past the recursion limit, a list or a mapping for a key, and a file that is not there), each refused as unreadable; - the evidence taking each cause, matched whole and alone, 78 cases; - the committed file accepted, and the emptied list accepted and reported as nothing left out; - the whole suite collecting every test file except exactly the 66; - a run that names two listed files printing them as collected, and the other 64 as excluded. - 66 more, one per listed file, run alone. The other 5 are `tests/test_hermeticity_runner_seams.py`'s. With `runner_seams()` put back to its carved probe, all 5 fail. **The whole suite less the exclusion is green there.** It gives 870 passed and 10 skipped. The 10 skips are the 4 `test_aggregation_register_instance.py` cases, which have no aggregation checkout, and the 6 seam-suite `doc_health` pairs that T044 owns. Before this PR, the same run was `106 failed, 1027 passed, 10 skipped, 126 errors`, on `main` at `d84b5048` at the same pin and run past its collection errors, and all 232 red results were in 65 of these files. The 66th, `tests/test_hermeticity_gate_verbs.py`, is new here. **At #29's earlier pin (`5c137a90`), a run that loads the root conftest could not be green.** Every case of the module and the layer-2 file errored at setup with `No module named 'ideation_dashboard'`, because the autouse `declared_human_console` fixture imports `opendox.cli`, which does not import before T011 (tasks.md, phase 1's note). That is why this PR waited for T040's pin. ## Thirty-two planted defects, each caught Each plant is one change to the scratch copy, reverted after its run, and a control run passes first. The harness is a scratch script, not committed. At `5b0e1c3`, at T040's pin, it catches all 32. Plants 26, 31 and 32 change the scratch copy's venv instead: an installed plugin, and the installed openDox. Plants 13 to 22, 24, 26, 28, 29, 31 and 32 came from Copilot's reviews, and each one passed, hidden, against the evidence at the head where it was found. Plant 23 undoes the printout of a named file, and plant 27 undoes the loader's acceptance of the emptied list. Plant 25 is Copilot's own example from thread `4116820877`, which the evidence already refused. 1. A listed file gains an unrelated failure: its case fails, *"fails for a cause none of the four reasons names"*. 2. A two-reason entry loses one (`test_doxbench_packet.py` as `[doc_health]` only): *"fails for ['status-exemption-rail'], which its entry does not name"*. 3. An entry names a reason its file does not show (`test_canvas.py` plus the rail): *"names ['status-exemption-rail'], but no result fails for it"*. 4. A passing file is listed (`test_leg_shape.py`): *"no longer fails"*. 5. A contracts file gains a missing file INSIDE the checkout, outside `contracts/`: it is unattributed. 6. A near-miss of the `doc_health` evidence (`'doc_hea1th'`): it is unattributed. 7. A near-miss of the rail's evidence: it is unattributed. 8. One assertion quoting two reasons' words: it is unattributed, since neither cause is raised. Before `0651221` it was caught as matching two reasons. That commit's message calls it plant 9; it is plant 8. 9. `collect_ignore = []`: the derivation case and the whole-suite collection case fail. 10. The entry lines are dropped from the printout: batch B's print case fails. 11. The printed count drifts from the file: batch B's print case fails. 12. An entry removed without its count: the root conftest refuses the run, *"its count is 66, but it lists 65 entries"* (exit 4). 13. A contracts file gains an unrelated missing file under `/tmp/contracts/`: it is unattributed. At `6f9a36a` it was hidden. 14. A contracts file gains an unrelated missing file in the `contracts/` above the checkout: it is unattributed. At `8dcf00a` it was hidden. 15. One result misses a known contract file and then an unrelated one: it is unattributed. At `0763181` it was hidden. 16. An unrelated assertion in `tests/test_snapshot.py` quotes "CONTRACTS_DIR is not set": it is unattributed. At `0763181` it was hidden. 17. `doc_health`'s import fails, and an unrelated `AssertionError` is raised while handling it: it is unattributed. At `0651221` it was hidden. 18. A bare assertion in `tests/test_snapshot.py` quotes the consumer's whole refusal, this checkout's path included: it is unattributed. At `4b9e129` it was hidden. 19. openDox's `StatusExemptionNotRegistered` is raised with an unrelated diagnostic after its words: it is unattributed. At `96db95c` it was hidden. 20. The rail's refusal is raised while an unrelated `KeyError` is being handled, in `tests/test_doxbench_turns.py`: it is unattributed. At `d3d634a` it was hidden. 21. A known contract file is read while an unrelated `KeyError` is being handled, in `tests/test_project_schema_election.py`: it is unattributed. At `d3d634a` it was hidden. 22. `doc_health` is imported while an unrelated `KeyError` is being handled, in `tests/test_snapshot_validation_launch.py`: it is unattributed. At `d3d634a` it was hidden. 23. The summary prints a listed file that the command line names as `excluded`: the named-run print case fails. 24. A test validates a snapshot the validator cannot read, with the schemas missing. Its result shows `outcome='not-conformant'` behind the refusal: it is unattributed. At `b1b2b97` it was hidden. 25. The validator prints another stderr line after its refusal: it is unattributed, and it was at `387b9e9` too, since the test's message shows the validator's last line first. 26. An installed pytest plugin turns a planted unrelated failure green in the child: it is unattributed, since the child loads no installed plugin. At `387b9e9` it was hidden. 27. The loader refuses the emptied list again: the emptied-list case fails. 28. The committed declaration gives the rail's reason `only: null`: the root conftest refuses the run (exit 4). At `4f579f8` it loaded, and the check module passed. 29. A test raises `ModuleNotFoundError: No module named 'doc_health..x'`: it is unattributed. At `576b371` it was hidden. 30. A test raises `ModuleNotFoundError: No module named 'doc_health.corpus'`: it is unattributed, since a lone checkout never names a module inside `doc_health`. At `576b371` it was hidden. Plant 29 is one case of this wider class. 31. openDox's `NotebookAdapter` binds the real `nlm` runner at import, so the notebook port that a CLI verb declares misses layer 2: the notebook port case fails, *"DID NOT RAISE"*. At `7000db6` it was hidden, and the whole suite stayed green. 32. openDox's `GhPullRequests` uses a runner subclass that keeps the real `run`, so the pull-request port misses layer 2: the pull-request port case fails on the port's own `PullRequestRefused`, which carries layer 1's refusal of `gh pr list`. At `7000db6` it was hidden, and the whole suite stayed green. ## openDox-code#51's two cases land here openDox-code#51's body lists them for T041: `test_an_unguarded_cli_scoped_create_is_refused` and `test_the_cli_seam_with_a_fake_port_reaches_no_binary`. Its proposed destination was `tests/test_hermeticity_gate_verbs.py`. - Both land byte-identical to openDox-code `main` `68be484a`, `tests/test_hermeticity.py` lines 226-240 and 262-275 (compared by `ast` source segment). - `gate` is openXdox's verb since the carve, and no test in this leg registered a profile that carries it. So the module adds a stand-in host that contributes exactly `cli_gate.GateSubcommands()`, as openxFactory's `profile_openxfactory.SUBCOMMAND_EXTENSIONS` does. It registers per test, and `monkeypatch` restores the registry after. - In a lone checkout the file fails at collection on `doc_health` (`cli_gate` → `gate_console:63`), so its entry is `[doc_health]`. - **Measured behind that reason**, with openxFactory's `scripts/` at `133e37d9` on `PYTHONPATH` to supply `doc_health` (R1Q23 (a)'s composition): `2 passed`, with openDox-code `5c137a90`, `71b631bc` and `2d116415` installed. The fixture records whichever registry state the pinned openDox keeps. Without the stand-in host, `gate` is an invalid choice. Without layer 2, below, the unguarded create does not raise. - #51 has landed (`80acead1`), and its final list still names exactly these two cases for T041. ## Findings 1. **Layer 2 of the hermeticity guard was OFF at this leg**, as #51 found at openDox-code. - `tests/hermeticity.py` is openxFactory's replica here. Its `runner_seams()` probed `ideation_dashboard.*`, which this leg does not have, so it returned no seams. The carve manifest's row records the reaches as resolving *"to nothing at a destination that lacks them"*. - So an escape through the default `nlm` runner degraded silently. The moved unguarded-create case shows it: DID NOT RAISE. - Commit `cb22294` names the pinned openDox's `opendox.workbench` and `opendox.session_pr`, with no probe, as #51 did. - Measured: the whole suite gives the same outcome for all 1269 nodes with the layer on and with it off, so no test was escaping. - The moved regression sits in the exclusion, so a lone checkout never runs it. `tests/test_hermeticity_runner_seams.py` (`67a67bd`, `5b0e1c3`) holds the layer where the whole suite runs, through the seams and through the two ports a CLI verb declares. Its 5 cases fail with the carved probe put back. - Both are their own commits (`cb22294`, `67a67bd`). So the holder can ask for them to move to T043 instead, as revert commits here. 2. **`tests/test_snapshot_validation_launch.py`, a 5.4a protected suite, joins on `doc_health`.** T043's text expected T016's default registration to clear its `ProfileNotRegistered` (*"read for T006, and is not yet run at the pin"*). At the phase-1 commit it does clear it, and the suite then fails 9 cases on `doc_health`. So it is in the exclusion under R1Q6 (d), and F5.2 runs it in phase 2 in R1Q23 (a)'s environment. 3. **Every carved `gate`-verb suite here will need a host that carries `gate`**, once `doc_health` is reachable. `test_create_document_cli.py`, the session suites and the rest drive `cli.main(["gate", ...])`, and no test in this leg registers such a profile. They fail on `doc_health` first today, so nothing shows it. This is for T008's arc, and `tests/test_hermeticity_gate_verbs.py`'s stand-in host is one shape for it. 4. **Causes hidden behind `doc_health`, one of which openDox-code#51's notes name.** `tests/test_doxbench_knowledge_service.py::test_the_serve_side_ceiling_is_pinned_to_the_RELEASED_maxLength` reads `contracts/schemas/xfactory-workbench-chat-turn.schema.yaml` at this checkout's root, and this checkout carries no such file. Its file fails at collection on `doc_health`, so a lone run never reaches the case. - Composed (openxFactory's `scripts/` on `PYTHONPATH`), the file fails 38 of its 52 cases, the same at `2d116415` and at `71b631bc`. - Two of them read that schema: this case and `test_every_shipped_reduction_reason_fits_the_released_bound`. - Two read `scripts/ideation_dashboard/serve.py` at this checkout's root. - Most of the rest meet a turn route that answers 400. - So more than one case sits behind `doc_health` in this file, and its entry carries no note naming one of them. - The exclusion cannot see a cause behind a collection failure. These cases surface when T008 clears `doc_health`: the file's alone case then turns red, and that pull request settles them. 5. **For T047 (P1-K):** openxFactory's `docs/opendox-carve-admissions.yaml` needs `created:` entries under `openxdox_code`, with `since:` set to this PR's landing commit, for: - `tests/declared_exclusion.yaml` - `tests/test_declared_exclusion.py` - `tests/test_hermeticity_gate_verbs.py` - `tests/test_hermeticity_runner_seams.py` ## Copilot's reviews - **The first, at `aa51a5ff`** (review `5331185493`, "Changes recommended"). - Its two threads found that `schema_version: true` or `1.0`, and `count: 66.0`, loaded. Measured at `aa51a5ff`, all three load. - `7ad389f` refuses them. It also takes the rest of that overview: reason ids that are not tokens, unknown keys, and `only` paths that are not entries naming the reason. - Both threads are answered with that evidence and closed as done. - **The second, at `7ad389f8`** (review `5331214591`, "Needs a closer look", no findings). Its overview named declaration-validation gaps and missing hermeticity coverage. Comment `5858231394` answers it, with the before and after runs. - The coverage is `67a67bd`. - The validation is `4582eac`. Measured at `7ad389f`, three breakages load: a fifth reason, a reason text broken by a carriage return, and an entry giving `reasons:` twice, whose reasons are silently swapped. At `4582eac` each is refused, naming its rule, and so is a second `entries:` list. - **The third, at `4582eac6`** (review `5331400682`, "Needs a closer look", no findings). Its overview said two moderate `conftest.py` validation issues remain, without naming them. So the loader was probed with declarations that should not load, and comment `5858299866` gives the runs. Five loaded at `4582eac`, and `d1fc5a2` refuses each: - **the check listed as an entry.** At `4582eac`, the whole suite then goes green (`661 passed, 10 skipped`, exit 0) with the check's 102 cases gone; - **one file listed twice under two spellings** (`tests/./test_canvas.py` beside `tests/test_canvas.py`). It counts and prints 67, and no case in the module notices; - **three more, caught only by the test module:** a doubled slash, an `only` listing a file twice, and a `ruled` citing another ruling. - **The fourth, at `d1fc5a22`** (review `5331428675`, "Needs a closer look", no findings). It names one item, listed as previously missed: an entry's `reasons: [[]]` would raise `TypeError` at `set(named)`. Comment `5858393471` gives the runs. - At `d1fc5a2` that case is refused, by the undeclared-reason rule, which runs first. `58e5eb1` adds the guard anyway, so the refusal no longer rests on the order of the checks. - The class of fault was real elsewhere. A structural sweep crashed 56 of 577 variants of the declaration at `d1fc5a2`, every one of them a `TypeError` from sorting unknown keys of two types. `58e5eb1` names them by repr, and the sweep then gives 0 crashes. The case `test_the_root_conftest_refuses_rather_than_crashes` keeps it, and at `d1fc5a2` that case fails, with 36 of 781 crashing. - **The fifth, at `58e5eb13`** (review `5331462163`, "Changes recommended", one finding). Thread `4116386894` found that a declaration that is not UTF-8 raised `UnicodeDecodeError` on import instead of being refused. Measured at `58e5eb1`, it crashes, and so does YAML nested 5000 deep, with a `RecursionError`. `f74c6d2` refuses both as unreadable, as a missing file already was. The thread is answered with the runs (reply `4116399992`) and closed as done. - **The sixth, at `f74c6d28`** (review `5331486776`, "Needs a closer look", no findings). It said a manifest-validation issue remains, and that the stacked hermeticity changes need a person's review. Comment `5858527729` answers both. - Held against the header rule by rule, the conftest missed one ruling. R1Q25 (b)'s consumer's schemas loaded widened to a second file, moved to another file, or with no `only`. `6f9a36a` refuses all three. - The hermeticity commits (`cb22294`, `67a67bd`) are for the holder to judge, as Findings 1 says. - **The seventh, at `6f9a36a9`** (review `5331520413`, "Changes recommended", two findings). Both are fixed in `8dcf00a`, and each thread is answered with the runs and closed as done. - Thread `4116448804`: the contracts evidence took any missing path under a `contracts/` directory outside the checkout. At `6f9a36a`, an unrelated missing `/tmp/contracts/...` file planted in a contracts entry was hidden, and its alone case passed. The evidence now takes only the three shapes the contracts files show, and eight cases hold it there (reply `4116472044`). - Thread `4116448815`: the gate-verb fixture read `_is_default` and `_built_from_default`, which openDox-code `5c137a90` does not have. Composed at that pin, both cases errored in setup with `AttributeError`. The fixture now records whichever of the registry's state the pin keeps, and composed, both cases pass at `5c137a90` and at `71b631bc` (reply `4116472168`). - **The eighth, at `8dcf00a7`** (review `5331553252`, "Changes recommended", one finding). Thread `4116483580`: the tree-based evidence still took an unrelated missing file inside those trees. At `8dcf00a`, a planted `contracts/t041-unrelated.yaml` above the checkout was hidden, and its alone case passed. `0763181` makes the evidence the exact four contract files, with negatives for unrelated files in each `contracts/` (reply `4116497328`; the thread is closed as done). The overview's CI coverage point is `validate.yml`'s 16-file list, which is T043's, as the next section says. - **The ninth, at `07631817`** (review `5331577450`, "Changes recommended", two findings). Both are fixed in `0651221`, and each thread is answered with the runs and closed as done (replies `4116538737`, `4116538880`). - Thread `4116509312`: `consumer-schemas` took any text with "CONTRACTS_DIR is not set". - Thread `4116509339`: the contracts evidence took a result that also showed an unrelated missing file. - Both are one weakness, so the fix is one rule for all four reasons: a reason takes its cause as raised, and only when that cause is all the result shows. The evidence case then had 28 cases, the threads' two among them. - **The tenth, at `06512213`** (review `5331617447`, "Changes recommended", one finding). Thread `4116549888`: a cause followed by an unrelated failure raised while handling it was still taken. `4b9e129` judges each result by its final exception (reply `4116577746`). - **A second review at `06512213`** (review `5331631138`, two findings). - Thread `4116563316`: its own case, a whole exception quoted in an assertion, was already refused at `4b9e129`. But its wider point held for the two causes that arrive inside an assertion, and `96db95c` holds those to pytest's account of the assertion (reply `4116601431`). - Thread `4116563297`: an unhashable key does not crash. PyYAML raises `ConstructorError`, and the declaration is refused as unreadable, as measured. `96db95c` keeps two cases for it (reply `4116601371`). - **At `4b9e1291`** (review `5331662913`, one finding). Thread `4116591535`: the rail's forms, and the two assertion-borne forms, were prefix matches, so text after a cause rode along. `54d06b8` matches each cause whole, the rail against openDox's own constant (reply `4116624587`). - **At `96db95cf`** (review `5331686800`, one finding). Thread `4116613647`: at that head the rail took a class of that name from any module. `54d06b8` had already tied it to `opendox.doxbench_packet`, and `d3d634a` adds the two negative cases (reply `4116633096`). - **At `54d06b8d`** (review `5331712809`, "Needs a closer look", no findings). It listed both of the previous round's threads as resolved. - **At `d3d634a5`** (review `5331724652`, "Needs a closer look", no findings). Its summary asks to *"correct the exclusion reporting for explicitly selected files and strengthen evidence parsing against unrelated traceback exceptions"*. Both were measured true, and `b1b2b97` does both (comment `5859494679`): - a run naming `tests/test_doxbench_turns.py` ran 183 of its tests, yet printed the file as left out; - a cause raised while an unrelated exception was being handled was taken (plants 20 to 22). - **At `b1b2b970`** (review `5331850219`, "Needs a closer look", no findings). Its summary asks to tighten the `ValidationResult` evidence against mixed diagnostics. Measured true (plant 24), and `387b9e9` reads both ends of the elided result (comment `5859499888`). - **At `387b9e98`** (review `5331903928`, "Changes recommended", one finding). Thread `4116820877`: the elided middle of the result went unread. Its own example was already refused, but `9e703a7` shows each result whole and matches it exactly (reply `4116865399`). The summary also names a plugin-isolation finding, with no thread. `9e703a7` takes it as the child's plugins and turns autoloading off there (plant 26; comment `5859623294`). - **At `9e703a78`** (review `5331980053`, "Needs a closer look", no findings). Its summary: the validator rejects the required terminal state, zero entries. Measured true: with the emptied list in place, every run stopped at conftest import (exit 4). `4f579f8` lets it load and report that nothing is left out, and rebases the check module's rule cases on a sample (comment `5859742399`). - **At `4f579f82`** (review `5332073424`, "Needs a closer look", no findings). Its summary names `only: null`. Measured true: an optional key given as null loaded as if absent. `576b371` refuses it and makes the sweep fail on any malformed declaration that loads (comment `5859835940`). The summary also asks for a person's review, which is the holder's once this PR is READY. - **At `576b3710`** (review `5332119770`, "Needs a closer look", no findings). Its summary names malformed `doc_health` module names. Measured true. `'doc_health..x'`, `'doc_health.x.'` and the like were taken as `doc_health`, and so was any module inside it, which a lone checkout never names (plants 29 and 30). `7000db6` takes only the form the interpreter gives when `doc_health` is absent (comment `5860399243`). - **At `7000db6d`** (review `5332409910`, "Needs a closer look", no findings). Its summary says the runner-seam tests exercise patched functions instead of the production call path. Measured true: with both ports made to skip the seam, the file still gave 3 passed and the whole suite 868 passed. `5b0e1c3` drives the two ports a CLI verb declares with no runner injected, and each then fails under its bypass (plants 31 and 32; comment `5860511479`). - Every thread on the pull request is answered with its runs and closed as done. ## The repository's own check `validate.yml` is unchanged, since T043 owns it. Its `pytest` step names 16 files under `--noconftest`. So the root conftest never loads there, and the new tests are not in its list. From T043 on, the required check is a conftest-loaded run of the whole suite, which is where they run. At this head (`5b0e1c3`), at T040's pin (`2d116415`): ``` $ python -m pytest -q --junitxml=pytest-report.xml <the 16 files> --noconftest 558 passed, 6 skipped triple: selected=564 passed=558 skipped=6 failures=0 errors=0 ``` That is #29's triple, unchanged. F9.1 whole, with its two `validate.yml` assertions, is T043's to quote. ## Landing - #29 has landed. This PR is based on `main`, and the falsifier and the whole suite were re-run at T040's pin. The pin moved no entry: the 233 red results are the same as at the scratch merge, and each is taken by the same reason. - #29 landed as a squash, so this branch still carries #29's ten original commits. They add nothing to the diff, since the merge of `main` makes `d84b5048` the merge base. A squash landing keeps them out of `main`'s history. - #31 (T042) is stacked on this branch. Retarget #31 to `main` before this branch is deleted, since deleting a stacked pull request's base branch closes it. - Squash or merge, never rebase. Each commit carries both trailers, and so does this body. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… stacked on #30, and the 31-entry tree needs a ruling (#31) Plan 034, task **T042** (9.3: `tests/integration/`), slice P1-J. The plan is `specs/034-opendox-standalone-operation/tasks.md` at opensoft/openxFactory `main` `7af30fc5`. T042's entry was re-read there before READY and is unchanged. This PR realizes box **9.3** of the ratified `add-neutral-product-standalone-operability`. One part of it, the 31-entry tree, is left out of the required check until T008, as ruled (next section). - **Base:** `main`. T040 (#29) landed as `d84b5048` and T041 (#30) as `5fbd188e`. `main` is merged in at `44902aec`, with no force-push. This PR's diff to `main` is five files: `.github/workflows/validate.yml` and the four under `tests/integration/`. - **Ruled:** - R1Q5 (a) and R1Q6 (d): openxFactory#656 comment `5817152735`; - the 31-entry tree left out until T008: openxFactory#656 comment `5859927858`. - **Claim:** openxFactory#656 comment `5859626652`. - **Drafted ahead** on the holder's brief, under Brett's speed-up ruling `5857365170` ("Draft ahead in phase 1"). ## RULED: the 31-entry tree leaves the required check until T008 `tests/integration/test_assembled_surface.py::test_the_assembled_help_tree_is_the_31_entry_tree_the_manifest_records` cannot pass in a lone openXdox-code checkout. Twenty of the tree's entries come from `openxdox.cli_gate`, and `cli_gate.py:47` → `gate_console.py:63` runs `from doc_health import corpus` at module level. Measured at openDox-code `2d116415`: `ModuleNotFoundError: No module named 'doc_health'`. For measurement only, with openxFactory `d90df42d`'s `scripts/` on the child's `PYTHONPATH`, the same test body passes: 31 entry points in the golden's order, and text byte-identical to `tests/ideation-dashboard/fixtures/cli-help-tree.golden.txt` (sha256 `9cbeca99…`). **RULED** openxFactory#656 comment `5859927858` (Brett Heap, 2026-09-27, verbatim choice: "(b) Exclude it until T008's arc (Recommended)"): "The test leaves T042's integration step, with its stated reason: cli_gate imports openxFactory's doc_health at load time, which is R1Q6 (d)'s kind of exclusion. It runs again once the doc_health direction arc (T008) lands. F9.2 is unchanged." Applied in `4960b5a5`: - **Left out, not skipped.** `validate.yml`'s `integration (9.3)` step deselects the test, so no report counts it and the exact skip pin is untouched. CI shows `1 deselected`. - **With its stated reason.** The step prints the exclusion, with its reason and the ruling, as an open-extraction `::notice::` on the run's page. - **Held to that reason.** `test_the_help_tree_is_left_out_only_while_its_stated_reason_holds` runs in the step. It builds the same child and passes only while the child fails exactly as the reason says: `doc_health` not found, on the way in through `openxdox/cli_gate.py`. Once the arc lands and the child builds, it fails and names the deselect to remove. The pull request that clears the reason then takes the exclusion out, and that test with it. - **F9.2 is unchanged.** It still runs the test by name, and stays red on it until T008. - **T041's declared exclusion cannot carry it.** That exclusion lists `tests/test_*.py` files alone, so the workflow says that T043's whole-suite step leaves this test out the same way. ## What this PR adds - **`tests/integration/declared_composition.py`**: the composition, read rather than assumed, and the directory's three rules. - It reads the one full-commit `opendox @` pin that `pyproject.toml` declares, and the commit the installed `opendox` records (PEP 610), through `tests/opendox_bundle.py`'s `declared_pin()` and `installed_commit()`, reused rather than copied. - The `composition` fixture **fails**, never skips, where the two differ or either is unreadable. It records the pin once on the JUnit report as the test-suite property `composes_at`. - `assembled_web` copies the pinned openDox's `web/` and places this column's ten assets with `web_assets.install_view_modules(overwrite=False)`. - There is no `conftest.py` here. A rootless one would take the flat `conftest` slot from `tests/conftest.py` for every module collected after `integration/` (`tests/hermeticity.py::claim_conftest_slot`). - **`tests/integration/test_assembled_bundle.py`**: T037's two cases (see the next section), the assembled-bundle token scan, and a case that holds the carried 54-class tuple to `view_extensions.STYLE_RESIDUE["exclusive_classes"]`. The scan looks for each placed sheet at `views/<name>`, where the assembly writes it. - **`tests/integration/test_declared_composition.py`**: the directory held to its rules. - **Rule 1** is read from pytest's own collection of the directory. A child interpreter collects it with this run's `python_files` / `python_classes` / `python_functions`, the conftest chain off, `PYTHONPATH`, `PYTEST_ADDOPTS` and `PYTEST_PLUGINS` scrubbed, and plugin autoloading off. Every item it reports must have `composition` handed to it as an argument of its own. And every collected file must be one that F9.2's `ls tests/integration/test_*.py` lists. - **Rule 2** refuses every skip and xfail name, from pytest and unittest alike: as an attribute through any alias, as an imported name, and as a string, constant string expressions folded first. Any skip or xfail mark pytest finds on a collected item, however it was spelled, is refused too. - **Rule 3**: no `conftest.py` here or below. - **F9.2's first block** runs as a test. - **`tests/integration/test_assembled_surface.py`**: the 31-entry tree, and the test that holds its exclusion to its reason. - A fresh interpreter registers a stand-in host carrying exactly `cli_gate.GateSubcommands()`, as openxFactory's `profile_openxfactory.SUBCOMMAND_EXTENSIONS` does, and then builds openDox's parser. The child gets this process's environment less `PYTHONPATH`. - The tree must have the golden's 31 entry points, in order. It stays at 31 because a host's own profile does not get the default's runtime verbs (R1Q5 (a)). - Its text must hash to the golden's sha256. The golden itself stays in openxFactory, as a `not_moved` row. - **`.github/workflows/validate.yml`**: - It adds a step, `integration (9.3)`, which runs the directory with the conftest chain in play, as F9.2 runs each file. It never runs a list of files. It leaves out the one ruled test, as above. - `Pin the triple` sums `integration-report.xml` with `pytest-report.xml`, and refuses a report that did not appear rather than summing around it. That is openDox-code's shape before its T036. - The triple's own account of what it collects names both reports. - **The floors are raised to CI's own reading** (`412ce90a`): `MIN_SELECTED` 564 → 574 and `MIN_PASSED` 558 → 568. A RAISED BY paragraph cites run 36355557215, which read `4ae1c5c4` at 574/568/6. The +10 is the ten tests the step runs. `EXPECT_SKIPPED` stays 6, and the `--noconftest` count stays 8. - **`tests/test_declared_exclusion.py`**: this PR's recursive glob in T041's whole-suite collection check was taken into #30 byte for byte (`2769e8b`). It is on `main`, so this PR no longer changes that file. ## What arrived here, and from where - **T035 (openDox-code#51): nothing.** That PR moved no whole module. Of its fifteen cases, thirteen went to openxFactory as named composition tests (T047), and two went to T041's exclusion (`tests/test_hermeticity_gate_verbs.py`). So T042's second bullet is an empty list. - **T037 (openDox-code#55): two cases, which the holder assigned to T042.** Their names are unchanged, for T049: - `test_the_gate_exclusive_set_is_re_derived_where_the_modules_are_present`; - `test_a_partial_assembly_is_a_failure_and_not_a_skip`, with its helper `_assembled_views()`; - and the scan of an ASSEMBLED bundle's `views/**/*.css`, as `test_no_sheet_in_the_assembled_bundle_declares_a_design_token`. The helpers and the `GATE_EXCLUSIVE` tuple are openDox-code's text at `55194335`, byte for byte. Four things changed on arrival, each because this is the composition: 1. a missing assembly **fails**, where it skipped; 2. the bundle is `assembled_web`; 3. the six names are `web_assets.VIEW_MODULE_NAMES`; 4. every test takes `composition`. ## The falsifier: F9.2, unchanged Verbatim from #1144's `tasks.md`: ``` set -euo pipefail W=$(mktemp -d) # scratch space, resolved at run time (never a host path) python -m venv --clear "$W/v9i" # a FRESH environment: nothing already installed stands in . "$W/v9i/bin/activate" pip install ".[test]" # openDox arrives at the pin pyproject.toml declares python3 - <<'PY' import importlib.metadata as md, json, pathlib, re, tomllib deps = tomllib.loads(pathlib.Path("pyproject.toml").read_text())["project"]["dependencies"] pins = [d for d in deps if re.match(r"opendox\s*@", d)] assert len(pins) == 1 and re.search(r"@[0-9a-f]{40}$", pins[0]), f"the composition names no full-commit pin: {pins}" got = json.loads(md.distribution("opendox").read_text("direct_url.json") or "{}").get("vcs_info", {}).get("commit_id") assert got == pins[0].rsplit("@", 1)[1], f"the installed openDox is {got!r}, not the pinned commit" PY ls tests/integration/test_*.py > "$W/integration.txt" # a DECLARED integration suite exists while read -r f; do python -m pytest -q "$f"; done < "$W/integration.txt" python -m pytest -q "tests/integration/test_assembled_surface.py::test_the_assembled_help_tree_is_the_31_entry_tree_the_manifest_records" ``` **As ruled, it stays red on the 31-entry tree until T008, and on nothing else.** It was run at the final head `44902aec`, in a lone checkout with no `PYTHONPATH`. F9.2's fresh venv records opendox `commit_id` `2d116415`. - The install and the pin block pass. - `test_assembled_bundle.py`: `4 passed`. - `test_assembled_surface.py`: `1 failed, 1 passed`. The failure is the tree, `ModuleNotFoundError: No module named 'doc_health'`, and `set -e` stops F9.2 there (exit 1). - `test_declared_composition.py`, run by hand with F9.2's per-file command in F9.2's own venv: `5 passed`. ## The repository's own checks, at `44902aec` - **CI is green.** `validate` run 36356924785 installs openDox-code `2d116415`: - named list: `558 passed, 6 skipped`; - `integration (9.3)`: `10 passed, 1 deselected`; - `Pin the triple`: `selected=574 passed=568 skipped=6 failures=0 errors=0`, margin 0 at the raised floors. So CI's own green run at the final head re-derives the floors it carries. SonarCloud passes. - **The same three steps, run locally from `validate.yml`'s text,** give the same numbers. - **The whole suite with the conftest chain,** which T043's required check becomes: `1 failed, 880 passed, 10 skipped`. That is `main`'s 870 passed plus this directory's ten. The one failure is the tree, which T043's step must leave out the same way. ## Copilot's reviews Every thread is answered with evidence and resolved: 8 threads, 0 open. The review at the final head `44902aec` has no findings. - **At `cc3c0dce`:** - rule 3 was unchecked, and alias loopholes remained. Fixed in `35fba49`: before, 0 of 9 plants were caught, and after, 12 of 12; - two findings that the step could not pass while the tree needs `doc_health`. They were answered by the ruling, applied in `4960b5a5`. - **At `f5efc756`:** - the sheet check matched by basename. Fixed in `bd34a141`; - the floors did not pin the integration count. Fixed in `412ce90a`, from CI's own run. - **At `4960b5a5`:** a sentence in the surface docstring did not parse. Fixed in `5c0bc006`. - **At `4ae1c5c4` and `2d1340f8`:** - rule 1 missed tests collected by routes a source reading misses. Fixed in `5a8767c3`: before, 2 of 6 plants were caught, and after, 6 of 6; - rule 2 missed constant string expressions. Fixed in `90cd3ad1`. Of 6 plants, 5 are caught by the rule, and the sixth, a name computed from values that are not constants, is refused by `Pin the triple` (`skipped 7, pinned exactly 6`); - the collection child inherited plugins. Fixed in `90cd3ad1`. ## Planted mutations and probes Each plant is one change to a scratch copy, run against its targets alone. A control run passes first, and every failure was read. - **18 plants on the cases**, all caught. - **12 loophole probes on rules 2 and 3**, all caught. - **6 collection probes on rule 1**, all caught. - **6 obfuscation probes on rule 2:** 5 caught by the rule. All 6 are refused by the pinned triple. - **3 plants on the exclusion's guard**, all caught: - `doc_health` made importable (T008 simulated); - `doc_health` needing another missing module; - `doc_health` reached before `cli_gate`. - **1 plant on the sheet check**, caught. - **2 probes on the raised floors:** one integration test lost is refused at 573/567, and the integration report missing is refused. ## For other tasks - **T047 / P1-K.** The four files here are CREATED files: `tests/integration/declared_composition.py`, `test_assembled_bundle.py`, `test_assembled_surface.py` and `test_declared_composition.py`. Each needs a `created:` entry under `openxdox_code` in openxFactory's `docs/opendox-carve-admissions.yaml`, with `since:` this PR's landing commit. - **T043.** Fold `integration (9.3)` into the whole-suite step, and read one report again. The whole-suite step must leave the tree out the same way, with `--deselect` and its notice, because T041's exclusion cannot name it. The floors are 574/568 after this PR, so T043's entry text ("now 564/558") is stale on that point. The `--noconftest` count is still 8. - **T008.** The pull request that makes `cli_gate` importable in a lone checkout takes the deselect out of the required check, and the guard test with it. The guard fails until it does. - **T049.** T037's two cases are here under their own names. T035 sent nothing here. ## Landing - Every dependency has landed, CI is green at `44902aec`, and no Copilot thread is open. The holder's lander merges. - The branch still carries #29's and #30's pre-squash commits, merged in while this PR was stacked, which is 52 commits over `main`. A squash landing keeps `main` to one commit for T042, with this body. Never rebase. Each commit carries both trailers, and so does this body. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…he declared exclusion (#32) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Arc: neutral-product-standalone-operability **On `main`.** #30 (T041) landed as `5fbd188e`, and #31 (T042) as `4e16db95` at 23:11:08Z. This PR was retargeted to `main` straight after, while #31's branch still existed, and `7a3e4882` merges `main` in, with no force-push and no rebase. Plan 034 task **T043** (openxFactory `specs/034-opendox-standalone-operation/tasks.md`, read at openxFactory `main` `7af30fc5`), slice P1-J, box 9.2: **the required check runs the whole suite, less the declared exclusion.** Claimed on openxFactory#656, comment `5860269897`. It is re-verified at the final head (§ "Checks on this PR"): CI's triple and the whole-suite triage, each as before. Brett ruled its one open question (b), openxFactory#656 comment `5870594693`. F9.1's pytest line takes one `--deselect` for the help-tree test, and F9.1 so amended passes here (§ "The falsifier"). Ruled: R1Q6 (d), R1Q7 (a), R1Q22 (a), openxFactory#656 comment `5817152735`; R1Q24 (a), R1Q25 (b), comment `5850003126`; F9.1's pytest line, comment `5870594693` (§ "Ruled: F9.1 and the left-out help-tree test"). After: T019, T041, T042, T007 batches C (#1172) and F (#1178); both batches have landed. T061 stays in phase 2, so `tests/test_snapshot.py` keeps its `consumer-schemas` entry. ## What changes 1. **`.github/workflows/validate.yml`** (`0b506a92`). - The `pytest` step loses its sixteen-file list and pytest's no-conftest flag. It runs `python -m pytest -q --junitxml=pytest-report.xml` with the conftest chain in play and no path. pytest takes `testpaths = ["tests"]`, so `tests/` is collected whole, `tests/integration/` included. The root `conftest.py` (T041) leaves out `tests/declared_exclusion.yaml`'s 66 files and prints them as an open extraction. - All eight lines that named the flag are gone, comments included, because F9.1 counts them with `grep -c`. The long per-file account of the old list is replaced by a pointer to its history (`git show d84b504:.github/workflows/validate.yml`). That replacement also removes the stale `5c137a90` line at `:198`. - T042's `integration (9.3)` step folds into the whole-suite step, since the whole suite collects `tests/integration/` itself. The exclusion that step carried comes with it unchanged: the `LEFT_OUT` deselect and the `::notice::` line for RULED openxFactory#656 comment `5859927858` (the 31-entry help-tree test, out with its stated reason until T008). The guard test beside that test, and its module docstring, now name the whole-suite step (`tests/integration/test_assembled_surface.py`, three wording edits). - The triple reads one report again. Its comment names every skip it pins (§ "The triple"). - **The floors were not moved in this commit.** Its CI runs printed the numbers against the old pins and failed on the exact skip pin, as #25's rule has it ("the first commit of that pull request having printed them before this step pinned them"). `b1d127c0` then pinned what CI printed (§ "The triple"). 2. **The stale present-tense `5c137a90` pin claims** (`69646675`), in `src/openxdox/view_extensions.py`, `tests/test_dependency_direction.py` and `tests/test_gate_loop_probes.py:197`. Each is respelled to what it says at `2d116415`, measured there (§ "The sweeps"). The protected `tests/test_gate_loop_views.py` is left alone. 3. **The docstrings T043's own change made untrue** (`01fbbd98`). Six places said in the present tense that `validate` names a file or runs it with the conftest chain off: `tests/test_corpus_shape.py`, `tests/test_domain_corpus_adapter.py`, `tests/test_domain_profile.py`, `tests/test_dependency_direction.py`, `tests/test_gate_loop_probes.py` and `tests/opendox_bundle.py`. 4. **The re-pin** (`b1d127c0`): `MIN_SELECTED` 574 -> 890, `MIN_PASSED` 568 -> 880, `EXPECT_SKIPPED` 6 -> 10, from CI's own run, with a RE-PINNED BY paragraph (§ "The triple"). 5. **Two wording fixes from Copilot's rounds.** - `799a4950` names the one deselected test beside the exclusion wherever the check's scope is stated: `tests/test_dependency_direction.py`'s module docstring and `validate.yml`'s header (thread `4117373483`). - `b944104a` respells `tests/test_gate_loop_probes.py`'s call-site note, which said "`validate.yml`'s record block carries the total, 43". That block is gone since T043, so the note says it carried the total until then, and names `git show d84b504:.github/workflows/validate.yml`. The same note's "at THIS head" now names the head it meant, #21's: squashed as `2529c10`, its diff adds 37 tests there and 6 in the views file. 6. **Merges, never a rebase or force-push.** - `33937b4a` merges `main` (#29's landing, `d84b5048`), bringing only `pyproject.toml`'s pin, `5c137a90` -> `2d116415`. #31 then carried that line too. - `9a67bafb`, `4e1def2d`, `890a4809` and `88cd8d4c` merge #31 at `bd34a141`, `412ce90a`, `2d1340f8` and `44902aec`. - `4e1def2d` had one conflict, in `validate.yml`. It keeps T043's rewrite and carries #31's two changes into it: its floors, `574/568`, and its RAISED BY paragraph. - `7a3e4882` merges `main` at `4e16db95`, #31's squash. That squash's tree is `44902aec`'s (`32a04bd1`), which `88cd8d4c` had already merged, so the merged tree is this branch's own (`eb9c2396`). Its two conflicts, `validate.yml` and `tests/integration/test_assembled_surface.py`, are T043's edits of #31's lines, and both resolve to this branch's side. Against `main`, this PR changes nine files. Commits 2, 3 and 5 change only comments and docstrings. Each touched file's AST, with docstrings masked, is unchanged (checked with `ast.dump`). No protected suite is edited (the 16 of 12.5's `git grep` and the 7 of 5.4a's glob). So no respelling needs R1Q7 (a)'s allow-list, and this PR does not create `tests/protected_suite_respellings.yaml`. ## The falsifier: F9.1 (openXdox-code), as T007's batches B and F amend it, and as RULED `5870594693` amends its pytest line Quoted from #1144's `tasks.md` at openxFactory `8421603a` (`sha256 ec2acf0c…`), with the ruling's one `--deselect` added to the ratified pytest line. The amendment itself is T007's: a bookkeeping PR that another writer is authoring, which lands through a Rule 6 window. This block is the text as run (`sha256 06921b49…`): ```sh set -euo pipefail W=$(mktemp -d) # scratch space, resolved at run time (never a host path) python -m venv --clear "$W/v9" # a FRESH environment: nothing already installed stands in . "$W/v9/bin/activate" pip install ".[test]" python -m pytest -q --deselect tests/integration/test_assembled_surface.py::test_the_assembled_help_tree_is_the_31_entry_tree_the_manifest_records # NOT --noconftest, NOT a file list test "$(grep -c -- --noconftest .github/workflows/validate.yml)" -eq 0 # AND no pytest step enumerates a subset: a named file list with no # --noconftest would otherwise pass the assertion above. python - <<'EOF' import re, sys, pathlib w = pathlib.Path(".github/workflows/validate.yml").read_text() body = "\n".join(l.split("#")[0] for l in w.split("\n")) named = set(re.findall(r'tests(?:_runtime)?/test_[A-Za-z0-9_]+\.py', body)) sys.exit(0 if not named else (print("FAIL: workflow still enumerates", len(named), "test files"), 1)[1]) EOF ``` The one line it changes, against #1144's ratified text: ```diff -python -m pytest -q # NOT --noconftest, NOT a file list +python -m pytest -q --deselect tests/integration/test_assembled_surface.py::test_the_assembled_help_tree_is_the_31_entry_tree_the_manifest_records # NOT --noconftest, NOT a file list ``` - **Batch B** (R1Q6 (d), `5817152735`; recorded in plan 034 § "Ruled amendments", not yet in #1144, since it lands once T041 names its file): `python -m pytest -q` collects the whole suite less the files in T041's declared exclusion file. The falsifier asserts three things: the file's count equals its entries, every entry carries its reason, and the run prints the exclusion as an open extraction. The two `validate.yml` assertions stay. - **Batch F** (R1Q24 (a), R1Q25 (b), `5850003126`; landed as #1178): the exclusion takes three more reasons, the rail, openxFactory's contracts, and the consumer's schemas for `tests/test_snapshot.py` alone. Every entry is reported as an open extraction. **Run as amended at `7a3e4882`, the final head**, from this checkout, in a fresh venv: **exit 0**. `pip install ".[test]"` gave openDox `commit_id 2d116415159b721b55613fe20a159afc46202d1f` (read from `direct_url.json`). Python 3.12.3, pytest 8.4.2. | line | result | |---|---| | `python -m pytest -q --deselect` the help-tree test | **PASS: `880 passed, 10 skipped, 1 deselected`**, the reading of the required check's own step (CI run `36357895876` at `7a3e4882`) | | batch B: the run prints the exclusion | yes: `open extraction: the declared exclusion`, `declared exclusion: 66 files, listed in tests/declared_exclusion.yaml and left out of this run`, the four reasons with their rulings, and 66 `excluded` lines | | batch B: count equals entries; every entry carries its reason | the root conftest refuses to load otherwise, and `tests/test_declared_exclusion.py` asserts both inside this run (`test_the_count_equals_the_entries`, `test_every_entry_carries_its_reason`), both passed | | `test "$(grep -c -- --noconftest …)" -eq 0` | **PASS**, `grep -c` prints `0` | | no pytest step names a test file | **PASS**, exit 0 | **Unamended**, the ratified pytest line exits 1 on that one test alone: `1 failed, 880 passed, 10 skipped`. The failure is `ModuleNotFoundError: No module named 'doc_health'`, through `openxdox/cli_gate.py`, measured at `7a3e4882` and at `b1d127c0`. That is the question the ruling answers (§ "Ruled"). **So F9.1 as amended passes at this head.** The required check and F9.1 now leave out the same one test, each by its own `--deselect`, and T008 removes both. ## Ruled: F9.1 and the left-out help-tree test RULED `5859927858` left the help-tree test out of T042's step until T008, with its stated reason, "which is R1Q6 (d)'s kind of exclusion", and said "F9.2 is unchanged". It said nothing of F9.1. The required check carries that exclusion as a workflow `--deselect`, because T041's declaration lists whole `tests/test_*.py` files directly in `tests/`. F9.1's bare `python -m pytest -q` never sees a workflow flag, so its pytest line exited 1 on that one test. This PR put three ways to settle it: (a) the declaration carries the one test; (b) T007 amends F9.1's pytest line to deselect it; (c) F9.1 stays red on it until T008. **RULED (b)**, openxFactory#656 comment `5870594693` (Brett Heap, 2026-09-28, verbatim choice: "(b) Amend F9.1 to deselect it (Recommended)"): - "A small T007 bookkeeping amendment adds one --deselect to F9.1's pytest line for tests/integration/test_assembled_surface.py::test_the_assembled_help_tree_is_the_31_entry_tree_the_manifest_records." - "It cites 5859927858 and this comment." "It lands through a Rule 6 window." - "T008 removes it together with the workflow deselect." So this PR changes no code for it. The step's `LEFT_OUT` stays, and T041's declaration stays file-only, as T041 landed it. Copilot's thread on it (`4117316098`) is answered with the ruling in `4122573866`, and resolved. ## The whole suite at T040's pin, every red file with its class T043 first runs openXdox-code's whole suite at T040's pin, as T005 did at `e28930bf`. Each `tests/test_*.py` file is named on the command line, so the declaration hides nothing (pytest collects a file named there whatever `collect_ignore` says), and `tests/integration` is named too. The conftest chain is in play, with `--continue-on-collection-errors`. At `7a3e4882`, the final head, openDox `2d116415`: **`107 failed, 1249 passed, 10 skipped, 127 errors`**, which is **234 red results in 67 files**. The table is the same one `b1d127c0` gave. The same run at `9a67bafb`, before T043's own commits, gave the same 234 in the same 67 files, with the same classes, and 1242 passed. The classifier is T005's persisted `classify_whole_suite.py` (`sha256 3a76945d…`), with one rule added for this pin. At T027's seam (openDox-code#41), the rail's reach now fails closed as `StatusExemptionNotRegistered`, not as a missing module, so class H also takes that refusal (the extended tool's `sha256 0721b897…`): ```diff + if "StatusExemptionNotRegistered" in txt or "the status-exemption rail cannot answer it" in txt: + return "H" # T043: the rail's refusal at openDox's seam (plan 034 T027), which replaced the module reach if "rfc3339-validator" in txt: ``` | class | cause | red | files | |---|---|---|---| | A | `doc_health` | 70 | 60 (59 declared, and the ruled-out help-tree test) | | H | openxFactory's status-exemption rail, refused at openDox's seam | 87 | 3 | | I | the contract family, read outside the checkout | 75 | 5 | | J | the consumer's schemas (7.3) | 2 | 1 (`tests/test_snapshot.py`) | | B–G, M | carve residue, `rfc3339-validator` | **0** | — | | ? | unclassified | **0** | — | - **No carve residue is left at this pin.** Classes B to G and M are empty, so T043 clears none. - The layer T005 found behind `tests/test_snapshot_validation_launch.py`'s fixture, `ProfileNotRegistered`, is gone at the pin, because T016 registers the default. Its 9 cases now fail on `doc_health` (no `ProfileNotRegistered` in any message), and the file is a `doc_health` entry. - **Every red file's classes equal its declared reasons exactly.** The two-reason entries are `tests/test_doxbench_packet.py` (A 3, H 54) and `tests/test_doxbench_blank_reason.py` (A 1, I 1). No declared file is green, and the one red file that is not an entry is the help-tree test, which the ruling handles. <details><summary>All 67 red files, each with its class and its declared reasons</summary> | file | red results, by class | declared reasons | |---|---|---| | `tests/integration/test_assembled_surface.py` | A `doc_health` (1) | not an entry: RULED 5859927858 leaves it out (`LEFT_OUT`) | | `tests/test_authoring_agent.py` | A `doc_health` (1) | doc_health | | `tests/test_branch_session.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_canvas.py` | A `doc_health` (1) | doc_health | | `tests/test_completeness.py` | A `doc_health` (1) | doc_health | | `tests/test_create_document_cli.py` | A `doc_health` (1) | doc_health | | `tests/test_create_project.py` | A `doc_health` (1) | doc_health | | `tests/test_doxbench_abstract_envelope.py` | H the rail (1) | status-exemption-rail | | `tests/test_doxbench_abstract_route.py` | A `doc_health` (1) | doc_health | | `tests/test_doxbench_blank_reason.py` | A `doc_health` (1), I the contracts (1) | doc_health, openxfactory-contracts | | `tests/test_doxbench_knowledge_service.py` | A `doc_health` (1) | doc_health | | `tests/test_doxbench_mutation_boundary.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_doxbench_packet.py` | A `doc_health` (3), H the rail (54) | doc_health, status-exemption-rail | | `tests/test_doxbench_request_handling.py` | A `doc_health` (1) | doc_health | | `tests/test_doxbench_save.py` | A `doc_health` (1) | doc_health | | `tests/test_doxbench_scope.py` | A `doc_health` (1) | doc_health | | `tests/test_doxbench_share.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_doxbench_thread_wiring.py` | A `doc_health` (1) | doc_health | | `tests/test_doxbench_threads.py` | A `doc_health` (1) | doc_health | | `tests/test_doxbench_transport.py` | A `doc_health` (1) | doc_health | | `tests/test_doxbench_turns.py` | H the rail (32) | status-exemption-rail | | `tests/test_doxchat_model_intake.py` | A `doc_health` (1) | doc_health | | `tests/test_edit_action.py` | A `doc_health` (1) | doc_health | | `tests/test_edit_project.py` | A `doc_health` (1) | doc_health | | `tests/test_explorer_viewer.py` | A `doc_health` (1) | doc_health | | `tests/test_gate_console.py` | A `doc_health` (1) | doc_health | | `tests/test_gate_failure_diagnostics.py` | A `doc_health` (1) | doc_health | | `tests/test_gateway_provenance.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_generated_at_anchor.py` | A `doc_health` (1) | doc_health | | `tests/test_generator.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_grouping.py` | A `doc_health` (1) | doc_health | | `tests/test_header_value_readers.py` | A `doc_health` (1) | doc_health | | `tests/test_hermeticity_gate_verbs.py` | A `doc_health` (1) | doc_health | | `tests/test_hosted_actor.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_kickoff.py` | A `doc_health` (1) | doc_health | | `tests/test_notebook_action.py` | A `doc_health` (1) | doc_health | | `tests/test_project_action_contracts.py` | I the contracts (11) | openxfactory-contracts | | `tests/test_project_aggregates.py` | A `doc_health` (1) | doc_health | | `tests/test_project_schema_election.py` | I the contracts (13) | openxfactory-contracts | | `tests/test_readiness_gate.py` | A `doc_health` (1) | doc_health | | `tests/test_register_edit_lane.py` | A `doc_health` (1) | doc_health | | `tests/test_renderer.py` | A `doc_health` (1) | doc_health | | `tests/test_repo_root_guard.py` | A `doc_health` (1) | doc_health | | `tests/test_repo_selector.py` | A `doc_health` (1) | doc_health | | `tests/test_round_trip.py` | A `doc_health` (1) | doc_health | | `tests/test_session_commits.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_session_confinement.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_session_document_ownership.py` | A `doc_health` (1) | doc_health | | `tests/test_session_gates.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_session_lifecycle.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_session_notebook.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_session_records.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_session_runbook.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_session_snapshot.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_session_transaction.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_session_verbs.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_snapshot.py` (protected) | J the consumer's schemas (2) | consumer-schemas | | `tests/test_snapshot_determinism.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_snapshot_registry.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_snapshot_validation_launch.py` (protected) | A `doc_health` (9) | doc_health | | `tests/test_source_dot_directories.py` | A `doc_health` (1) | doc_health | | `tests/test_staging_workbench.py` (protected) | A `doc_health` (1) | doc_health | | `tests/test_trust_gaps.py` | A `doc_health` (1) | doc_health | | `tests/test_validate_ideation_dashboard_contracts.py` | I the contracts (32) | openxfactory-contracts | | `tests/test_wheel_action_contracts.py` | I the contracts (18) | openxfactory-contracts | | `tests/test_wheel_model.py` | A `doc_health` (1) | doc_health | | `tests/test_wheel_verbs_cli.py` | A `doc_health` (1) | doc_health | 67 red files. </details> **The protected suites** (12.5's 16 and 5.4a's 7): 21 are red, each only for a declared reason. 20 are `doc_health`, and `tests/test_snapshot.py` is `consumer-schemas`. 2 are green: `tests/test_gate_loop_views.py` (74 passed) and `tests/test_snapshot_validator_home.py` (12 passed). No protected suite is red for a cause no bucket takes, so nothing stops this task, and none needs a respelling. **T041's layer 2, re-run at the pin** (the holder's decision on T041's landing). `tests/test_declared_exclusion.py` with `tests/test_hermeticity_runner_seams.py` gives 212 passed. `tests/test_hermeticity_gate_verbs.py` alone stops at collection on `No module named 'doc_health'`, its declared reason. The same file, with openxFactory's `scripts/` at `7af30fc5` on `PYTHONPATH` (R1Q23 (a)'s composition), gives 2 passed. ## The whole-suite step, as `validate.yml` runs it CI's own run `36357895876` at `7a3e4882`, the final head, is green. It measured `refs/pull/32/merge` over `main` `4e16db95`, with openDox-code `2d116415`. The `pytest` step gives **`880 passed, 10 skipped, 1 deselected`**, and `Pin the triple` reads `selected=890 passed=880 skipped=10 failures=0 errors=0`, at margin 0. A local run of the same step at the same head gives the same triple. It collects 27 files: - the sixteen the list named, still 564 tests between them (the old floor exactly: 558 passed, 6 skipped); - eight more under `tests/`, 316 tests: `test_declared_exclusion.py` (207), `test_doxbench_bridge.py` (60), `test_validator_schema_home.py` (12), `test_snapshot_validator_home.py` (12), `test_register.py` (10), `test_scope_column_split.py` (6), `test_hermeticity_runner_seams.py` (5) and `test_aggregation_register_instance.py` (4, all skipped); - `tests/integration/`, 10 tests: 4 + 5, plus the guard test in `test_assembled_surface.py`, with the help-tree test deselected. `tests/test_validator_schema_home.py` runs its 12 cases now that T040 declares `rfc3339-validator`, and all 12 pass, so it adds no skip. ## The triple **Re-pinned in `b1d127c0` from CI's own reading** (#25's rule: the numbers are CI's own, printed before they are pinned). - Run `36356408029` measured `890a4809`, the head before the re-pin, at `selected=890 passed=880 skipped=10 failures=0 errors=0`. It was refused only by the exact skip pin (`##[error]skipped 10, pinned exactly 6 …`). The pytest step passed. - The pins moved: `MIN_SELECTED` 574 -> 890, `MIN_PASSED` 568 -> 880, `EXPECT_SKIPPED` 6 -> 10. 574/568 were #31's floors, which this branch took in with its base, and floors only rise. The margin is zero, as #25 set it, and restoring it is T044's (9.4). - The pin step, run from the file over reports shaped as CI writes them: the measured report passes; one test fewer is refused at 889/879; one more skip is refused (`skipped 11, pinned exactly 10`); a missing report is refused. The ten skips, all named in the workflow comment: - **six**, the three seam suites' `doc_health` pairs, two each in `test_evidence_provenance_surface_seam.py`, `test_model_scenario_workbench_seam.py` and `test_role_authority_projection_seam.py` ("doc_health reachability is BUILD-arc work (§ 3.5/3.6) ... this test will assert for real once that lands"); - **four**, all of `test_aggregation_register_instance.py` ("aggregation checkout (seed register + pinned validator) not reachable"), which the list never ran. ## The sweeps (`69646675`, `01fbbd98`, `799a4950`, `b944104a`), each measured at `2d116415` - **`src/openxdox/view_extensions.py`**: the pin names `2d116415`, where `view_extension` imports and `ViewBinding` takes `exports`. `ViewBinding`'s fields, read from each commit's own source, lack `styles` at `0b4e8bbf` and carry it at `5c137a90` and `2d116415`. At `2d116415`, `specs_for()` drops nothing: six bindings materialize, five carry sheets, and the four distinct sheets are live. - **`tests/test_dependency_direction.py`**: - There were four pin bumps, not three. - The census the file itself computes (its own `_modules`/`_census`) was run over openDox-code's `src/opendox` at every first-parent commit. It equals `OPENDOX_BACK_IMPORTS` at all 14 from `a99eba03` to `5c137a90`, and at all 29 from `5c137a90` to `2d116415`. - The note called the first range five landings. `git rev-list --count --first-parent a99eba03..5c137a90` gives 13 (#13 to #27), so it now says 13, and still names the five it named. - At `2d116415`, openDox-code's `NEUTRAL_MODULES` holds nine modules and `STILL_REACHING` is empty. `opendox.serve` and `opendox.cli` import in a venv holding that commit alone, with none of `openxdox`, `ideation_dashboard`, `doc_health` and `corpus_adapter_openxfactory` findable. So the paragraph that said they did not import (the reach T011, openDox-code#46, removed) is respelled. - **`tests/test_gate_loop_probes.py:197`**: the declared leg is `2d116415` now. - **`tests/test_gate_loop_probes.py:1635-1643`** (`b944104a`): the call-site note's record-block total is history now (§ "What changes", 5). The file gives 55 passed. - **The docstring sweep**: each place now says how the file ran until T043 and how it runs since. The standalone property each one states still holds, so it stays. - With these edits, the touched test files pass at `2d116415`: `test_dependency_direction.py`, `test_gate_loop_probes.py` and `test_gate_loop_views.py` give 145 passed. The docstring sweep's five test files give 312. **Left alone, for the holder:** - `tests/test_gate_loop_views.py` is protected (12.5). Its `:1046`, `:1146` and `:1166` still name `5c137a90` as today's pin, and its `:15` still places it "on `validate`'s explicit list". Respelling them needs an entry in R1Q7 (a)'s allow-list. - `tests/test_hermeticity_gate_verbs.py:27,59` (T041's file, #30) names `5c137a90` beside `71b631bc` as the openDox it was measured at, which is history. - `tests/integration/test_assembled_bundle.py:164` (T042's file, #31) says the relocated files "are collected `--noconftest` as top-level modules", which was openDox-code's state before its T036. Here they run with the chain in play. ## Checks on this PR - **validate**, each run CI's own, on `refs/pull/32/merge`: - `7a3e4882`, the final head, over `main` `4e16db95`: run `36357895876`, green. The `pytest` step gives `880 passed, 10 skipped, 1 deselected`, and `Pin the triple` reads `selected=890 passed=880 skipped=10 failures=0 errors=0`, margin 0. - The heads before it, all green with the same triple: `b944104a` (run `36357806519`), `799a4950` (`36357279997`), `88cd8d4c` (`36357038236`) and `b1d127c0` (`36356547905`). - The runs before the re-pin, `36356259272` at `4e1def2d` and `36356408029` at `890a4809`, each passed the pytest step and were refused only by the exact skip pin, which is the refusal working. - **SonarCloud**: green at `7a3e4882`, as at every head since `b1d127c0`. - **Re-verified locally at `7a3e4882`**: - The step as CI runs it gives `880 passed, 10 skipped, 1 deselected` and the triple `890/880/10/0/0`. - The whole-suite triage gives the same 234 red results in 67 files. Each file's classes equal its declared reasons, and the one undeclared file is the ruled-out help-tree test. - F9.1 as the ruling amends it: exit 0 (§ "The falsifier"). - **Copilot**: - `5332460299` at `01fbbd98` ("Changes recommended") found two things. On the stale floors: fixed in `b1d127c0`, answered in `4117343809` (the thread was already resolved). On F9.1 and the workflow-only deselect: answered with the measurement in `4117343892`, then with the ruling in `4122573866`, and resolved. - `5332487263` at `4e1def2d` repeats the F9.1 finding. The overviews `5332499740` at `890a4809` and `5332517512` at `b1d127c0` are answered in comment `5860616093`. - `5332550775` at `88cd8d4c` found a scope sentence that left out the deselected test. It is fixed in `799a4950`, answered in `4117377168`, and resolved. - `5332570488` at `799a4950` named "the workflow and probe comments". The workflow's is the F9.1 thread. The probe comment's was the record-block total, fixed in `b944104a`. Both are answered in comment `5860781990`. - `5332612906` at `b944104a` and `5332620490` at `7a3e4882`, the final head, raise nothing new. Their one open finding was the F9.1 thread, now ruled and resolved. - **Clean at `7a3e4882`**: the dependencies have landed, validate and SonarCloud are green, and every review thread is resolved. ## For T044 (9.4, openXdox's half) - The floors T044 inherits are this PR's: `890/880/10`, at zero margin. T044 re-pins at CI's own reading, as 9.4 and T044's text have it for openXdox, not in openDox-code's form three below CI's reading (the holder's direction, 2026-09-28). - The six `doc_health` skips live in three files that also hold passing tests. The seam suites have 10, 12 and 8 tests, 24 passing among them, and all 24 would leave with their files. - **A file that only skips cannot be declared as it stands.** `tests/test_declared_exclusion.py` holds each entry to failing alone for exactly its reasons, and a file that skips does not fail. So each skip must first become a real assertion (which fails on `doc_health` until T008). Then either its file joins the declaration, taking the 24 passing tests out with it, or its two cases move to a file of their own that joins it. Whichever it does, the counts drop, and T044 re-pins these floors in the same commit, as the workflow comment now says, before restoring the margin. - The four aggregation-register skips are not `doc_health` skips. 9.4 names only the six. They skip because the aggregation checkout (the seed register and its pinned validator) is not in a lone checkout. If T044 reads them as carrying the gap, the declaration has no reason that admits them, and a fifth reason needs a ruling first. Otherwise `EXPECT_SKIPPED` stays at least 4 after T044. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>





Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
What T040 says
Ruled: R1Q22 (a),
5817152735: the edited test files are carved rows, and no declared-edit act is needed. R1Q24 (a) and R1Q25 (b) (5850003126) send eight named files to the declared exclusion under T041/T043:test_doxbench_packet.py,test_doxbench_turns.py,test_doxbench_abstract_envelope.py,test_validate_ideation_dashboard_contracts.py,test_wheel_action_contracts.py,test_project_schema_election.pyandtest_project_action_contracts.py;test_snapshot.py.The holder's reading of T040 against R1Q24 (a). The lane coordinator relayed it to this slice on 2026-09-27, verbatim: "#29 makes the fix. T040's own task text and falsifier name the source paths in test_doxbench_packet.py, so they are T040's. R1Q24 (a) covers only that file's exemption-rail failures, which stay for T041/T043's declared exclusion." So this PR changes one of the eight.
0336288fixestest_doxbench_packet.pyat its three source-path sites and changes nothing about its rail cases. The other seven are unchanged.Ruled 2026-09-27: the
route_extension.pyresync (Brett Heap, opensoft/openXfactory#656 comment5856475254, P1-K's question 1 answered at (a), verbatim): "openxFactoryscripts/route_extension.pyand openXdox-codesrc/route_extension.pyare resynced to openDox-code #40'ssrc/route_extension.py. T007 batch E admits both as named arc edits, each with its reason. openxFactory's copy is resynced in T047's PR, and openXdox-code's in P1-I (T040, openXdox-code#29)."f65537amakes this repository's half:src/route_extension.pyis the carve's replica of the neutral route extension point (carve-manifest rowscripts/route_extension.py,not_moved/replicated_at_destination, RULING Q-L1). It still held the carve-time blob34802071(30,017 bytes). It now holds Declare the handler-contribution facet (plan 034 T010, R1Q1 (a)) openDox-code#40's blob7781665d9ae0d4be298cd7d9cbe625666f7481eebyte for byte: 62,817 bytes, mode100644, sha256d81124e62dba9df33abe44f3eb467188c98156f002cc7a92e297cd689da87515. That blob is the same at the PR's headc8d5c802, at its merge0f10b1f5and at openDox-codemain796838e8.RouteBindingError's docstring.pythonpath = ["src"]and the rootconftest.pyputsrc/ahead of site-packages, so openXdox's columns and the installed openDox both resolve the bareimport route_extensionto this file. Measured with and without--noconftest: the pinned wheel's own copy is shadowed.test_doxbench_blank_reason.pyis not one of the eight. T040 names it for classes C and G, and those are its only edits here. The one class I case that shows behind them reads openxFactory'scontracts/manifest.yaml. That makes it the eighth file T005's experiment found behind the residue, as R1Q24's re-measure note (T006) records, and the note leaves it to T043's triage by class. At this pin, five files this PR changes fail ondoc_healthalone: the three class B importers and the two module-scope class C importers. Only their residue imports change here. T041 writes its list from the run at T040's pin, and its test asserts that each listed file fails for exactly that reason.The commits (one class each; every commit carries the
Arc:andLane:trailers)27a007arfc3339-validator>=0.1.4in thetestextra. The floor is what openxFactory's validator-input lock pins (requirements/hermes-runtime-contracts.in), the same source PyYAML's floor came from. It is a test dependency, since nothing undersrc/imports it.8769210tests/gate_routes_harness.py:_postand_servingplus the 4 definitions they reach. The three project suites import it in place of openxFactory'stest_gate_routes(anot_movedrow).2b34084tests/doxbench_routes_harness.py: ONE harness for its three importers, carrying the 21 names they import. It is the closure of those names, 52 of the source module's 272 statements.ee569e1tests/doxbench_port_ban.py:FORBIDDEN_PORT_MEMBERS, for the bridge suite.1e04515tests/fixtures/fake_omp_child.py, byte-identical: blobe51045fc, the same at openxFactory's carve tag, at openDox-code5c137a90and at openDox-codemain.b20a514tests/fixtures/base-repo, byte-identical: treecef59fd9, the same at the carve tag and at openxFactorymain, eleven blobs.d266db30336288test_doxbench_packet.py's three source-path sites, on the holder's reading above (details below).f65537asrc/route_extension.pyresynced to opensoft/openDox-code#40's, byte for byte (5856475254, above).37fac9fopendox @→ openDox-code2d116415159b721b55613fe20a159afc46202d1f, the commit T039 pins. The ratchet is unchanged (§ "At the P1-R pin").How the helpers were made, and proved. Each helper's definitions are copied from openxFactory at the carve tag
opendox-carve-0(b075fd91), the tree the importers were carved from. An AST comparison of every carried definition against that source, after the declared rewrites, givesmismatches: 0for the gate harness and the port ban. The routes harness givesmismatches: 1, which isreleased_only, the one declared change. The declared rewrites are these:ideation_dashboard.serve→opendox.serve,generator→openxdox.generator, …);opendox_bundle.web(), read per call;serve_wire.DOXBENCH_*_KIND. Those are the kinds the routes emit, and the keys they look an injected validator up by (serve_workbench.py,validators.get(kind)). The source read them fromdoxbench_contracts, which stays in openxFactory.released_onlyskips here, naming why. That rung, andbuild_server's default validator seam, both need openxFactory'sdoxbench_contracts, and this checkout has neither. None of the helpers is namedtest_*.py. So pytest never collects a harness as a suite, and 12.5's protected-suite grep overtests/test_*.pycannot select one. That set is still the same 16 files.Class G, in detail.
tests/conftest.py'sserve_surface_paths()reads each serve file at its carved home through a newcarved_module_path(). openDox's four come through the PIN (the installedopendox), and openXdox's two from this leg'ssrc/openxdox/. The resolver refuses a name found in both homes or in neither.serve_openxfactory_lanes.py(not_moved), is NAMED inSERVE_SURFACE_NOT_AT_THIS_LEGrather than dropped. Any other absence still refuses.test_doxbench_bridge.pyandtest_doxbench_blank_reason.pyread the module each already imports, through__file__. That is § 3.4 slice S8's repair ofMODULE_PATH.test_scope_column_split.py's parser now takes the package to be both halves the carve made. It reads theopendox/openxdoxspellings beside the pre-carve two (T040: "its import parser must also recognise anopendox.import").test_doxbench_packet.py(0336288):MODULE_PATHisPath(pk.__file__), the same S8 repair. It covers the read at:309and the 11-case test at:1054. The watch-list sweep at:963reads each module throughcarved_module_path(). Its one module at neither home, openxFactory's raildoxbench_status_exemption.py(not_moved), is NAMED inSWEEP_NOT_AT_THIS_LEGand stays in the tuple, which the file's own rule only ever widens.assert_not_at_this_leg()(conftest.py) refuses once a declared file is present in either home, so a skip can never hide code this leg carries. A 28-case mutation check caught every needle injected into each of the packet suite's respelled reads, and each declaration refused when its file was planted in either home.from openxdox.doxbench_scope import ScopeKey,from openxdox import doxbench_scope, the pre-carve absolute, the relative, andimport openxdox.doxbench_scope. Every one was caught. A reader with its types import removed trips the non-vacuity assertion.The falsifier, and the evidence at both pins
Measured exactly as T005 measured, from
cd "$W/openXdox-code", with research R0's Group 2 shim. The shim digests match T005's record, and it is never committed. The venv is fresh, from THIS branch'spyproject.toml:pip install -e ".[test]"now bringsrfc3339-validator 0.1.4, and jsonschema'sdate-timechecker registers. The runs: The last column is the new pin instead: a fresh venv from37fac9f'spyproject.toml, the root conftest in play, and no shim, since T011 landed Group 2.e28930bf(T005'soxrrun, reproduced exactly)d266db30336288(old pin, shim)37fac9f(new pin2d116415, no shim)166 failed, 967 passed, 10 skipped, 126 errors, 292 red120 failed, 1013 passed, 10 skipped, 126 errors, 246 red107 failed, 1026 passed, 10 skipped, 126 errors, 233 red106 failed, 1027 passed, 10 skipped, 126 errors, 232 redtest_gate_routestest_doxbench_routestest_doxbench_modelbase-repotest_doxbench_packet.pyrfc3339-validator(T005'soxrun)The accounting closes. At
0336288, 75 residue results are cleared, and 16 became visible behind them:doc_health+6, openxFactory contracts +1,ProfileNotRegistered+9. That is net −59, and the passes rose by exactly +59: the bridge suite +36, the packet suite +13, the scope split +4,test_register.py+4,blank_reason+2. Atf65537athe resync moves nothing: the whole suite has 0 outcome differences from0336288, and so does the plain run. The packet suite's 13 expose nothing behind them. Againstd266db3, the whole suite differs in exactly those 13 results, each one failure → passed. That file's 54 rail failures and 3doc_healthfailures are the same tests with the same causes.test_gate_routes,test_doxbench_routesortest_doxbench_model, and no module imports them (git grep). The five importers that failed at collection on them now fail collection one layer further in, ondoc_health. That layer is T041's declared exclusion (R1Q6 (d)), not residue:test_create_project.py,test_edit_project.pyandtest_register_edit_lane.pyfail atopenxdox/gate_console.py:63;test_doxbench_knowledge_service.pyandtest_doxbench_thread_wiring.pyfail atopenxdox/generator.py:66, the harness's fixture snapshot.scripts/ideation_dashboard/. Class G is 0. The packet suite's 13 went with0336288, on the holder's reading above. The only static pre-carve reads that remain are in 8 files that fail collection ondoc_healthand so never execute:test_completeness,test_doxbench_knowledge_service,test_doxbench_share,test_doxbench_thread_wiring,test_doxbench_threads,test_repo_selector,test_round_tripandtest_session_document_ownership. They are respelled when they become runnable, as T043 records for the excluded files.test_register.pyandtest_snapshot_validation_launch.pyfind their fixture.test_register.py: 4 failed / 6 passed → 10 passed. The launch suite: its 9 base-repo failures are gone. It now fails its 9 cases one layer further in, onProfileNotRegisteredatbuild_parser(). T005's experiment saw the same layer, and it is T016's to clear at the phase-1 pin. It is a protected suite (5.4a), and this PR does not edit it.test_doxbench_bridge.py: 36 failed / 24 passed → 60 passed.The repository's own required check
validate.yml'svalidatejob, reproduced locally in the same fresh venv withCI=true: 16 named files,--noconftest, then its "Pin the triple" step verbatim:None of this PR's files is on that list, and the triple is unchanged. The result was the same at
d266db3,0336288andf65537aon the old pin, and at37fac9fon the new pin. CI's ownvalidaterun on this PR is the gate.What remains red at the new pin, and where it goes (not this PR's): T043's triage
doc_health(A)blank_reasoncase, and at the new pintest_snapshot_validation_launch9 (below)test_doxbench_packet54,test_doxbench_turns32,test_doxbench_abstract_envelope1. At the new pin they fail CLOSED at openDox's seam:StatusExemptionNotRegisteredatopendox/doxbench_packet.py:304(70), and the rail's absent attributes at:1555(17). T005's classifier has no pattern for the new text, so it prints them as unclassifiedtest_doxbench_blank_reason1:test_every_textual_home_states_the_admission_rulereads openxFactory'scontracts/manifest.yaml. This is the "eighth" file of R1Q24's re-measure note (T006), which T005's experiment found and which now shows behind its residuetest_snapshot2ProfileNotRegisteredtest_snapshot_validation_launch9: cleared at the new pin (T016). Behind it the suite reachesdoc_healththroughopendox/consumer_reach.py:120→src/openxdox/corpus_root.py:34. It is a protected suite (5.4a) and is not editedthe shim itself (K)test_dependency_direction1: gone at the new pin, since no shim is installedAlso for T043's re-pin. With
rfc3339-validatordeclared,tests/test_validator_schema_home.py(C3's suite, whichimportorskips the package) runs its 12 cases instead of skipping. In the plain run (no shim) that is the one difference frome28930bf:5 skipped, 1126 errorsbecomes4 skipped, 1138 errors. The base tree in the same venv gives the same figure, so this PR's test edits move nothing in a plain run.At the P1-R pin (done)
opensoft/openDox#13 landed as
663ac683, and its code leg is openDox-code2d116415159b721b55613fe20a159afc46202d1f, which is on openDox-codemain.The pin.
37fac9fmovespyproject.toml'sopendox @to that commit, and nothing else. The ratchet is unchanged (T040; plan.md § Pins, step 3).The whole suite, with no shim, in a fresh venv built from this
pyproject.toml(pip'sdirect_url.jsonrecordscommit_id2d116415):106 failed, 1027 passed, 10 skipped, 126 errors, 232 red. The test ids are the same as the old pin's shim run. Classes B–G and M stay 0. No red result names the three helpers, no test reads ascripts/ideation_dashboard/path,test_register.pypasses 10/10 and the bridge suite 60/60. The pin moves three things, all in the table above:test_snapshot_validation_launch'sProfileNotRegisteredclears, anddoc_healthshows behind it;No residue of T040's kind shows. What the pin shows is T043's to triage by class: the
doc_healthset (68 results in 58 files, T041), the rail (87, R1Q24 (a)), the contract family (75 includingblank_reason's one case, R1Q24 (a) by class) andtest_snapshot(2, R1Q25 (b)).The required check:
558 passed, 6 skipped, tripleselected=564 passed=558 skipped=6, the same as at the old pin. The pin guard agrees:opendox_bundle.declared_pin()==installed_commit()==2d116415, andfind()resolves the installed bundle. CI's ownvalidaterun on37fac9fis the gate.src/route_extension.pyat2d116415is7781665d, byte-identical to this branch's copy. Declare the handler-contribution facet (plan 034 T010, R1Q1 (a)) openDox-code#40 is the only openDox-code commit touching it since5c137a90, so the ruling's version is the pinned version.src/subcommand_extension.py(1d4833b2) andtests/fixtures/fake_omp_child.py(e51045fc) are identical at the pin too.mainhas not moved (e28930bf), so there is nothing to merge in.Notes
test_doxbench_packet.pyis in neither set.test_snapshot_validation_launch.pygains only its fixture.openspec/changes/paths undertests/fixtures/base-repo/are fixture content.docs/opendox-carve-admissions.yamlsays a new admission is a reviewed one-line diff "in the pull request that bumps the destination's pin", withsince:set to the leg commit. That is openxFactory's pin PR (T047, P1-K), once this PR's landing commit is known. Theroute_extension.pyresync is not a created file. T007 batch E admits it, as ruled above.d266db3this draft asked whether T040 or T043 respellstest_doxbench_packet.py's 13 class G reads. The holder's reading (above) gives them to T040, and0336288makes the three-site fix. T041's listing rule is why it matters: a file with another cause "is listed only once T040 or R1Q24's answer has dealt with that other cause". With the paths respelled, the file's remaining red is its rail (54, R1Q24 (a)) and its 3doc_healthcases (T041).Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
🤖 Generated with Claude Code
Summary by Sourcery
Clear the remaining carved-test residue and align route extension support with the phase-one openDox layout while preserving the existing protected validation suites.
New Features:
Bug Fixes:
Enhancements:
Tests: