Skip to content

Archive add-sops-ciphertext-ruling (post-#34 landing) - #35

Merged
brettheap merged 1 commit into
mainfrom
chore/archive-sops-ciphertext-ruling
Jul 19, 2026
Merged

brettheap merged 1 commit into
mainfrom
chore/archive-sops-ciphertext-ruling

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Mechanical archive step for the SOPS ciphertext ruling ratified in #34: promotes the credential-contracts delta into the live spec, moves the change packet to the archive, ticks task 1.5, and drops the README active-changes entry. openspec validate --all --strict green.

🤖 Generated with Claude Code

PR #34 landed the ruling (c9dd404); the delta is promoted into
openspec/specs/credential-contracts/ (24th promoted capability delta),
the change moves to archive/2026-07-19-add-sops-ciphertext-ruling, and
the README active-changes entry is removed.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI review requested due to automatic review settings July 19, 2026 21:39

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@brettheap
brettheap merged commit c1cdb9b into main Jul 19, 2026
@brettheap
brettheap deleted the chore/archive-sops-ciphertext-ruling branch July 19, 2026 21:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Archives the ratified “add-sops-ciphertext-ruling” change packet after #34, and promotes its credential-contracts requirement into the live OpenSpec so the ruling is captured as durable spec text rather than only a doc edit.

Changes:

  • Removes the “add-sops-ciphertext-ruling” entry from the README’s Active changes list.
  • Adds the SOPS ciphertext repository pattern requirement + scenarios to openspec/specs/credential-contracts/spec.md.
  • Moves the change packet into openspec/changes/archive/2026-07-19-add-sops-ciphertext-ruling/ and marks the archive task complete.

Reviewed changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Drops the archived change from the “Active changes” list.
openspec/specs/credential-contracts/spec.md Promotes the SOPS ciphertext pattern requirement + scenarios into the live spec.
openspec/changes/archive/2026-07-19-add-sops-ciphertext-ruling/tasks.md Marks the archive-on-landing task complete.
openspec/changes/archive/2026-07-19-add-sops-ciphertext-ruling/specs/credential-contracts/spec.md Captures the promoted spec delta inside the archived change packet.
openspec/changes/archive/2026-07-19-add-sops-ciphertext-ruling/proposal.md Archives the change proposal rationale/impact.
openspec/changes/archive/2026-07-19-add-sops-ciphertext-ruling/.openspec.yaml Archives the change provenance/approval metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +49 to +50
secret-provider pattern, only while every one of the following controls
holds: the repository stores only ciphertext, non-secret object metadata,
@sonarqubecloud

Copy link
Copy Markdown

brettheap added a commit that referenced this pull request Oct 2, 2026
…es openXdox's values; every candidate-pin red in its both-pins form) (plan 034) (#1213)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Plan 034, task **T066** (slice P2-H), `specs/034-opendox-standalone-operation/tasks.md` at openxFactory `main` `2140f5a7`: *"openxFactory at both pins, ahead of T064 (a non-arc act)"*. This PR makes openxFactory hold at BOTH pin sets:

- **the current pins**: openDox `663ac683` (code `2d116415`) and openXdox `57e2b8f2` (code `6158151e`);
- **T064's candidates**: the openDox root at T062's `d5098297` (code `047bb4fa`, spec `f7ee3c76`), and the openXdox root with its code at T061's `6a3b93b9`.

**Not an arc landing.** Per T091 and plan.md § "The trailer, the guard and Rule 6", no commit of this PR and no line of this body carries the arc trailer. This is openxFactory's own change, and it is correct with or without the arc's commits. It touches no `openspec/` path, so no Rule 6 window applies. No commit and no line here carries a closing keyword.

## What it changes

| file | change | both-pins form |
| --- | --- | --- |
| `scripts/profile_openxfactory.py` | The `DISPLAY` facet composes openXdox's `values` block (openXdox-code #34, T060) beside the `stages` it already copies, as a copy at both levels (R1Q26 (a), `#656` `5851950767`). A malformed block is refused by name. | Where openXdox declares no block (current pins), the facet declares none, and openDox serves its own defaults, which are still the governed words there. |
| `scripts/ideation_dashboard/dashboard_refresh_lane.py` | The sealed validator's harness puts each other sealed code leg's `src/` on its path (`sealed_leg_sources`). From openXdox-code #35, the product module imports `opendox.projection_seams` at module level, so the probe ended without a verdict and every seal refused. | At the current pins the extra path is read by nothing. |
| `tests/test_engineering_profile_display_facet.py` | :272 and :560 take the both-pins form. The cited :300-303 span keeps its lines. A new section 9 holds the served values to the registered profile's governed words, checks the copy, mutates the composition away, and refuses a malformed block. | Every case holds at both pins. The mutation is pin-independent. |
| `tests/ideation-dashboard/test_dashboard_source_seal.py` | The confined-locator case asserts R1Q14 (a): for a start inside the seal, the locator answers None (the confining leg) or the product's own validator (T061's leg), never the sealed copy. The stand-in legs carry the real module of each other-leg import the product module makes (`_product_module_leg_imports`). The probe's and the render validation's argv tails name the sealed legs. The "not a source checkout" case removes the install's packaged validator where the leg has one. The missing-schema case accepts the validator's wording at either leg. | Each reads the pinned leg's layout. |
| `tests/ideation-dashboard/test_doxbench_contracts.py` | The FILE gate runs the validator through `doxbench_contracts._composed_validator`, whose tree carries the family under its own `contracts/schemas/`, read first at both script generations (R1Q27 (a)). T061's `schema_source()` no longer reads a patched `SCHEMAS_DIR`. | The same route at both legs. |
| `tests/ideation-dashboard/test_lens_gate_cli.py`, `test_cli_column_split.py` | The gate verbs' generation site is `cli.generate_snapshot` before T055 and `cli.generator_seam.generate` from it. `_locate_validator` is a spine name only before T055, which removed it. The workbench's validator is pointed only where the leg binds `find_validator`. | Each is read off the pinned leg. |
| `tests/ideation-dashboard/test_serve_column_split.py`, `test_oqb_replumb_2.py` | T055 made the `/snapshot.json` arm's four handlers, and `hosted_ref_refused`, openDox's own. Each test reads which layout the pinned leg has and holds that one exactly. A leg with some of the four and not the others is refused. | Both layouts are named. |
| `tests/doc-health/test_sentinel_vocabulary.py` | The projector's declared sentinel read is held at either leg's spelling (T059 moved it into the fallback), and neither spelling may retype `"unknown"`. | Both spellings. |
| `specs/034-opendox-standalone-operation/tasks.md` | T064's "Why no host line is expected" bullet is corrected to the holder's revision of 2026-09-29: T064 owes one host line. It rides here, not in T064's arc PR, on the holder's decision of 2026-09-30, because a plan edit in an arc PR sits on no F11.1 surface. A dry run on a simulated T064 commit refused that path and nothing else. | Not a test. |

## Every red at T064's candidate pins, and what answers it

Three runs at the candidate pins, compared node by node:

- **C0**: `main` `2140f5a7`, with the candidate pins and no host line.
- **C5**: this PR's head, with the candidate pins and no host line.
- **C4**: this PR's head, with the candidate pins and T064's owed host line.

C0's full suite has **397 reds**: 8514 passed, 6 skipped. They split into 209 (A), 187 (B) and 1 (C1). C5 has 188 (B and C1), and C4 has 3 (C1-C3).

**A. Answered here, each in its both-pins form: 209 reds** (red at C0, green at C5).

| reds | file | the red at C0 | answered by |
| ---: | --- | --- | --- |
| 185 | `tests/ideation-dashboard/test_dashboard_source_seal.py` | Mostly *"the sealed validator could NOT RUN … No module named 'opendox'"*: from openXdox-code #35 the sealed product module imports `opendox.projection_seams`, and the harness put only the validator leg on its path. The rest are the stand-in legs lacking that import, T061's packaged validator, the missing-schema wording, and the confined locator under R1Q14 (a). | `sealed_leg_sources` in the lane, and the seal test's both-pins forms |
| 12 | `tests/ideation-dashboard/test_doxbench_contracts.py` | *"xfactory-workbench-chat-turn.schema.yaml is not supplied … CONTRACTS_DIR is not set"* (7) and the model-catalog twin (5): T061's `schema_source()` no longer reads a patched `SCHEMAS_DIR` | the FILE gate through `_composed_validator` (R1Q27 (a)) |
| 4 | `tests/ideation-dashboard/test_lens_gate_cli.py` | `opendox.cli` has no attribute `generate_snapshot` (T055) | the generation site read off the leg |
| 4 | `tests/ideation-dashboard/test_serve_column_split.py` | each of the four snapshot-arm handlers *"is defined on DashboardHandler AS WELL as on ProjectionRoutes"* (T055) | the T055 layout, read off the leg |
| 1 | `tests/ideation-dashboard/test_cli_column_split.py` | `generate_snapshot` left the spine (T055) | `SPINE_READ_THROUGH_SINCE_T055`, `SPINE_BEFORE_T055` |
| 1 | `tests/ideation-dashboard/test_oqb_replumb_2.py` | `serve.hosted_ref_refused` is openDox's own function from T055 | the predicate read off the leg |
| 1 | `tests/doc-health/test_sentinel_vocabulary.py` | the projector's sentinel read moved into the fallback (T059) | either leg's spelling |
| 1 | `tests/test_engineering_profile_display_facet.py` | `test_stages_is_the_one_section_openxdox_declares_and_the_one_composed`: *"DISPLAY now declares ['stages', 'values']; openxFactory composes only `stages` … Decide"* | decided under R1Q26 (a): composed, and the test is renamed `test_stages_and_values_are_the_sections_openxdox_declares_and_composes` |

**B. Answered by T064's host line: 187 reds** (red at C5, green at C4). With no governed projection registered at openDox's seams, every openDox entry point projects through openDox's neutral defaults. The gate verbs answer `action_unavailable`, the doxBench routes lose `console_token`, the workbench model port is never found, and a governed generation refuses `document_keys_are_paths`. They cannot be answered in openxFactory at the current pins, where `openxdox.projection_contributions` does not exist. One skip at C0 and C5 belongs to the same cause: `test_staging_seed::test_wire_a_scoped_create_then_edit_lands_one_document_with_its_body` (*"this plane cannot create documents"*), which runs and passes at C4.

| reds | file | the red at C5 |
| ---: | --- | --- |
| 136 | `tests/ideation-dashboard/test_doxbench_routes.py` | 134 `KeyError: 'console_token'`; one console-capability refusal; one peek-barrier timeout |
| 43 | `tests/ideation-dashboard/test_gate_routes.py` | `action_unavailable` (*"gate actions unavailable (no resolved actor/checkout)"*), and the status and body assertions behind it |
| 3 | `tests/ideation-dashboard/test_snapshot_abstract_noninterference.py` | the workbench's model port answers None |
| 2 | `tests/ideation-dashboard/test_dashboard_source_seal.py` | the sealed render refuses, because openDox's neutral generator answers (`document_keys_are_paths`) |
| 1 | `tests/ideation-dashboard/test_intent_feed.py` | the loopback plane's `/capabilities` reports `actions.gate` false |
| 1 | `tests/ideation-dashboard/test_intent_plane_boundary.py` | `action_unavailable` |
| 1 | `tests/ideation-dashboard/test_serve_column_split.py` | *"refresh is unavailable on this plane"* |

**C. T064's own: 3 reds, with no both-pins form.** I raised these with the holder, who decided (c): they go into T064's arc commit, all three on declared F11.1 surfaces (`ADMITTED_ARC_EDITS`).

1. `tests/openxdox_pin/test_openxdox_pin_verifier.py::test_ruling_q7_two_direct_upstreams_in_lockstep` is red at C0, C5 and C4. Its snapshot literal names openDox `663ac683`, and its own comment says it moves on every bump. A literal can name one pin only, so it moves to `d5098297` in T064's pin commit.
2. `tests/ideation-dashboard/test_dashboard_source_seal.py::test_the_render_leg_modules_are_what_the_render_unit_imports_by_name`
3. `…::test_the_serve_leg_modules_are_what_the_serve_entry_imports_by_name`

   Items 2 and 3 are green at C0 and C5 and red at C4 only. The host line's `from openxdox import projection_contributions` puts that module in the render unit's by-name imports. So the lane's `RENDER_LEG_MODULES` and the test's `RENDER_UNIT_IMPORTS` gain `projection_contributions.py` in T064's commit. The module does not exist at the current openXdox-code leg `6158151e`, so this PR cannot require it.

**Nothing new.** No node is red at C5 that was not red at C0. C5 and C4 select the same 8923 node ids. C0 selects 8917, because this PR's facet section 9 adds seven and renames one: the :560 test, red at C0 and answered under its new name.

## The measurements

Every local run is the gates' own steps:

- the consumer gate's chain: both verifiers, then the pin suites, then `tests/ideation-dashboard`;
- then `pytest-suite`'s `python3 -m pytest tests/ -q -m "not postgres"`.

Each runs with Python 3.12.3, the hash-pinned lock, node 24, the pinned OpenSpec CLI 1.12.0, and `PINNED_CORE_CHECKOUT` at codexFactory `b21f0100`. Each runs in a checkout named `openxFactory`, with its gitlinks recursively initialized, and `openXwallet` too.

| run | head | pins | verifiers | pin suites (floor 105/105/0) | `tests/ideation-dashboard` (floor 1137/1137/0) | `pytest-suite` |
| --- | --- | --- | --- | --- | --- | --- |
| **CI** | `2cc8e926` | current | OK, OK | **105/105/0** | **1480/1480/0** | **8917 passed, 6 skipped, 0 failed**: `selected=9335 passed=9329 skipped=6 failures=0 errors=0`, margin 2285, `skipped==6` (run `37051741886`). All 12 checks pass. |
| P2 | `2cc8e926` | current | OK, OK | 105/105/0 | 1480/1480/0 | 8918 passed, 5 skipped, 0 failed |
| C4 | `2cc8e926` + the candidate pins + the host line | candidate | OK, OK (lockstep confirmed) | 104/105 (item C1) | 1478/1480 (items C2, C3) | 3 failed (items C1-C3), 8915 passed, 5 skipped |
| C5 | `2cc8e926` + the candidate pins | candidate | OK, OK | 104/105 (item C1) | 1292 passed, 187 failed (B), 1 skipped | 188 failed (B and C1), 8729 passed, 6 skipped |
| C0 | `main` `2140f5a7` + the candidate pins | candidate | OK, OK | 104/105 (item C1) | 1085 passed, 394 failed (A and B), 1 skipped | 397 failed (A, B and C1), 8514 passed, 6 skipped |

- **Why a local run skips 5, not CI's 6.** The work tree sits inside an xFactory aggregation checkout, so `tests/domain_profile/test_session_worktree_book_scan.py::test_worktree_container_is_gitignored_in_the_aggregation_repo` finds the aggregation and runs, and it passes, where a runner skips it. `pytest-suite.yml`'s own comment names this difference ("this number is CI's, deliberately"). The arithmetic agrees: CI's 8917 passed + 6 skipped and P2's 8918 passed + 5 skipped are the same 8923 tests. P2's five skips are the two `tests/notebooklm` module skips, the two conformance-gate self-gate skips, and the LedgerxFactory fixture-drift guard.
- **The candidate openXdox root** is `bfd0c5a2`: the T064 openXdox-root branch, not yet pushed. Its code gitlink is `6a3b93b9`, and its `contracts/opendox-pin.yaml` names `d5098297`. `make validate` passes there. Its tree digest is `7fe6b8e5…84eb7` (29 records), and the candidate `contracts/openxdox-pin.yaml` records it, so both verifiers pass.
- **The digests**, recomputed independently with controls on the recorded values (`40ec3108`, `ec826603`, `e52c1383`): openXdox-code `6a3b93b9` is `4ef2b4f7…aeb3` (187 records); openDox `d5098297` is `2815ca23…57cc` (28 records).

## Review

| Copilot at | verdict | threads | answered in |
| --- | --- | --- | --- |
| `854162ac` | Changes recommended | (1) the post-T055 branch of `test_every_moved_handler_still_resolves_on_the_request_handler` was read as reached too late; (2) a duplicated verb in the mutation test's docstring | `2cc8e926`. (1) is a misreading, answered with a probe: openXdox's `ProjectionRoutes` defines all four handlers at both pins, and the class that forwards `_serve_index` alone from T055 is openDox's stand-in base `consumer_reach.LateProjectionRoutes`. The comment now names the two classes apart, and nothing is reordered. All five parameters passed at both pin sets before and after. (2) is fixed. Both threads are answered and resolved. |
| `2cc8e926` | Needs a closer look, no findings, no threads | the final results at both pin sets were still pending in the earlier body | this body |

## Landing

- No arc trailer, no closing keyword, no `openspec/` path, so there is no Rule 6 window.
- It opens as a DRAFT. The holder marks it READY, and the landers merge it.
- It lands **before T064**. T064's openXdox root PR, and then T064's openxFactory PR (both pin pairs in one commit, the host line, items C1-C3, the carve admissions), follow it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Oct 2, 2026
…, with openXdox's governed projection registered by the host (plan 034) (#1215)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Plan 034, task **T064** (slice P2-H): phase 2's consumer pins (T090 steps 5–6), `specs/034-opendox-standalone-operation/tasks.md` at openxFactory `main` `80217a92`. The precedent is T047 (opensoft/openXdox#20, then #1181).

- **Landing order, done:**
  - T066 (#1213) has landed as `80217a92`. openxFactory already holds at both pin sets, and the plan's T064 text already reads "the one host line" (holder decision (a), 2026-09-30).
  - opensoft/openXdox#21 has landed, squashed to `f257e021`.
- **Holder decisions in force:**
  - (a) the plan-text correction rode in T066;
  - (b) T092's phase-2 `edits[].note` annotations ride in T063's checkpoint, NOT here;
  - (c) the three candidate-pin reds with no both-pins form are answered in this PR.
- It stays a DRAFT until the holder marks it READY.

## The pins: both pairs in ONE commit (`59866105`)

| pair | gitlink | pin file `commit:` | `digests.tree_sha256` |
| --- | --- | --- | --- |
| openDox | `663ac683` → **`d5098297`** | same (`contracts/opendox-pin.yaml`:118) | `ec826603…9d5d` → **`2815ca2353d1cd4c220b5391e1c0bc45c2cabfec9aa196cee1e0a4bcc9e857cc`** (28 records) |
| openXdox | `57e2b8f2` → **`f257e021`** | same (`contracts/openxdox-pin.yaml`:109) | `e52c1383…6390` → **`52f0598edb8517dce7be3acc7637c9552020a4e2e1716be7bb8a1f352d406959`** (29 records) |

- `d5098297` is openDox root `main`, three commits ahead of `663ac683`:
  - #14 (`52005213`, T053) cuts `dox-v1.1`. The annotated tag `851a28e9` is over `52005213`, and the spec leg moves `8fe8c4c7` → `f7ee3c76`.
  - #15 changes only `contracts/CHANGELOG.md`.
  - #16 (T062) moves `code` `2d116415` → `047bb4fa`.
- **`f257e021` is opensoft/openXdox `main`, where #21 squash-landed.** It moves `code` `6158151e` → `6a3b93b9`, which is openXdox-code `main` after #34–#36 (T060, T059, T061). It also moves `contracts/opendox-pin.yaml` `663ac683` → `d5098297` (T090 step 5).
- Every digest was recomputed three ways, with controls on the old values: `repo_shape.tree_digest`, an independent `ls-tree` + `sha256`, and the forge's tree listing.
- **Why one commit and not "one commit each" (T090 step 6).** #21 changes the openDox pin that `verify-opendox-pin.py` check 5 reads through the openXdox gitlink. So moving the openXdox pair alone would fail check 5, and the runbook's § 3 step 8 moves the openDox pair *"in the SAME commit"*. Each pair still moves as one unit (box 9.5). **The holder decided the single commit on 2026-09-28.** This PR therefore deliberately departs from T090 step 6's "one commit each".
- Both pin files are edited in place, keeping their line counts. The openDox `migration:` block keeps `range` and `reversible`, because no migration path changes over `2d116415..047bb4fa`. Its `runbook` names the new code leg `047bb4fa`, and the block is identical to openXdox's derived copy, which `tests/opendox_pin` asserts.
- **Gates.** `verify-openxdox-pin.py` prints `OK openxdox-pin verified: openXdox@f257e021…, gitlink read from HEAD`, with digest `52f0598e…`. `verify-opendox-pin.py` prints `OK … openDox@d5098297…, lockstep with openXdox confirmed`.

## What else it carries

| commit | what | F11.1 surface |
| --- | --- | --- |
| `47e47c69`, `5663b4ed` | **The host line.** `scripts/opendox_host.register_openxfactory()` calls `openxdox.projection_contributions.register()` once openDox answers this host's profile, and before `register_seams()` (`5663b4ed`, on Copilot's finding at `d6c47f4f`). A profile openDox refuses is refused before any seam is written, so openDox's unread defaults stay where they were. The contribution call is all or none on its own, and its refusal leaves the profile registered and no host seam written, as a refusal inside `register_seams()` leaves the profile. The docstring says why openxFactory makes the call itself (it registers with openDox alone), and why its order differs from `openxdox.domain_profile.register()`'s. `tests/domain_profile/test_host_registers_openxdox_projection.py`, 9 cases, covers registration, a fresh interpreter (nothing before the call, everything after), the order, idempotence, both refusal directions (one with openDox's entry-point defaults preinstalled and unread), the process's pre-held contributions, and a mutation. Three planted breaks are each caught: the line removed fails 5 cases, moved before the profile 4, and moved after the seams 2. | HOST, HOST_TESTS |
| `47e47c69` | Items C2 and C3 of #1213: the host line's import puts `projection_contributions.py` in the render unit's by-name imports, so the lane's `RENDER_LEG_MODULES` and the seal test's `RENDER_UNIT_IMPORTS` gain it. The seal carries a leg's whole `src/`, so no sealed artifact changes. | ADMITTED_ARC_EDITS (both paths) |
| `4859bfa5` | Item C1 of #1213: `test_ruling_q7_two_direct_upstreams_in_lockstep`'s snapshot literal moves `663ac683` → `d5098297`, as its comment says it does on every bump. | ADMITTED_ARC_EDITS |
| `d6c47f4f` | **129 `created:` admissions** in `docs/opendox-carve-admissions.yaml`, pinned in `tests/carve_arrival` by path, `since` and count, as T047's 37 are. They cover every file a leg added since its last pin, under the destination's declared roots, that no row places. Each `since` is the leg's own squash landing (`git log --diff-filter=A`), and each path is present at the new pin. | ADMITTED_ARC_EDITS (both paths) |

The 129 admissions:

- **`openxdox_code`, 13**: #34 (T060) 1, #35 (T059) 5, #36 (T061) 7, among them `src/openxdox/projection_contributions.py` and the packaged `src/openxdox/contracts/`.
- **`opendox_code`, 80**: #53 (T050) 9, #54 (T052) 3, #56 (T051) 3, #57 (T054) 2, #58 (T057) 54, #59 (T055) 5, #66 (T056) 2, #68 (T058) 1, #70 (T055 follow-up) 1.
- **`opendox_spec`, 36**: openDox's spec leg moved with `dox-v1.1` (`8fe8c4c7` → `f7ee3c76`). 35 come from openDox-spec #16 (T053), and one is older: `docs/front-end-package-boundary.md` (#8), which the spec walk already refused at `8fe8c4c7` and no earlier bump admitted. With all 36, `verify-carve-arrival.py --destination opendox_spec --phase B` prints OK at `f7ee3c76`.
- **Derived, not run green, for the `-code` legs**, as at T047. At both new pins `--phase B` still refuses `arrival-undeclared-edit` before it reaches the created-file walk.

## Review

| Copilot at | verdict | threads | answered in |
| --- | --- | --- | --- |
| `d6c47f4f` | Changes recommended | Taking the contributions back after a refused profile emptied each seam, which does not restore an unread openDox default they had replaced. A boolean cannot tell a partly pre-existing set apart either. | `5663b4ed`: the call moves after the profile and before the host's seams, so a refused profile writes no seam and no rollback is needed. Copilot's case is a test, with the defaults preinstalled. No openXdox API change is needed. The thread is answered and resolved. |

## F11.1, on the real commits

`PACKET_MERGE=94b6f7f1… ARC_TIP=<this branch's head>` over the guard extracted from `openspec/changes/add-neutral-product-standalone-operability/tasks.md` prints:

> `requirement 1 holds: 0 note(s) annotated, every other path a declared surface (11.1)` (exit 0, over the arc's landings through `5663b4ed`: T047's `f56c87c6` and this PR's five commits)

Every path this PR touches is on a declared surface:

- PIN_PAIRS: `openDox`, `contracts/opendox-pin.yaml`, `openXdox`, `contracts/openxdox-pin.yaml`;
- HOST: `scripts/opendox_host.py`;
- HOST_TESTS: `tests/domain_profile/test_host_registers_openxdox_projection.py`;
- ADMITTED_ARC_EDITS: `scripts/ideation_dashboard/dashboard_refresh_lane.py`, `tests/ideation-dashboard/test_dashboard_source_seal.py`, `tests/openxdox_pin/test_openxdox_pin_verifier.py`, `docs/opendox-carve-admissions.yaml` and `tests/carve_arrival/test_verify_carve_arrival.py`.

The admitted list does not grow, and no manifest note is annotated here: T092's phase-2 notes go to T063, on decision (b).

## The falsifiers, at the COMMITTED pins

T047's falsifiers, with the consumer gate's suite at its floors. Each local run is the gates' own steps: both verifiers, then the pin suites, then `tests/ideation-dashboard`, then `pytest tests/ -q -m "not postgres"`. They run with Python 3.12.3, the hash-pinned lock, node 24, the pinned OpenSpec CLI 1.12.0, and `PINNED_CORE_CHECKOUT` at codexFactory `b21f0100`. Each runs in a checkout named `openxFactory`, with every gitlink at the committed pins and recursively initialized: openDox/code `047bb4fa`, openDox/spec `f7ee3c76`, openXdox/code `6a3b93b9`, openXdox/spec `f088b097`.

| run | head | verifiers | pin suites (floor 105/105/0) | `tests/ideation-dashboard` (floor 1137/1137/0) | `pytest-suite` |
| --- | --- | --- | --- | --- | --- |
| **CI** | `5663b4ed` | OK, OK, lockstep confirmed (run `37065541361`) | **105/105/0** | **1481/1481/0** | **8927 passed, 6 skipped, 0 failed**: `selected=9345 passed=9339 skipped=6 failures=0 errors=0`, margin 2295, `skipped==6` (run `37065541376`). All 12 checks pass. |
| F1 | `5663b4ed` | OK, OK | 105/105/0 | 1481/1481/0 | 8928 passed, 5 skipped, 0 failed |
| R1 (rehearsal) | the same edits before `5663b4ed`, over the candidate root `bfd0c5a2` | OK, OK | 105/105/0 | 1481/1481/0 | 8926 passed, 5 skipped, 0 failed |

- **#1213's red list is empty at the committed pins.** All three of its T064-owned items (C1-C3) pass, and so do the 187 that the host line answers.
- The consumer suite has 1481 cases, one more than #1213's 1480, because the seal's by-name-module refusal is parametrized over `RENDER_UNIT_IMPORTS`, which gained `projection_contributions.py`. The whole suite has 8933 tests (local XML) against #1213's 8923: the host-line file adds nine and the seal adds that one.
- `validate-carve-manifest.py` prints OK (456 rows), and `validate-former-id-arrival.py --base origin/main --head HEAD` passes.
- A local run skips 5 where CI skips 6, for the reason #1213 states: the work tree sits inside an aggregation checkout, so the aggregation ignore-file case runs and passes there.
- In the openXdox root, `make pins` and `make validate` exit 0 at #21's head.

## What this leaves for the aggregation

This PR does not do the opensoft/xFactory root pin-sync. When it runs, it needs:

- the root `openDox` gitlink → `d5098297a5c262f9977193305210bccb4ec51e89`;
- the root `openXdox` gitlink → `f257e021399288f430cc89cc0f23cc2cd62be9a7`;
- the root `openxFactory` gitlink → this PR's landed sha, with `.github/clearing/openxfactory/PIN.yaml` in the same commit (CLAUDE.md rule 2).

Arc: neutral-product-standalone-operability

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Oct 5, 2026
…and staging-workbench-model.js row (bookkeeping) (#1244)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Authored by lane openXfactory-3, delegated by lane openxfactory-4 (#656 6000631668)

**Plan 034, the single-writer table in `plan.md`: two rows that the landed history no longer shows (bookkeeping).** openxFactory#1235's writer recorded both under "Not done here" and left them for the holder. This is release-1 follow-on slice C, on Brett Heap's word (#656 comment 6000582654, "openDox-code follow-ons first"). It carries no Arc trailer.

The diff is two table cells in `specs/034-opendox-standalone-operation/plan.md` (one commit, 2 insertions, 2 deletions). No other line of `plan.md` and no other file changes.

## What changes

**1. openXdox-code's declared exclusion file.** The chain read `T041 → T043 → T044 → T061`. It now reads `T041 → T043 → T044 → T059 → T061 → T086`, with each new link carrying its effect on the file:
- T059 (`tests/test_seam_assembly_beside_gate_and_projection.py`'s entry leaves, 67 → 66)
- T086 (`tests/test_column_contributions_governed.py` joins under `doc_health`, 65 → 66)

**2. openDox-code `src/opendox/web/views/staging-workbench-model.js`.** The row read `T102 → T104 (the console token's reader)`. It now names T102 alone, the one phase-3 slice that edits the file, and says where T104's reader went: `web/views/notebook.js` instead (openDox-code#84), so no writer follows T102 here.

## Every fact, checked against tasks.md and the landed PRs

The file named by row 1 is `tests/declared_exclusion.yaml` in openXdox-code. Its history on `main` (the GitHub commits API for that path, newest first) lists exactly five commits. The first created the file with 66 files (its message, and tasks.md's landing note), and the patches of the other four (T044, T059, T061, T086) move it as the third column says. T043's PR (#32) is not in that history: it moved no entry, as the row already said.

| task | openXdox-code PR → commit | what it did to the file | tasks.md says |
|---|---|---|---|
| T041 | #30 → `5fbd188e` | created it: 66 files, four reasons | "66 files under all four reasons" |
| T043 | #32 → `4610bca5` | not in the file's history | "a re-run at T040's pin, which moved no entry" (the row's own words, kept) |
| T044 | #33 → `6158151e` | `count` 66 → 67; `tests/test_seam_assembly_beside_gate_and_projection.py` joins under `doc_health` | "the declaration holds 67 files" |
| T059 | #35 → `839492d9` | `count` 67 → 66; that same entry leaves | "(67 → 66), and T059 joined that file's single-writer chain, T044 → T059 → T061" |
| T061 | #36 → `6a3b93b9` | `count` 66 → 65; `tests/test_snapshot.py` leaves, and its `consumer-schemas` reason with it | "(66 → 65)" |
| T086 | #37 → `56e1c238` | `count` 65 → 66; `tests/test_column_contributions_governed.py` joins under `doc_health` | "65 → 66, Q9 (a)" |

Row 2. openDox-code's history for `src/opendox/web/views/staging-workbench-model.js` ends at T102 (#81 → `0116293a`); T104 (#84 → `32943cbf`) is not in it. The same API read for `src/opendox/web/views/notebook.js` lists #84 as its only edit since the adoption. tasks.md's T104 landing note says the same: "`web/views/notebook.js`, the one reader the PR edits … `app.js`, `edit.js` and the staging workbench's JS, which the task text names as the readers, are untouched". I also read the neighbouring `lens.js` row (T088 → T102). It agrees with the history (#65 → `d0d3cee6`, then #81 → `0116293a`), and I left it.

## Plan tools, before and after

The seven tools are lane 4's copies (`depcheck`, `chaincheck`, `chaindirect`, `arrowcheck`, `phasecover`, `sharedfiles`, `qcheck`, with `aftergraph.py` and `qmap.py`), run from the feature directory, `specs/034-opendox-standalone-operation/`, at `main` `12753f27` and at this head `4847b890`, each in a full clone. `qcheck` takes `qmap.py` as its argument.

| tool | `main` `12753f27` | head `4847b890` |
|---|---|---|
| `depcheck` | `tasks: 96 nodes: 108 … edges: 270`, `cycles: none`, `cycles with the Lands-with groups merged [['T011', 'T030'], ['T031', 'T036'], ['T045', 'T046', 'T047']] : none` | byte-identical |
| `chaincheck` | `single-writer chain gaps: 0` | byte-identical |
| `chaindirect` | 42 lines, including `openXdox-code exclusion file T044->T061: transitive ['T061', 'T059', 'T052', 'T049', 'T047', 'T044']` | byte-identical |
| `arrowcheck` | `arrow mismatches: 0`, `arrows checked: 83` | byte-identical |
| `phasecover` | `phase 1 → T049: 32 tasks; not before the checkpoint: []; after it: ['T048']`; `phase 2 → T063: 17 tasks; not before the checkpoint: []; after it: []`; `phase 3 → T089: 29 tasks; not before the checkpoint: []; after it: ['T099']`; T095, T096, T097 each `ancestors include T076? True`, `T089? True` | byte-identical |
| `sharedfiles` | 87 lines: 82 `ordered`, 5 `NOT ORDERED` (P1-A/P1-B, P1-A/P1-D, P1-B/P1-D, P1-H/P1-G, P3-I/P3-E); `P3-S edit and chat by scope [T102] vs P3-C the console token [T104] share ['staging-workbench-model.js']: ordered A<B` | byte-identical |
| `qcheck` | `headers checked: 27 of 27; mismatches: 0` | byte-identical |

Each of the seven outputs was compared with `cmp`, and each is identical. That is the expected reading, and it is the reason this section carries two more checks below, because none of the seven can see the two rows:
- `chaincheck.py` and `chaindirect.py` hold their chains as literals in a `CHAINS` dict (the exclusion file's is still `["T041", "T043", "T044", "T061"]`), so they test tasks.md's After graph against a copy of the plan's chains, never against `plan.md`'s table;
- `depcheck`, `phasecover`, `sharedfiles` and `qcheck` read `tasks.md` and `clarify-questions.md` only;
- `arrowcheck` reads `plan.md`'s `## Dependency graph` section, which ends before `## Parallel slices`, where the table sits.

So the stale spots cannot leave a tool's output, and the unchanged outputs show that this edit moved nothing the tools read. Two supplementary runs, from copies kept outside the repository, test the new rows themselves:

1. **`chaincheck` and `chaindirect` with the exclusion chain set to the new row's `["T041", "T043", "T044", "T059", "T061", "T086"]`** (the one literal changed in a copy of each). `chaincheck`: `single-writer chain gaps: 0`. `chaindirect`, the five exclusion-file pairs:
   ```
   T041->T043: DIRECT
   T043->T044: DIRECT
   T044->T059: transitive ['T059', 'T052', 'T049', 'T047', 'T044']
   T059->T061: DIRECT
   T061->T086: DIRECT
   ```
   Every pair is ordered by the After graph. T044 → T059 is transitive (T059's After list does not name T044), and the order holds through T052 ← T049 ← T047 ← T044. That is an ordering the graph already carried, not a new edge, and tasks.md's T059 note states the pair.
2. **A row check** (`rowcheck.py`, a short script of mine that reads the two rows straight from `plan.md` and tests the exclusion row against the After graph and against the order of the landed commits above):
   ```
   main 12753f2                                             head 4847b89
   chain in plan.md: T041 -> T043 -> T044 -> T061            T041 -> T043 -> T044 -> T059 -> T061 -> T086
   equals the landed order: False                            True
   chain gaps: 0                                             0
   staging row names T104 as a following writer: True        False
   writers named before the colon: ['T102', 'T104']          ['T102']
   ```

## Gates, at `main` `12753f27` and at this head `4847b890`

Each in its own full clone named `openxFactory`, with the `openXwallet`, `openXdox` and `openDox` submodules initialized recursively as `pytest-suite` does. The venv was built by CI's own `pip install --require-hashes -r requirements/hermes-runtime-contracts.lock`; Python 3.12.3, node v24.21.0, the pinned OpenSpec CLI 1.12.0, `LANG=C.UTF-8`, every `GIT_*` and `XF_*` variable unset.

| gate | `main` `12753f27` | head `4847b890` |
|---|---|---|
| `python3 scripts/validate-openspec-cli-pin.py --all --strict`, and CI's form `--all --no-cache` | rc 0 each: `Totals: 110 passed, 1 failed (111 items)`; `every target validated --strict with 0 UNDISPOSITIONED failures`; 1 accepted exception (`add-chain-attestation`, accepted by Brett Heap 2026-09-05) | identical, but for the clone path in the CLI's command line |
| `scripts/doc-health.py --single-repo . --as-of 2026-10-05` | rc 0: `Findings: 31 critical, 26 error, 69 warning, 20 info. New regressions vs previous report: 0.` | identical, byte for byte but for the clone path |
| the validators `.github/workflows/` invokes on a pull request: `validate-former-id-arrival.py`, `validate-clearing-dispatch.py`, `validate-factory-identity.py`, `validate-signed-execution-chain.py --require-pinned-wallet-vocabulary` | rc 0 each | identical |
| `validate-release-tag-gate.py` | rc 0: `no release surface change: none of the 2 changed path(s) between 8a37a08 and 12753f2 …` | rc 0, the same verdict over this PR's range: `none of the 1 changed path(s) between 12753f2 and 4847b89 …` |
| the repository's other validators, run directly: `validate-sequenced-after.py --ledger-diff`, `validate-code-surface.py`, `validate-target-release.py`, `validate-pin-registrations.py`, `validate-document-catalog.py`, `validate-scope-globs.py` | rc 0 each | identical |

`openreposhape-pin-gate` needs a checkout of its own pin and is left to CI. The one output line that differs between the two columns is the release-tag gate's own commit range.

The doc-health reading depends on how far the submodules are materialized, and the same on both sides. With the nested legs initialized (`git submodule update --init --recursive openXdox openDox`, as `pytest-suite` does) it reads 26 errors, at `main` and at this head. Without `openXdox/spec` it reads 22, at both, because `release-inventory-drift` then skips its comparison and the four extra findings (`scripts/hermes_runtime_validation/catalog.py`, `…/release.py`, `scripts/validate-hermes-runtime-contracts.py` and `scripts/validate-ideation-dashboard-contracts.py`, each "bytes differ from the digest 'contract-v4.0' records") do not appear. They are on `main` already, and this PR touches none of those files.

## pytest

**CI's `pytest-suite` at the exact head** (run 37358868274): completed, success. `selected=9376 passed=9370 skipped=6 failures=0 errors=0`; `floors: selected>=7050 (margin 2326) passed>=7044 (margin 2326) skipped==6`; the freshness verifier and the vector replay both `passed`.

**My own full run**, CI's command (`python3 -m pytest tests/ -q -m "not postgres"`, with `GIT_CONFIG_GLOBAL=/dev/null` and `GIT_CONFIG_NOSYSTEM=1` set as `pytest-suite.yml`'s header describes, and no other `GIT_*` or `XF_*` variable), once at `main` `12753f27` and once at this head `4847b890`, in the two clones above:
- both read `1 failed, 8956 passed, 7 skipped, 338 deselected, 9 warnings, 391 subtests passed` (2235 s at `main`, 2231 s at this head);
- the one failure is the same node at both: `tests/domain_profile/test_hermeticity_probe_routes.py::test_the_bare_unittest_route_is_detected_as_unguarded` (`assert 0 != 0`). It is an artifact of how I ran: the test makes its child "bare" by stripping the `PATH` entries under the system temp directory, and I had put pytest's `--basetemp` beside `TMPDIR` instead of under it, so the guard's shim directory stayed on the child's `PATH`. Re-run alone with `--basetemp` under `TMPDIR`, it reads `3 passed` at `main` and `3 passed` at this head. CI, with the default basetemp, reads 0 failures.

## Observations, not changed

The brief limits this change to exactly these two spots, so these stay as they are, for the holder:
- `plan.md` line 190 (the "Source layout" map, outside the single-writer table) still lists `src/opendox/web/app.js, web/views/edit.js, staging-workbench-model.js` against T104. It is the plan's statement of the surface T104 was cut to edit. tasks.md's P3-C row and T104's landing note record the divergence.
- The tools' `CHAINS` literals carry the old exclusion chain, as above. They are lane 4's copies and I did not edit them.
- The ratchet row (`tests/test_dependency_direction.py`, `T040 → T059 → T086`) is about the ratchet's values, and I read the two other edits of that file in the history, T043 (#32, docstring and comment text) and T061 (#36, a census of scripts under `src/`). Neither moves a ratchet value, so I left the row.

## Review

CI, read from the check-runs API at the exact head `4847b890`: every check-run listed is `completed` and `success`: `SonarCloud Code Analysis`, `clearing-dispatch-gate`, `copilot-pull-request-reviewer`, `former-id-arrival-gate`, `lane-line`, `merge-master-approval`, `openreposhape-pin`, `openspec-cli-pin`, `openxdox-consumer-gate`, `pytest-suite`, `release-tag-gate`, `signed-execution-chain-gate` and `wallet-validation`. (`lane-line` runs again on each edit of this description, so the API lists it more than once.)

Copilot: the repository's `copilot_code_review` ruleset (`review_on_push`, `review_draft_pull_requests`) requested it when the draft opened, and a GraphQL read of the PR's `reviewRequests` already listed `copilot-pull-request-reviewer` before I made any request, so I made none. Its review is at the exact head `4847b890`, state `COMMENTED`: "Approval recommended", "Both documentation corrections match the recorded task outcomes, with no unresolved issues", `Findings: None`. It left 0 inline comments and the PR has 0 review threads, so there was nothing to classify under the convergence rule (#656 comment 5988818366) and no thread to act on.

Main moved after this branch's base: `12753f27` → `0d143582` (#1211, the doc-health catalog's probe-error handling: `scripts/` and `tests/` only, no `specs/` file). The strict-up-to-date policy is off in the ruleset (`strict_required_status_checks_policy: false`) and GitHub reports the PR mergeable, so I did not merge main, and every result above is at the base it names.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants