Repository navigation
Plan 034 T042 (P1-J): tests/integration/ at the declared composition; stacked on #30, and the 31-entry tree needs a ruling - #31
Merged
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>
…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>
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>
tests/hermeticity.py is openxFactory's replica here (a not_moved row, replicated_at_destination). Its runner_seams() probed ideation_dashboard.session_pr and .workbench with find_spec. This leg has no such package, so the probe always returned no seams, and layer 2 was OFF in this suite. The carve manifest's row records both reaches as resolving "to nothing at a destination that lacks them". Layer 1, the PATH shim, was still on. But a non-zero nlm exit is the degradation the notebook adapter swallows, so an escape through the default runner passed silently. The seams now name the pinned openDox's opendox.workbench and opendox.session_pr, with no probe, as openDox-code#51 did for its own copy (plan 034 T035). The two gate-verb cases #51 moves here, in the next commit, need it: the unguarded create must RAISE. Measured with openDox-code 71b631bc installed (the phase-1 commit T040's pin moves to): 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 required job at this branch's pin (5c137a90) 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>
openDox-code#51 (plan 034 T035) takes two cases out of openDox-code's tests/test_hermeticity.py and lists them for this leg's declared exclusion (T041): test_an_unguarded_cli_scoped_create_is_refused and test_the_cli_seam_with_a_fake_port_reaches_no_binary. Both drive `gate create-document`. Since the carve, `gate` is openXdox's verb (openxdox.cli_gate.GateSubcommands), and the host profile contributes it. They land byte-identical to openDox-code main 68be484a, tests/test_hermeticity.py lines 226-240 and 262-275. The module around them is new. It carries a stand-in host profile that contributes exactly cli_gate.GateSubcommands(), as openxFactory's profile_openxfactory.SUBCOMMAND_EXTENSIONS does. The host is registered per test and the previous registration restored after it. cli_gate imports gate_console, whose module-level `from doc_health import corpus` needs openxFactory's doc_health. So in a lone checkout the file fails at collection on doc_health, and it joins the declared exclusion with that reason in the next commit (R1Q6 (d)). Measured behind that reason, with openxFactory's scripts/ (133e37d9) on PYTHONPATH to supply doc_health: 2 passed. Without the stand-in host, `gate` is an invalid choice. Without the previous commit's layer 2, the unguarded create does not raise. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…lds it tests/declared_exclusion.yaml lists the 66 test files a lone checkout cannot run, each with its reason, and their count (requirement 9, first scenario; R1Q6 (d), R1Q24 (a), R1Q25 (b)): doc_health 59 files status-exemption-rail 3 files openxfactory-contracts 5 files consumer-schemas 1 file, tests/test_snapshot.py alone Two entries name two reasons, and each is checked for both: test_doxbench_packet.py (doc_health and the rail) and test_doxbench_blank_reason.py (doc_health and the contracts). The repository-root conftest.py derives collect_ignore from the file. It refuses a declaration that breaks one of the file's rules, and it prints the exclusion at the end of every run that loads it, as an OPEN extraction: the count, each reason, and each file with its reasons. tests/test_declared_exclusion.py carries T007 batch B's three assertions: the count equals the entries, every entry carries its reason, and the run prints it. It also checks the declaration's rules and the conftest's refusals. For each listed file it runs that file ALONE, which must fail, with every red result attributed to exactly one of the reasons its entry names, and each of those reasons shown at least once. Written from a run of each file alone, with the openDox this leg pins installed at openDox-code 71b631bc (the phase-1 commit), not from a list. There the check gives 85 passed. The whole suite, loading the root conftest, gives 743 passed and 10 skipped, and 12 planted defects are each caught. The required job at this branch's pin (5c137a90, --noconftest) is unchanged: 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 review of aa51a5f on #30 found that the loader compared schema_version and count by equality alone. So `schema_version: true` or `1.0` loaded, because True == 1 and 1.0 == 1. And `count: 66.0` loaded and printed as "66.0 files", which breaks batch B's shell comparison of the printed count. Measured against the loader at aa51a5f, all three load. Now each is refused, naming the rule. The same pass takes the rest of the review's overview: - a reason id is one lowercase token, since the run prints ids in a comma-separated list; - an unknown key is refused at the top, on a reason and on an entry, so a misspelt `only:` cannot silently restrict nothing; - `only` lists exactly the files that name its reason, and a reason no entry names is refused: a reason leaves with its last entry, as consumer-schemas does with T061's; - a note is a line of text. The declaration's header states the tightened rules. tests/test_declared_exclusion.py adds ten refusal cases. Batch B's first assertion now checks that the count is an integer, and the reasons check reads "drawn from the four", since a cleared reason leaves the declaration. At openDox-code 71b631bc the check gives 95 passed. The whole suite, loading the root conftest, gives 753 passed and 10 skipped, with no outcome changed except the new cases, and each of the 12 planted defects is still 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>
Copilot's second review of #30, at 7ad389f, named missing hermeticity coverage. The regression that needs layer 2, tests/test_hermeticity_gate_verbs.py, sits in the declared exclusion on doc_health, so a lone checkout never runs it. Nothing the whole suite collects would fail if runner_seams() went back to returning no seams. tests/test_hermeticity_runner_seams.py imports only the pinned openDox and the guard, so it runs wherever the whole suite does. It holds three cases: - the seam table names opendox.workbench's _default_runner and opendox.session_pr's SubprocessCommandRunner.run, and it fails before any refusal is tried if either drops out; - openDox-code's own two refusal cases, as they read at openDox-code main 68be484a (tests/test_hermeticity.py lines 185-198): the default notebook runner and the default pull-request runner each raise the guard's violation instead of running nlm or gh. With openDox-code 71b631bc installed (the phase-1 commit T040's pin moves to), the three pass. With runner_seams() put back to its carved find_spec probe of ideation_dashboard, all three fail. At this branch's own pin, 5c137a90, they error in setup on ideation_dashboard, as the rest of the whole suite does there. The required job is unchanged, at 558 passed and 6 skipped. 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 second review of #30, at 7ad389f, named moderate gaps left in the declaration's validation. The root conftest's loader at 7ad389f had three: - measured at 7ad389f, a fifth reason, declared and named by an entry, loads. Only the test module held the reasons to the four the rulings admit, and only in a run that selects it. The conftest now carries ADMITTED_REASONS, with the rulings that admit each, and refuses any other id at load. A new case holds its list and the test module's RULED_REASONS to one set, so neither can admit a fifth alone; - a reason's texts or a note could span lines, though the run prints each on one line. Measured at 7ad389f, a reason text broken by a carriage return loads. Each is now refused unless str.splitlines() gives it back whole, so every kind of line break counts, a trailing one too; - PyYAML keeps the last of two equal keys and drops the first without a word. Measured at 7ad389f, an entry giving reasons: twice loads, with its reasons silently swapped. A second entries: list was refused only by a later, unrelated rule. The declaration is now read through a SafeLoader subclass that refuses a key given twice, naming the key and its line. The declaration's header states the new rules. The test module adds seven cases: four refusal cases, the key-given-twice pair, and the admitted-set check. With openDox-code 71b631bc installed, the module and the layer-2 file give 105 passed. The whole suite, loading the root conftest, gives 763 passed and 10 skipped. Against the run before this commit, the only differences are the new cases, all passing. Each of the 12 planted defects is still caught. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 of #30, at 4582eac, said two moderate conftest.py validation issues remain, with no findings and no threads. So the loader at 4582eac was probed with declarations that should not load. Five of them load: - the check listed as an entry. Every run that loads the root conftest then drops tests/test_declared_exclusion.py, and with it the module's own guard against being listed. Measured at 4582eac with the check listed (count 67), the whole suite gives 661 passed and 10 skipped, exit 0, with the check's 102 cases gone. The conftest now refuses an entry naming DECLARED_EXCLUSION_CHECK, and a new case holds that name to the module's own; - one file listed twice under two spellings: tests/./test_canvas.py beside tests/test_canvas.py. It loads, counts 67 and prints 67, and no check in the module notices. A path with a doubled slash loads too. An entry's path must now be written plainly, as PurePosixPath gives it back; - an only listing a file twice. It is now refused; - a reason whose ruled text cites another ruling. Only the test module held ruled to its ruling. ADMITTED_REASONS is now a table of each reason's ruling, ruled must start with it, and the test module's RULED_REASONS is held to that table. The declaration's header states the new rules. The test module adds six cases: five refusal cases, and one for the check's name. It also asserts that each path is written plainly. With openDox-code 71b631bc installed, the module and the layer-2 file give 111 passed. The whole suite, loading the root conftest, gives 769 passed and 10 skipped. Against the run at 4582eac, the only differences are the new cases, all passing. Each of the 12 planted defects is still caught. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 fourth review of #30, at d1fc5a2, again said moderate declaration-validation issues remain in conftest.py, with no findings and no threads. Its one named item, listed as previously missed, says an entry's reasons: [[]] raises TypeError at set(named) instead of being refused. Measured at d1fc5a2, that case is refused by the undeclared-reason rule, which runs first: "tests/test_canvas.py names [[]], which is not a declared reason". A guard now refuses a reason that is not an id before any other rule reads it, so the refusal no longer rests on the order of the checks. The class of fault is real elsewhere, though. A structural sweep of the loader at d1fc5a2 gave each place in the declaration each odd value in turn, and added odd keys to each mapping. It crashes 56 of 577 variants with TypeError. An unknown key beside a key of another type, such as 1: beside counts:, cannot be sorted for the refusal's message, at the top, on a reason, or on an entry. The unknown keys are now named by their repr and sorted as text, so the refusal names them. tests/test_declared_exclusion.py keeps the sweep as a standing case, test_the_root_conftest_refuses_rather_than_crashes. It runs over a declaration cut down from the committed one, so it takes about four seconds: 781 variants, each of which must load or be refused. Against d1fc5a2's loader it fails, with 36 of the 781 crashing. Two refusal cases name the new rules. With openDox-code 71b631bc installed, the module and the layer-2 file give 114 passed. The whole suite, loading the root conftest, gives 772 passed and 10 skipped. Against the run at d1fc5a2, the only differences are the three new cases, all passing. Each of the 12 planted defects is still caught. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 fifth review of #30, at 58e5eb1, found one fault (thread 4116386894, conftest.py:188). A declaration whose bytes are not UTF-8 makes read_text raise UnicodeDecodeError. That is a ValueError, neither OSError nor yaml.YAMLError, so the root conftest crashed on import instead of refusing. Measured at 58e5eb1, it crashes. So does YAML nested 5000 deep, with a RecursionError from the parser. A missing file was already refused. Both are now refused as unreadable, as a missing file is, and the refusal names the exception's type. Three cases hold this: bytes that are not UTF-8, nesting past the recursion limit, and a file that is not there. Against 58e5eb1's loader, the first two fail with the crashes above. With openDox-code 71b631bc installed, the module and the layer-2 file give 117 passed. The whole suite, loading the root conftest, gives 775 passed and 10 skipped. Against the run at 58e5eb1, the only differences are the three new cases, all passing. The structural sweep still gives 0 crashes in 577, and each of the 12 planted defects is still caught. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 sixth review of #30, at f74c6d2, said a moderate manifest-validation issue remains, with no findings and no threads. Held against the declaration's header rule by rule, the loader missed one ruling. R1Q25 (b) admits the consumer's schemas for tests/test_snapshot.py alone, and only the test module held that. Measured at f74c6d2, the root conftest loads the reason widened to a second file, moved to another file, and with no only at all. RULED_FILES now names the files a ruling admits a reason for, and the reason's only must list exactly those. A new case holds that table to R1Q25 (b), and three refusal cases break it each way. The two cases for the general only rules move to the rail's reason, since breaking consumer-schemas' only now meets the narrower rule first. Two assignments that an earlier edit left as "name =[" get their space back. With openDox-code 71b631bc installed, the module and the layer-2 file give 121 passed. The whole suite, loading the root conftest, gives 779 passed and 10 skipped. Against the run at f74c6d2, the only differences are the four new cases, all passing. The structural sweep still gives 0 crashes in 577, and each of the 12 planted defects is still caught. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 seventh review of #30, at 6f9a36a, found two faults, both reproduced here. Thread 4116448804: the contracts evidence took any missing path under a contracts/ directory outside the checkout as openxFactory's contracts. So a listed contracts file that gained an unrelated missing /tmp/contracts/... file would have that failure hidden under its reason. Measured at 6f9a36a, with that planted in tests/test_project_schema_election.py, the file's alone case gives "1 passed". The evidence is now tied to where the contract family looks. That is the contracts/ above the checkout, which its files take for openxFactory's root, the contracts/ at the checkout's own root, or the validator at scripts/validate-ideation-dashboard-contracts.py above the checkout. Those are the three shapes the five contracts files show when each runs alone. A relative path is anchored at the checkout, the child's cwd. Eight cases hold the evidence to that, and with the plant the alone case now fails, naming the unattributed /tmp path. Thread 4116448815: tests/test_hermeticity_gate_verbs.py's fixture read opendox.domain_profile's _is_default and _built_from_default, which openDox-code 5c137a90, this branch's pin, does not have. With openxFactory's scripts/ on PYTHONPATH at that pin, both cases errored in setup with AttributeError. The fixture now records whichever of the registry's state the pinned openDox keeps. Composed, both cases now pass at 5c137a90 and at 71b631bc. Alone, the file still fails at collection on doc_health, as its entry says. With layer 2 off, the unguarded create still does not raise, and without the stand-in host, gate is still an invalid choice. With openDox-code 71b631bc installed, the module and the layer-2 file give 129 passed. The whole suite, loading the root conftest, gives 787 passed and 10 skipped. Against the run at 6f9a36a, the only differences are the eight new cases, all passing. The structural sweep still gives 0 crashes in 577. The planted defects, now 13 with the /tmp one, are all caught. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 eighth review of #30, at 8dcf00a, found one fault (thread 4116483580). The contracts evidence accepted any missing file under the contract trees, so an unrelated file beside the real ones, in the same contracts/, was still hidden under the reason. Measured at 8dcf00a, with a missing Path(__file__).resolve().parents[2] / "contracts" / "t041-unrelated.yaml" planted in tests/test_project_schema_election.py, the file's alone case gives "1 passed". The evidence is now the exact set of contract files the five contracts files report missing, each run alone: - contracts/schemas/gate-intent.schema.yaml, above the checkout; - contracts/schemas/project-register.schema.yaml, above the checkout; - scripts/validate-ideation-dashboard-contracts.py, above the checkout; - contracts/manifest.yaml, at the checkout's own root. "Above the checkout" is where the family's parents[2] takes openxFactory's root to be. A path a new run shows joins the set in the pull request that quotes that run, as the declaration's header already requires of any evidence. The evidence case is renamed for what it now holds and has twelve cases, among them an unrelated file in each contracts/ and a schema beside the known ones. With the plant, the alone case now fails, naming the unattributed file. It is plant 14 in the mutation harness. With openDox-code 71b631bc installed, the module and the layer-2 file give 133 passed. The whole suite, loading the root conftest, gives 791 passed and 10 skipped. Against the run at 8dcf00a, the only differences are the renamed evidence case, now 12 cases instead of 8, and every listed file's alone case still passes. The structural sweep still gives 0 crashes in 577, and all 14 planted defects are caught. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 ninth review of #30, at 0763181, found two faults in the attribution. Both are one weakness: a reason took a red result when its evidence appeared anywhere in the result's text. - Thread 4116509312: consumer-schemas took any text containing "CONTRACTS_DIR is not set". Measured at 0763181, an unrelated assert False, "CONTRACTS_DIR is not set" planted in tests/test_snapshot.py is hidden, and the file's alone case passes. - Thread 4116509339: openxfactory-contracts took a result as soon as one known contract path showed, even beside an unrelated missing file. Measured at 0763181, a planted case that misses gate-intent.schema.yaml and then /tmp/t041-unrelated-dependency.yaml is hidden, and the alone case passes. doc_health and the rail had the same weakness. So the evidence is now built on one rule. A reason takes its cause as raised, and only when that cause is all the result shows. All 233 red results the 66 files give, each run alone, fit it: - doc_health is ModuleNotFoundError: No module named 'doc_health...'; - the rail is StatusExemptionNotRegistered: no status-exemption rail is registered..., which the AttributeError variant chains; - the contracts are a FileNotFoundError, or the interpreter's "can't open file", on one of the four known files; - the consumer's schemas are the validator's own "ERROR harness failure: <this checkout>/contracts/schemas carries none of the family's N schemas (this tree carries no contracts/ and CONTRACTS_DIR is not set;". A reason must account for every missing module, missing file and refusal its result shows. A result that shows anything else beside its cause is unattributed. So no two reasons can take one result, and a result showing two reasons' causes fails closed, as unattributed. The evidence case becomes test_the_evidence_takes_each_cause_as_raised_and_alone, with 28 cases. They cover each real shape, and the same words quoted elsewhere. They cover each cause beside an unrelated module or file, and both of the threads' cases. The two plants are plants 15 and 16 in the mutation harness, and plant 9, which quotes two reasons' words in one assertion, is now caught as unattributed. With openDox-code 71b631bc installed, the module and the layer-2 file give 149 passed. The whole suite, loading the root conftest, gives 807 passed and 10 skipped. Against the run at 0763181, the only differences are the evidence case's 12 cases replaced by 28, and every listed file's alone case still passes. The structural sweep still gives 0 crashes in 577, and all 16 planted defects are caught. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 tenth review of #30, at 0651221, found one fault (thread 4116549888). The evidence checked what a result showed, but not what finally failed the test. So doc_health's cause, followed by an unrelated failure raised while handling it, was still taken as doc_health. Measured at 0651221, with that planted in tests/test_snapshot_validation_launch.py (an import of doc_health, then an unrelated AssertionError in its except clause), the file's alone case gives "1 passed". Each result is now judged by its final exception, the one that ended the test. JUnit's message holds it. It is wrapped for a setup or teardown error, and for a collection failure it is the last exception the E lines open. The final exception must BE its reason's cause, in one of the shapes the 233 red results take: - ModuleNotFoundError naming doc_health; - StatusExemptionNotRegistered with the seam's words, or openDox's AttributeError carrying them; - FileNotFoundError on one of the four known contract files, or the interpreter's "can't open file" on the validator, in the assertion on its exit status; - the consumer validator's refusal asserted on, or met where the test expected another refusal. The rule from 0651221 still holds beside it: the reason must account for every missing module, missing file and refusal the result shows. All 233 results fit both. The evidence cases are now shaped as JUnit reports a result (message and E lines) and number 39. New among them are Copilot's case, a cause's whole exception quoted in an assertion, and a collection failure that ends on an unrelated exception. The plant is plant 17 in the mutation harness. With openDox-code 71b631bc installed, the module and the layer-2 file give 160 passed. The whole suite, loading the root conftest, gives 818 passed and 10 skipped. Against the run at 0651221, the only differences are inside the evidence case's parameters, and every listed file's alone case still passes. The structural sweep still gives 0 crashes in 577, and all 17 planted defects are caught. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 second review of #30 at 0651221 (19:06Z) left two threads. Thread 4116563316 says a whole exception-shaped string quoted in an assertion was taken for its reason, and that the same is true of the other causes. Its own case, assert False, "FileNotFoundError: [Errno 2] ...gate-intent.schema.yaml", is already taken by no reason at 4b9e129, which judges the final exception. But two real causes do reach their tests inside an assertion: the consumer validator's refusal, and the interpreter's "can't open file" on the contract validator. At 4b9e129 a bare assertion quoting either one in full was taken. Measured with the consumer's whole refusal, this checkout's path included, planted in tests/test_snapshot.py, the file's alone case gives "1 passed". Each now also needs pytest's own account of the assertion: - the consumer's refusal needs "where False = ValidationResult(ok=False, returncode=2, ...", or the SnapshotInvalid that carried it when the test expected another refusal; - the unrun validator needs "where N = CompletedProcess(...". All 233 real results carry these, and a bare assertion has neither. Six evidence cases are new, among them each cause's whole exception quoted in an assertion. The plant is plant 18 in the mutation harness. Thread 4116563297 says an unhashable key, such as ? [a, b], crashes the loader with TypeError. Measured at 4b9e129, it does not. PyYAML 6.0.3 raises ConstructorError ("found unhashable key"), a YAMLError, and the declaration is refused as unreadable. Two cases now hold that: a list for a key at the top, and a mapping for a key inside an entry. With openDox-code 71b631bc installed, the module and the layer-2 file give 167 passed. The whole suite, loading the root conftest, gives 825 passed and 10 skipped. Against the run at 4b9e129, the only differences are the new cases, and every listed file's alone case still passes. The structural sweep still gives 0 crashes in 577, and all 18 planted defects are caught. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 review of #30 at 4b9e129 (5331662913) found one fault (thread 4116591535, and the same at two more places). The rail's forms were prefix matches, so a final exception that began with the rail's refusal and went on with unrelated text was still taken. So were the two assertion-borne forms. Measured with 96db95c's evidence, five such cases are taken: the rail's refusal and its AttributeError, each with text after it, the consumer's refusal asserted on with a line after pytest's account, the unexpected refusal with more text in its input, and the unrun validator with a line after pytest's account. A real StatusExemptionNotRegistered raised with a diagnostic after openDox's words, planted in tests/test_doxbench_turns.py, is hidden, and the file's alone case gives "1 passed". doc_health's and FileNotFoundError's forms were already whole matches. Every cause is now matched whole: - the rail's two forms against openDox's own constant, STATUS_EXEMPTION_NOT_REGISTERED, read lazily, since a pin before the seam (5c137a90) has none and there nothing is this reason; - the unrun validator as its full line, then pytest's account of the assertion on the return code; - the consumer's refusal, whose full sentence now runs to "no mode may report success". It is asserted on, then gets pytest's account of the ValidationResult, or it is the whole input of the pattern that did not match it. The where-line checks 96db95c added are now part of the whole matches. All 233 real results fit. Seven evidence cases are new, each cause with text after it, and the cases now carry each cause's complete text. The plant is plant 19 in the mutation harness. With openDox-code 71b631bc installed, the module and the layer-2 file give 174 passed. The whole suite, loading the root conftest, gives 832 passed and 10 skipped. Against the run at 96db95c, the only differences are the new cases, and every listed file's alone case still passes. The structural sweep still gives 0 crashes in 577, and all 19 planted defects are caught. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 review of #30 at 96db95c (5331686800) found that the rail's form there took any dotted module before StatusExemptionNotRegistered, so a class of that name in another module, raising the same words, was taken as the rail (thread 4116613647, and the same at two more places). Measured with 96db95c's evidence, other.StatusExemptionNotRegistered with openDox's constant is taken. 54d06b8 already fixed it: it compares the refusal whole against opendox.doxbench_packet.StatusExemptionNotRegistered, and the AttributeError against module 'opendox.doxbench_packet'. So this commit adds the two negative cases, a same-named class in another module and the AttributeError from another module, and takes neither. With openDox-code 71b631bc installed, the module and the layer-2 file give 176 passed. The whole suite, loading the root conftest, gives 834 passed and 10 skipped, and the only differences from the run at 54d06b8 are the two new cases. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…cted Copilot's review of #30 at d3d634a (5331724652) left no thread, but its summary asked for two changes. Both were measured true. The printout. pytest collects a file named on the command line whatever collect_ignore says, but the run printed every listed file as left out. Measured at d3d634a with openDox-code 71b631bc installed: a run naming tests/test_doxbench_turns.py ran 183 of its tests (32 failed, 151 passed). It still printed "declared exclusion: 66 files, listed in tests/declared_exclusion.yaml and left out of this run" and "excluded tests/test_doxbench_turns.py". pytest_collectstart now notes each listed file the run collects. The summary prints such a file as "collected", and its first line counts the files left out and the files collected apart. A run that names no listed file, the whole suite among them, prints what it printed before, byte for byte, with all 66 files "excluded". A new case names the first and the last entry in a collect-only run. With d3d634a's conftest it fails. The evidence. It judged the final exception, and it scanned every line for a missing module, a missing file or a refusal. But it did not read the chain pytest shows, so a cause raised while an unrelated exception was being handled was taken, provided the unrelated one named nothing missing. Three planted defects show this. Each handles a KeyError, by raising the rail's refusal in tests/test_doxbench_turns.py, by reading a known contract file in tests/test_project_schema_election.py, or by importing doc_health in tests/test_snapshot_validation_launch.py. With d3d634a's evidence, each file's alone case gives "1 passed". The evidence now reads the lines pytest joins a chain's exceptions with. Every exception shown before the final one must be one the cause comes with. For most causes that is none. The rail's AttributeError comes with the refusal it is raised from, and the consumer's regex mismatch comes with the SnapshotInvalid that carried the refusal, matched whole. A collection failure's final exception is now its last exception, whole, rather than the last line that opened one. All 233 real results still fit, each taken by the same reason as before. 17 show the rail's refusal before its AttributeError, and 1 shows the SnapshotInvalid. The other 215 show one exception each. Fifteen evidence cases are new. d3d634a's evidence takes 14 of them. One of those 14 is the rail's AttributeError with no refusal before it, where all 17 real ones show it. The fifteenth, a SnapshotInvalid for another defect, is refused by both. The plants are 20 to 22 in the mutation harness. Plant 23 makes the summary print a named file as left out. All 23 plants are caught. With openDox-code 71b631bc installed, the module and the layer-2 file give 192 passed. The whole suite, loading the root conftest, gives 850 passed and 10 skipped. Against the run at d3d634a, the only differences are the 16 new cases, and every listed file's alone case still passes. The structural sweep still gives 0 crashes in 577. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 review of #30 at b1b2b97 (5331850219) left no thread. Its summary asks to tighten the ValidationResult evidence so that mixed diagnostics are rejected. That was measured true. The consumer's asserted form took pytest's account of the validator's result with anything inside ValidationResult(ok=False, returncode=2, ...). A planted test in tests/test_snapshot.py writes a snapshot the validator cannot read, validates it with the schemas missing, and asserts as the real test does. Its message shows only the refusal. Its result shows outcome='not-conformant' and no unavailable_reason: a defect in the data behind the harness refusal. With b1b2b97's evidence, the file's alone case gives "1 passed". pytest shows that result's repr, which runs past 240 characters, as its start and its end around "...". The evidence now reads both ends. The start must be the result of a validator that printed nothing on stdout and the refusal on stderr. The end must be the reason validate_snapshot in src/openxdox/snapshot.py gives a validator that exits 2, a harness error. The two ends must also split the way pytest splits them, the end as long as the start or one character longer. The unrun contract validator's form needs no such check. There the test's message is the process's stdout and stderr, in full, and the evidence already matches that message whole. The real result fits. The cases' helper now renders the result as pytest does, and for the real refusal it gives the real run's line character for character. All 233 real results are taken by the same reason as before. Three evidence cases are new: the unreadable snapshot, a validator that also printed on stdout, and a diagnostic before the refusal on stderr. b1b2b97's evidence takes all three. The other 68 are judged as before. The plant is plant 24 in the mutation harness, and all 24 are caught. With openDox-code 71b631bc installed, the module and the layer-2 file give 195 passed. The whole suite, loading the root conftest, gives 853 passed and 10 skipped. Against the run at b1b2b97, the only differences are the 3 new cases, and every listed file's alone case still passes. The structural sweep still gives 0 crashes in 577. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. 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 review of #30 at 387b9e9 (5331903928) left one thread. Its summary also names a plugin-isolation finding, with no thread. Thread 4116820877 says the ValidationResult check read only the two ends pytest shows around "...", so an extra diagnostic in the elided middle was not read. Its own example is a validator that writes the refusal, then another stderr line. Planted in this checkout's validator, that example is refused at 387b9e9 too, because the test's message puts the validator's last line first and then all it printed. But the middle was unread all the same. So the child now runs each listed file with -o verbosity_assertions=2, and pytest shows every value an assertion reads whole. Both results the evidence reads are now matched exactly. The validator's result must be the harness error's: exit 2, nothing on stdout, the refusal alone on stderr, this checkout's validator, and the reason validate_snapshot gives. The contract validator's unrun process must be the interpreter on the validator: exit 2, nothing on stdout, and the interpreter's line on stderr. The plugin-isolation point is taken as the child's plugins. The child dropped PYTEST_PLUGINS, but pytest still autoloaded any plugin installed in the environment. A plugin installed for the plant turns a planted unrelated failure in tests/test_snapshot.py green in the child. With 387b9e9's evidence, the file's alone case then gives "1 passed". The child now runs with PYTEST_DISABLE_PLUGIN_AUTOLOAD=1. Neither measured environment installs any plugin (no pytest11 entry point), and a lone checkout's pip install -e ".[test]" installs none, so no real run changes. All 233 real results were run again with the child's new settings. Only the two that show a result changed, and each is taken by the same reason as before. Each whole result equals the one the evidence expects, character for character. Three evidence cases are new: a diagnostic after the refusal on stderr, another tree's validator, and the unrun process printing on stdout. 387b9e9's evidence takes the third. It refuses the first two, and the case for the real refusal, only because they are now shown whole. The plants are 25 (Copilot's example) and 26 (the installed plugin), and all 26 are caught. With openDox-code 71b631bc installed, the module and the layer-2 file give 198 passed. The whole suite, loading the root conftest, gives 856 passed and 10 skipped. Against the run at 387b9e9, the only differences are the 3 new cases, and every listed file's alone case still passes. The structural sweep still gives 0 crashes in 577. The required job at this branch's own pin (5c137a90) is unchanged, at 558 passed and 6 skipped. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
tests/test_declared_exclusion.py's test_the_whole_suite_collects_less_the_exclusion compared what a collect-only run of the whole suite collects against a FLAT glob of tests/test_*.py. Plan 034 T042 adds tests/integration/, whose files sit inside the whole suite that 9.2's required check runs (box 9.3), and pytest collects them from there. So with the directory present the check read each of them as "collected but not a test file here". Measured at the pin proxy (openDox-code 2d116415) with T042's three test modules in place: AssertionError: not collected: []; collected but not a test file here: ['tests/integration/test_assembled_bundle.py', 'tests/integration/test_assembled_surface.py', 'tests/integration/test_declared_composition.py'] The glob is now recursive. No test file sits below tests/ before this commit, so on its own it changes nothing the check reads. It lands first, so the commit that adds the directory keeps the check green. The declared exclusion's entries stay tests/test_*.py paths, as T041's rules require. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ams alone Copilot's review at 7000db6 says the runner-seam tests exercise patched functions instead of the production call path. Measured true at 7000db6, at the real pin (openDox-code 2d116415). The two refusal cases call the patched seams by hand, workbench._default_runner and SubprocessCommandRunner.run, so they pass whatever the production code does. In a scratch venv, two changes to openDox made both ports miss layer 2. NotebookAdapter was made to bind the real nlm runner at import. GhPullRequests was made to use a SubprocessCommandRunner subclass that keeps the real run. Layer 1's shim then exits non-zero, and each port degrades in silence. Under both changes, tests/test_hermeticity_runner_seams.py still gave 3 passed. The whole suite less the exclusion still gave 868 passed, 10 skipped. Two cases now drive the production call path, cli._notebook_port(...) and cli._pull_request_port(...). Neither has a runner injected, and each goes through a read (list_titled_result, find_open). Each must raise HermeticityViolation through the port's own degradation. Under the bypasses, each fails: - the notebook case with DID NOT RAISE; - the pull-request case with the port's own PullRequestRefused, which carries layer 1's refusal of gh pr list. The whole suite then gives 2 failed, 868 passed, 10 skipped, and the two failures are the new cases. Without a bypass, the file gives 5 passed. The whole suite gives 870 passed, 10 skipped. The harness gains the two bypasses as plants 31 and 32. Both were hidden at 7000db6, and at this commit all 32 plants are 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>
… source Copilot's review of 5c0bc00 summed up two findings it did not post as threads: "incomplete unittest and inherited-method collection audits". Both were real. Rule 1's audit walked each file's AST for module functions matching python_functions and for methods defined in classes matching python_classes, so it missed tests pytest collects by other routes. Measured with one plant each before this commit, 2 of 6 caught: * a unittest.TestCase subclass not named Test*: missed; * a method inherited from a base class python_classes does not match: missed; * a module-level test bound by assignment (`test_c = _helper`): missed; * `def test_d(composition=None)`, which pytest does not fill because the parameter has a default: missed; * a usefixtures mark only, and reaching composition only through another fixture: caught. Now a child interpreter runs pytest's collection of the directory, with this run's python_files, python_classes and python_functions, the conftest chain off and PYTHONPATH and PYTEST_ADDOPTS scrubbed, and reports every item it collects. An item passes rule 1 only if pytest hands it `composition` as an argument of its own: its function has that parameter with no default, and pytest resolves the fixture for it. The file check reads the same items. A directory that does not collect cleanly fails both checks with pytest's own words. After: 6 of 6 caught; the 12 loophole probes and 18 plants still all caught. At openDox-code 2d116415 the step reads `10 passed, 1 deselected`, the triple 574/568/6 at margin 0, the whole suite 1 failed (the tree, left out of the required check as ruled) / 878 passed / 10 skipped, and the rules file passes 5 of 5 with the chain off and in F9.2's own fresh venv. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
T041's new commit adds cases to tests/test_hermeticity_runner_seams.py, which is neither on the required job's named list nor in tests/integration/, so the pinned triple does not move. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap
added a commit
that referenced
this pull request
Sep 27, 2026
It brings #30's main merge (the pin at 2d116415, so the pin line leaves this PR's diff), T041's tightened doc_health evidence and recursive glob, T042's docstring mend, and T042's floors, raised to CI's own reading of the two reports, 574/568. One conflict, in .github/workflows/validate.yml, resolved by keeping T043's rewrite and carrying #31's two changes into it: the floors 574/568, which may only rise and which the next commit raises again, and #31's RAISED BY paragraph, placed in the triple's history after #27's. The rest auto-merged (tests/integration/test_assembled_surface.py keeps both T042's mend and T043's step wording). Against #31 at 412ce90, the merge differs only in T043's nine files. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap
added a commit
that referenced
this pull request
Sep 27, 2026
It brings T041's layer-2 drive through the ports a CLI verb declares (5b0e1c3) and T042's rule 1 read from pytest's own collection (5a8767c). CI's first run of this PR measured its merge onto this base, so the triple the next commit pins is this head's. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap
added a commit
that referenced
this pull request
Sep 27, 2026
…80/10 CI's run 36356408029 (2026-09-27, pull_request) measured 890a480, the head before this change, at openDox-code 2d116415: the pytest step `880 passed, 10 skipped, 1 deselected`, and Pin the triple selected=890 passed=880 skipped=10 failures=0 errors=0, refused only by the exact skip pin (`skipped 10, pinned exactly 6`). That run printed the numbers before this commit pinned them, as #25's rule asks. MIN_SELECTED 574 -> 890 and MIN_PASSED 568 -> 880: the job now collects every test file the declaration does not list. That is the sixteen the list named (564, unchanged), tests/integration/ (10, the left-out test deselected), and the eight other files under tests/ that the list never ran (316). EXPECT_SKIPPED 6 -> 10, with the reason: the four new skips are tests/test_aggregation_register_instance.py's ("aggregation checkout (seed register + pinned validator) not reachable"), and the three seam suites' six doc_health skips are unchanged. The margin is zero, as #25 set it, and restoring it is T044's (9.4). A RE-PINNED BY paragraph records it in the form #26, #27 and #31 used. The pin step, run from this file over reports shaped as CI writes them: the measured report passes at margin 0; one test fewer is refused at 889/879; one more skip is refused (skipped 11, pinned exactly 10); a missing report is refused. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap
added a commit
that referenced
this pull request
Sep 27, 2026
…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>
…e the child Copilot's review of 4ae1c5c and 2d1340f, two findings. Rule 2 missed a refused name built by a constant expression, such as `getattr(pytest, "s" + "kip")()`. Measured with six plants before this commit, none caught by rule 2: `"s" + "kip"`, `"".join(["x", "fail"])`, f"{'sk'}ip", `@getattr(pytest.mark, "s" + "kip")`, `"SK".lower() + "ip"`, and `"".join(map(chr, ...))`. Now the scan folds constant string expressions (a literal, `+`, `*` by an integer literal, an f-string, `sep.join([...])`, and the no-argument case methods) before it compares them. And the collection child reports each item's marks as pytest finds them, so a skip or xfail mark fails however it was spelled. After: 5 of 6 caught. The sixth computes its name at run time from values that are not constants, which no reading of source can see. The required check refuses it all the same: measured with it present, the integration step reports it skipped and `Pin the triple` refuses `skipped 7, pinned exactly 6`, as it did for each of the six. The docstring says so. The collection child inherited PYTEST_PLUGINS and plugin autoloading, so an installed plugin could change what the audit reads. It now scrubs PYTEST_PLUGINS beside PYTHONPATH and PYTEST_ADDOPTS and sets PYTEST_DISABLE_PLUGIN_AUTOLOAD=1, as tests/test_declared_exclusion.py gives its own children. Still caught: the 12 loophole probes, the 18 plants, and the 6 collection probes. At openDox-code 2d116415 the step reads `10 passed, 1 deselected`. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap
changed the base branch from
build/034-t041-declared-exclusion
to
main
September 27, 2026 22:53
#30 (T041) landed as 5fbd188, and this PR is retargeted to main. main's tree equals #30's last head, 5b0e1c3, which this branch already carries, so the merge brings no change of content, and this PR's diff to main is its own five files: .github/workflows/validate.yml and tests/integration/'s four. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
brettheap
added a commit
that referenced
this pull request
Sep 27, 2026
It brings #31's merge of main (#30's squash, 5fbd188) and T042's rule 2 folding constant strings and reading pytest's marks (90cd3ad). #31 now sits on main, so this branch contains main at 5fbd188. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap
marked this pull request as ready for review
September 27, 2026 23:03
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 2 days and 19 hours by commenting @sourcery-ai review. Upgrade to get a review now.
Contributor
Author
|
READY at 44902ae — Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
Contributor
Author
brettheap
added a commit
that referenced
this pull request
Sep 27, 2026
#31 (T042) landed on main as squash 4e16db9, whose tree (32a04bd) is the tree of 44902ae, the #31 head this branch already merged in 88cd8d4. So the merged tree is this branch's own (eb9c239), and the two conflicts, `.github/workflows/validate.yml` and `tests/integration/test_assembled_surface.py`, are T043's edits of #31's lines; both resolve to this branch's side. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap
added a commit
that referenced
this pull request
Sep 28, 2026
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Plan 034, task T042 (9.3:
tests/integration/), slice P1-J. The plan isspecs/034-opendox-standalone-operation/tasks.mdat opensoft/openxFactorymain7af30fc5. T042's entry was re-read there before READY and is unchanged. This PR realizes box 9.3 of the ratifiedadd-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).main. T040 (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) landed asd84b5048and T041 (Plan 034 T041 (P1-J): the declared exclusion, 66 files each held to its reason; stacked on #29 #30) as5fbd188e.mainis merged in at44902aec, with no force-push. This PR's diff tomainis five files:.github/workflows/validate.ymland the four undertests/integration/.5817152735;5859927858.5859626652.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_recordscannot pass in a lone openXdox-code checkout. Twenty of the tree's entries come fromopenxdox.cli_gate, andcli_gate.py:47→gate_console.py:63runsfrom doc_health import corpusat module level. Measured at openDox-code2d116415:ModuleNotFoundError: No module named 'doc_health'. For measurement only, with openxFactoryd90df42d'sscripts/on the child'sPYTHONPATH, the same test body passes: 31 entry points in the golden's order, and text byte-identical totests/ideation-dashboard/fixtures/cli-help-tree.golden.txt(sha2569cbeca99…).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:validate.yml'sintegration (9.3)step deselects the test, so no report counts it and the exact skip pin is untouched. CI shows1 deselected.::notice::on the run's page.test_the_help_tree_is_left_out_only_while_its_stated_reason_holdsruns in the step. It builds the same child and passes only while the child fails exactly as the reason says:doc_healthnot found, on the way in throughopenxdox/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.tests/test_*.pyfiles 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.opendox @pin thatpyproject.tomldeclares, and the commit the installedopendoxrecords (PEP 610), throughtests/opendox_bundle.py'sdeclared_pin()andinstalled_commit(), reused rather than copied.compositionfixture fails, never skips, where the two differ or either is unreadable. It records the pin once on the JUnit report as the test-suite propertycomposes_at.assembled_webcopies the pinned openDox'sweb/and places this column's ten assets withweb_assets.install_view_modules(overwrite=False).conftest.pyhere. A rootless one would take the flatconftestslot fromtests/conftest.pyfor every module collected afterintegration/(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 toview_extensions.STYLE_RESIDUE["exclusive_classes"]. The scan looks for each placed sheet atviews/<name>, where the assembly writes it.tests/integration/test_declared_composition.py: the directory held to its rules.python_files/python_classes/python_functions, the conftest chain off,PYTHONPATH,PYTEST_ADDOPTSandPYTEST_PLUGINSscrubbed, and plugin autoloading off. Every item it reports must havecompositionhanded to it as an argument of its own. And every collected file must be one that F9.2'sls tests/integration/test_*.pylists.conftest.pyhere or below.tests/integration/test_assembled_surface.py: the 31-entry tree, and the test that holds its exclusion to its reason.cli_gate.GateSubcommands(), as openxFactory'sprofile_openxfactory.SUBCOMMAND_EXTENSIONSdoes, and then builds openDox's parser. The child gets this process's environment lessPYTHONPATH.not_movedrow..github/workflows/validate.yml: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 triplesumsintegration-report.xmlwithpytest-report.xml, and refuses a report that did not appear rather than summing around it. That is openDox-code's shape before its T036.412ce90a):MIN_SELECTED564 → 574 andMIN_PASSED558 → 568. A RAISED BY paragraph cites run 36355557215, which read4ae1c5c4at 574/568/6. The +10 is the ten tests the step runs.EXPECT_SKIPPEDstays 6, and the--noconftestcount stays 8.tests/test_declared_exclusion.py: this PR's recursive glob in T041's whole-suite collection check was taken into Plan 034 T041 (P1-J): the declared exclusion, 66 files each held to its reason; stacked on #29 #30 byte for byte (2769e8b). It is onmain, 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();views/**/*.css, astest_no_sheet_in_the_assembled_bundle_declares_a_design_token.The helpers and the
GATE_EXCLUSIVEtuple are openDox-code's text at55194335, byte for byte. Four things changed on arrival, each because this is the composition:assembled_web;web_assets.VIEW_MODULE_NAMES;composition.The falsifier: F9.2, unchanged
Verbatim from #1144's
tasks.md: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 noPYTHONPATH. F9.2's fresh venv records opendoxcommit_id2d116415.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', andset -estops 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
44902aecCI is green.
validaterun 36356924785 installs openDox-code2d116415: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 ismain'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
44902aechas no findings.cc3c0dce:35fba49: before, 0 of 9 plants were caught, and after, 12 of 12;doc_health. They were answered by the ruling, applied in4960b5a5.f5efc756:bd34a141;412ce90a, from CI's own run.4960b5a5: a sentence in the surface docstring did not parse. Fixed in5c0bc006.4ae1c5c4and2d1340f8:5a8767c3: before, 2 of 6 plants were caught, and after, 6 of 6;90cd3ad1. Of 6 plants, 5 are caught by the rule, and the sixth, a name computed from values that are not constants, is refused byPin the triple(skipped 7, pinned exactly 6);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.
doc_healthmade importable (T008 simulated);doc_healthneeding another missing module;doc_healthreached beforecli_gate.For other tasks
tests/integration/declared_composition.py,test_assembled_bundle.py,test_assembled_surface.pyandtest_declared_composition.py. Each needs acreated:entry underopenxdox_codein openxFactory'sdocs/opendox-carve-admissions.yaml, withsince:this PR's landing commit.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--deselectand 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--noconftestcount is still 8.cli_gateimportable in a lone checkout takes the deselect out of the required check, and the guard test with it. The guard fails until it does.Landing
44902aec, and no Copilot thread is open. The holder's lander merges.main. A squash landing keepsmainto 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