Repository navigation
DISPLAY: the xFactory host labels openDox's completion stage "implemented" (RULED openxFactory#656 comment 5784683830) - #26
Conversation
…nted" (RULED openxFactory#656 comment 5784683830)
Brett Heap, 2026-09-22, verbatim "1, keep completed and overlay
implemented" (after comment 5784654370, "2, keep completed"). openDox's
sixth neutral stage keeps role `completion` and the word `completed`; the
xFactory host overlays `implemented`, the word the governed lifecycle's
spine already uses (openxFactory docs/document-lifecycle.md).
`src/openxdox/view_extensions.py` declares `DISPLAY` beside
`VIEW_EXTENSIONS`, the same idiom: a module value under the facet's own
name, which the assembly's composite host forwards. It is PARTIAL, one
stage entry and two fields:
{"stages": {"completion": {"short": "implemented",
"label": "implemented"}}}
`normalize_display` fills every other role and field from
`NEUTRAL_DISPLAY`, and reads each of `_STAGE_FIELDS_REQUIRED` only where
it is present, so no entry must carry all four. `short` AND `label`
because both are the stage's rendered names and openDox spells both
`completed` (views/lineage.js titles a tile with one and captions it with
the other). `one`, `many` and `gate` stay openDox's.
It is NOT a DomainProfile field, and a test holds that: openxFactory's
composite forwards a facet only when ordinary lookup fails, and its
build_profile() refuses a facet named like a profile field.
Nineteen tests in tests/test_gate_loop_views.py, on validate's list
already. They read the facet the way openDox does: a host built from the
vendored engineering profile, registered with openDox's registry for one
test at a time, read back through the lazy proxy by a replay of the pinned
serve.build_server() statement, with the replay held to the installed
serve.py text. Covered: the facet reported `declared` and the host named;
`completion` rendering `implemented`; the five other stages exactly
neutral; exactly three leaves changed against the same host without the
facet; the facet dropped (two ways) failing both positive predicates; a
misspelled role (four spellings) or field refused where the server is
built; and the new guard's call site driven both ways. A 14-mutation
sweep over the facet, DomainProfile, the guard, the replay and the host
was caught 14 of 14.
validate's local run: selected 558, passed 552, skipped 6, failures 0,
errors 0 (main: 539 / 533 / 6). The floors are unchanged here; the next
commit raises them from CI's own run of this head.
Pin: pyproject.toml pins openDox-code 5c137a90, whose
src/opendox/display_profile.py is byte-identical to openDox-code main
(3c3a9e31) and carries normalize_display, host_display and
display_manifest. No pin moves.
Not the estate's first DISPLAY facet: openxFactory #1021 (7b3d097b) already
declares one in scripts/profile_openxfactory.py, with no `stages`, and
asserts that absence. This entry reaches a served page once that facet
takes this leg's `stages`, which is owed at openxFactory.
Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Reviewer's GuideThis PR adds the openDox-side DISPLAY facet for the xFactory host, overlaying Sequence diagram for host DISPLAY normalizationsequenceDiagram
participant Test as Host-shaped profile test
participant Profile as Registered profile
participant Host as OpenxFactoryProfile
participant Reader as display_profile
participant Views as openDox views
Test->>Profile: register profile
Profile->>Host: lookup DISPLAY
Host-->>Profile: DISPLAY facet
Profile->>Reader: host_display(profile)
Reader->>Reader: normalize_display(DISPLAY)
Reader-->>Views: completion short=implemented
Reader-->>Views: completion label=implemented
Reader-->>Views: other fields and stages=neutral
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
Validation thresholds and compatibility guards need correction before approval.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Adds an xFactory-specific DISPLAY facet that labels the completion stage as “implemented,” with integration tests and validation updates.
Changes:
- Adds and exports the partial display overlay.
- Tests normalization, forwarding, rendering, and compatibility behavior.
- Updates validation workflow documentation and test counts.
| File | Review |
|---|---|
tests/test_gate_loop_views.py |
Adds display integration coverage. Moderate issue (1 vote): the compatibility guard does not validate all symbols later accessed. |
src/openxdox/view_extensions.py |
Defines and exports the DISPLAY facet. |
.github/workflows/validate.yml |
Documents expanded validation. Moderate issue (2 votes): minimum test counts remain unchanged; nit (1 vote): imported-module count is inaccurate. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…ads, and the reach count is re-measured Copilot's review of 7956c05 on #26 raised three points. This commit takes two of them. The third, the floors, is taken by the next commit from CI's own run of this head, per the pin block's "THE NUMBERS ARE CI'S OWN". 1. "The compatibility guard does not validate all symbols later accessed." True. `_display_profile_or_skip()` checked the three readers and nothing else. The section also reads display_profile's constants and error class, the lazy proxy, the registry's four functions and `view_extension.host_profile_name`, so an assembly missing any of them would have raised an AttributeError instead of taking the ruled FAIL-at-the-pin / SKIP-elsewhere outcome. The guard now checks the whole table in `DISPLAY_READS`. A new test parses this file and holds the table to the section's own reads: a new read of `display_profile.X` or `registry.X` fails it until the guard checks X too. 2. "Imported-module count is inaccurate." The reach paragraph in validate.yml said FOUR of the twelve running suites reach the pinned openDox and THREE import its Python modules, and my first version of this PR named only `display_profile` for the new section. Re-measured over the 16 listed files, it is SIX and FIVE. #23's test_corpus_shape.py:31 and test_domain_corpus_adapter.py:37 import `opendox.corpus_adapter` at module scope with no guard, and the count never took them in. The DISPLAY section takes display_profile, profile_proxy and domain_profile. A third measured grep line is added: `grep -ln 'from opendox\.'` -> views, corpus_shape, domain_corpus_adapter. Two more mutations join the sweep: a new unchecked read, and a checked name dropped from the table. Both are caught; the sweep is 16 of 16. tests/test_gate_loop_views.py: 74 passed / 0 skipped (54 on main). validate, local: selected 559, passed 553, skipped 6, failures 0, errors 0. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…assed 553 Copilot's review of 7956c05 on #26 (thread r4077658929): the new tests were counted in prose, but `MIN_SELECTED` / `MIN_PASSED` still read 539 / 533, so a regression back to the old count would pass. True. THE REASON THE FLOORS RISE, as the pin block requires: the DISPLAY facet (RULED openxFactory#656 comment 5784683830) adds twenty tests to tests/test_gate_loop_views.py, the only listed file whose count moved (54 -> 74). No test skips, so EXPECT_SKIPPED stays 6. THE NUMBERS ARE CI'S OWN, taken the way #25 took the first pin. Run 35799110856 measured the head before this commit, 9ef7292: triple: selected=559 passed=553 skipped=6 failures=0 errors=0 pins: selected>=539 (margin 20) passed>=533 (margin 20) skipped==6 The floors are now 559 / 553. The local run of this commit reads margin 0 on both. With one of the twenty deselected, the pin step exits 1 with "selected 558 is BELOW the floor 559" and "passed 552 is BELOW the floor 553". Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Copilot's review of
|
… the section, both ways Copilot's review of f8d2aad on #26 had no findings and 0 open threads, but marked it "Needs a closer look": "The completeness test does not verify all DISPLAY-related module and proxy reads against the pin-guard tables." True, and the test's own docstring overclaimed. It checked attributes read off `display_profile` and `registry`, plus two names by hand. A new `view_extension` read, a new `from opendox.profile_proxy import ...` name or a new openDox module import in the section would all have passed it unchecked. It now parses the section, meaning every top-level statement after its header. Inside it, the names that hold an openDox module are the guard's two returns and every alias a `from opendox import X` binds. It collects each (module, name) pair the section reads: attributes off those names, and the names a `from opendox.X import Y` takes. It asserts: - every `from opendox import X` module is a key of `DISPLAY_READS`; - every pair read is a pair the guard checks; - every pair the guard checks is read (no dead entry, which would make the guard refuse an assembly over a name nothing uses); - four known reads are seen, so the parse is not vacuous. Four more mutations join the sweep: a new proxy name, a new `view_extension` read, a dead table entry and a new openDox module import. All are caught, and the sweep is 20 of 20. Counts unchanged: tests/test_gate_loop_views.py 74 passed / 0 skipped. validate, local: selected 559, passed 553, skipped 6, margin 0 on both floors. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
These are prose only; no assertion changes. - The module docstring said every test in the section "that reads the facet" asks `_display_profile_or_skip()` first. The shape test reads this leg's own `DISPLAY` value without the guard, and needs none, because it touches no openDox. What holds is narrower, and the docstring now says it: every test that reads anything off openDox asks the guard first. The exception is the guard's own call-site tests, which take openDox apart before they call it. - The `DISPLAY_READS` comment still described the completeness test as it was before 444de95 ("the file's own reads"). It holds the table to the SECTION's reads, both ways. Counts unchanged: tests/test_gate_loop_views.py 74 passed / 0 skipped. The mutation sweep is still 20 of 20. validate, local: selected 559, passed 553, skipped 6, margin 0. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…, not to scattered fragments Copilot's fresh review of a1eef31 on #26 (no findings, 0 open threads, "Needs a closer look"): "Strengthen the serve-path validation so it verifies the live capabilities assignment rather than only matching scattered fragments." True, and measured. The fragment test at a1eef31 PASSED when the installed serve.py's live call was changed to `None` and the old text left behind in a comment: M22 against a1eef31 (fragments): rc=0 :: 1 passed M22 against this commit (AST): rc=1 :: 1 failed test_the_replayed_statement_is_the_one_the_pinned_serve_makes now parses both sides: - `build_server` is defined once in the installed serve.py, and makes exactly one `capabilities["display"] = ...` assignment; - that assignment's value is the very expression `_served_display` returns, compared by `ast.dump` (comments and a trailing comma do not count), and a mismatch prints both with `ast.unparse`; - the three names it uses are bound where the replay binds them: `display_profile` and `view_extension` from `opendox` at module scope, `profile_openxfactory` from `opendox.profile_proxy` inside `build_server`. Three mutations join the sweep: the replay drifting from the server, the server's live call changed with the old text left in a comment, and a second display assignment. All are caught, and the sweep is 23 of 23. The installed serve.py was restored byte-identical (sha256) after each mutation. Counts unchanged: tests/test_gate_loop_views.py 74 passed / 0 skipped. validate, local: selected 559, passed 553, skipped 6, margin 0. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…, so it cannot be read as openDox's Copilot's review of 2dccece on #26 (thread r4077926099) says the completeness test "sees both `domain_profile.load` ... and `domain_profile.DomainProfile` ... but neither name is listed here. Consequently `pairs - table` is non-empty and [the test] fails on every run". Measured, and not so: - the test PASSED at 2dccece, on CI (run 35802022307, 553 passed, 0 failed) and locally (74 passed); - those two reads are off `from openxdox import domain_profile`, THIS leg's module. The test collects names only from a guard return or a `from opendox ...` import, so it never saw them; - adding them, as asked, breaks the file: 5 failed and 11 errors. The guard refuses the declared pin ("opendox.domain_profile.load, opendox.domain_profile.DomainProfile ... is missing from the `opendox` this leg DECLARES"), and the completeness test fails on two table entries nothing reads. The misreading is still worth removing at the source. The same module name meant openDox's registry in the table and this leg's engine in two functions. Those two functions now bind it as `engine`, as openxFactory's `opendox_host` does, and the completeness test's docstring says why this leg's module is not an openDox read. Counts unchanged: tests/test_gate_loop_views.py 74 passed / 0 skipped. The sweep is 23 of 23. validate, local: selected 559, passed 553, skipped 6, margin 0. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… by-name loads Copilot's review of 62461da on #26 made no line findings and rated the PR "Needs a closer look": "The dependency completeness guard has a moderate validation gap for qualified imports." Measured, and so. The parse collected names from `from opendox import X`, `from opendox.X import Y` and attribute reads off those bindings, never from an `import` statement. Five openDox reads the guard does not check each passed against 62461da's own test file (74 passed, all five MISSED): - M24 `import opendox.display_profile as qualified`, then a read of `qualified.SECTION_ORDER`, a name the table does not list; - M25 `import opendox.display_profile`, then a read of `opendox.display_profile.SECTION_ORDER`; - M26 `import opendox.doxbench_turns`, a module the table does not name; - M27 `importlib.import_module("opendox.doxbench_turns")` outside the guard; - M28 `__import__("opendox.doxbench_turns")` outside the guard. The parse now takes an `import opendox.X` as module X, an `as Y` as a binding of Y to X, and an `opendox.X.Y` chain off the package as the pair (X, Y). It also counts the section's calls to `import_module` and `__import__`: exactly one, the guard's own loop over `DISPLAY_READS`. All five are now caught, each by this test alone. Counts unchanged: tests/test_gate_loop_views.py 74 passed / 0 skipped. The sweep is 28 of 28. validate, local: selected 559, passed 553, skipped 6, margin 0. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 4 hours and 40 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
|
READY #26 @809ed77b 2026-09-23T01:00:33Z Gate, verified at this exact head (
The twenty added tests are the +20/+20. Mutation sweep: 28 of 28 caught. Pin: no concern and no move. openDox-code Still owed at openxFactory (see the body): its I do not merge; the holder lands. Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
…sed 558 (the five wheel-sentence probes) CI run 35913645237 (2026-09-23) measured d3b179a, this PR's first head, at selected=564 passed=558 skipped=6 failures=0 errors=0. That is margin 5 on the old floors, 559 / 553. The pin block's rule is that floors "may only RISE, and only with the reason in the commit message", and "THE NUMBERS ARE CI'S OWN", so they move to exactly that measurement: MIN_SELECTED 559 -> 564 MIN_PASSED 553 -> 558 EXPECT_SKIPPED stays 6 The +5 is the five new cases in tests/test_gate_loop_probes.py (50 -> 55), the only file on the list whose count moved. The six test_gate_loop_views.py cases this PR amends leave that file at 74. None of the five skips on a runner with node, and CI's runner has it. The pin block gains a "RAISED BY #27" paragraph beside #25's and #26's. Locally, the step run from this file is margin 0 on both floors (rc 0). With one of the five deselected it exits 1, naming both floors. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… (RULED openxFactory#656 comment 5801057769) (#27) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Realizes Brett Heap's ruling at [openxFactory#656 comment `5801057769`](opensoft/openXfactory#656 (comment)) (2026-09-23T19:00:37Z), verbatim **"yes, overlay implemented items too"**. It answers the open question #26 recorded: `one`/`many` ("completed item", "completed items") stayed neutral there because they are item nouns rather than the stage's label, and "whether those become "implemented …" is a wording question for a ruling". It extends [`5784683830`](opensoft/openXfactory#656 (comment)) ("1, keep completed and overlay implemented"), which #26 realized as `195276b7`. # What this declares `src/openxdox/view_extensions.py`: the one stage entry of `DISPLAY` gains its two item nouns. ```python DISPLAY = {"stages": {"completion": {"one": "implemented item", "many": "implemented items", "short": "implemented", "label": "implemented"}}} ``` - **Field names and shape are openDox's own.** The pinned `display_profile._STAGE_FIELDS_REQUIRED` is `("one", "many", "short", "label")`. `normalize_display` reads each one only where the entry carries it, and requires a non-empty string. `gate` (`None`) stays openDox's. - **`one` AND `many`**, for the reason #26 gave for `short` AND `label`, one tier down. They are the stage's two item nouns, so a `one` without its `many` would spell the same items two ways the first time a view counts them (`Display.count(role, n)`). - **Where the nouns render.** Measured in the bundle of the pinned `opendox` (`5c137a90`), over every `.one(`, `.many(` and `.count(` read outside `display.js` itself: - `one(COMPLETION)` appears **twice**, both in `views/wheel.js`. These are the two sentences #26 named: the archived tile's `landed` verb title, `"what landed: this " + d.one(COMPLETION) + "'s " + …` (line 289), and the empty note of the flyout that verb opens, `"this " + vocab.one(COMPLETION) + " records no " + …` (line 881). - `many(COMPLETION)` and `count(COMPLETION, …)` appear nowhere. - This column's own six modules read no item noun at all. - **What reaches a served page.** openxFactory [#1146](opensoft/openXfactory#1146) landed as `d52b4199` at 2026-09-23T19:40:56Z. openxFactory's own facet now **copies** this leg's `stages` (`_openxdox_stages()`), so these words reach a page through openxFactory's pin on the openXdox assembly root, with no code change on that side. The comment block above `DISPLAY` now says that, replacing #26's "owed" paragraph, which that landing discharged. # Tests **`tests/test_gate_loop_views.py`: six of #26's twenty cases are amended in place, and no case is added (74 passed, unchanged).** | test | now holds | | --- | --- | | `…declares_one_stage_entry_and_nothing_else` | the value, four fields | | `…conforms_to_the_pinned_reader` | `one` / `many` as well | | `…completion_stage_renders_implemented_through_the_host` | all four words through the host; `gate` neutral | | `…overlay_changes_four_words_and_the_named_absence_and_nothing_else` (was `…two_words…`) | against the facet-less host, exactly five leaves differ: `host_facet` and completion's `one`, `many`, `short`, `label` | | `test_dropping_the_facet_fails_the_overlay` ×2 | `one` falls back to `completed item`, and the positive predicate, which now requires all four words, refuses it | **`tests/test_gate_loop_probes.py`: five new cases (50 → 55 passed) run BOTH wheel sentences under node.** *What runs.* The shipped text, lifted verbatim out of the pinned `views/wheel.js`: - its imports from `display.js`, `helpers.js` and `wheel-model.js`; - the statement that binds `COMPLETION`; - `vocab` and its per-render assignment; - `FLYOUT_VERBS`, `fetchDeltaTexts` and `renderLandedBody`. They run in the composed bundle's own `views/`, beside the modules they import from. *What is replayed, and named as replayed.* Neither sentence is reachable from outside `wheel.js`. `FLYOUT_VERBS` is a module constant, and `renderLandedBody` is a closure inside `renderWheel`. Reaching that closure through `renderWheel` needs a tile focused, seated by the spring and then expanded, which is a physics harness rather than a sentence test. So the shell around the sentences is replayed: - `app.js`'s `readDisplay(probedCaps)`, handed down as `ctx.display`; - the mounter's `verb.title(vocab)`; - `showLanded`'s read and render for a change with no spec delta. The host is `test_gate_loop_views.py`'s own, imported rather than copied: the engineering host, the registry fixture, the `serve.build_server()` replay, and the guard. | test | holds | | --- | --- | | `…completion_sentences_say_implemented_item_through_the_host` | `what landed: this implemented item's detail files` and `this implemented item records no detail files`, from the payload the host serves (`host_facet: "declared"`) | | `…completion_sentences_stay_neutral_without_the_facet` ×2 | `completed item` in both sentences: for the same host forwarding no `DISPLAY` (`host_facet: "absent"`), and for no `/capabilities` payload at all (a static image, `readDisplay(null)`) | | `…first_rulings_overlay_alone_leaves_both_sentences_neutral` | **mutation:** #26's value (`short` / `label` only) is served as declared, yet both sentences still say `completed item`, which the positive probe refuses | | `test_the_replayed_shell_statements_are_the_pinned_bundles` | each replayed statement, lifted from the pinned `app.js` / `views/wheel.js` and compared as code with comments dropped, so an old line kept in a comment cannot stand in for a changed live one (the finding the review of `a1eef310` made on #26) | **Mutation sweep**, each defect applied alone, then the two files run under `--noconftest`. All 15 were caught, the files were restored and sha256-verified, and the control is 129 passed. B1–B7 edit the installed `opendox` bundle in a private venv, standing in for an openDox pin bump that changed the shell: | mutation | result | | --- | --- | | S1 item nouns dropped (#26's value) | 5 failed | | S2 `one` only | 4 failed | | S3 `many` only | 5 failed | | S4 `one` and `many` swapped | 5 failed | | S5 `one` is the stage word `implemented` | 5 failed | | S6 `gate` overlaid too | 3 failed | | S7 a second stage's `one` overlaid | 3 failed | | S8 the item-noun field misspelled (`once`) | 7 failed | | B1 the landed title reads `short` instead of `one` | 4 failed | | B2 the empty note reworded | 4 failed | | B3 the mounter resolves the title against `neutralDisplay()` | 1 failed | | B4 `showLanded` renders a different summary | 1 failed | | B5 `app.js` reads no vocabulary (`readDisplay(null)`) | 1 failed | | B6 the wheel's mount stops handing down `ctx.display` | 1 failed | | B7 the old mounter line kept in a comment, the live one changed | 1 failed | S2 passes both sentence probes, because `many` renders nowhere. The value, the host and the five-leaf tests catch it. # The required check `validate.yml`'s 16-file `--noconftest` list, run locally exactly as the workflow spells it (fresh venv, `pip install -e ".[test]"`, then the `Pin the triple` script): | | selected | passed | skipped | failures | errors | | --- | --- | --- | --- | --- | --- | | main `195276b7` (local; CI's floors are 559 / 553, margin 0) | 559 | 553 | 6 | 0 | 0 | | `d3b179a4` (local) | 564 | 558 | 6 | 0 | 0 | | `d3b179a4` (CI run 35913645237), floors 559 / 553, margin 5 | 564 | 558 | 6 | 0 | 0 | | `39d8937e`, the head (CI run 35913837074), floors 564 / 558, margin 0 | 564 | 558 | 6 | 0 | 0 | - **+5 selected and +5 passed**, the five new probe cases, and nothing skips. - **The floors rise to CI's own run of `d3b179a4`**, in `39d8937e`, with the reason in its message and in a `RAISED BY #27` paragraph of the pin block, the way #25 and #26 took theirs ("THE NUMBERS ARE CI'S OWN"): - `MIN_SELECTED` 559 → **564** - `MIN_PASSED` 553 → **558** - `EXPECT_SKIPPED` stays 6 Copilot's review of `d3b179a4` asked for exactly this (`r4086816652`, answered and resolved). Its review of `39d8937e` reads "Approval recommended", with no findings. Locally, the pin step read from the file is margin 0. With one of the five probes deselected it exits 1: `selected 563 is BELOW the floor 564` and `passed 557 is BELOW the floor 558`. - The workflow comment's measured account stays true: - `test_gate_loop_views.py` stays at 74 under its own invocation. - `test_gate_loop_probes.py` goes 50 → 55. - The reach bullet names the probes file's new read of the DISPLAY facet. It goes through the views file's host and guard, so the `grep -ln` lines are unchanged. - Three present-tense "thirteen probes" in the probes file no longer count: that fixture now gates more. # What this does NOT do - It adds **no new file**, so no `created:` admission is owed in openxFactory `docs/opendox-carve-admissions.yaml`. - It moves **no pin**: `pyproject.toml` still names openDox-code `5c137a90`. - It changes neither openDox nor openxFactory. The chain continues in the forced order: the openXdox root's `code` pin onto this PR's landed commit, then openxFactory's openXdox pin. Each stays a draft until the PR before it lands. - It touches no `openspec/changes/` path. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…tree (split-opendox § 8.9 residue (i)-(iii)) (#28) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) ## What this repairs The archived openxFactory `split-opendox-two-layer-product` booked three carve defects in this leg's snapshot validation at `tasks.md` § 8.9 (amendment #6, RULED Q-P3 (a), openxFactory #656 comment `5728856581`), "owed to a follow-up act with its own claim". The box took its `[~]` DEFERRED marker at the archive, by RULED `5778397686`. This PR is that act. RULED at openxFactory #656 comment [5815412869](opensoft/openXfactory#656 (comment)) (item 3, **C3**, all (a)) and claimed at [5815613524](opensoft/openXfactory#656 (comment)): - **Q-XDV1 (a):** `CONTRACTS_DIR` comes from the environment. The assembly root's export of it is a separate openRepoShape act, not this PR. - **Q-XDV4 (a):** the two new suites stay OFF `validate.yml`'s named list. The three defects: - **(i)** `scripts/validate-ideation-dashboard-contracts.py`: `SCHEMAS_DIR` resolved to `ROOT / "contracts" / "schemas"`, a directory this leg does not have, "so as carved the validator cannot run from anywhere". - **(ii)** `src/openxdox/snapshot.py`: `VALIDATOR_RELPATH` named `openxFactory/scripts/validate-ideation-dashboard-contracts.py`, which openxFactory shed at `cc4ae9d3`. - **(iii)** `find_validator` walked every parent of its start (or of the cwd) and adopted whatever enclosing checkout still carried a pre-shed copy: "a reader adopting its enclosing tree". **This lands AFTER opensoft/openXfactory#1153** (RULED Q-L1, `5642758731`: the row annotation for an edit to an arrived file lands first). **#1153 LANDED** as `1d14fee6`. Against openxFactory `main` at `1d14fee6`, `verify-carve-arrival.py --destination openxdox_code --phase B` with the six replicas answers **OK** for this head `3f32cb5d`: 96 rows arrived, 87 declared-edit rows within their lines, 3 unapplied, 135 files with none undeclared, 34 declared admissions used. Before #1153, `main`'s manifest refused this leg with `arrival-digest-mismatch` at `src/openxdox/snapshot.py`. **Land it by squash, the way #16–#27 landed.** Both admissions' `since:` is `45825ff7`, this branch's first commit, which introduced both suites (`git log --diff-filter=A` on this branch). That stays true through a squash, as it does for the 17 existing admissions that name a pre-squash branch commit. It would stop being true only if this branch's history were rewritten, so it must not be. **This does NOT discharge openxFactory#1144 (`add-neutral-product-standalone-operability`) task 7.3.** That box's FALSIFIED BY asks the INSTALLED distribution to find its own validator from a `start` outside the product. This PR's `find_validator` answers `None` for such a start. So when phase 2 realizes 7.3, it revisits `tests/test_snapshot_validator_home.py::test_a_start_outside_the_product_is_refused_not_walked`, and the holder is taking that tension to Brett as a phase-2 question. The arrived `tests/test_snapshot_validation_launch.py` belongs to the same revisit (Copilot, round 2). It still writes its stub validator at `aggregation / VALIDATOR_RELPATH` and launches from the corpus root outside this product, so under this confinement its launch would report validation SKIPPED. It cannot be collected in this repository at the base or at this head: the pinned openDox-code `5c137a90`'s `serve.py` imports `ideation_dashboard`, which is not installed here. It is also not among `validate.yml`'s named files, so no gate's outcome moves. Nothing changes for openDox-code's two live callers of `find_validator`, which are `workbench.validate_manifest` → `find_validator(path.parent)` and `cli._locate_validator` → `find_validator(written.parent) or find_validator(repo_root)`. Both pass a start outside this product. Both already get `None` at `main`, because the old relpath names the shed path. They still get `None` here. ## Before → after (re-cut on `main` `626f2c8d`; the four files are byte-identical to the helper bank's first cut `d3a90748` on `ab04453d`, and `#26`/`#27` touched none of them) | | before (`626f2c8d`) | after | | --- | --- | --- | | (ii) `VALIDATOR_RELPATH` | `openxFactory/scripts/validate-ideation-dashboard-contracts.py` (absent everywhere since `cc4ae9d3`) | `scripts/validate-ideation-dashboard-contracts.py`, relative to this product's root | | (iii) the product nested under a pre-shed openxFactory checkout | adopts the parent's validator | never looks up: the validator used is always the product's own. A dangling-edge snapshot is `not-conformant`, and `validate_or_raise` raises | | (i) validator in the openXdox assembly root (`2f3f857d`, `code` at the test tree), `CONTRACTS_DIR=$PWD/spec/contracts` | rc=2 in every case: `ERROR harness failure: … code/contracts/schemas/ideation-dashboard-snapshot.schema.yaml` not found | snapshot example rc=0; `negative/snapshot-dangling-document-edge` rc=1 (1 error); `snapshot-index` example rc=0 | | (i) the same without `CONTRACTS_DIR` | rc=2, as above | rc=2, now naming the channel: `… is not carried under …/code/contracts/schemas (this tree carries no contracts/ and CONTRACTS_DIR is not set; export it as the spec leg's contracts directory)` | | the arrived, unedited `tests/test_snapshot.py`, in that assembly root with `CONTRACTS_DIR` | 3 failed / 14 passed | **17 passed** | ## How - **(ii) and (iii).** - `product_root()` is fixed `parents[2]` arithmetic on the module's own path, confirmed by an explicit marker: the `src/openxdox/` layout and a `pyproject.toml` naming `openxdox`. - `find_validator(start=None)` keeps its signature, because openDox's `consumer_reach` binds it by name. It now CONFINES: a `start` outside the product answers `None`, a `scripts/` link that resolves out of the tree is refused, and neither the cwd nor the snapshot's own directory is a search root any more. - A validator from anywhere else must be passed explicitly (`validator=`). - **(i).** - A resolved `schemas/` that carries NONE of the ten, or none at all, is refused before any mode runs: harness failure, exit 2 (`87e627c`, Copilot round 2). Otherwise an empty registry let a directory sweep that met no recognized instance exit 0 having loaded no schema. - An own `contracts/` or `contracts/schemas/` that resolves OUT of the tree is refused before any directory is chosen, whatever it reaches: a directory with `schemas/`, one without, or nothing, since a dangling link counts too (`3f32cb5d`, Copilot round 3). Otherwise a valid `CONTRACTS_DIR` let such a link pass unread. - The validator reads this tree's own `contracts/` when the tree carries `contracts/schemas/`. That covers the pre-shed layout and openxFactory's `doxbench_contracts._composed_validator` farm, both unchanged. - Otherwise it reads the directory **`CONTRACTS_DIR`** names. That is the channel the assembly root's `AGENTS-shape.md` declares for a contract the code reads but does not own: "the code leg's tooling now takes `CONTRACTS_DIR` from the environment … rather than each script guessing at `../`". - Nothing above the script's own root is read by position. - The registry loads the family schemas the resolved directory carries; three of the ten live in openXdox-spec since the carve. An instance of any other kind is refused with exit 2 and never passed. The refusal names the missing schema and the directory it read. For a possibles-register section, whose kernel stays with openxFactory, it is the registry's own `Unresolvable` naming that schema. openXdox's root `Makefile` is a digest-pinned copy of openRepoShape's scaffold template. It does not export `CONTRACTS_DIR` today, so in the assembly root the validator still refuses by default, but it now says which variable supplies the contracts. Whether the root should carry that export is a shape question for openRepoShape (Q-XDV1 (a)), not this PR. ## Tests Two created suites, both `--noconftest`-safe, each copying the REAL module or script into a `tmp_path` layout: - `tests/test_snapshot_validator_home.py`, 12 tests. - (ii): the relpath and the own-tree answer. - (iii): none of these is ever adopted: an enclosing pre-shed validator, a pre-shed corpus, the cwd, a `start` outside the product, an installed copy, a `pyproject.toml` naming another distribution, and an escaping `scripts/` link. - The signature is kept. - `tests/test_validator_schema_home.py`, 12 tests: - runs with `CONTRACTS_DIR` (exit 0); - a dangling edge is a finding (exit 1); - an uncarried kind is refused by name (exit 2); - both carved path constants follow the declared directory; - the refusal names the channel; - a declared directory without `schemas/` is refused; - an enclosing assembly root is never read by position; - a composed family's own tree still wins over `CONTRACTS_DIR`; - an own `contracts/` that is a LINK out of the tree is refused, with or without `CONTRACTS_DIR` (added at `0a1963f8` on Copilot's review); - a real `contracts/schemas/` of LINKED files (openxFactory's composed farm) is still the tree's own (a guard, same round); - no mode passes having loaded no schema: both sweeps, `--transition` and the default, with nothing resolved or with a `schemas/` of unrelated files, all exit 2 (added at `87e627c` on Copilot's review; it fails at `0a1963f8`, where the empty sweep exits 0); - an escaping own link is refused whatever it reaches: `contracts/` dangling, `contracts/` to an outside directory without `schemas/`, and `schemas/` dangling out of a real `contracts/`, each with and without `CONTRACTS_DIR` (added at `3f32cb5d`; it fails at `87e627c`, where the dangling link with `CONTRACTS_DIR` exits 0). | measurement (python 3.12.3, pytest 8.4.2; venv from `pip install -e ".[test]"` as `validate.yml` installs, plus a second venv adding rfc3339-validator where noted) | `626f2c8d` | this head (`3f32cb5d`) | | --- | --- | --- | | **the required check replicated**: the 16 named files, `--noconftest`, no rfc3339-validator, as on the runner | 564 selected / 558 passed / 6 skipped / 0 / 0, **pin HOLDS** (floors ≥564, ≥558, ==6) | 564 / 558 / 6 / 0 / 0, **pin HOLDS** | | the two created suites, with rfc3339-validator | 21 failed / 3 passed (the residues, the two link cases, the no-schema guard and the new marker's API; the 3 passes are guards) | **24 passed** | | the two created suites, CI venv (no rfc3339-validator) | 11 failed / 1 passed / 1 skipped | 12 passed / 1 skipped (`test_validator_schema_home.py` skips at module level) | | whole `tests/`, `--noconftest`, `--continue-on-collection-errors`, per-test JUnit diff | 174 F / 830 P / 10 S / 128 E of 1142 (with the two suites copied in) | 152 F / 852 P / 10 S / 128 E of 1142. **22 outcomes change, all fail → pass**: the 21 new-suite tests that fail on the base and `tests/test_snapshot.py::test_find_validator_locates_pinned_checkout`. **0 regressions.** The 128 collection errors (`No module named 'ideation_dashboard'` / `'doc_health'`) are carve residue on both sides | ## Not in this PR - **The named list** (Q-XDV4 (a)). Both suites exercise carved modules, which RULED Q-L8 (b′) keeps off `validate.yml`'s list. `test_validator_schema_home.py` would also report as one module-level skip on a runner without rfc3339-validator (+1 against `EXPECT_SKIPPED == 6`). - **rfc3339-validator is not declared** in `pyproject.toml`, yet the validator exits 2 at its FormatChecker guard without it. That is reported here, not fixed. - **`tests/test_validate_ideation_dashboard_contracts.py`** keeps openxFactory's `parents[2]`, so it names the directory above this repository. That is another row's path constant, reported and not fixed. - **The pin moves**, which are separate owed acts in the forced order: - first, the openXdox root's code pin (the `code` gitlink, `contracts/code-pin.yaml` `commit:` and `tree_sha256`, `contracts/manifest.yaml` and CHANGELOG, in the shape of openXdox#17/#18) at this PR's LANDED sha; - then openxFactory's openXdox pin, with the consumer updates it makes due (`test_dashboard_source_seal.py` asserts the old walk; `nightly_lane.py` calls `find_validator(agg_root)`). ## Review rounds - **Round 1** (Copilot at `45825ff7`), fixed at `0a1963f8`. An own `contracts/` or `contracts/schemas/` that is a LINK out of the tree is refused with exit 2, with or without `CONTRACTS_DIR`. A real directory of linked schema files is still the tree's own. - **Round 2** (Copilot at `0a1963f8`), fixed at `87e627c`. With no schema carried, a directory sweep that met no recognized instance exited 0 having loaded nothing. `build_registry` now refuses first. This also corrects my round-1 answer, which called that exit 0 pre-existing: measured, the base `626f2c8d` exits 2 there. The launch-harness finding is answered in its thread; it belongs to the #1144 task 7.3 revisit described above, and is not a change here. - **Round 3** (Copilot at `87e627c`), fixed at `3f32cb5d`. The escaping-link check used to run only when `contracts/schemas/` was a directory, so a dangling link, or a link to an outside directory without `schemas/`, passed unread whenever `CONTRACTS_DIR` was valid. Both names are now checked as they resolve, before any directory is chosen. All eight probe cases exit 2; the composed farm still exits 0. - **No round moves openxFactory#1153's window.** Against the carve blob, the diff still touches exactly lines 14, 15, 16, 115, 116, 224, 225, 226, 230 and 1822, plus insertions beside 94 and 237. `verify-carve-arrival.py --phase B`, with the six replicas, answers `OK` for `3f32cb5d` against the LANDED `main` `1d14fee6` (87 declared-edit rows within their lines, 34 admissions used). The two admissions' `since` stays `45825ff7`, the suites' introducing commit. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
CI's own green run 36355557215 (2026-09-27, pull_request) measured 4ae1c5c, the head before this change, at openDox-code 2d116415: the named list 558 passed / 6 skipped, `integration (9.3)` 10 passed / 1 deselected, and Pin the triple selected=574 passed=568 skipped=6 failures=0 errors=0, margin 10 and 10 over 564/558. MIN_SELECTED 564 -> 574 and MIN_PASSED 558 -> 568. The +10 on both is the ten tests the integration step runs, the second report the triple sums since this PR; the named list is unchanged. EXPECT_SKIPPED stays 6: nothing in tests/integration/ skips, and the one test the step leaves out until T008 (RULED openxFactory#656 comment 5859927858) is deselected, which no report counts. A RAISED BY paragraph records it in the form #26 and #27 used. Copilot's review of f5efc75 asked for this: with the floors at 564/558, a loss of integration tests passed unnoticed. Measured with the raised floors, the pin step run from this file over CI-shaped reports: both reports, green at margin 0; the integration report missing, refused (missing, and 564/558 below the floors); one integration test lost, refused at 573/567. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…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>





Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Realizes Brett Heap's ruling at openxFactory#656 comment
5784683830(2026-09-22T21:44:49Z), verbatim "1, keep completed and overlay implemented". It follows5784654370(verbatim "2, keep completed"). openDox's sixth neutral stage keeps rolecompletionand the short wordcompleted. The xFactory host overlaysimplemented, the word the governed lifecycle already uses (openxFactorydocs/document-lifecycle.md, "The Lifecycle Spine", declared "for openxFactory and every DomainxFactory":implemented the artifact (doc, schema, validator, template) is built).What this declares
src/openxdox/view_extensions.pygainsDISPLAYbesideVIEW_EXTENSIONS. It follows the same idiom: a module value under the facet's own name, which the assembly's composite host forwards. It is partial: one stage entry, two fields.normalize_displayfills every other role and field fromNEUTRAL_DISPLAY("PARTIAL IS LEGAL, AND IT IS THE POINT"). It reads each of_STAGE_FIELDS_REQUIRED(one,many,short,label) only where the entry carries it. No entry has to carry all four, so none of the governed lifecycle's other wording is needed.shortandlabel. They are the stage's two rendered names, and openDox spells bothcompleted. In the pinned bundle,views/lineage.jstitles a tile withlabeland captions the same tile withshort.views/board.jsheads the column withlabel, andviews/wheel-model.jsnames the reel withshort. Overlaying onlyshortwould show the stage as "Completed" and "implemented" on one tile.one,manyandgatestay openDox's (see the open question below).DomainProfilefield, and a test keeps it that way. openxFactory's composite (scripts/opendox_host.py,OpenxFactoryProfile) forwards a facet only when ordinary attribute lookup fails. Itsbuild_profile()refuses a facet named like a profile field. So aDISPLAYon the dataclass would never be forwarded, and would stop that composite from being built.A correction to the premise: this is not the estate's first DISPLAY facet
The ruling record and
host_display()'s docstring ("no profile in the estate declares the facet yet") both say no profile declares aDISPLAYfacet yet. That was not true at openxFactory main2e222d98:7b3d097b(2026-09-13) declares one inscripts/profile_openxfactory.py(_display_facet(): statuses, areas, acts, artifacts).scripts/opendox_host.pyforwards it:FACETSincludes"DISPLAY". So an openxFactory assembly built from that main already publisheshost_facet: "declared"on/capabilities, with openDox's neutral stage words.stages. Its docstring calls the stage words an open naming question, andtests/test_engineering_profile_display_facet.py::test_sections_this_facet_deliberately_does_not_declareasserts"stages" not in facet. This ruling answers that question forcompletion.What this means for a served page: openDox reads the registered profile and never this module. In this estate that profile forwards
DISPLAYto openxFactory's own facet. So "implemented" reaches a served page only once openxFactory's_display_facet()takes this leg'sstagesinto its own facet, and flips that absence assertion. That step is owed at openxFactory, in the pin lockstep that carries this commit. It is recorded here rather than reached for from here, the same posture as theVIEW_EXTENSIONSre-export that is also still owed there. This PR is the openXdox half only.Tests: 20, all in
tests/test_gate_loop_views.py(already onvalidate's list)They read the facet the way openDox does. A host is built from the vendored engineering profile, shaped like
OpenxFactoryProfile: aDomainProfilesubclass forwardingDISPLAYto this module. It is registered with openDox's registry for one test at a time and restored afterwards. Each test reads the facet back throughopendox.profile_proxy.profile_openxfactoryby replaying the pinnedserve.build_server()statement.opendox.servecannot be imported at this leg (ModuleNotFoundError: No module named 'ideation_dashboard'). One test holds the replay to the installedserve.py's parsed assignment.…declares_one_stage_entry_and_nothing_elseDISPLAYin__all__…conforms_to_the_pinned_readernormalize_displayaccepts it…facet_name_is_not_a_field_of_the_domain_profile…manifest_through_the_xfactory_host_reports_the_facet_declaredhost_facet: "declared",host_profile: "openxfactory-engineering", kind and schema version…completion_stage_renders_implemented_through_the_hostshortandlabelareimplemented;one,manyandgatestay neutral…every_other_stage_still_renders_the_neutral_wordNEUTRAL_DISPLAY, every field…overlay_changes_two_words_and_the_named_absence_and_nothing_elsehost_facet,stages.completion.shortandstages.completion.labeldiffer…replayed_statement_is_the_one_the_pinned_serve_makesserve.py:build_servermakes exactly onecapabilities["display"] = …assignment, its value is the very expression_served_displayreturns (ast.dump), and its three names are bound where the replay binds themtest_dropping_the_facet_fails_the_overlay×2absent+completed, which the positive predicates refusetest_a_misspelled_stage_role_is_refused…×4completed,complete,completions,Completionare each refused withDisplayFacetErrornaming the typotest_a_misspelled_stage_field_is_refused_the_same_wayshrotis refused_display_profile_or_skipcall site ×45700475319)…guard_checks_every_name_the_display_section_readsDISPLAY_READS), both ways: no unchecked read, and no dead entry. Qualified imports count (import opendox.X [as Y], andopendox.X.Ychains off the package), and the guard's own loop is the section's only call toimport_moduleor__import__Mutation sweep over the source. Each defect was applied alone and the suite run against it; all 28 were caught:
completedcompletecompletedshortonlylabelonlyoneoverlaid too__all__onlyDISPLAYadded toDomainProfileDISPLAYwhatever it was tolddisplay_profileread the guard does not checkDISPLAY_READSopendox.profile_proxyview_extensionread in the sectionDISPLAY_READSserve.py's live call changed, the old text left in a comment (the earlier fragment test PASSED this one)capabilities["display"]assignment in the installedbuild_serverimport opendox.display_profile as qualified, then a read ofqualified.SECTION_ORDERimport opendox.display_profile, then a read ofopendox.display_profile.SECTION_ORDERimport opendox.doxbench_turns, a module the table does not nameimportlib.import_module("opendox.doxbench_turns")outside the guard__import__("opendox.doxbench_turns")outside the guardM24 to M26 are the qualified imports Copilot's review of
62461da2named. M27 and M28 are loads by name, which the same parse could not see either. Each read succeeds at run time, so only the completeness test can catch it, and it is the one test that fails. Run against62461da2's own test file, all five PASSED (74 passed): the gap was real, and809ed77bcloses it.The required check
validate.ymlwas run locally, exactly as the workflow spells it (pip install -e ".[test]"in a fresh venv, the 16-file--noconftestlist, then thePin the triplescript). CI agreed at every head:ab044537956c05c(CI run 35798245133)9ef72921(CI run 35799110856)f8d2aad7(CI run 35799326272), floors 559 / 553, margin 0444de958(CI run 35800232014), margin 02dcceceb(CI run 35802022307), margin 062461da2(CI run 35802511685), margin 0809ed77b, the head (CI run 35803626236), margin 09ef72921:MIN_SELECTED539 → 559,MIN_PASSED533 → 553,EXPECT_SKIPPEDstays 6. This isf8d2aad, with the reason in its message and in the pin block, the way § 5.4 FLOOR PART 2 clause (d), openXdox leg: pin the collection triple on the required check #25 took the first pin. The local run of the head reads margin 0 on both floors. With one of the twenty tests deselected, the pin step exits 1:selected 558 is BELOW the floor 559andpassed 552 is BELOW the floor 553.doc_healthpairs), and no new test skips.test_gate_loop_views.pyreads 54 → 74 passed under its own invocation, and_absent()calls go three → four. The reach paragraph is re-measured: SIX of the twelve running suites reach the pinned openDox, not FOUR, and FIVE import its Python modules, not THREE. BUILD the corpus-adapter IMPLEMENTATION (design § D4 machinery (1)): openXdox's neutral, profile-parameterized reader answers the conformance corpus 17 of 17 #23's two corpus suites importopendox.corpus_adapterat module scope and the count never took them in. A third grep line is added.The pin
pyproject.tomlpins openDox-code5c137a90. Itssrc/opendox/display_profile.pyis byte-identical to openDox-code main3c3a9e31(git diff --statempty) and carriesnormalize_display,host_display,display_manifestand_STAGE_FIELDS_REQUIRED. The installed distribution records that commit indirect_url.json. No pin moves.What this does NOT do
created:admission is owed in openxFactorydocs/opendox-carve-admissions.yaml.display_profile.pydocstring alignment is openDox-code#36's.one/many("completed item", "completed items") stay neutral because they are item nouns, not the stage's label. They still render in two wheel sentences (views/wheel.js: "what landed: this completed item" and "this completed item records no …"). Whether those become "implemented …" is a wording question for a ruling.🤖 Generated with Claude Code