Repository navigation
T060, openXdox's facet carries the governed snapshot values (5.3a) (plan 034) - #34
Conversation
… values beside its one stage openXdox's `DISPLAY` facet gains a `values` block that holds today's governed snapshot values: `document_stage` `brainstorm` and `staged`, and `register_state` `latent`, `picked`, `rejected` and `superseded`. R1Q11 (a) moves openDox's `SNAPSHOT_VALUES` defaults to its neutral snapshot's values (plan 034 T054), so the governed values move into this facet. T007's batch I amends 5.3a to admit the block beside the facet's one stage (R1Q26 (a), openxFactory#656 comment 5851950767, kept at 5852513402). At every openDox before T054 the defaults are already these words, so the block changes nothing the host serves. That is why it lands before this leg moves its openDox pin past T054. The first protected edit (R1Q26 (a)): in tests/test_gate_loop_views.py, test_the_display_facet_declares_one_stage_entry_and_nothing_else now admits the block beside the one stage. No other assertion changes. The edit is entered in the reviewed allow-list with its reason in the next commit. T059 makes the second edit. The values test goes into tests/test_gate_loop_probes.py, which is admitted and not protected. It holds the block to the vendored engineering profile's word for each role openDox matches on, found the way the engine finds it. It checks that the host serves those values at the installed, governed and neutral defaults, and that without the block it serves openDox's own. Under node, it shows that the bundle's display.js places every governed value where it places it now, at the installed and the neutral defaults, with both halves of openDox's defaults stood up. It then shows that without the block (no facet, the pre-T060 facet, or no /capabilities payload) no governed value is placed. The guard in front of these reads one more name, and it is driven both ways. Measured at openDox-code 2d116415 (the pin) and at T054's 5a6fe637: - F5.1 exits 0 at both. - The whole suite at the pin: base 885/881/4, head 896/892/4. That is 11 added, 0 removed and 0 changed, and the skips are identical. - At 5a6fe637 the two facet suites give 139 passed and 1 failed. The failure is the overlay test, with six more values.* leaves, which is T059's edit. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Reviewer's GuideThis draft implements T060 by adding governed snapshot vocabulary to openXdox's DISPLAY facet, then verifies that hosts serve it and the pinned JavaScript preserves governed card placement when openDox defaults become neutral. The protected facet test is updated with an auditable allow-list entry, while follow-up work remains for T059/T066/T064 and validation-floor changes. Sequence diagram for governed DISPLAY values servingsequenceDiagram
participant Generator as openXdox generator
participant Facet as DISPLAY facet
participant Host as Host build_server
participant JS as openDox display.js
participant Views as Board and canvas views
Generator->>Facet: Provide governed snapshot vocabulary
Facet->>Host: Override values.document_stage and values.register_state
Host->>JS: Serve DISPLAY values with capabilities payload
JS->>Views: Resolve documentStage(role) and registerState(role)
Views-->>Views: Place governed cards in existing columns and states
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
…ed edit entered tests/protected_suite_respellings.yaml is created. It is the reviewed allow-list that T007's batch C has F5.2 and 12.5's falsifier subtract (RULED R1Q7 (a), openxFactory#656 comment 5817152735). No earlier task created it, so T060 does (T019's rule, as T067 amended it). The file enters this PR's one edit to tests/test_gate_loop_views.py, as batch I admits it (R1Q26 (a), comment 5851950767). The entry is `admitted`, not a respelling, and names: - its reason, its ruling and its review; - its landing, by this PR's number, #34; - the suite's blob before and after the edit, 7321b04 and a56906c; - the exact old and new text of the one test it changes. The header states the rule an entry holds by, for T059 and T086 to wire into both falsifiers. At the landing L, L^1:<suite> is before_blob and L:<suite> is after_blob. The old text occurs exactly once in the before text, and replacing it with the new text gives the after text byte for byte. Checked here against main 6158151 and this branch's head: the entry holds. Nothing reads the file yet. Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The required protected-suite allow-list entry is missing.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Adds governed snapshot values to openXdox’s DISPLAY facet and tests their serving and JavaScript placement.
Changes:
- Adds governed stage and register-state values.
- Extends protected facet assertions and regression probes.
- The required protected-suite allow-list entry is missing.
| File | Summary |
|---|---|
tests/test_gate_loop_views.py |
Updates the protected DISPLAY facet assertion. |
tests/test_gate_loop_probes.py |
Adds serving and JavaScript placement probes. |
src/openxdox/view_extensions.py |
Adds governed snapshot values to DISPLAY. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
|
READY at 36811f8 — T054 landed (openDox-code#57 → a691e4e4). 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 17 hours and 7 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
…e through openDox's seams (5.4a) (plan 034) (#35) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Arc: neutral-product-standalone-operability **DRAFT. T062 has landed, and this PR is pinned to its commit.** - **T062** landed as opensoft/openDox#16, merge commit `d5098297`. It pins openDox-code `047bb4fa` (`047bb4fa394f3e1bf42466062a67ef18e99f8d6a`), the head of openDox-code `main` after T058. - `pyproject.toml`'s `opendox @` pin now names that commit, at `25414afc`. Before that it named `814516b7`, openDox-code#59's head while that PR was a draft. - The comments that name the pin were each re-measured at `047bb4fa`. They are in `src/openxdox/view_extensions.py`, `tests/test_dependency_direction.py`, `tests/test_gate_loop_probes.py`, `tests/integration/test_assembled_bundle.py` and `validate.yml`. - **T055** landed as openDox-code#59 (`fa140875`). Between the two pins sit T057 (#58, `8ec08e91`), T055's follow-up (#70, `75bd8703`), T056 (#66, `a23e4224`) and T058 (#68, `047bb4fa`). - **The holder retargets T061 (openXdox-code#36, stacked on this branch) to `main` before this PR goes READY.** A `--delete-branch` landing would close it. ## What this is This PR carries plan 034's **T059** (`specs/034-opendox-standalone-operation/tasks.md`, read at openxFactory `main` `91e4685f`), slice P2-K: **5.4a, openXdox contributes its governed generator, registry and source through openDox's seams**. It is the governed half of R1Q10 (a). - **Realizes**: 5.4a, and 9.5 (step 3, part). - **Ruled**: R1Q6 (d), R1Q7 (a), `5817152735`; R1Q10 (a), R1Q23 (a), `5850003126`; R1Q26 (a), `5851950767`. - **After**: T052 (landed, openDox-code#54 → `fa8862cc`), T055 (landed, openDox-code#59 → `fa140875`), T060 (landed, openXdox-code#34 → `c41063d6`), T062 (landed, openDox#16 → `d5098297`), T067 and T007's batches C and I (landed; batch I is openxFactory#1180 → `8421603a`), and T040 (landed, openXdox-code#29), for the ratchet's single-writer order. openXdox keeps `generator.py`, `snapshot.py`, `snapshot_registry.py`, `completeness.py` and `corpus_root.py`. The new `openxdox.projection_contributions` registers what they provide at openDox's seams: | seam | openXdox's contribution | |---|---| | `opendox.generator_seam` | `GENERATOR`, a `SnapshotGenerator` over `generator.generate_snapshot`, declaring its two inputs (`project_register_source`, `possibles_source`) | | `projection_seams.registry` | the `snapshot_registry` module | | `projection_seams.corpus_root` | `CORPUS_ROOT`: `corpus_scan_defect`, `corpus_root_refusal`, `change_rows` and `SCANNED_ROOTS` | | `projection_seams.writer` | the `snapshot` module (`write_snapshot`) | | `projection_seams.validators` | `VALIDATOR`, for the three governed kinds (`ideation-dashboard-snapshot`, `-index`, `gate-action-record`). openDox's own kinds keep openDox's validator. | `generator`, `corpus_root` and `completeness` import openxFactory's `doc_health` at module level, and a lone checkout does not carry it (R1Q6 (d); the direction arc is T008). So the contributions reach those modules late, when they are used. Registering reaches no module that needs `doc_health`, and a subprocess case holds that with `doc_health` blocked. `register()` is explicit, idempotent, and all or none. A seam's refusal (`GeneratorAlreadyRegistered`, `SeamAlreadyRegistered`) reaches the caller unchanged, after every seam that call wrote has been taken back, in reverse. `is_registered()` and `unregister()` complete the API. ## The holder's rulings on this PR Each of these is the holder's reading, given on this PR's questions. 1. **Where the contributions register: (c), not (a).** - `openxdox.projection_contributions.register()` is an explicit call. - `openxdox.domain_profile.register()` calls it too, so openXdox standalone gets its governed projection from its own registration path. - `domain_profile.load()` stays free of side effects. Registering from `load()` was option (a), and it was ruled out: it would fire in every process that only reads a profile (the verifiers, the NotebookLM sync, tests). - **This revises the holder decision in openDox-code#54's body (2026-09-27).** That decision read: "T059 registers openXdox's generator from openXdox's own profile-registration path, the hook openxFactory already calls. So T064's line stays true, and T064 needs no host line." It rested on a misread. openxFactory's `scripts/opendox_host.register_openxfactory()` never calls `openxdox.domain_profile.register()`: it calls `openxdox.domain_profile.load(PROFILE_PATH)` and registers the composite with openDox alone (`opendox.domain_profile.register(composite)`). - **So T064 owes one host line:** `openxdox.projection_contributions.register()` in `register_openxfactory()`. T064's line *"It composes openXdox's profile, so none is expected"* no longer holds. `scripts/opendox_host.py` is on F11.1's host surface, so its guard admits the change. 2. **The home corpus in the test harness: (c).** openDox's `authoring.create_scaffold` asks the registered home corpus which fields it obliges (`scaffold_lead_fields()`, T054). With nothing registered it refuses, as #1144's 4.1a has every seam do: > "A process in which no entry point was built and nothing registered anything — an import, a test, a library caller — still refuses with 4.2's ADAPTER_NOT_REGISTERED, so the default is a registration the entry point makes and never a fallback inside the seam." That rules out (a), a fallback inside the seam, and (b) would amend a ruled falsifier environment. So `tests/conftest.py` registers the same factory openxFactory's host registers, `corpus_adapter_openxfactory.home_corpus`, found where F5.2's environment composes openxFactory's `scripts/` on `PYTHONPATH`. Where it is absent, it registers nothing, and a lone checkout refuses as 4.1a says. - **`tests/conftest.py` is not a protected suite.** It matches neither F5.2's glob (`tests/test_generator.py`, `tests/test_snapshot*.py`, `tests/test_session_snapshot.py`) nor 12.5's computed set (`git grep -l -e open-pr -e open_pr -e FakePullRequests -- 'tests/test_*.py'`). So it has no allow-list entry. - **The declared-exclusion accounting is unchanged by it.** Every suite that reaches the home corpus also reaches `doc_health`, so each is already declared. The lone whole suite is green with nothing registered. - **The cases are green again**, measured in composition (below). At `e3ef506a` there were 69. At `814516b7` there are 71, the same 69 plus the 2 T054's final head routes through the home corpus. All 71 pass here. 3. **The respelling: accepted** as an R1Q7 (a) entry citing T055's `r4136863569`. The expected call in `tests/test_session_snapshot.py::test_the_session_source_read_is_the_existing_confinement_mechanism` is respelled from `self.source.registry.resolve_source(` to `resolve_source_path(Path(root), rest)`, the route's one entry point, which applies the registered registry's `resolve_within`. The second assertion is unchanged. 4. **The consumer-schema reds: (a).** In F5.2's environment, seven cases are red at BOTH pins because the consumer's schemas are not in a lone tree: `test_generator.py` 4, `test_snapshot_determinism.py` 1 and `test_snapshot_registry.py` 2. They are deselected in T059's F5.2 run with R1Q25 (b)'s reason. A supplementary run with a composed `CONTRACTS_DIR` shows all seven green (below). `test_snapshot_validation_launch.py`'s 5 reds are C3's, so they are T061's. 5. **The exclusion entry: accepted.** T059 removes `tests/test_seam_assembly_beside_gate_and_projection.py` from `tests/declared_exclusion.yaml`, taking it from 67 to 66 files. The file was declared under `doc_health` only because `serve_projection` reached `doc_health` through `snapshot_registry` at import. `snapshot_registry`'s one read of `doc_health` (`pin_sentinels`) now happens where the sentinel is written, so the file passes alone in a lone checkout, and T041's `test_declared_exclusion` would refuse it as declared. **T059 joins the exclusion file's single-writer chain between T044 and T061:** T044 → T059 → T061. 6. **Three pre-arc reds in `tests/test_session_snapshot.py`: (a)**, ruled after this PR opened. They are deselected in T059's F5.2 run with the reason "red at both pins; pre-arc carve residue; not the arc's", and this PR does not edit them. They stay open for F5.2 whole (T061/T063). - `test_a_new_serve_process_re_registers_the_session_at_startup`: `opendox.serve` has no `SNAPSHOT_INDEX_ROUTE`. The constant moved to `openxdox.serve_projection` in split-opendox § 2.4 PR-3 (#761). - `test_a_session_key_is_validated_against_the_roster_before_url_composition`: the node probe copies only `repo-selector-model.js`, which imports `./display.js` (since openDox-code#21, § 3.4 S7). - `test_the_hosted_session_arrival_path_is_recorded_and_not_built`: `_handle_refresh_action` is not on openXdox's serve surface. It moved to openxFactory's `serve_openxfactory_lanes.py` in § 2.4 PR 3. ## What changes | path | what changes | |---|---| | `src/openxdox/projection_contributions.py` | **Created.** The contributions, as above. | | `src/openxdox/domain_profile.py` | `register()` also registers the contributions, after its own refusals and before the profile is held, so a refused contribution leaves no profile registered. `unregister()`'s docstring says why the contributions stay (below). | | `src/openxdox/snapshot_registry.py` | Reads `pin_sentinels` only where it writes the sentinel, for an entry with no revision. Seals gaps 1, 2 and 4 below. `index_document` and `compose_aggregate` each take one reading. | | `src/openxdox/snapshot.py` | Seals gap 3 below. `SnapshotNotWritable` is a `ProjectionSeamError` and a `ValueError`. | | `scripts/protected_suites.py` | **Created.** Batch C's subtraction (below). | | `tests/test_projection_contributions.py` | **Created**, 22 cases. | | `tests/test_governed_registry_and_writer.py` | **Created**, 27 cases, one or more per gap. | | `tests/test_protected_suite_check.py` | **Created**, 43 cases, over scratch git histories. | | `tests/test_gate_loop_views.py` | **Protected (12.5).** Batch I's second admitted edit, entered. | | `tests/test_session_snapshot.py` | **Protected (F5.2).** The respelling, entered. | | `tests/protected_suite_respellings.yaml` | Entries 2 and 3. The header now says who reads the file and states the named-test condition. | | `tests/conftest.py` | The home corpus, as ruled (2 above). | | `tests/test_generated_at_anchor.py` | Patched `snapshot._locate_validator`, which openDox's generate verb no longer reaches. It now patches the registered validator's `locate()`. | | `tests/test_dependency_direction.py` | The ratchet is lowered for T055's reaches: `cli` and `serve` leave `OPENDOX_BACK_IMPORTS`, and `branch_session` goes from (0, 7) to (0, 2). `DOC_HEALTH_SURFACE` records `snapshot_registry` as (0, 1). | | `tests/declared_exclusion.yaml`, `tests/test_declared_exclusion.py`, the four seam files | The exclusion entry leaves (5 above), and the prose follows. | | `pyproject.toml` | The pin: `2d116415` → `047bb4fa`, T062's commit. In the drafts it named `814516b7`, #59's head. | | `.github/workflows/validate.yml` | Floors raised to CI's reading, with the reason. The prose that named the old pin or the declared file is updated. | | `src/openxdox/view_extensions.py`, `tests/test_gate_loop_probes.py`, `tests/integration/test_assembled_bundle.py` | Comments that name the pin follow it, each measured at `814516b7` and again at `047bb4fa`, where each claim still holds. `ViewBinding` still has `styles` and `exports`. `web/`, `view_extension.py` and the copied stylesheet helpers are unchanged from `2d116415`. | | `tests/test_projection_contributions.py` (at `047bb4fa`) | One seam moved in T058: `default_projection.VALIDATOR`, one stand-in for all of openDox's own kinds, became `VALIDATORS`, one validator per own kind. The two cases that name it read `VALIDATORS[kind]`. This file is this PR's own, not a protected suite. | | `src/openxdox/projection_contributions.py` (at `aa0a2c5d`) | A refused registration gives back each unread default it replaced, as the default it was, instead of leaving the seam empty (Copilot, r4149710491). | **A kept decision on teardown.** Copilot asked whether `domain_profile.unregister()` should release the contributions. It does not. The contributions belong to the process, not the profile: - a host registers them without this module too (T064); - openDox's seams refuse a governed registration once a default has been read. So a teardown that took them back could not be undone wherever anything was served from a default in between, and a test fixture that takes the profile away for one case could not put it back. `projection_contributions.unregister()` is their teardown. The docstring says so, and a case pins both halves. ## The four gaps openDox's own defaults sealed each of these in openDox-code#59's review rounds, and #59's body names them as openXdox-code's to seal before T059 registers this leg's mechanisms. 1. **`resolve_within`'s symlink escape (r4125556296).** The hidden-name rule was applied only to the path as the URL spelled it, so `link -> .git` served `/source/link/config`, and `notes.md -> .env` served `.env`. The rule is now applied to the canonical path too. The source root is resolved under the same guard, so a root that is a symlink loop refuses instead of raising (Copilot). 2. **`drop` left a dangling active key.** Dropping the active entry now clears the key. Left set, it also kept every later entry from becoming active. 3. **The writer.** - It wrote in place (r4126138808). It now writes an exclusive temporary sibling, keeps the target's permission bits, fsyncs, and moves the sibling over the target in one `os.replace`. A failed move leaves the old snapshot and no sibling. - `canonical_json` wrote `NaN` and `Infinity` (r4125900060). A value JSON cannot carry is now refused, with nothing written. 4. **`SnapshotRegistry` read without its lock (r4136863481).** Every read now holds it, and the index and an aggregate's composition are each one reading (Copilot, r4139816732). ## The protected edits, and batch C's wiring **Both edits are entered in `tests/protected_suite_respellings.yaml`, naming this PR:** | entry | suite and test | edit | blobs | |---|---|---|---| | 2 | `tests/test_gate_loop_views.py::test_the_overlay_changes_four_words_and_the_named_absence_and_nothing_else` | admitted (R1Q26 (a), batch I): the test expects the `values` block's six leaves beside the five it pinned | `a56906c6` → `a5ce00cc`, chained on entry 1 | | 3 | `tests/test_session_snapshot.py::test_the_session_source_read_is_the_existing_confinement_mechanism` | respelling (R1Q7 (a), T055's r4136863569) | `b5e1be02` → `f78c4452` | Each is its own commit on this branch (`81a01cd`, `614f79f`), so each entry also holds at its commit. **`scripts/protected_suites.py` is batch C's subtraction** (RULED R1Q7 (a), `5817152735`). It is the last step of F5.2 and of 12.5's falsifier, in place of the inline intersection each ended with: ``` python3 scripts/protected_suites.py --landings="$(cat "$W/x-arc.txt")" --suites="$(cat "$W/gen-suites.txt")" # F5.2 python3 scripts/protected_suites.py --landings="$(cat "$W/x-arc.txt")" --suites="$(cat "$W/governed.txt")" # 12.5 ``` - The falsifier still lists the landings and the protected suites itself. - The script admits a touched suite only where one entry holds at that landing. An entry holds when: - the before and after blobs are the entry's; - `old` occurs once, and replacing it with `new` gives the after text byte for byte; - `old` starts a line, as it ends one; - both lie inside the named test. - Each entry admits one landing. The landings are taken oldest first, so a later landing that repeats a spent entry's edit is refused. - Renames are not detected, so a protected suite renamed away counts as a deletion. - It exits 2, subtracting nothing, when its input or the allow-list breaks the rules, or when the checkout does not hold a landing's history. - The lists are passed as values, never as paths: SonarCloud's first analysis flagged a path read from `argv`, S8707. ## Evidence Every run here used `LANG=C.UTF-8`, in the foreground. **AT THE FINAL PIN, `047bb4fa`, head `aa0a2c5d`.** - **The required check (9.2).** Run `36782773982` reads `triple: selected=993 passed=989 skipped=4 failures=0 errors=0`, which is the same triple as at `814516b7`. So the floors, 993 and 989, already sit on CI's reading at margin 0, and do not move. - **F5.2 in its environment**, on a simulated squash landing of this head on `main`, with `OPENDOX_CODE` at `047bb4fa`, `OPENXFACTORY` at `91e4685f` and `ARC_BASE` at `e28930bf`, with the same deselects as below: - `test_generator` 41 passed, 4 deselected; - `test_session_snapshot` 20 passed, 3 deselected; - `test_snapshot` 15 passed, 2 deselected; - `test_snapshot_determinism` 5 passed, 1 deselected; - `test_snapshot_registry` 38 passed, 2 deselected; - `test_snapshot_validation_launch` 5 failed, 4 passed. These are T061's, as below. - `test_snapshot_validator_home` 12 passed. - The arc check admits `tests/test_session_snapshot.py` by entry 3, then prints `ok: 1 protected edit(s)`. - 12.5's call admits `tests/test_gate_loop_views.py` by entries 1 and 2, and exits 0. - **The supplementary run with `CONTRACTS_DIR` composed**, and no both-pins deselect: `test_generator` 45/45, `test_snapshot_determinism` 6/6 and `test_snapshot_registry` 40/40. So the seven reds at both pins are still only the consumer's schemas. - **Whole suite alone (CI's command):** 989 passed, 4 skipped, 1 deselected. - **Mutants:** 22 of 22 killed at `aa0a2c5d`. That is the 21 below, plus "a displaced unread default is not given back", which fails 1 case. The sections below were measured at `4feb8009` with openDox-code at `814516b7`, the drafts' pin, and are kept as they were. **The required check (9.2), CI's reading.** Run `36741174322` at `4feb8009`: ``` triple: selected=993 passed=989 skipped=4 failures=0 errors=0 pins: selected>=993 (margin 0) passed>=989 (margin 0) skipped==4 ``` `main` `c41063d6` reads 896/892/4. Compared test by test: - added 98: `test_protected_suite_check` 43, `test_governed_registry_and_writer` 27, `test_projection_contributions` 22, and `test_seam_assembly_beside_gate_and_projection` 6; - removed 1: `test_declared_exclusion`'s case for the seam-assembly file; - changed outcome 0, and the same four skips. The floors are raised to 993 and 989 (T060's 11 and T059's 97), with `EXPECT_SKIPPED` 4, margin zero. Each later case moved them again, in its own commit, from CI's reading of the head before. **F5.2 in its environment**, as batch G amends it. That is a fresh venv, `pip install ".[test]"`, then `--force-reinstall --no-deps "$OPENDOX_CODE"`, with `PYTHONPATH="$OPENXFACTORY/scripts"`. `OPENDOX_CODE` is openDox-code `814516b7`, `OPENXFACTORY` is openxFactory `91e4685f`, and `ARC_BASE` is `e28930bf`. The deselects are the task's two `test_snapshot.py` schema cases plus rulings 4 and 6. At this head (`4feb8009`): ``` tests/test_generator.py rc=0 41 passed, 4 deselected tests/test_session_snapshot.py rc=0 20 passed, 3 deselected tests/test_snapshot.py rc=0 15 passed, 2 deselected tests/test_snapshot_determinism.py rc=0 5 passed, 1 deselected tests/test_snapshot_registry.py rc=0 38 passed, 2 deselected tests/test_snapshot_validation_launch.py rc=1 5 failed, 4 passed <- C3's, T061's (ruling 4) tests/test_snapshot_validator_home.py rc=0 12 passed landings: 29 admitted: 614f79f tests/test_session_snapshot.py, by entry 3 of tests/protected_suite_respellings.yaml ok: 1 protected edit(s), each entered and holding ``` The same block, **before**: - at `main` `c41063d6` with `OPENDOX_CODE` at `814516b7` (the realized openDox, pins only): `test_session_snapshot.py` 20 failed (`SeamNotRegistered`, adapter-not-registered), `test_snapshot_validation_launch.py` 9 failed; - at `main` with openDox `2d116415` (the old pin): `test_session_snapshot.py` 3 failed (ruling 6's three), `test_snapshot_validation_launch.py` 6 failed. The five `validation_launch` reds left here are: - `test_the_default_shaped_launch_validates_from_the_repo_root` - `test_a_run_dir_beside_a_checkout_still_uses_that_one_first` - `test_the_dependency_warning_carries_the_pip_remedy_and_clears_the_corpus` - `test_a_non_conformant_snapshot_still_blocks_and_blames_the_snapshot` - `test_the_classifier_reads_the_exit_code_not_the_dependency_sentence` **Supplementary, with a composed `CONTRACTS_DIR`** (ruling 4). The directory holds openXdox-spec `f088b09`'s three schemas, openDox-spec `f7ee3c7`'s three and openxFactory `91e4685f`'s four. The run does not deselect ruling 4's seven: ``` tests/test_generator.py rc=0 45 passed tests/test_snapshot_determinism.py rc=0 6 passed tests/test_snapshot_registry.py rc=0 40 passed ``` The rest reads as above, and ruling 6's three stay red. **12.5's set, and a simulated landing.** Over 12.5's 16 governed suites, the check admits `81a01cd` by entry 2 and `c41063d6` (#34) by entry 1. A squash landing of this branch on `main` was simulated with `git commit-tree HEAD^{tree} -p origin/main`, carrying the `Arc:` line. It is admitted by entry 3 (the F5.2 set) and by entry 2 (the 12.5 set). **With `main`'s allow-list** (entry 1 only), the same landing is refused on both paths: - `tests/test_gate_loop_views.py`: entry 1's before blob is `7321b04d`, and the suite before the landing is `a56906c6`; - `tests/test_session_snapshot.py`: "no entry names this suite". **The 23 protected suites in composition** (openxFactory `scripts/` on `PYTHONPATH`, each suite alone), compared test by test with `main` at the old pin: | state | red where `main` at the old pin was green | green where it was red | |---|---|---| | `main` with openDox `814516b7` (pins only) | 150 (130 `SeamNotRegistered`) | 0 | | this head | **0** | 3 | | this head with the home registration removed from `conftest.py` | 71, all adapter-not-registered | 0 | **Mutants**, at this head. Each ran against its suites, and the file was restored and checked clean after each. All 21 were killed: | mutant | killed by | |---|---| | take-back removed | 3 failed | | `_holds` always true / reads nothing | 11 / 8 failed | | `domain_profile.register` without the contributions | 5 failed | | `resolve_within` without the canonical check | 2 failed | | `drop` keeps the active key | 2 failed | | `get` without the lock | 1 failed | | `allow_nan=True` | 3 failed | | write in place | 2 failed | | no mode copy | 1 failed | | `pin_sentinels` back at module level | collection error, plus the ratchet | | the check skips each of: the before blob, the after blob, the exact text, occurs-once, old inside the test, new inside the test, input shapes, chaining | 1 to 3 failed each | | the facet's `values` block loses one governed word | 2 failed (the protected facet and overlay tests) | | the installed openDox route confines beside `resolve_source_path` | 1 failed (the respelled assertion) | More checks were each shown red before the commit that added them and green after: - the one-window index and aggregate; - the rename; - `schema_version: 1.0`; - the single-use entry and input order, plus `edit: []` and a sequence key; - a source root that is a symlink loop; - a landing the checkout does not hold (exit 2); - an `old` text that is the tail of a line; - a versioned entry indexed without `doc_health`, where a revisionless one still fails on it. Under a global `commit.gpgsign=true`, `tests/test_protected_suite_check.py` read 16 passed and 19 errors before its fixture disabled signing, and 37 passed after. ## For the tasks that follow - **T061** (stacked on this branch): - F5.2's five `validation_launch` reds above are its to clear; - it removes `tests/test_snapshot.py`'s exclusion entry, next in the exclusion file's single-writer chain after this PR; - it is next in the `pyproject.toml` pin's single-writer order. - **T062.** Landed (openDox#16 → `d5098297`). The pin names its commit, `047bb4fa` (see the top). - **T063.** F5.2 whole runs again there. Ruling 6's three `test_session_snapshot.py` cases stay open for F5.2 whole. - **T064 (openxFactory):** - the one host line, `openxdox.projection_contributions.register()` in `scripts/opendox_host.register_openxfactory()` (ruling 1); - `created:` admissions under `openxdox_code` in `docs/opendox-carve-admissions.yaml` for the files this PR creates: `src/openxdox/projection_contributions.py`, `scripts/protected_suites.py`, `tests/test_projection_contributions.py`, `tests/test_governed_registry_and_writer.py` and `tests/test_protected_suite_check.py`. Also `tests/protected_suite_respellings.yaml`, which #34 created. - **T066.** Unchanged by this PR. openxFactory's facet still has to compose the `values` block. #34's note on a page that fetches no `/capabilities` still stands: this PR serves nothing new there. - **T086.** The ratchet goes from here to (0, 0). The eleven remaining reaches are T084's. ## Review - **Copilot.** It reviewed each head from `f0f7f41c` on. Every thread is answered, and every finding in its overviews is either taken or answered in this body. The code findings were taken: - `c34c0de6`: one-window registry reads, renames, the schema integer, and unsigned fixtures; - `11c02cf4`: single-use entries, malformed keys and edits, and the teardown rule stated; - `62a1b0d4`: the root under the guard, and the seam-assembly docstring; - `e7860056`: missing history is exit 2; - `f70ed5d1`: `write_snapshot`'s refusal order, stated; - `9d315537`: `old` starts a line; - `a1b75f3a`: `doc_health` read only for the sentinel; - `1885aee1`, `f22c73b0`, `0fdd65c1` and `4feb8009`: the floors. - `aa0a2c5d`: after the re-pin, Copilot's review at `25414afc` found that a refused registration dropped the unread defaults it had replaced, instead of giving them back. That finding was taken. At `4feb8009` its review read *"Changes recommended"*, with **Findings: None**, and gave the gate as its only reason: T055/T062 had not landed and the provisional pin had not been replaced. Both are now done. Its review at `aa0a2c5d` reads *"Needs a closer look"*, with **Findings: None**, and asked for this description to state the final pin and gate, which it now does. Two threads named allow-list entries as missing. They were left on `f0f7f41c`, and the entries were added at `619684c9`; the replies quote the check admitting them. The pin thread is this PR's stated gate. There are 0 unresolved threads, including r4149710491 at `25414afc`. - **SonarCloud.** The first analysis failed the gate on Security Rating C (S8707). It passes from `7815c2da` on, including at `aa0a2c5d`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Arc: neutral-product-standalone-operability Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>




Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Arc: neutral-product-standalone-operability
Authored ahead as a draft, now landing. Brett's ruling on opensoft/openXfactory#656, comment
5857365170("Start phase 2's independent tasks (Recommended)"), had phase 2's tasks authored early as drafts. T049 has since landed (openxFactory#1204 →9d2e5bc3), T060's After: line is met (T054 landed as openDox-code#57 →a691e4e4; T067 and batch I are landed), and Brett's phase-2 landing word is "land phase 2 when green". Its claim on #656 is comment5873473056.What this is
This PR carries plan 034's T060 (
specs/034-opendox-standalone-operation/tasks.md, read at openxFactorymain6b97c601), slice P2-X, 5.3a as T007's batch I amends it.5850003126; R1Q26 (a),5851950767, kept at5852513402.8421603a).R1Q11 (a) gives openDox a neutral snapshot of its own, so T054 moves openDox's
SNAPSHOT_VALUESdefaults to that snapshot's values. openXdox's governed generator still writesideation-dashboard-snapshot, whose values are the governed domain's words. So the governed values move into openXdox'sDISPLAYfacet, onto thevaluesblock thatdisplay_profilealready lets a host override:These are the governed values the ruling names:
brainstormandstaged;latent,picked,rejectedandsuperseded.They are exactly openDox's
SNAPSHOT_VALUESat the pin,2d116415. openDox has had those defaults sinceSNAPSHOT_VALUESarrived in openDox-code#21 (1e46971), anddisplay_profile.pyhas not changed them onmainsince. So at this pin the block changes nothing the host serves. Once the pin carries T054, it keeps openXdox's own views placing every governed card where they place it now.src/openxdox/view_extensions.pyDISPLAYgains thevaluesblock, and its comment block says why and what reaches a served page. The module docstring gains one sentence.tests/test_gate_loop_views.pytest_the_display_facet_declares_one_stage_entry_and_nothing_elseadmits the block beside the one stage.tests/protected_suite_respellings.yamltests/test_gate_loop_probes.pyvaluestest, in a new section. The file is already admitted in openxFactory'sdocs/opendox-carve-admissions.yamland is not protected.This PR does not touch
tests/declared_exclusion.yaml,.github/workflows/validate.yml,conftest.py,pyproject.toml,README.mdor any pin. It touches nothing underopenspec/.The one protected edit, and the allow-list
tests/test_gate_loop_views.pyis one of 12.5's sixteen computed suites. Atmain6158151eits blob is7321b04d, the same as at openXdox-code's ARC_BASEe28930bf, so no arc landing has touched it. This PR's edit is the first one.test_the_display_facet_declares_one_stage_entry_and_nothing_else. Its equality now includes thevaluesblock besidestages, and its docstring says why. The facet is still pinned as one whole value. No assertion is weakened, and no other test in the file changes.tests/protected_suite_respellings.yaml, the name batch C gives the file. The entry carries:suite,testandlanding(this PR, by number, as T019's rule has it);edit: admitted(batch I: "neither as a respelling"), withreason,ruledandreview;before_blob7321b04dandafter_bloba56906c6;oldandnewtext.L^1:<suite>isbefore_blobandL:<suite>isafter_blob.oldoccurs exactly once in the before text, and replacing it withnewgives the after text byte for byte. T059 and T086 can wire that check into F5.2 and 12.5's falsifier, as batch C asks. This PR wires nothing.The falsifier
F5.1, extracted byte for byte from #1144's
tasks.mdat openxFactorymain(sha256502acdc9…). It ran from this branch's working tree withOPENDOX_CODEat openDox-codemain, and again at T054's head. In each venv F5.1 built,sorted(DISPLAY)was['stages', 'values'].The
valuestest is a new section oftests/test_gate_loop_probes.py. It has 11 cases, and all of them run undervalidate, which has node. None of them skips.test_the_values_block_is_the_governed_profiles_word_for_every_role. The block equals the vendored engineering profile's word for every role openDox matches on. The kinds are found the way the engine finds them:kind_declaring("demote"), asgenerator._document_status_vocabularydoes, andkind_declaring("promote-to-staging"), asgate_console._promotable_register_statedoes. The words are never typed a second time.test_the_host_serves_the_governed_values_at_any_defaults[installed|governed|neutral]. Through the host, by the replayedbuild_server()statement, the servedvalueswith the facet are the governed ones at any defaults. Without the facet they are openDox's own defaults. So where the defaults are the governed words the block changes nothing, and where they are neutral the block is what keeps them.test_js_the_views_place_every_governed_value_where_they_place_it_now[installed|neutral]. The bundle'sdisplay.js, given that payload, answers both of the questions a view asks, for every governed value:documentStage(role)orregisterState(role): the value a column filters on (views/board.js's captured column);documentStageRole(value)orregisterRole(value): the role a card's word andcstate-*hook are read by (views/canvas.js).test_js_without_the_block_the_neutral_defaults_place_no_governed_value[…]. This is the mutation. At the neutral defaults no governed value is placed, in each of three cases:/capabilitiespayload at all.test_a_missing_snapshot_values_table_FAILS_at_the_declared_pinand…_SKIPS_for_a_different_installed_commit. The section reads one name more than the DISPLAY section's guard checks (SNAPSHOT_VALUES), so it has its own guard, on_absent()'s rule, driven both ways.The neutral case is stood up at this pin in both of the places openDox keeps its defaults:
display_profile.SNAPSHOT_VALUES;views/display.js, which is lifted and replaced whole in the test's own copy.At a pin past T054, the
installedcase is the real neutral one.Mutations were run against the two facet suites, one at a time. Each mutated file was restored, and
sha256sum -cconfirmed it:valuesblockhost[neutral],js-place[neutral]picked→pickd)values(indisplay.js)js-place[neutral], which only the stood-up mirror catchestests/test_gate_loop_views.pygreen, with its one entered edit, together with the probes file, run byvalidate's own interpreter setup (pip install -e ".[test]", openDox at the pin):maingives129 passedover the same two files. The views file stays at 74 cases, and the probes file goes from 55 to 66.The repository's own
validate: the whole suite, as thepyteststep runs it (python -m pytest -q --junitxml=… --deselect "$LEFT_OUT",CI=true), atmain6158151eand at this head, each in its own checkout and venv. The triple is computed by the floor step's own arithmetic:The floors are
885/881, andEXPECT_SKIPPEDis4(T044). This head is 11 above both floors, with the same four skips.validate.ymlsays a floor "may only RISE, and only with the reason in the commit message". This PR leaves the floors where they are, because the phase-2 draft rule keeps it out ofvalidate.yml. Raising them by 11 is for whoever writesvalidate.ymlnext (see below).At T054's openDox (openDox-code#57,
5a6fe637)This was measured at this head with T054's openDox installed over the pin, in the same way F5.1 installs it:
Every
valuescase passes against real neutral defaults. The one red is the protected overlay test, which is T059's entered edit (R1Q26 (a), batch I). At that openDox the facet changes the served display in 11 leaves: the five the test pins today, and these six.For the tasks that follow
T059 (the pin past T054).
test_the_overlay_changes_four_words_and_the_named_absence_and_nothing_elsethen expects the six leaves above, and no other assertion changes.tests/protected_suite_respellings.yamlin the same shape. Itsbefore_blobis this entry'safter_blob, if nothing else touches the file in between.validate.yml's floors by this PR's 11 cases, with the reason.T066 (openxFactory, both pins). openxFactory's facet copies only
stages(scripts/profile_openxfactory.py). Two things must change:valuesblock too.tests/test_engineering_profile_display_facet.py, which asserts"values" not in facetandset(view_extensions.DISPLAY) == {"stages"}, into its both-pins form.Both must land before openxFactory's openXdox pin passes this PR's landing. That is T064.
T064 (openxFactory's phase-2 pin PR). Add a
created:admission fortests/protected_suite_respellings.yamlunderopenxdox_codeindocs/opendox-carve-admissions.yaml, withsince:set to this PR's landing commit.A limit, found by the third mutation case. A page that fetches no
/capabilitiespayload never reads a facet. It reads the bundle's own copy of the defaults, and after T054 those are neutral. So on such a page the governed values are placed nowhere, with or without this block. It concerns a governed snapshot served as a static image. This PR changes nothing there. The case is recorded for T059 and T066 to weigh.Review
b8ca697c(review5341402960) and recommended changes.r4124383277, said the allow-list the protected edit is entered in was absent. At that commit, it was.36811f86creates it.r4124456131) and resolved.36811f86(review5341466452) and found nothing new. Its verdict was Needs a closer look: "The PR is draft and depends on follow-up pin, integration, and protected-suite changes." The one thread it lists is round 1's, since resolved.36811f86.validateis green (run36448792848):🤖 Generated with Claude Code
Summary by Sourcery
Carry the governed snapshot vocabulary through openXdox's display facet so governed views retain their current card placement when openDox uses neutral defaults.
New Features:
Enhancements:
Tests: