Repository navigation
Plan 034 T041 (P1-J): the declared exclusion, 66 files each held to its reason; stacked on #29 - #30
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>
Reviewer's GuideThis stacked draft declares and enforces the 66-test exclusion required for standalone operation, proves each exclusion is necessary and correctly attributed, reports it transparently, and turns on the relevant hermeticity guard with relocated gate-verb regressions. Sequence diagram for validating each excluded test filesequenceDiagram
participant F as test_declared_exclusion.py
participant P as Child pytest
participant J as JUnit report
participant D as declared_exclusion.yaml
F->>D: load_declared_exclusion()
loop Each declared path
F->>P: Run path alone
P->>J: Write failure or error evidence
F->>J: Read failure messages and E lines
F->>F: Match evidence to declared reasons
end
F-->>F: Assert every file fails for exactly its reasons
Flow diagram for declared test exclusion enforcementflowchart TD
D["tests/declared_exclusion.yaml"] --> L[load_declared_exclusion]
L --> V{Declaration rules valid?}
V -- No --> R[DeclaredExclusionRefused]
V -- Yes --> C[collect_ignore derived from entries]
C --> P[Pytest collects suite excluding 66 files]
P --> S[pytest_terminal_summary]
S --> O["Print open extraction: reasons and excluded paths"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Conftest validation must reject malformed types, invalid reason IDs, and only paths absent from the entries.
Review effort: Lite
Findings: 2
Open (2)
What changed in this PR
Adds a declared-exclusion manifest for standalone tests and restores Layer 2 hermeticity coverage for gate CLI operations.
Changes:
- Defines and validates 66 excluded test files.
- Applies and reports exclusions through
conftest.py. - Adds exclusion falsifiers and gate-verb hermeticity tests.
- Enables pinned openDox runner seam guards.
| File | Description |
|---|---|
tests/test_hermeticity_gate_verbs.py |
Tests guarded gate CLI operations. |
tests/test_declared_exclusion.py |
Validates exclusion declarations and behavior. |
tests/hermeticity.py |
Enables pinned runner seam guards. |
tests/declared_exclusion.yaml |
Defines excluded files and reasons. |
conftest.py |
Loads, validates, applies, and reports exclusions. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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 second overview is review Hermeticity coverage: Declaration validation: What each line shows:
Against the same four, at The three new rules:
The declaration's header states the new rules. The whole branch, measured. The test module adds seven cases. The measurements with openDox-code
At #29's pin, The PR stays a DRAFT, stacked on #29. Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
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 third overview is review Two of the five, which nothing else caught:
The other three. The test module caught these, but the conftest did not: a path with a doubled slash, an At The rules:
The declaration's header states the new rules. The whole branch, measured. There are six new cases. With openDox-code
At #29's pin, The PR stays a DRAFT, stacked on #29. Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
Copilot's review of #30 at 4f579f8 (5332073424) left no thread. Its summary names a moderate validation issue, "only: null". Measured true: the loader read an optional key given as YAML null as if it were not there. only: null on the doc_health or rail reason loaded, and so did note: null on any entry. The consumer's schemas already refused it, under R1Q25 (b)'s rule. With only: null added to the committed declaration's rail reason, the root conftest at 4f579f8 loads it, and the check module gives 201 passed. The loader now holds a given only and a given note to their forms, null included. The same plant then stops the run at the root conftest (exit 4), naming the rule. The structural sweep only caught crashes, so a malformed value that loaded went unseen. It now also fails on any variant that loads while its value is malformed. A value is well formed where it went if it is the value the place held, or one line of text where free text goes. It also gives each optional key the sample lacks each odd value. At 4f579f8's loader it names the 7 null variants that load, and at this one none load. It runs 861 variants. Two broken declarations are new, an only and a note each given as null. The plant is plant 28 in the mutation harness, and all 28 are caught. With openDox-code 71b631bc installed, the module and the layer-2 file give 206 passed. The whole suite, loading the root conftest, gives 864 passed and 10 skipped. Against the run at 4f579f8, the only differences are the 2 new cases, and its printout is byte for byte what it was. The evidence is unchanged, and the structural sweep of the committed declaration 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 at The loader read an optional key given as YAML null as if the key were not there. Against I also put The loader now holds any The structural sweep only caught crashes, so a malformed value that loaded went unseen. It now also fails on any variant that loads while its value is malformed. A value counts as well formed only if it is the value the place held, or one line of text where free text goes. The sweep also gives each optional key the sample lacks each odd value, so it now runs 861 variants. Run against At The summary also says the pull request needs a person's review before approval. It stays a DRAFT, stacked on #29, and goes to the holder once #29 lands and it has been re-measured at T040's pin. With openDox-code
At this branch's own pin, Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
T041's new commit refuses an optional key given as null and holds the loads to the sweep (root conftest.py, tests/test_declared_exclusion.py). It does not touch this branch's one line in that module, the recursive glob in test_the_whole_suite_collects_less_the_exclusion. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…o 2d116415 #29 (T040) landed as the squash commit d84b504, whose tree is #29's head 37fac9f's tree. This branch already carried every #29 commit but the last, 37fac9f ("bump the opendox pin to openDox-code 2d116415"), so the merge brings one line: pyproject.toml's opendox pin, openDox-code 5c137a90 -> 2d116415. The merge result's tree equals fe7c8d7, the local tree (576b371 with 37fac9f merged) the PR body measured ahead at this pin. #30's base is now main. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…59099a) test_the_whole_suite_collects_less_the_exclusion compares what a collect-only run of the whole suite collects with the test files present, and it globbed tests/test_*.py flat. Plan 034 T042 (#31, stacked on this branch) adds tests/integration/, whose files pytest collects in the whole suite, and its commit 759099a makes the glob recursive so the check reads them as test files. This takes that hunk here byte for byte: the file's blob is a75dc48, as on #31's branch. So #31's diff to this file empties once it merges this head. At this head no test file sits below tests/. The flat and recursive globs give the same 90 files, and the case passes. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ives it Copilot's review at 576b371 asks to close a failure-attribution gap that let malformed doc_health module names through. Measured true at 576b371, at the real pin (openDox-code 2d116415). The evidence took No module named 'doc_health..x', 'doc_health.x.', 'doc_health..' and 'doc_health.x..y', raised in a test or at collection. A test planted in tests/test_snapshot_validation_launch.py that raises the first of them was hidden, and that file's alone case passed. The gap was wider than malformed names. The evidence took any doc_health.<name>, and a lone checkout never shows one. Where doc_health is absent, the interpreter names doc_health itself, whichever of its modules is imported. import doc_health.corpus, from doc_health import corpus, and importlib on doc_health..x or doc_health.x. each raise No module named 'doc_health' (Python 3.12.3). All 69 doc_health results the listed files give alone show exactly that, at this pin and at 71b631bc. So the evidence is now that one exception, matched whole, and a doc_health result may show no other module. A result that names a module inside doc_health, well formed or not, is unattributed. Five evidence cases hold it, and 576b371's evidence took each of them: - a module inside doc_health, in a test; - the same, at collection; - a doubled dot; - a trailing dot; - doc_health shown beside a module inside it. The 233 real results are each taken by the same declared reason as before, and all 66 files show exactly their reasons. The harness gains two plants, one with a malformed name and one with a well-formed name. Both were hidden at 576b371, and at this commit all 30 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>
|
Copilot's review at Both runs are at the real pin, openDox-code I planted a test in Why a module inside
All 69 The fix. The cause is now that one exception, matched whole, and a
At At
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
#30 now carries main (#29's squash, d84b504), so this branch's pin moves to openDox-code 2d116415, the composition this PR lands in. It also took this branch's recursive glob byte for byte (2769e8b), so this PR's diff to tests/test_declared_exclusion.py empties, and it now takes doc_health's cause only as a lone checkout's interpreter gives it (7000db6). Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…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>
|
Copilot's review at Every run below is at the real pin, openDox-code The gap. The two refusal cases call the patched seams directly:
Both ports then miss layer 2. Layer 1's shim exits 97, and each port degrades in silence. At The fix. Two cases now drive the production call path. They use
Each must raise The two failures are the new cases. The pull-request case shows the escape itself: the port turned layer 1's refusal into its own At
The two refusal cases stay as openDox-code's own copies. They still check what they always checked: that each seam, once patched, raises. Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
|
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>
|
Copilot's review at At this head, at T040's pin (openDox-code
The points that need a person's call are in the body's Findings:
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
|
READY at 5b0e1c3 — Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 4 days and 15 hours by commenting @sourcery-ai review. Upgrade to get a review now.




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.mdat opensoft/openxFactorymain133e37d9. This PR realizes box 9.2 (part) of the ratifiedadd-neutral-product-standalone-operability.5817152735; R1Q24 (a) and R1Q25 (b), comment5850003126.5857409686.5857365170("Draft ahead in phase 1", which names P1-J's T041).After: T040, so this PR was stacked on 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 (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 as the squash commitd84b5048. This PR is now based onmain, mergedmainin at30beadb(no force-push), and was re-measured at T040's pin, openDox-code2d116415. P1-G's openDox-code#51 (T035), which sends two cases here, landed as80acead1, and its final list still names exactly those two.What changes
tests/declared_exclusion.yamlconftest.py(repository root)collect_ignorefrom 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.pytests/test_hermeticity_gate_verbs.pydoc_health.tests/hermeticity.pytests/test_hermeticity_runner_seams.pyTwenty-six commits, one of them the merge of
main:cb22294turns layer 2 on;4d2e5f0holds the moved cases;aa51a5fis the exclusion;7ad389frefuses malformed types and ids, for Copilot's first review;67a67bdproves layer 2 where the whole suite runs, and4582eacadmits only the ruled reasons, one-line texts and keys given once. Both are for Copilot's second review;d1fc5a2refuses an entry naming the check, a path not written plainly, anonlylisting a file twice, and aruledciting another ruling, for Copilot's third;58e5eb1refuses 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;f74c6d2refuses a file that is not UTF-8, or YAML nested past the recursion limit, as unreadable, for Copilot's fifth;6f9a36aholds the consumer's schemas totests/test_snapshot.pyin the conftest, as R1Q25 (b) rules, for Copilot's sixth;8dcf00aties 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;0763181narrows the contracts evidence to the exact contract files the listed files read, for Copilot's eighth;0651221makes every reason take its cause as raised, and only when that cause is all the result shows, for Copilot's ninth;4b9e129judges each result by the exception that ended the test, for Copilot's tenth;96db95cholds 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;54d06b8matches each cause whole, so no text can follow it, for Copilot's review at4b9e1291;d3d634aadds the rail's other-module cases, for Copilot's review at96db95cf;b1b2b97reads the whole exception chain, and prints a listed file that the command line names as collected, for Copilot's review atd3d634a5;387b9e9holds the validator's result to the consumer's refusal alone, for Copilot's review atb1b2b970;9e703a7shows each result an assertion reads whole and matches it exactly, and loads no installed plugin in the child runs, for Copilot's review at387b9e98;4f579f8lets the emptied list load and report that nothing is left out, and rebases the rule cases on a sample declaration, for Copilot's review at9e703a78;576b371refuses an optional key given as null, and makes the sweep fail on any malformed declaration that loads, for Copilot's review at4f579f82;30beadbmergesmain, 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's squashd84b5048. It brings one line: the opendox pin, moved to openDox-code2d116415;2769e8btakes T042's recursive glob from759099a(Plan 034 T042 (P1-J): tests/integration/ at the declared composition; stacked on #30, and the 31-entry tree needs a ruling #31) byte for byte, so the whole-suite collection check readstests/integration/once Plan 034 T042 (P1-J): tests/integration/ at the declared composition; stacked on #30, and the 31-entry tree needs a ruling #31 adds it;7000db6takesdoc_health's cause only in the one form a lone checkout's interpreter gives, for Copilot's review at576b3710;5b0e1c3drives layer 2 through the two ports a CLI verb declares, with no runner injected, for Copilot's review at7000db6d.No protected suite is edited. No
openspec/path is touched, so no Rule 6 window applies.The declaration, by reason
id)doc_healthstatus-exemption-railopenxfactory-contractsconsumer-schemastests/test_snapshot.pyaloneThat is 66 files, 68 reasons.
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.pyjoins the contracts class as the eighth file, as T005's experiment predicted (analyze round 1a, C8).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_healthand 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 reachdoc_health.test_doxbench_blank_reason.py:[doc_health, openxfactory-contracts]. One case reachesdoc_health, and one reads openxFactory'scontracts/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_healthentries, 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, thedoc_healthmodules, and R1Q25 (b)'s schema file.doc_healthalone, they would turn the exclusion test red on their other reason. Left out, thedoc_healthset would be incomplete.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) andkind: 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 andruledstarting with the ruling that admits it, plus an optionalonly: [paths]listing each file once.consumer-schemasmust carry exactlyonly: [tests/test_snapshot.py], since R1Q25 (b) admits it for that file alone;entries:, each{path, reasons: [<id>, ...]}with an optional one-linenote, one per line, in path order. Each path is written plainly, astests/<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), thenstatus-exemption-rail,openxfactory-contractsandconsumer-schemas(batch F's three). A reason leaves with its last entry.What the run prints, under
-qas well, just before pytest's final count line: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: ...;reason <id> (<n> files): <reason>; open until <open_until>; ruled <ruled>line per reason;excluded <path>: <id>[, <id>]line per entry.pytest collects a file that its command line names, whatever
collect_ignoresays. A listed file that a run names is printed ascollected <path>: <id>[, <id>]instead. The second line then readsdeclared 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 asexcluded, and batch B's run is one of those.The emptied list is
count: 0withreasons: []andentries: []. It loads, and the run printsdeclared exclusion: 0 files, listed in tests/declared_exclusion.yaml. Nothing is left out of this run, and no extraction is open.under the titlethe declared exclusion. Batch B's three assertions hold there withCOUNT=0.Batch B's three assertions, as commands, from the checkout root:
The same three are named tests:
tests/test_declared_exclusion.py::test_the_count_equals_the_entries,::test_every_entry_carries_its_reasonand::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 whatevercollect_ignoresays (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 marksE, 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, whosemessagenames 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:doc_healthModuleNotFoundError: No module named 'doc_health', and no other module shown. Wheredoc_healthis absent, the interpreter namesdoc_healthitself for any of its modules, so a lone checkout gives no other form.status-exemption-railopendox.doxbench_packet.StatusExemptionNotRegistered:plus openDox's own constantSTATUS_EXEMPTION_NOT_REGISTERED(T027, openDox-code#41). Or openDox'sAttributeErrorfor 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-contractsFileNotFoundErroron one of exactly four contract files. Or the interpreter'scan't open fileon the validator, followed by pytest's account of the assertion on its return code. That account shows the whole process, which must beCompletedProcess(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.yamlandcontracts/schemas/project-register.schema.yamlabove the checkout, where the family'sparents[2]takes openxFactory's root to be; the validatorscripts/validate-ideation-dashboard-contracts.pyabove the checkout; andcontracts/manifest.yamlat the checkout's own root. A path a new run shows joins the set in the pull request that quotes that run.consumer-schemascontracts/schemasand 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 wholeInput:of the pattern that did not match, and theopenxdox.snapshot.SnapshotInvalidthat 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
AttributeErrorraised from it, and theSnapshotInvalid, 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: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 theSnapshotInvalid. 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_PLUGINSand 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.pyalone passes 17 of 17 withCONTRACTS_DIRpointed at openXdox-spec'scontracts/, 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-code2d116415, sincemainwas merged in. The venv is fresh and installed as CI installs it:pip install -e ".[test]", which fetchesopendoxfrom GitHub at that commit. Python 3.12.3, pytest 8.4.2. Earlier heads were measured at openDox-code71b631bcin a scratch copy, and at a scratch merge of #29's head. The merge commit30beadbgives the same results as that scratch merge, apart from each run's own paths and ids.The module's 207 cases are the following:
consumer-schemasfortests/test_snapshot.pyalone;tests/test_*.py, written plainly, once, in order;tests/test_snapshot.py, and naming this module as the check;collect_ignoreequal to the entries;The other 5 are
tests/test_hermeticity_runner_seams.py's. Withrunner_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.pycases, which have no aggregation checkout, and the 6 seam-suitedoc_healthpairs that T044 owns. Before this PR, the same run was106 failed, 1027 passed, 10 skipped, 126 errors, onmainatd84b5048at 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 withNo module named 'ideation_dashboard', because the autousedeclared_human_consolefixture importsopendox.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 thread4116820877, which the evidence already refused.test_doxbench_packet.pyas[doc_health]only): "fails for ['status-exemption-rail'], which its entry does not name".test_canvas.pyplus the rail): "names ['status-exemption-rail'], but no result fails for it".test_leg_shape.py): "no longer fails".contracts/: it is unattributed.doc_healthevidence ('doc_hea1th'): it is unattributed.0651221it was caught as matching two reasons. That commit's message calls it plant 9; it is plant 8.collect_ignore = []: the derivation case and the whole-suite collection case fail./tmp/contracts/: it is unattributed. At6f9a36ait was hidden.contracts/above the checkout: it is unattributed. At8dcf00ait was hidden.0763181it was hidden.tests/test_snapshot.pyquotes "CONTRACTS_DIR is not set": it is unattributed. At0763181it was hidden.doc_health's import fails, and an unrelatedAssertionErroris raised while handling it: it is unattributed. At0651221it was hidden.tests/test_snapshot.pyquotes the consumer's whole refusal, this checkout's path included: it is unattributed. At4b9e129it was hidden.StatusExemptionNotRegisteredis raised with an unrelated diagnostic after its words: it is unattributed. At96db95cit was hidden.KeyErroris being handled, intests/test_doxbench_turns.py: it is unattributed. Atd3d634ait was hidden.KeyErroris being handled, intests/test_project_schema_election.py: it is unattributed. Atd3d634ait was hidden.doc_healthis imported while an unrelatedKeyErroris being handled, intests/test_snapshot_validation_launch.py: it is unattributed. Atd3d634ait was hidden.excluded: the named-run print case fails.outcome='not-conformant'behind the refusal: it is unattributed. Atb1b2b97it was hidden.387b9e9too, since the test's message shows the validator's last line first.387b9e9it was hidden.only: null: the root conftest refuses the run (exit 4). At4f579f8it loaded, and the check module passed.ModuleNotFoundError: No module named 'doc_health..x': it is unattributed. At576b371it was hidden.ModuleNotFoundError: No module named 'doc_health.corpus': it is unattributed, since a lone checkout never names a module insidedoc_health. At576b371it was hidden. Plant 29 is one case of this wider class.NotebookAdapterbinds the realnlmrunner at import, so the notebook port that a CLI verb declares misses layer 2: the notebook port case fails, "DID NOT RAISE". At7000db6it was hidden, and the whole suite stayed green.GhPullRequestsuses a runner subclass that keeps the realrun, so the pull-request port misses layer 2: the pull-request port case fails on the port's ownPullRequestRefused, which carries layer 1's refusal ofgh pr list. At7000db6it 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_refusedandtest_the_cli_seam_with_a_fake_port_reaches_no_binary. Its proposed destination wastests/test_hermeticity_gate_verbs.py.main68be484a,tests/test_hermeticity.pylines 226-240 and 262-275 (compared byastsource segment).gateis 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 exactlycli_gate.GateSubcommands(), as openxFactory'sprofile_openxfactory.SUBCOMMAND_EXTENSIONSdoes. It registers per test, andmonkeypatchrestores the registry after.doc_health(cli_gate→gate_console:63), so its entry is[doc_health].scripts/at133e37d9onPYTHONPATHto supplydoc_health(R1Q23 (a)'s composition):2 passed, with openDox-code5c137a90,71b631bcand2d116415installed. The fixture records whichever registry state the pinned openDox keeps. Without the stand-in host,gateis an invalid choice. Without layer 2, below, the unguarded create does not raise.80acead1), and its final list still names exactly these two cases for T041.Findings
tests/hermeticity.pyis openxFactory's replica here. Itsrunner_seams()probedideation_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".nlmrunner degraded silently. The moved unguarded-create case shows it: DID NOT RAISE.cb22294names the pinned openDox'sopendox.workbenchandopendox.session_pr, with no probe, as T098: display harnesses (A), and the server's scope labels from the served facet (plan 038, T094's R2-INV-R9) #51 did.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.cb22294,67a67bd). So the holder can ask for them to move to T043 instead, as revert commits here.tests/test_snapshot_validation_launch.py, a 5.4a protected suite, joins ondoc_health. T043's text expected T016's default registration to clear itsProfileNotRegistered("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 ondoc_health. So it is in the exclusion under R1Q6 (d), and F5.2 runs it in phase 2 in R1Q23 (a)'s environment.gate-verb suite here will need a host that carriesgate, oncedoc_healthis reachable.test_create_document_cli.py, the session suites and the rest drivecli.main(["gate", ...]), and no test in this leg registers such a profile. They fail ondoc_healthfirst today, so nothing shows it. This is for T008's arc, andtests/test_hermeticity_gate_verbs.py's stand-in host is one shape for it.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_maxLengthreadscontracts/schemas/xfactory-workbench-chat-turn.schema.yamlat this checkout's root, and this checkout carries no such file. Its file fails at collection ondoc_health, so a lone run never reaches the case.scripts/onPYTHONPATH), the file fails 38 of its 52 cases, the same at2d116415and at71b631bc.test_every_shipped_reduction_reason_fits_the_released_bound.scripts/ideation_dashboard/serve.pyat this checkout's root.doc_healthin this file, and its entry carries no note naming one of them.doc_health: the file's alone case then turns red, and that pull request settles them.docs/opendox-carve-admissions.yamlneedscreated:entries underopenxdox_code, withsince:set to this PR's landing commit, for:tests/declared_exclusion.yamltests/test_declared_exclusion.pytests/test_hermeticity_gate_verbs.pytests/test_hermeticity_runner_seams.pyCopilot's reviews
aa51a5ff(review5331185493, "Changes recommended").schema_version: trueor1.0, andcount: 66.0, loaded. Measured ataa51a5ff, all three load.7ad389frefuses them. It also takes the rest of that overview: reason ids that are not tokens, unknown keys, andonlypaths that are not entries naming the reason.7ad389f8(review5331214591, "Needs a closer look", no findings). Its overview named declaration-validation gaps and missing hermeticity coverage. Comment5858231394answers it, with the before and after runs.67a67bd.4582eac. Measured at7ad389f, three breakages load: a fifth reason, a reason text broken by a carriage return, and an entry givingreasons:twice, whose reasons are silently swapped. At4582eaceach is refused, naming its rule, and so is a secondentries:list.4582eac6(review5331400682, "Needs a closer look", no findings). Its overview said two moderateconftest.pyvalidation issues remain, without naming them. So the loader was probed with declarations that should not load, and comment5858299866gives the runs. Five loaded at4582eac, andd1fc5a2refuses each:4582eac, the whole suite then goes green (661 passed, 10 skipped, exit 0) with the check's 102 cases gone;tests/./test_canvas.pybesidetests/test_canvas.py). It counts and prints 67, and no case in the module notices;onlylisting a file twice, and aruledciting another ruling.d1fc5a22(review5331428675, "Needs a closer look", no findings). It names one item, listed as previously missed: an entry'sreasons: [[]]would raiseTypeErroratset(named). Comment5858393471gives the runs.d1fc5a2that case is refused, by the undeclared-reason rule, which runs first.58e5eb1adds the guard anyway, so the refusal no longer rests on the order of the checks.d1fc5a2, every one of them aTypeErrorfrom sorting unknown keys of two types.58e5eb1names them by repr, and the sweep then gives 0 crashes. The casetest_the_root_conftest_refuses_rather_than_crasheskeeps it, and atd1fc5a2that case fails, with 36 of 781 crashing.58e5eb13(review5331462163, "Changes recommended", one finding). Thread4116386894found that a declaration that is not UTF-8 raisedUnicodeDecodeErroron import instead of being refused. Measured at58e5eb1, it crashes, and so does YAML nested 5000 deep, with aRecursionError.f74c6d2refuses both as unreadable, as a missing file already was. The thread is answered with the runs (reply4116399992) and closed as done.f74c6d28(review5331486776, "Needs a closer look", no findings). It said a manifest-validation issue remains, and that the stacked hermeticity changes need a person's review. Comment5858527729answers both.only.6f9a36arefuses all three.cb22294,67a67bd) are for the holder to judge, as Findings 1 says.6f9a36a9(review5331520413, "Changes recommended", two findings). Both are fixed in8dcf00a, and each thread is answered with the runs and closed as done.4116448804: the contracts evidence took any missing path under acontracts/directory outside the checkout. At6f9a36a, 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 (reply4116472044).4116448815: the gate-verb fixture read_is_defaultand_built_from_default, which openDox-code5c137a90does not have. Composed at that pin, both cases errored in setup withAttributeError. The fixture now records whichever of the registry's state the pin keeps, and composed, both cases pass at5c137a90and at71b631bc(reply4116472168).8dcf00a7(review5331553252, "Changes recommended", one finding). Thread4116483580: the tree-based evidence still took an unrelated missing file inside those trees. At8dcf00a, a plantedcontracts/t041-unrelated.yamlabove the checkout was hidden, and its alone case passed.0763181makes the evidence the exact four contract files, with negatives for unrelated files in eachcontracts/(reply4116497328; the thread is closed as done). The overview's CI coverage point isvalidate.yml's 16-file list, which is T043's, as the next section says.07631817(review5331577450, "Changes recommended", two findings). Both are fixed in0651221, and each thread is answered with the runs and closed as done (replies4116538737,4116538880).4116509312:consumer-schemastook any text with "CONTRACTS_DIR is not set".4116509339: the contracts evidence took a result that also showed an unrelated missing file.06512213(review5331617447, "Changes recommended", one finding). Thread4116549888: a cause followed by an unrelated failure raised while handling it was still taken.4b9e129judges each result by its final exception (reply4116577746).06512213(review5331631138, two findings).4116563316: its own case, a whole exception quoted in an assertion, was already refused at4b9e129. But its wider point held for the two causes that arrive inside an assertion, and96db95cholds those to pytest's account of the assertion (reply4116601431).4116563297: an unhashable key does not crash. PyYAML raisesConstructorError, and the declaration is refused as unreadable, as measured.96db95ckeeps two cases for it (reply4116601371).4b9e1291(review5331662913, one finding). Thread4116591535: the rail's forms, and the two assertion-borne forms, were prefix matches, so text after a cause rode along.54d06b8matches each cause whole, the rail against openDox's own constant (reply4116624587).96db95cf(review5331686800, one finding). Thread4116613647: at that head the rail took a class of that name from any module.54d06b8had already tied it toopendox.doxbench_packet, andd3d634aadds the two negative cases (reply4116633096).54d06b8d(review5331712809, "Needs a closer look", no findings). It listed both of the previous round's threads as resolved.d3d634a5(review5331724652, "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, andb1b2b97does both (comment5859494679):tests/test_doxbench_turns.pyran 183 of its tests, yet printed the file as left out;b1b2b970(review5331850219, "Needs a closer look", no findings). Its summary asks to tighten theValidationResultevidence against mixed diagnostics. Measured true (plant 24), and387b9e9reads both ends of the elided result (comment5859499888).387b9e98(review5331903928, "Changes recommended", one finding). Thread4116820877: the elided middle of the result went unread. Its own example was already refused, but9e703a7shows each result whole and matches it exactly (reply4116865399). The summary also names a plugin-isolation finding, with no thread.9e703a7takes it as the child's plugins and turns autoloading off there (plant 26; comment5859623294).9e703a78(review5331980053, "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).4f579f8lets it load and report that nothing is left out, and rebases the check module's rule cases on a sample (comment5859742399).4f579f82(review5332073424, "Needs a closer look", no findings). Its summary namesonly: null. Measured true: an optional key given as null loaded as if absent.576b371refuses it and makes the sweep fail on any malformed declaration that loads (comment5859835940). The summary also asks for a person's review, which is the holder's once this PR is READY.576b3710(review5332119770, "Needs a closer look", no findings). Its summary names malformeddoc_healthmodule names. Measured true.'doc_health..x','doc_health.x.'and the like were taken asdoc_health, and so was any module inside it, which a lone checkout never names (plants 29 and 30).7000db6takes only the form the interpreter gives whendoc_healthis absent (comment5860399243).7000db6d(review5332409910, "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.5b0e1c3drives the two ports a CLI verb declares with no runner injected, and each then fails under its bypass (plants 31 and 32; comment5860511479).The repository's own check
validate.ymlis unchanged, since T043 owns it. Itspyteststep 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):That is #29's triple, unchanged. F9.1 whole, with its two
validate.ymlassertions, is T043's to quote.Landing
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.mainmakesd84b5048the merge base. A squash landing keeps them out ofmain's history.mainbefore this branch is deleted, since deleting a stacked pull request's base branch closes it.Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
🤖 Generated with Claude Code
Summary by Sourcery
Declare and rigorously validate the 66 tests that remain unavailable in a lone checkout while enabling and proving the pinned openDox hermeticity guard.
New Features:
Bug Fixes:
Enhancements:
Tests: