Skip to content

T005: batch Q, the release-2 answers' amendments in #1144 (plan 038) - #1248

Merged
brettheap merged 3 commits into
mainfrom
r2/t005-batch-q
Oct 6, 2026
Merged

brettheap merged 3 commits into
mainfrom
r2/t005-batch-q

Conversation

@brettheap

@brettheap brettheap commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

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

T005, batch Q: record the answers' amendments in #1144, in plan 034's T007 form (plan 038). Bookkeeping only, so this PR carries no Arc: line.

It records in #1144 (add-neutral-product-standalone-operability) the amendments that Brett Heap's rulings imply:

The claim is lane openxfactory-4's day-one CLAIMED, #656 6013592367. The contract is T005's entry in plan 038's tasks.md (draft #1245 at 6847e99e), whose twelve items this PR follows.

From plan 038's tasks.md, T005

The form

Every edit is an ADDED paragraph. No ratified line, no requirement and no scenario changes: git diff -U0 origin/main...HEAD shows 0 removed lines, and the spec delta is untouched.

The twelve items, and the line each lands at

Lines are openspec/changes/add-neutral-product-standalone-operability/tasks.md at this PR's head, unless design.md is named.

  1. R2Q9 (a)'s seven (6003486656), nine paragraphs:
    • 6.2's description noted as superseded: tasks.md:1184 (R2Q9 item 1);
    • F6.1 builds an entry point first, and its stale "Today" sentence is struck: tasks.md:1223 (item 1);
    • --local on 12.4a's submit shape, which selects local exactly as OPENDOX_INSTALL_MODE=local does; F12.2 is not amended (ADV-04/F10): tasks.md:2856 (item 7);
    • --local on 12.6a's land shape: tasks.md:3138 (item 7);
    • --local on 14.5's four health shapes; F14.1 and F15.1, which export the setting, stand as written in this respect: tasks.md:3618 (item 7);
    • F14.1 first starts the document server, as F13.1 does (port 8084): tasks.md:3750 (item 2);
    • the corpus export cannot be steered by export-subst or export-ignore: tasks.md:3873 (item 5);
    • the forking pack's child carries its own pack id in argv, and the escaping pack's restore attempt counts only a write: tasks.md:3985 (items 4 and 6);
    • F15.1 asserts its sandbox precondition, and first starts the document server (port 8085): tasks.md:4142 (items 2 and 3).
  2. R2Q2 (a)'s note at 12.4: the repoint sentences (tasks.md:2513-2519; design.md:476-478, :1059-1061, all at 92010d3e) are the withdrawn draft's residue, and, with R2Q3 (a), two texts go unrealized in release 2, which Brett accepted: tasks.md:2699.
  3. F12.1's composed line at 12.5's falsifier, worded as CF-5: "F12.1 runs composed, as F5.2 does under R1Q23 (a); ARC-Q2 (a) (6003918488) makes the composition its permanent home", with the environment line in batch G's F5.2 form: tasks.md:2961.
  4. R2Q10 (a)'s selection lines, every literal-id use enumerated (ADV-24), each a selection by the planted finding's fixture document (its path, and kind where the old id names a family):
    • F14.1 (:3320, :3364, :3326-3329, :3336-3340, :3347-3349, :3351, :3357, :3365, at 92010d3e): tasks.md:3770;
    • F15.1 (:3575, :3590, :3595-3599, :3601-3602, :3608-3612): tasks.md:4169.
  5. R2Q1 (a)'s non-normative reading of "one interface for both", as CF-1 confirms it: tasks.md:143, beside the release map. The same phrase is in design.md § D13 (:799-800), so a parallel addendum lands at design.md:816, in the form batch A gave § D4.
  6. ARC-Q2 (a)'s F9.1 amendment, in batch B's form (6003918488): the composed files are declared integration tests with count and reason, and requirement 9 closes for openXdox-code by declaration: tasks.md:1837.
  7. F9.2's note, as ARC-5 (a) rules: File add-neutral-product-standalone-operability: open the BUILD arc, recording ten rulings #1144 may archive with F9.2 open, reported in R1Q6 (d)'s form, and its later closure goes into the arc change's own evidence (T076): tasks.md:1908. A second paragraph, tasks.md:1922, says how the archive gate admits it (Copilot's first finding, below).
  8. 12.5's falsifier notes, as ruled:
    • CF-4 (H-2): the 17 batch-C entries for pre-arc carve residue, on 5962785556 item 1's precedent: tasks.md:2985;
    • R-1 (a), with W-1 (A) and, since 2198edda, 6016648451's "Widen the spans, served display": the admitted kind reaches SIX named module-level spans of tests/test_staging_workbench.py (at openXdox-code 56e1c238): _CREATE_HARNESS (:492-553), _SESSION_HARNESS (:1008-1094), _HOSTILE_HARNESS (:1950-1981), _run_create (:562-574), _run_session (:1239-1257) and _hostile_descriptors (:1997-2008). The helpers hand each harness the SERVED governed display, which is INFERRED reachable and measured by T026, and T020's host registration covers the suite: tasks.md:3004;
    • 6016648451's "Amend F12.1 with --chains": 12.5's oracle call gains --chains, under batch K's chain rule unchanged. Each entry is one edit in its own named test or span, the entries chain by git blob, the landing's diff per suite is exactly the chain's texts, and nothing wider is admitted. So T026 (openXdox-code#43) lands as ONE PR: tasks.md:3047, with the call at :3055;
    • beside batch K's sentence at F5.2 that 12.5's call passes no --chains, a dated note says it no longer holds, without rewriting it: tasks.md:1065.
  9. R2Q16 (a)'s full reading of requirement 16's sandbox and attribution clauses and of 15.1b: tasks.md:3881 (15.1b), with a pointer at 15.7, the attribution box: tasks.md:4010.
  10. 9.5's two addenda:
    • R2Q22 (a), in batch G's style: one more dox-v1.y minor, dox-v1.2, cut on Brett's word: tasks.md:1711;
    • R2Q23 (a), in batch O's style: opendox 0.2.0, tag v0.2.0, on Brett's publish word: tasks.md:1727.
  11. 7.1's addendum (C-18; N-15): seven packaged copies; the two file kinds join the validator's kinds; the finding shape is a copy the engine reads: tasks.md:1318.
  12. The tier-1 readings, as ruled:
    • I-2 (a), the baseline branch, at 14.4: tasks.md:3575;
    • N-6 (a), the overlap, beside the release map: tasks.md:161.

Files changed

  • openspec/changes/add-neutral-product-standalone-operability/tasks.md: +526 lines, 27 paragraphs and the F9.2 gate paragraph.
  • openspec/changes/add-neutral-product-standalone-operability/design.md: +10 lines, 1 paragraph (item 5's parallel addendum).

Gates

The local gates ran in two full clones of the same kind, each named openxFactory: one of main 92010d3e, and one of this branch. Both had the openXwallet, openXdox and openDox gitlinks initialized as pytest-suite initializes them. Both ran under Python 3.12, in a venv built from requirements/hermes-runtime-contracts.lock with --require-hashes, with the pinned OpenSpec CLI installed through scripts/install-pinned-openspec-cli.py. The branch ran at f73e6a19, at 94d6e7c7, and again at the head, 2198edda, which folds in #656 6016648451.

gate main 92010d3e this branch, f73e6a19, 94d6e7c7 and head 2198edda
python3 scripts/validate-openspec-cli-pin.py --all (pinned 1.12.0) rc 0, Totals: 111 passed, 1 failed (112 items), 0 UNDISPOSITIONED failures, 1 accepted exception (add-chain-attestation) the same at all three heads; at 2198edda the FAIL lines and Totals line diff-identical to main's
… --all --strict — rc 0, Totals: 111 passed, 1 failed (112 items) (at f73e6a19)
… --change add-neutral-product-standalone-operability — rc 0, Totals: 1 passed, 0 failed (1 items), "validated --strict clean", at all three heads
python3 scripts/doc-health.py --single-repo . --as-of 2026-10-06 rc 0, Findings: 31 critical, 26 error, 69 warning, 20 info. New regressions vs previous report: 0. the same at all three heads; at 2198edda diff-identical to main's report with commit ids normalized (a first run there skipped one info finding because published main could not be resolved, a transient remote lookup; re-run, it matched)
python3 -m pytest tests/doc-health -q -rs (doc-health-py314's command, on 3.12) 2157 passed 2157 passed (at f73e6a19 and at 2198edda)
box census of #1144's tasks.md 125 boxes: 42 [ ], 74 [x], 9 [~] the same; no box is added

T005 cited 110 passed and 1 failed. main now reads 111 passed and 1 failed of 112, and this branch reads the same.

CI at the head, 2198edda: all 15 check-runs succeeded, as GitHub's check-runs API lists them. That includes pytest-suite (run 37467626041), which read selected=9831 passed=9825 skipped=6 failures=0 errors=0 with the floors met, the same triple as main's run at 92010d3e (run 37409899722). doc-health-py314 read 2157 passed, and openspec-cli-pin, lane-line, openxdox-consumer-gate and SonarCloud also passed. CI was green with the same triple at 94d6e7c7 too.

Local pytest-suite run (python3 -m pytest tests/ -q -m "not postgres", as pytest-suite.yml runs it), in the two clones, run concurrently:

  • main 92010d3e: 4 failed, 9203 passed, 7 skipped, 338 deselected (51 min). Three are subprocess.TimeoutExpired in tests/hermes_runtime_contracts/test_validator_cli.py, and the fourth is tests/domain_profile/test_hermeticity_probe_routes.py::test_the_bare_unittest_route_is_detected_as_unguarded.
  • this branch at 94d6e7c7: 2 failed, 9205 passed, 7 skipped, 338 deselected (41 min). One is the same hermeticity node, and the other is tests/opendox_pin/test_opendox_pin_verifier.py::test_a_working_tree_deletion_is_deliberately_not_drift, with BlockingIOError: [Errno 11] Resource temporarily unavailable.
  • this branch at the head, 2198edda: 1 failed, 9206 passed, 7 skipped, 338 deselected (31 min). The one red is the same hermeticity node, which fails on main too.
  • The five nodes, re-run alone in each clone, read the same on both: 2 failed, 3 passed. The hermeticity node and one test_validator_cli.py timeout fail on main and on this branch alike; the pin-verifier node and the other two timeouts pass on both.

So the local reds are this container's, not the change's. They come from load (timeouts and EAGAIN) and from a clone that sits inside an aggregation checkout, which is also why the skip count reads 7 locally where CI reads 6. Both clones show the same reds, and CI, which has neither condition, is green at the head with main's exact triple.

Review

Copilot at verdict thread answered
f73e6a19 Changes recommended r4194039525: the archive gate refuses any - [ ] line, so "archive with F9.2 open" had no gate-compatible form fix-now, in 94d6e7c7: F9.2's note gains "How the archive gate admits it". If #1144 archives before T076, F9.2 is ticked with a disposition, in the add-declared-former-id form, and no gate exception is built. Answered and resolved
94d6e7c7 Changes recommended r4194128823: F12.1's oracle passes no --chains (batch K), yet R-1 (a) and CF-4 put several entries for one suite in U-7's single PR first answered as the holder's to rule. Ruled by Brett Heap, #656 6016648451: "Amend F12.1 with --chains (Recommended)", and fixed in 2198edda (item 8: tasks.md:3047, :1065). A second reply cites the ruling (r4195583166). Resolved
2198edda Changes recommended r4195611577: plan 038's tasks.md at #1245's head 83a347e4 still has T026's two spans and "('group' → S7's 'cluster')", and T029 has no --chains valid; not fixed here, the holder's. Plan 038's tasks.md is #1245's file, and the holder rulings recorded with 6016648451 sync it at T002's evidence PR. The reply (r4195688986) lists the three stale points, checked at 83a347e4. Resolved, and listed below

3 threads, 0 unresolved. Copilot's review at the head, 2198edda, is 5428784446.

What is NOT done

  • No Rule 6 window is opened here. This PR touches openspec/changes/, so it lands under the holder's LANDING / LANDED window. It lands after T004 and after Feature 038: the Speckit specification for release 2 of add-neutral-product-standalone-operability (#1144) #1245, and it stays a draft until the holder says Feature 038: the Speckit specification for release 2 of add-neutral-product-standalone-operability (#1144) #1245 has landed.
  • No realization. Every paragraph says which plan-038 task carries it out, and no code, test or workflow changes here.
  • No requirement, scenario or spec-delta line, and no ratified line of tasks.md or design.md, is edited. A "struck" or "superseded" sentence is struck by the note below it, as batches A to P did it.
  • Two lines beyond T005's enumeration are named in item 4's F14.1 note: the paths.tsv map (:3332-3334) and its lookup (:3342), which carry the loop's ids. They are named so the selection is complete; T005's list did not cite them.
  • Ports 8084 and 8085 are the only literal choices this batch makes. R2Q9 (a) item 2 writes --port <port>, and a falsifier needs a number. These are the first ports no other falsifier of this change uses (F10.1 and F13.1 use 8080 to 8083).
  • Plan 038's T076 and its box-accounting row for F9.2 should name the archive-time tick with a disposition, which batch Q's F9.2 note now records (Copilot r4194039525). That is plan 038's tasks.md, the holder's (T004), and this PR does not touch it.
  • F12.1 and chains: RULED, no longer open. Batch K (5916000030) recorded that 12.5's falsifier passes no --chains. Brett Heap's "Amend F12.1 with --chains (Recommended)" (openDox + openXdox: two open-source layers, an installable app with users, projects and a database; domain descendants pin openXdox (Brett's ruling 2026-09-04) #656 6016648451) gives it --chains, under batch K's chain rule unchanged, so T026 (openXdox-code#43) lands as ONE PR. Batch Q records that at 12.5's falsifier (tasks.md:3047), with a dated note beside batch K's sentence at F5.2 (tasks.md:1065).
  • Plan 038's tasks.md still carries the pre-ruling T026 and T029 text at Feature 038: the Speckit specification for release 2 of add-neutral-product-standalone-operability (#1144) #1245's head 83a347e4 (Copilot r4195611577): T026's two spans and :1291/:1333 at :600, "('group' → S7's 'cluster')" at :607, and no --chains anywhere. The holder rulings recorded with 6016648451 sync T026's Files, R-1's spans and the T020 file touches at T002's evidence PR. The 'cluster' label ('group neighbourhood') and T029's --chains follow from the same ruling, though the holder's list does not name them. This PR does not touch that file.

🤖 Generated with Claude Code

Bookkeeping only, so no Arc: trailer. It records in
add-neutral-product-standalone-operability's tasks.md, with one parallel
addendum in design.md § D13, the amendments that Brett Heap's rulings
imply: #656 6003486656 (R2Q1 to R2Q25, all (a)), 6003918488 (ARC-Q1 to
ARC-Q4, all (a)) and 6013547504 (plan 038: R-1, W-1, ARC-5, I-2, N-6 and
the readings CF-1 to CF-8). Its twelve items are the ones plan 038's T005
lists. Every edit is an added, dated paragraph; no requirement, no
scenario and no ratified line changes, and the box census stays 125.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 10:06
@sourcery-ai

sourcery-ai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Reviewer's Guide

This bookkeeping-only PR adds 25 amendment paragraphs to the change’s task record and one parallel design addendum, translating plan 038’s release-2 rulings into precise interpretations and falsifier updates while leaving requirements, scenarios, ratified lines, implementation code, and the spec delta unchanged. Reviewers should verify the placement and wording of each ruling, cross-references to the pinned main baseline and source evidence, and the stated dependency/landing constraints; validation gates are reported as matching between main and the branch.

Sequence diagram for composed health falsifier execution

sequenceDiagram
    participant CI as openXdox-code CI
    participant Factory as Pinned openxFactory
    participant Server as Document server
    participant Health as health run
    participant Packs as Sandboxed packs

    CI->>Factory: checkout pinned commit
    CI->>Server: generate-and-open --port 8085
    Server-->>CI: ready
    CI->>Health: run composed falsifier
    Health->>Packs: execute manifest-listed checks
    Packs-->>Health: findings
    Health-->>CI: assertions and allow-list result
Loading

Flow diagram for stable finding selection by fixture document

flowchart TD
    Start[health list --json] --> Capture[Capture findings]
    Capture --> Select[Select by fixture document path and kind]
    Select --> Id[Read selected finding id]
    Id --> Fix[health-fix --finding selected id]
    Fix --> Verify[Verify refs, evidence, or absence]
Loading

File-Level Changes

Change Details Files
Recorded release-2 rulings and answer amendments as additive bookkeeping paragraphs without changing requirements, scenarios, ratified text, or the spec delta.
  • Added the R2Q1/CF-1 interface interpretation to the release map and design section D13.
  • Documented R2Q2, R2Q8–R2Q10, R2Q16, R2Q22–R2Q23, and tier-1 readings, including selection-by-fixture-document guidance, release sequencing, schema/package additions, and release/tag decisions.
  • Clarified F6.1, F9.1/F9.2, F12.1, F14.1, and F15.1 falsifier setup and interpretations, including composed CI, server startup, sandbox preconditions, fixture-pack behavior, and admitted allow-list entries.
  • Added CLI --local amendments for submit, land, and health command shapes, plus notes on unresolved/default bindings and composed workflow ownership.
  • Preserved all existing boxes and commands; all amendments identify their ruling, plan-038 task, and implementation follow-up.
openspec/changes/add-neutral-product-standalone-operability/tasks.md
openspec/changes/add-neutral-product-standalone-operability/design.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

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.

Copilot review overview

🟡 Changes recommended

The F9.2 archive path conflicts with the archive gate’s unchecked-task rejection.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Records plan 038’s release-2 rulings in the standalone-operability OpenSpec packet.

Changes:

  • Adds Batch Q amendments across affected tasks and falsifiers.
  • Clarifies the shared user-facing submission/landing interface.
File Description
tasks.md Records 25 ruled amendments and implementation ownership.
design.md Clarifies the user-facing interface interpretation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot on #1248 (review at f73e6a1, thread r4194039525): the archive
gate refuses any `- [ ]` line (archive_change(), "change has incomplete
tasks"), so "archive with F9.2 open" needs a gate-compatible form. The
ARC-5 note now names it: if #1144 archives before plan 038's T076, the
archive pull request ticks F9.2 with a disposition beneath it (not
performed, reported in R1Q6 (d)'s form, carried by the direction arc's
own change), as add-declared-former-id's archive did. No gate exception
is built or claimed. An added paragraph; no ratified line changes.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 6, 2026 10:18

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.

Copilot review overview

🟡 Changes recommended

T026’s single landing contains chained edits that F12.1 explicitly rejects without --chains.

Review effort: Balanced
Findings: 1 High severity

Open (1)
Resolved since last review (1)

Brett Heap's two multi-choice words of 2026-10-06, recorded on #656
6016648451, fold into batch Q before it lands:

- "Amend F12.1 with --chains (Recommended)": a dated note at 12.5's
  falsifier adds --chains to its oracle call (openXdox-code
  scripts/protected_suites.py:24-25 at 56e1c238), under batch K's chain
  rule unchanged; batch K's sentence at F5.2 that 12.5's call passes no
  --chains takes a dated note beside it, its ratified text not rewritten.
- "Widen the spans, served display (Recommended)": batch Q's own R-1 (a)
  note now names six module-level spans of tests/test_staging_workbench.py
  (_CREATE_HARNESS, _SESSION_HARNESS, _HOSTILE_HARNESS, _run_create,
  _run_session, _hostile_descriptors) with their lines at 56e1c238; the
  helpers hand each harness the served governed display; T020's host
  registration covers the suite. The route claims at :1291 and :1333 lie
  inside named tests, which the earlier wording got wrong.

No requirement text and no scenario change; no box changes state. The
diff against main stays add-only.

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

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.

Copilot review overview

🟡 Changes recommended

Linked plan 038 tasks remain inconsistent with the newly ruled spans, label change, and --chains requirement.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
Resolved since last review (1)

@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

@sourcery-ai

sourcery-ai Bot commented Oct 6, 2026

Copy link
Copy Markdown

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 3 days and 6 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

READY (holder, manual landing) at 2198edd

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

Holder, at READY (T005, batch Q, plan 038). Landed by the holder under a Rule 6 window.

  • After set met: T004 (Feature 038: the Speckit specification for release 2 of add-neutral-product-standalone-operability (#1144) #1245) landed as 260234b5.
  • Gates at 2198edda:
    • all 13 checks pass;
    • pytest-suite reads selected=9831 passed=9825 skipped=6, main's exact triple;
    • the pinned gate exits 0;
    • 0 unresolved threads;
    • no closing keywords in the body or any commit;
    • bookkeeping, so no Arc: line.
  • Copilot's "Changes recommended" at 2198edda is an accepted limit for this PR, under 5988818366. Its one open finding, r4195611577, reads correctly, but it points at plan 038's tasks.md, which is outside this PR: T026's two spans, the 'group' wording, and --chains. T002's bookkeeping PR fixes it there, with the list on #656 (6016648451, 6017860539, 6016982816, 6017901451). The other two threads were fixed at 94d6e7c7 and 2198edda.

@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDING — lane openxfactory-4, session faabad8b-8c31-4958-abd5-b35bdc9cd282@Eagle, 2026-10-06T14:33:45Z, PR #1248 into opensoft/openxFactory main

@brettheap
brettheap merged commit 91e961a into main Oct 6, 2026
17 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDED — lane openxfactory-4, 2026-10-06T14:34:03Z, PR #1248 → 91e961a (opensoft/openxFactory main; squash)

brettheap added a commit to opensoft/openDox that referenced this pull request Oct 6, 2026
…ELOG draft) (plan 038 T060) (#20)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Arc: neutral-product-standalone-operability

**The `dox-v1.2` cut PR.** This is plan 038's **T060** (`opensoft/openxFactory`, `specs/038-opendox-document-tool-self-maintenance/tasks.md`): *"The openDox root's spec pin and the `dox-v1.2` minor, on Brett's cut word (R2Q22 (a))."* Its spec-leg half landed as `opensoft/openDox-spec#17` (T040, squash-merged `7db9438b`). This PR is the root half. It follows the shape of release 1's `dox-v1.1` cut PR, #14 (`5200521`).

- **Realizes**: 9.5 (part).
- **Falsifier**: the root's `make validate` and `make pins`, quoted; openDox-spec's own `validate`.
- **Ruled**: R2Q22; Brett's cut word, recorded on `#656`. **Decisions**: CF-2 (batch Q item 10's addendum).

The authority:
- **R2Q22 (a).** Brett Heap, 2026-10-05, `opensoft/openXfactory#656` comment `6003486656`: *"Accept all 25 recommended (Recommended)"*. openDox-spec owns three schemas, and the openDox root cuts one more `dox-v1.y` minor.
- **Batch Q's 9.5 addendum** (`opensoft/openXfactory#1248` → `91e961a0`): *"The cut is made on Brett Heap's cut word, as `dox-v1.1`'s was (RULED `5894235642`)."*
- **The plan ruling** (`6013547504`) names the `dox-v1.2` cut as still Brett's word, at the act.

**This PR does not create or push a tag.**

## What moved, in the one lockstep commit

| file | change |
|---|---|
| `spec` (gitlink) | `f7ee3c76` → `7db9438b4cc4446ab4e6ab5b552c220312deccc9` |
| `contracts/spec-pin.yaml` | `commit:` → the same commit; `digests.tree_sha256` `e81f8530…` → `d9f976c5b279b24b80387dad1deb0e8438d95f11ce183540bca93f86a5cd7363`. No `.github/workflows/*.yml` names the spec leg, so there is no third fact to move. |
| `contracts/manifest.yaml` | `contract_bundle_version` `dox-v1.1` → `dox-v1.2`. The four existing rows' `commit:` fields advance with the leg; no `sha256` changes. Three rows are added in `opendox-snapshot`'s form: `opendox-health-finding`, `opendox-health-packs` and `opendox-health-dispositions`, each with `type: release-schema`, `contract_schema_version: 1` and `release_member: false`. |
| `contracts/CHANGELOG.md` | A new `## dox-v1.2` section. The `Status:` header reads `draft` again, and the Unreleased line names the new pins. |

These are the same four paths #14 changed. `contracts/code-pin.yaml` and the `code` gitlink stay at `dede32b4`.

## Verification

From a fresh `--recurse-submodules` clone, at this branch's head `bb4249d5`:

```
$ make validate
python3 scripts/validate-repository-naming.py --project project.yaml
  openDox                          neutral-product/assembly   also_matches project-leg/assembly
  openDox-spec                     project-leg/spec
  openDox-code                     project-leg/code
python3 scripts/validate-manifest.py
manifest ok: openDox (opendox), 3 legs
python3 scripts/validate-pins.py
  ok  spec: gitlink == contracts/spec-pin.yaml commit 7db9438b4cc4
  ok  spec: tree digest recomputes (d9f976c5b279…)
  ok  code: gitlink == contracts/code-pin.yaml commit dede32b4b6f3
  ok  code: tree digest recomputes (c2672463b4d8…)
  ok  contracts/shape-pin.yaml: 10 copied shape file(s) match their digests
pins ok
make validate rc=0
$ make pins
python3 scripts/validate-pins.py
  ok  spec: gitlink == contracts/spec-pin.yaml commit 7db9438b4cc4
  ok  spec: tree digest recomputes (d9f976c5b279…)
  ok  code: gitlink == contracts/code-pin.yaml commit dede32b4b6f3
  ok  code: tree digest recomputes (c2672463b4d8…)
  ok  contracts/shape-pin.yaml: 10 copied shape file(s) match their digests
pins ok
make pins rc=0
```

**Red first.** With only the `spec` gitlink staged, before the pin file moved, `make pins` refused with exit 2:

```
FINDING pin-gitlink-mismatch: spec: gitlink 7db9438b4cc4446ab4e6ab5b552c220312deccc9 != contracts/spec-pin.yaml commit f7ee3c763b3af4581daf1cd54406e5111e9358e6
```

A mutant of the new digest (`tree_sha256` `d9f976c5…` → `d9f976c6…`) was also refused, with `pin-digest-mismatch` and exit 1. With the digest restored, the run exited 0.

**Every digest was recomputed here, not copied.**
- **The spec leg's `tree_sha256`.** Computed twice at `7db9438b`: with `repo_shape.tree_digest`, and by hand (`git ls-tree -r -z`, sorted, sha256). Both give `d9f976c5…5cd7363`. openDox-spec#17 squash-merged to the same tree (`f143e7dc`) as its branch head `58383189`, where its `validate` ran green.
- **Each row's `sha256`.** Computed over `git show 7db9438b:<path>`, and all seven match the manifest. The four existing digests are unchanged. The seven rows are exactly the seven files under `contracts/schemas/` at the pin, and the CHANGELOG's `dox-v1.2` table equals the manifest's rows.
- **`release_member: false` is a measurement.** None of the three new ids is among the 51 `contract_id` rows of openxFactory's `contracts/hermes-runtime/contract-index.yaml`, read at openxFactory `main` `51456835`.

**openDox-spec's own `validate`.** I ran its CI steps locally at `7db9438b`, with pytest `>=8,<9` and OpenSpec CLI 1.2.0:

```
602 passed, 5 skipped in 2.13s
PYTEST_RC=0
Totals: 4 passed, 0 failed (4 items)
OPENSPEC_RC=0
```

The 5 skipped tests need the optional imports `yaml` and `jsonschema`. The leg's CI install line installs pytest only, so CI skips the same five.

## Why the CHANGELOG's `Status:` header moves to `draft`

The rule is the same as in #14. A bundle is four coordinated values: `contract_bundle_version`, the entries, the annotated tag and the changelog entry. This PR moves three of them. The `dox-v1.2` tag does not exist yet, so the header reads `draft` until it does. `dox-v1.1`'s window paragraph moves into the past tense, as #14 did for `dox-v1.0`'s. `dox-v1.0` and `dox-v1.1` keep their own tags, entries and digests.

One cell is worded differently from #14 because the code leg has changed since then: the code leg's "contract bytes" cell. At `dede32b4`, openDox-code has no top-level `contracts/`. Its `src/opendox/contracts/` does hold plan 034 T057's packaged copies of four spec schemas, recorded at `f7ee3c76`, and the cell says so. Those copies move to this pin later, in T041, T047 and T054.

## What is NOT done

- **No tag.** After this PR lands, the holder asks Brett for the cut word. On his word, the annotated tag `dox-v1.2` goes on the landed commit, and a second PR moves the CHANGELOG header to `standard`, as #15 did for `dox-v1.1`.
- Nothing under `code/` moves, and neither does `contracts/code-pin.yaml`. No workflow changes.
- openDox-code's copy record is not touched. That is T041.

🤖 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]>
brettheap added a commit that referenced this pull request Oct 6, 2026
…n 038) (#1251)

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

**T002, plan 038: release 2's base (`evidence/r2-base.md`), and plan 038's `tasks.md` bookkeeping, items 1 to 15.** Bookkeeping and evidence, so this PR carries no `Arc:` line. It touches no `openspec/changes/` path, so no Rule 6 window applies.

## From plan 038's `tasks.md`, T002

- **Task**: T002, "Release-2 base, and the re-measure at the ruling". Record in `evidence/r2-base.md` every repository's `main` (research.md's R0 command), the box census, and `PACKET_MERGE=94b6f7f1` for F11.1, with lane 3's composed re-run quoted against R2-INV-P4F's 174. **README**: links `evidence/r2-base.md`. **After**: T004. **Lane**: 4 (lane 3 for the composed run).
- **Realizes**: none (bookkeeping; FR-025). **Falsifier**: T002 names none. Its gates are the brief's, and are quoted under "Gates" below.
- **Ruled / Decisions**: T002 carries none. Part 2 encodes rulings already posted on `#656`, each cited by comment id, and takes no decision of its own.

## Part 1: `evidence/r2-base.md` (new), linked from the README's feature-038 entry

Each figure is a command quoted with its output, or lane 3's measurement quoted and attributed.

- **Every repository's `main`** (the R0 command, run 2026-10-06T16:09:44Z to 16:10:31Z, and again at 16:26:12Z): `openDox-code 34c20641`, `openXdox-code 56e1c238` (then `c6d15b27`, T020's #39, committed 16:10:44Z), `openDox d77f8cbf`, `openXdox 9564d5d9`, `openDox-spec 7db9438b`, `openXdox-spec f088b097`, `openxFactory 5145683`, `xFactory 1047586d`, `codexFactory 563212a1`. The file gives each full SHA with its commit date and subject, against the R0 values of plan time, and what moved.
- **The box census**: plan 034's `box_census.py` over #1144's `tasks.md` at `51456835` reads `total 125 Counter({'x': 74, ' ': 42, '~': 9})`. At `ce64afc9` it reads the same, and `diff` of the two full outputs is empty: delta 0. Batch Q (#1248) landed between them, adding 526 lines and removing none.
- **`PACKET_MERGE=94b6f7f1`** (`94b6f7f13b45c351b9142345738965c974b7dd37`), on `origin/main`'s first-parent line; 83 first-parent commits since, 3 with the `Arc:` trailer (release 1's consumer pins).
- **Lane openXfactory-3's composed re-run**, quoted from `lane3-to-lane4.log` (09:52:07Z and 09:52:31Z), claimed on `#656` `6013610393`: "174 red vs 174 (170 failed + 4 errors, 668 passed ...)"; "moved: none"; "5 suites / 210 cases"; openDox installed from openDox-code `main` `a9ac96f9` while openXdox-code's `pyproject.toml:126` and openxFactory's nested `openDox/code` pin `dede32b4` (v0.1.0); openxFactory `main` `0f2a87f6` to `92010d3e`. I verified one thing there: of the 48 files that differ, the two under `scripts/` are `scripts/ideation_dashboard/nightly_lane.py` and `scripts/validate-factory-mcp.py`. Nothing was re-run.

## Part 2: plan 038's bookkeeping

Every item is a holder ruling or a Brett ruling already posted on `#656`, encoded as worded. The files are `tasks.md`, `plan.md`, `data-model.md`, `contracts/health-finding.md`, `contracts/cli-http-health.md` and `checklists/requirements.md`.

| # | Task | What changed | Record |
|---|---|---|---|
| 1 | T022 | Files gain new `tests/test_composed_placements.py` (openXdox-code#41) | holder `6016356225` |
| 2 | T023 | Files gain new `tests/test_swb_session_transport.py` (the bound and unbound probes in one committed file; #42) | holder `6016676145` |
| 3 | T026 | Files gain `tests/test_protected_suite_check.py`, and T020's `tests/conftest.py` and `tests/test_host_plane.py` after T020 lands; 'cluster' respells to "group neighbourhood"; the single-writer table's chain | holder `6016356225`, Brett `6016648451` |
| 4 | T029 | Files gain the two floor lines `MIN_SELECTED` and `MIN_PASSED` of openXdox-code's `validate.yml`, raised ONCE at its final head after merging `main`; no other PR raises them; a new single-writer row | holder `6017860539` |
| 5 | R-1 (a), widened | SIX spans of `tests/test_staging_workbench.py` (`_CREATE_HARNESS`, `_SESSION_HARNESS`, `_run_create`, `_run_session`, `_hostile_descriptors`, `_HOSTILE_HARNESS`), served display, in T026, plan.md § R-1 and the ruled-answers row | Brett `6016648451` |
| 6 | F12.1 | `--chains`, carried out by T026 and T029; the amendments table gains the row | Brett `6016648451` |
| 7 | T073 | After gains T095+; new T094 (lane 3, read-only, claimed `6017801219`) and T095+; T073's PR stays a DRAFT until they land; the lane table, the critical path, the slice tables and the dependency list follow | holder `6016982816` |
| 8 | T073 `open_until` | `doc_health` keeps its words plus lane 3's clause; `status-exemption-rail` and `openxfactory-contracts` read the ruled sentence, quoted | holder `6016982816` |
| 9 | T076 / F9.2 | the WRITTEN DISPOSITION naming `realize-doc-health-direction-arc` as F9.2's carrier, in T076, T084, the box-accounting row and plan.md's ARC-5 | holder, ARC-5 (a) `6013547504` |
| 10 | T003 | ticked, CLOSED ON THE RE-CHECK | holder `6017901451` |
| 11 | T074 | Files gain the six openXdox-code files of the arc change's `design.md` § 10; the single-writer table: `validate.yml` T029 (floors) then T074 (`LEFT_OUT`) | holder, from #1247's `design.md` § 10 |
| 12 | `identity` | stored (a `health_findings` column, canonical sorted-key JSON, capped) and emitted, bounded as T040's schema bounds it: `contracts/health-finding.md`, `data-model.md` § Finding, `contracts/cli-http-health.md`, plan.md, T041, T042 and T046; the cross-run collision stays an accepted limit, detectable now, whether the engine reports it being T046's | holder `6018624750` |
| 13 | ticks | T005 #1248 `91e961a0`; T008 codeXfactory/codeXfactory#515 `f1b019fe`; T010 openDox-code#89 `34c20641`; T040 openDox-spec#17 `7db9438b`; T070 #1247 `51456835`; and, on the coordinator's later word, T020 openXdox-code#39 `c6d15b27` and T024 openXdox-code#38 `8b64fae0`. Each was verified with `gh pr view <n> -R <repo> --json mergeCommit` | landed 2026-10-06 |
| 14 | T073 | Files gain new `tests/test_declared_rail_registration.py` (the conftest rail block's 5 lone cases with stand-in rails) | holder `6020698021`, answering `6020683941` |
| 15 | T026 | the H-2 in-test respellings move from 17 to 20: `test_gate_off_descriptor_is_the_real_cli_invocation`, `test_gate_off_session_affordances_are_the_real_cli_invocations` and `test_the_notebook_refresh_is_a_descriptor_in_BOTH_gate_postures`, admitted under CF-4; plan.md's CF-4 row notes it | holder `6020859092` |

T002 itself is ticked.

**Items skipped because already present: none.** Each was searched for at `origin/main` (`git show origin/main:<file> | grep -c`), and none was in place.

**Where an item could not be encoded exactly as worded, or needed a reading:**
- **Item 9**: no task of § "Close" archives #1144 (the archive act stays the holder's, ARC-5 (a)). The coordinator accepted placing the disposition in T084, the last task to edit #1144's `tasks.md`, and in T076 and the F9.2 accounting row.
- **Item 3, the chain**: the rulings order T020 before T026, and T020 before T021, but not T021 against T026. The table says "T021 and T026, in landing order", as the coordinator confirmed.
- **Item 12's grep**: the brief's `\|` is a markdown-table escape, so I ran it with plain `|`. Four hits remain, each the note that reverses the old wording ("reversing the engine-internal refinement"). The ruling gives no cap value, so none is written: the engine caps it, and the cap is T041's.
- The commit trailer names the model that wrote it, `Claude Sonnet 5.5`, as the session's attribution rule requires, where the writer rules spell `Claude Opus 5.5 (1M context)`.

## The holder's answers on this PR's four open questions

1. **`tests/test_declared_exclusion.py`** is NOT in T073's Files: T073 measured its lone CI green while touching only its own four files. It IS in T074's Files (item 11).
2. **FR-011 and an `identity` response-shape falsifier** are DEFERRED to the holder's next bookkeeping batch, with T094's T095 to T104 entries. This PR keeps to its list, so `spec.md` is as `origin/main` has it. (Copilot asked; the edit was made at `76b9428b` and taken back at `7ddfda5e`.)
3. **The `identity` cap is T041's**: the contract module owns the field bounds, and T042 stores what T041 bounds. T041's and T042's entries, `data-model.md` § Finding and `contracts/health-finding.md` say so (`80c6fee7`). No value is written.
4. **T003**: the constitution's analyze gate was met by round 1 (`evidence/analyze-round-1.md`) and its re-check (`6013547504`). T003 was a discretionary second round, so the closure (`6017901451`) stands.

## Review and gates

| Copilot at | verdict | findings | answered |
|---|---|---|---|
| `8b0a535d` | Changes recommended | 5: FR-011 and the identity's response shape; an exact aggregate cap; the T003/T004 states; the F9.2 disposition against ARC-5; the task count | the T003/T004 states, ARC-5 and the count were fix-now, fixed in `76b9428b`. The cap is an accepted limit (no value is written, by the holder's word); FR-011 is the holder's (open question 2) |
| `da00b298` | Changes recommended | 3 new: FR-011 against the bookkeeping scope; T003 without a fresh analyze; T020's tick against the old body | FR-011 taken back in `7ddfda5e`; T003 is the holder's (open question 4); the body is corrected (item 13) |
| `7ddfda5e` | Needs a closer look | 0 new threads; the 2 it listed as "previously missed" are those two | answered, see the threads |
| `80c6fee7` | Needs a closer look | 2 body-level findings: `identity` should be NOT NULL in the store's model; `r2-base.md` called its figures an input to T004's ruling, but T002 follows T004 | both fix-now, fixed in `fb57b851` |
| `f0f6923d` (final) | Changes recommended | 1: the "stored identity makes a collision detectable" sentence overstates it for an exception-only finding, which is never stored | accepted limit (#656 `5988818366`): the sentence is the holder's own wording (`6018624750`), and what T046 can detect from stored rows is T046's. Answered and resolved; no push |

9 threads, 0 unresolved. Every reply cites its commit or ruling.

- **`python3 scripts/validate-openspec-cli-pin.py --all`**, in the clone named `openxFactory`, at `f0f6923d`: exit 0, `Totals: 113 passed, 1 failed (114 items)`, `0 UNDISPOSITIONED failures`. The one failure is the dispositioned `add-chain-attestation` finding, the same on `main`.
- **openxFactory pytest**, locally at `8b0a535d` (CI venv, `-m "not postgres"`, TMPDIR under `~/.local/state`): `1 failed, 9206 passed, 7 skipped, 338 deselected, 9 warnings, 598 subtests passed in 2589.39s`. The one failure is `tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]`, a 30s `TimeoutExpired`. It fails the same way on `origin/main` in the same clone (`1 failed, 1 passed in 54.40s`), and the CI job passes it, so it is pre-existing and environmental. My later commits change documents only.
- **Doc-health**, `scripts/doc-health.py --single-repo .`, branch `f0f6923d` against `origin/main` `c44c1610` in the same clone: the two reports are byte-identical (sha256 `3b2e1f59db747178…`; `Findings: 31 critical, 26 error, 69 warning, 20 info. New regressions vs previous report: 0.`). So no new error.
- **CI at `f0f6923d`**: all 15 check runs completed at the head: `pytest-suite` success (19:00:34Z to 19:27:22Z), `SonarCloud Code Analysis` success, `doc-health-py314`, `openxdox-consumer-gate`, `openspec-cli-pin`, `wallet-validation`, `clearing-dispatch-gate`, `signed-execution-chain-gate`, `former-id-arrival-gate`, `release-tag-gate`, `openreposhape-pin` and the three `lane-line` runs all success. One is RED, `merge-master-approval`, and it is inherited from `main`: its floor evaluation stops at `floor_incomplete`, "4 covered-pending path(s) exceed the tolerance of 3", the four being `openspec/specs/corpus-adapter-seam`, `domain-mapping-declaration`, `factory-mcp-conformance` and `packet-citation-report`, each `added_to_base_after_pin`. This PR touches no `openspec/specs` path. #1252 (the archive that promoted `factory-mcp-conformance`) merged at 18:58:07Z, and this run (18:59:37Z) is the first gate run after it; every other open PR's last run predates it. It passed on this PR at `7ddfda5e` and `80c6fee7`. A rerun reads the same base, so the pin or floor refresh (#1138, "Advance the pinned decision core") is what clears it; the holder rules on landing over it.
- **`main` moved once more after these gates**, to `a2dc658d` (#1254, which touches `contracts/schemas/project-register.schema.yaml`, `docs/project-repo-schema.md` and `openspec/changes/prefer-triad-project-shape/tasks.md`). It shares no file with this PR, and `git merge-tree` reports a clean merge. I did not merge it in, since each merge restarts the 27-minute gate; the holder can run `gh pr update-branch` before landing if wanted.

## Files changed

- `specs/038-opendox-document-tool-self-maintenance/evidence/r2-base.md` (new)
- `specs/038-opendox-document-tool-self-maintenance/tasks.md`, `plan.md`, `data-model.md`, `checklists/requirements.md`
- `specs/038-opendox-document-tool-self-maintenance/contracts/health-finding.md`, `contracts/cli-http-health.md`
- `README.md` (the feature-038 entry's evidence list, one link)

## What is NOT done

- No requirement, scenario or spec delta is touched: `spec.md` is as `origin/main` has it, and nothing is under `openspec/changes/`.
- No box of #1144 is ticked, and T071 and the other tasks are left as they stand.
- T046's falsifier is unchanged: whether the engine reports a cross-run collision is named as its concern in `contracts/health-finding.md` only.
- Lane 3's composed run is quoted, not repeated.

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


Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit to opensoft/openXdox-code that referenced this pull request Oct 6, 2026
…span kind (plan 038, H-2) (#43)

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

Arc: neutral-product-standalone-operability

## T026, U-7: the allow-list for 12.5's governed suites, with R-1 (a)'s span kind (plan 038)

The After set has landed:
- T020 (#39, at c6d15b2). This branch is up to date with `main` f70bc9c, which also holds T024 (#38), T023 (#42) and T021 (#40). `main` was merged in at e6d99691, 3226d5c, 9e0979c and 9c29855, never by rebase;
- T004 (opensoft/openXfactory#1245, at 260234b5);
- T005's batch Q (opensoft/openXfactory#1248, at 91e961a0), which gives 12.5's oracle call `--chains`. openxFactory `main`'s `add-neutral-product-standalone-operability/tasks.md:3055` now reads `python3 scripts/protected_suites.py --chains --landings="$(cat "$W/x-arc.txt")" --suites="$(cat "$W/governed.txt")"`.

- **Realizes**: 12.5 (part).
- **Falsifier** (tasks.md): the oracle prints `ok: … each entered and holding`; the nodes, composed, quoted.
- **Ruled**:
  - R2Q8, CF-4 (H-2), R-1 and W-1, with plan 038 by Brett Heap, everything as recommended (opensoft/openXfactory#656 comment 6013547504).
  - Brett's ruling on this task's four points (comment 6016648451, every answer the recommended one):
    1. 12.5's call takes `--chains`, and T026 lands as one PR.
    2. and 3. R-1 (a)'s spans widen to six, the helpers hand each harness the SERVED display, and T020's host registration covers `tests/test_staging_workbench.py`, edited by T026 in T020's two files once #39 landed.
    4. T026's Files gain `tests/test_protected_suite_check.py`.
  - The holder respelled the 'cluster' node to `group neighbourhood`, as measured.

### What this PR does

32 entries are appended to `tests/protected_suite_respellings.yaml`, giving 51 in all. Each is one edit inside its named test or span, with its exact old and new text, and the entries for each suite are chained by blob.

| suite | entries | what |
|---|---|---|
| `test_session_gates.py` | 3 | CF-4: `cmd_gate_*` read from `openxdox.cli_gate` |
| `test_session_verbs.py` | 5 | CF-4: `cmd_gate_*` 4, and Group W `openxdox.generator.live_topic_health` |
| `test_session_confinement.py` | 3 | CF-4: `serve_projection.hosted_index` |
| `test_doxbench_share.py` | 2 | CF-4: each swept module at its one home; the record schema read through `openxdox.contracts.verified_bytes`, digest-checked against `copies.yaml` (Copilot's finding) |
| `test_staging_workbench.py` | 19 | see below |

The 19 staging entries, in chain order (allow-list entries 33 to 51):
- **33**: the 'cluster' node, respelled to `group neighbourhood`.
- **34, 37, 38 and 39**: CF-4 Group S2, the four slice-S5 spellings of the create and session columns.
- **35 and 36**: R-1 (a)'s two in-test relocations, `:1291` and `:1333`. Each route is one `export const …_ROUTE` of `swb-session.js`, and neither the view nor the model names one.
- **40 to 49**, R-1 (a)'s six spans (seven `span:` entries) and three in-test respellings:
  - `_CREATE_HARNESS` (two entries), `_SESSION_HARNESS` and `_HOSTILE_HARNESS`: each imports its route from the column RULED Q3 moved it to (`CREATE_ROUTE` from `swb-create.js`, `sessionRoute` from `swb-session.js`) and the reader from `display.js`. Each installs `setDisplay(readDisplay({ display: cases.display }))` before anything derives, as the shell does. `BRAINSTORM_AREA` and `STAGING_AREA` become the model's `capturedArea()` and `organizedArea()`.
  - `_run_create`, `_run_session` and `_hostile_descriptors`: each copies the sibling files its harness imports (and what they import), with a `package.json` that makes node read them as modules, as `test_session_confinement.py`'s harness does. Each hands its harness `/capabilities["display"]`, by the statement `serve.build_server()` makes, replayed as `test_gate_loop_views.py`'s `_served_display` replays it.
  - Three in-test respellings, **flagged below**.
- **50 and 51**: the docstrings of the two relocated tests now say what their assertions hold (Copilot's findings).

**`scripts/protected_suites.py`, R-1 (a)'s span kind.** An `admitted` entry may name, in place of `test`, a `span`: one module-level constant, or one module-level helper function (its decorators included). The entry's `old` text must lie inside that statement before the landing, and its `new` text inside it at the landing. Three further rules apply:
- **Counted fail-closed.** The span's name must have exactly one binding in the module, counting every binding form in every scope: assignment, augmented or annotated assignment, `for` or `with` target, walrus, `del`, `def` or `class`, an import or a star import, an `except … as` alias, a `match` capture, a type parameter and a parameter.
- **Alone on its lines.** No other statement may share a line with the span.
- **Never a span:** a class, an import, a test, two targets, an annotation alone, or an added name. Only an admitted entry may name a span.

The module's usage block and help now give 12.5's call with `--chains`, as batch Q has it.

**`tests/test_protected_suite_check.py`**: 33 span cases (87 in the module).

#### FLAGGED for the holder's word: three in-test respellings beyond the plan's 17

These are CF-4's kind. T026's measurement reported them at comment 6016415390 (point 2), and comment 6016648451 ruled that point. They close the last three of the suite's nodes, which the served display alone does not reach. Each is entered as a `respelling` naming that history, and each stands or falls on your word:

1. `test_gate_off_descriptor_is_the_real_cli_invocation`: `cli.cmd_gate_create_document` becomes `cli_gate.cmd_gate_create_document`, imported in the test from `openxdox.cli_gate`. The old spelling raised `AttributeError`.
2. `test_gate_off_session_affordances_are_the_real_cli_invocations`: `cli.cmd_gate_edit_document`, `cmd_gate_open_pr` and `cmd_gate_abandon_session` become `cli_gate.…`, likewise.
3. `test_the_notebook_refresh_is_a_descriptor_in_BOTH_gate_postures`: `REPO_ROOT / "scripts" / "sync-notebooklm-books.py"` becomes the one directory on the import path that holds the script, which is openxFactory's `scripts/` in the composed run (R1Q23 (a)). A run that finds it in none, or in more than one, fails. The old path raised `FileNotFoundError`.

No assertion is weakened in any of the three, and every argument and flag assertion stays.

### T020's two files, edited once #39 landed (commit 242889b)

T020's registration has to cover `tests/test_staging_workbench.py`. Without it every harness helper refuses `ProfileNotRegistered`, as measured below. The edit is to T020's `tests/conftest.py` and to the scan in `tests/test_host_plane.py`:
- `"test_staging_workbench.py"` joins `GOVERNED_HOST_SUITES`, with a comment giving the reason, kept as a block of its own apart from T021's lines;
- the scan also recognises a `gate` verb spelled as a command line (`_GATE_COMMAND = re.compile(r"""["']gate ([a-z][a-z-]*)""")`), the way this suite's descriptors spell it. Measured over the 16 governed suites, only `test_staging_workbench.py` matches it and not the argument-vector spelling.

T021 (#40) also edits `tests/conftest.py`. Whichever of the two lands second merges `main`.

### The falsifier

**The oracle, in 12.5's call as `main` now has it (`--chains`), at a simulated squash landing of this head.** The landing is one local commit on `main` f70bc9c carrying exactly this branch's tree and the `Arc:` trailer, and it is never pushed. The inputs are 12.5's own:
- the governed set by its `git grep`: 16, the same 16;
- the `Arc:` landings since `e28930bf`: 14, T020's, T024's, T023's and T021's among them.

```
admitted: c41063d tests/test_gate_loop_views.py, by entry 1 of tests/protected_suite_respellings.yaml
admitted: 839492d tests/test_gate_loop_views.py, by entry 2 of tests/protected_suite_respellings.yaml
admitted: 56e1c23 tests/test_branch_session.py, by entry 18 of tests/protected_suite_respellings.yaml
admitted: 2f7003912aa7 tests/test_doxbench_share.py, by entries 31, 32, in that order, of tests/protected_suite_respellings.yaml
admitted: 2f7003912aa7 tests/test_session_confinement.py, by entries 28, 29, 30, in that order, of tests/protected_suite_respellings.yaml
admitted: 2f7003912aa7 tests/test_session_gates.py, by entries 20, 21, 22, in that order, of tests/protected_suite_respellings.yaml
admitted: 2f7003912aa7 tests/test_session_verbs.py, by entries 23, 24, 25, 26, 27, in that order, of tests/protected_suite_respellings.yaml
admitted: 2f7003912aa7 tests/test_staging_workbench.py, by entries 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, in that order, of tests/protected_suite_respellings.yaml
ok: 8 protected edit(s), each entered and holding
```

rc=0. In the pre-batch-Q form, which passes no `--chains`, a landing of this branch reads `FAIL: the arc edited protected suites outside the reviewed allow-list: tests/test_doxbench_share.py, …` with rc=1. That is why batch Q was ruled.

**The oracle on mutants of the real list** (`--chains`), each refused:

```
A a chain step's before_blob broken: rc=2
    FAIL: tests/protected_suite_respellings.yaml breaks its own rules, so nothing is subtracted: entry 44: its before_blob is not the after_blob of the entry before it for tests/test_staging_workbench.py, so the two do not chain
B the last staging step dropped: rc=1
    refused:  f7ebecbcc37e tests/test_staging_workbench.py: entries 33-50: tests/test_staging_workbench.py at the landing is 66d16b7, not the chain's 54852fa5250b2c4d0630088154aa4bac6517bffe; entries 3…
    FAIL: the arc edited protected suites outside the reviewed allow-list: tests/test_staging_workbench.py
C a span entry names another span: rc=1
    refused:  f7ebecbcc37e tests/test_staging_workbench.py: entries 33-51: step 10: the entry's old text is not inside _run_session before the landing; entries 34-51: tests/test_staging_workbench.py before the landing is 655afc8…
    FAIL: the arc edited protected suites outside the reviewed allow-list: tests/test_staging_workbench.py
D a span entry names a test instead: rc=1
    refused:  f7ebecbcc37e tests/test_staging_workbench.py: entries 33-51: step 10: the entry's old text is not inside test_toggle_keyword_is_order_preserving_and_idempotent before the landing; entries 34-51: tests/test_staging_workbe…
    FAIL: the arc edited protected suites outside the reviewed allow-list: tests/test_staging_workbench.py
E a respelling entry names a span: rc=2
    FAIL: tests/protected_suite_respellings.yaml breaks its own rules, so nothing is subtracted: entry 43: names a span, and only an admitted entry may (R-1 (a)); a respelling entry names its test
```

**R-1 (a)'s span guards: 22 mutants** of `scripts/protected_suites.py`, each run against the committed `tests/test_protected_suite_check.py`. 21 are killed. M4 survives because it is equivalent: a nested binder also lies inside its compound statement's lines, so the shared-line guard refuses it too. M22, which removes both guards, is killed.

```
M1 a respelling may name a span: killed (first: test_a_span_entry_that_breaks_the_rules_subtracts_nothing[respelling])
M2 a span may be spelled as a test: killed (first: test_a_span_entry_that_breaks_the_rules_subtracts_nothing[a-test])
M3 a name bound twice may be a span: killed (first: test_what_is_never_a_span_is_refused[shadowed])
M4 a block-only binding may be a span: SURVIVED
M5 a del is not a binding: killed (first: test_a_second_binding_in_any_form_or_scope_is_never_a_span[del])
M6 an except alias is not a binding: killed (first: test_a_second_binding_in_any_form_or_scope_is_never_a_span[except-alias])
M7 a match capture is not a binding: killed (first: test_a_second_binding_in_any_form_or_scope_is_never_a_span[match-capture])
M8 a star import is not a binding: killed (first: test_a_second_binding_in_any_form_or_scope_is_never_a_span[star-import])
M9 a parameter is not a binding: killed (first: test_a_second_binding_in_any_form_or_scope_is_never_a_span[parameter])
M10 a class may be a span: killed (first: test_what_is_never_a_span_is_refused[class])
M11 a helper function is never a span: killed (first: test_an_edit_inside_a_named_helper_function_is_admitted)
M12 two targets may be a span: killed (first: test_what_is_never_a_span_is_refused[two-targets])
M13 an annotation alone may be a span: killed (first: test_what_is_never_a_span_is_refused[annotation-only])
M14 a helper's decorators lie outside it: killed (first: test_a_helpers_decorator_is_inside_its_span)
M15 a shared line is allowed: killed (first: test_a_span_that_shares_a_line_with_another_statement_is_refused)
M16 old outside the span is not checked: killed (first: test_an_old_text_outside_the_span_is_refused)
M17 new outside the span is not checked: killed (first: test_a_new_text_that_leaves_the_span_is_refused)
M18 an added span is not refused: killed (first: test_what_is_never_a_span_is_refused[class])
M19 the span's first line is outside it: killed (first: test_an_edit_spanning_a_whole_named_constant_is_admitted)
M20 a span entry keeps the test key: killed (first: test_this_repositorys_allow_list_keeps_its_rules)
M21 span entries take the test path: killed (first: test_an_edit_spanning_a_whole_named_constant_is_admitted)
M22 M4 and M15 together: killed (first: test_what_is_never_a_span_is_refused[block-only])
M0 unmutated: 87 passed in 9.05s
```

**The served display, measured in the test process** (Brett's (2)+(3): "INFERRED … MEASURE it"). This was an uncommitted probe test, run composed at 3eead0fe (242889b on the integration of that time; the helpers' statement is unchanged since):
- with no host registered, the helpers' statement refuses `ProfileNotRegistered`;
- under the governed host (`OpenxFactoryProfile`), it reads `host_facet: declared` and `host_profile: openxfactory-engineering`, with areas `captured: ideation/brainstorm/` and `organized: ideation/staging/`;
- that result equals the `display` of a live `GET /capabilities` from `serve.build_server()` under the same registration: `EQUAL: True`, 3163 bytes of sorted JSON.

**The nodes, composed**, in R1Q23 (a)'s form:
- openxFactory `main` 92010d3e, with its submodules initialized recursively and its `scripts/` on `PYTHONPATH`;
- openDox-code#91 45f5c55d installed (W-1 (A));
- T022's runbook placement linked (its script, #41), the colour variables unset and `TERM=dumb`;
- each suite run alone;
- openXdox-code `main` f70bc9c (T020, T021, T023 and T024 landed) as the base, and this head merged onto it on a local branch that is never pushed (0478b5f1).

| run | 16 governed suites | `test_host_plane.py` | `test_protected_suite_check.py` |
|---|---|---|---|
| without this PR (`main` f70bc9c) | 842 nodes: **800 passed, 42 red** (staging 29, verbs 5, confinement 3, gates 3, share 2) | 9 passed | 54 passed |
| with this head 9c29855 (0478b5f1) | 842 nodes: **842 passed** | 9 passed | 87 passed |
| earlier, this PR WITHOUT the edit to T020's files (at 856047a, on `main` 56e1c23 with #41 and #42 merged) | `test_staging_workbench.py`: 37 failed, 46 passed, every failure `ProfileNotRegistered` | 9 passed | n/a |

42 nodes go red to green, none goes green to red, and none is still red.

### CI at the head 9c29855

- **Checks**: `validate` success (run 37517336710), SonarCloud success, `copilot-pull-request-reviewer` success.
- **CI's own pytest step, run alone** (CI's install, openDox at its pin dede32b4): `selected=1146 passed=1142 skipped=4 failures=0 errors=0`, against the floors `MIN_SELECTED 1099` and `MIN_PASSED 1095` and `EXPECT_SKIPPED 4`. The holder ruled (lane log, 13:57Z) that T029 raises the floors once, and T020 to T026 leave them.
- **Copilot**: reviewed at 9c29855, "Needs a closer look" (a governance-sensitive validator and a large chained allow-list), **Findings: None**. 9 threads over its reviews, each answered with its fixing commit and resolved; 0 unresolved.

### Files changed

`scripts/protected_suites.py`, `tests/protected_suite_respellings.yaml`, `tests/test_session_gates.py`, `tests/test_session_verbs.py`, `tests/test_session_confinement.py`, `tests/test_doxbench_share.py`, `tests/test_staging_workbench.py` (T026's seven), plus three files the ruling at comment 6016648451 adds to T026's Files:
- `tests/test_protected_suite_check.py`, the holder's answer to point 4;
- T020's `tests/conftest.py` and `tests/test_host_plane.py`, Brett's points 2 and 3, edited once #39 landed.

### What remains, and its trigger

- **The holder's word on the three flagged respellings.** Nothing else in this PR waits.
- If `main` moves before landing, the lander merges it, never by rebase.

🤖 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]>
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