Skip to content

Feature 038: the Speckit specification for release 2 of add-neutral-product-standalone-operability (#1144) - #1245

Merged
brettheap merged 23 commits into
mainfrom
038-opendox-document-tool-self-maintenance
Oct 6, 2026
Merged

brettheap merged 23 commits into
mainfrom
038-opendox-document-tool-self-maintenance

Conversation

@brettheap

@brettheap brettheap commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Status: RULED (#656 6013547504); ready to land. The holder posts READY and lands it.

What this is

This PR is the Speckit specification for release 2, "the document tool
and self-maintenance" (phases 4–5)
, of the ratified OpenSpec change
add-neutral-product-standalone-operability (#1144). It is the
/speckit.specify step and its clarify round. Brett Heap answered all 25
questions with option (a) on #656, comment 6003486656: "Accept all 25
recommended (Recommended)"
. The answers are encoded at ce64afc9. The plan and
tasks are at 6d6911e1, with review round 1 folded in at 6847e99e. Brett
ruled the plan there, every item as recommended (#656 6013547504); T004
encodes the ruling at 2a4a73d1, and Copilot's reviews are folded in from
b7137d5e to 03adf0e4, the final head (the holder ruled the convergence).
This PR adds planning documents only; implementation proceeds in the product
repositories on Brett's word.

One OpenSpec change, two Speckit features (R1Q21 (a)). #1144 hands off to
feature 034 (release 1, phases 1–3) and to this feature, 038 (release 2). R1Q21
(a) was answered on #656, comment 5850003126: "go with recommendations on
all the open questions"
. The change archives only on both releases' merged,
green evidence (5800995035).

Authority. Brett Heap started release 2 on #656, comment 6001702967:
"Start release 2 (Recommended)". #1144 was ratified on comment 5815412869.
Its four release-2 rulings are SEQUENCED, not reopened: 5783934499,
5784155201, 5784247356 and 5784295745.

Scope:

  • phase 4 is Group 12 (requirement 11): submission, and landing;
  • phase 5 is Groups 6, 14 and 15 (requirements 6, 14, 15 and 16): the health
    engine, the fix loop, exceptions in git, and check packs;
  • Group 11 (the guard) and box 9.5 (the pins) run in every phase;
  • Group 8 and the follow-ons F1–F4 are out of scope.

It adds the specification, the plan and the tasks only: no code, no pin, and no
OpenSpec change. It edits no file of #1144. Besides the feature directory, it
adds one line to the README's Documentation index, which links the planning
documents and round 1's evidence.

file what it holds
spec.md Six user stories: US1 submit (P1, phase 4), US2 land (P1, phase 4), US3 the governed host unchanged (P1, every phase), US4 see health (P2, phase 5), US5 the fix loop and exceptions (P2, phase 5), US6 packs (P3, phase 5). FR-001–FR-025, each naming its #1144 requirement and boxes. Key entities, SC-001–SC-007, Assumptions (each measured at the trees below), and Risks.
clarify-questions.md Round 1: R2Q1–R2Q25, all ANSWERED (a) (#656 6003486656). Six are contradictions, and two (R2Q19, R2Q20) ask only whether to amend ratified text. Then 34 questions deferred to the plan, each with a proposed default. Round 2 is empty. A last table maps every candidate.
checklists/requirements.md The spec-quality checklist. Its three open items are the questions, realization, and analyze.
plan.md Phases, the dependency graph, the single-writer table, the two-lane split, the critical path, pins and landing order; § "Ruled answers, the plan ruling" and § "Design decisions, RULED with the plan" in three tiers (7 rulings, 8 readings confirmed, 52 defaults); § "Conflicts found, and where each was ruled" (21); and a revision note listing every refinement Copilot's reviews made after the ruling, for the holder to judge.
research.md, data-model.md, contracts/ (five notes), quickstart.md The measurements and decisions behind the plan, the entities, the CLI/HTTP and file contracts, and AT-R2.
tasks.md 79 tasks, T001–T093, with box accounting for all 42 open boxes, the falsifier mapping and the writer slices.
evidence/analyze-round-1.md, evidence/plancheck-lane3-round-1.md Review round 1, verbatim, each with its disposition table.

Inputs

The 61 inventory candidates and this feature's seven were triaged as follows:

  • To Brett (round 1) only if the answer changes WHAT the spec requires, and
    File add-neutral-product-standalone-operability: open the BUILD arc, recording ten rulings #1144 and the rulings do not already decide it.
  • To the plan, with a proposed default, where the question is
    design-level.
  • Merged where one answer settles a pair. The merges are OQ-12-4 with -5,
    OQ-12-6 with -7, OQ-H-4 with OQ-H-22's ownership half, OQ-H-5 with
    OQ-H15-6, OQ-H-7 with OQ-H15-17, and OQ-H-12 with OQ-H15-16.
  • The falsifier amendments are put as ONE question (R2Q9): OQ-H-1,
    OQ-H-6, OQ-H15-22 (a)–(d), and the verbs' --local.

The questions (round 1)

phase questions
4 (Group 12) R2Q1 "one interface for both" · R2Q2 pull_request_factory's unset default · R2Q3 whether a governed host carries submit/land/health · R2Q4 the instrument · R2Q5 which branches · R2Q6 where land merges · R2Q7 the default branch and the first declaration · R2Q8 where 12.5 runs, and its 174 reds
5 (Groups 6, 14, 15) R2Q9 seven falsifier amendments as one set · R2Q10 a finding's id · R2Q11 "location" · R2Q12 the baseline · R2Q13 the 0003_ table's ownership · R2Q14 6.1a against 11.1 · R2Q15 hosted · R2Q16 what runs in the sandbox, and what in process · R2Q17 CI and the sandbox suite · R2Q18 pack dependencies · R2Q19 amend for git history? · R2Q20 amend for model access? · R2Q21 stack.yaml against health/packs.yaml · R2Q25 excerpts in evidence
release 2's close R2Q22 openDox-spec and a bundle · R2Q23 PyPI 0.2.0 · R2Q24 AT-R2

Bold marks the six contradictions:

  • R2Q1. The release map's "one interface for both" against 12.1 and
    12.6a's split protocols.
  • R2Q2. 12.4 against itself, tasks.md:2500-2511 against :2513-2519.
    openXdox-code's protected test_session_snapshot.py:893-916 pins
    GhPullRequests.
  • R2Q6. 12.6a's --no-ff merge against feature 007's served-checkout rule:
    merge and update-ref are not allowed, and HEAD stays unchanged.
  • R2Q8. F12.1 against the declared exclusion. Fifteen of its 16 suites are
    excluded for doc_health. Composed with openxFactory's scripts, the 16 read
    668 passed and 174 red, the same 174 as T086.
  • R2Q9. F6.1 against batch G, where a bare process refuses. F14.1 and F15.1
    against R1Q16, where the bundle belongs to the document server.
  • R2Q10. The falsifiers' literal ids against requirement 15's stable
    citation.

Risks (spec.md § Risks)

  • The reference sandbox is unavailable by default on every target
    measured.

    • In this lane's container, bwrap exits 1, "No permissions to create new
      namespace".
    • GitHub's ubuntu-24.04 restricts unprivileged user namespaces through
      AppArmor.
    • The hosted pod is inferred to be the same.
    • macOS Seatbelt cannot meet requirement 16.

    So 15.1b's "packs do not run" is the default outcome everywhere. R2Q16
    decides whether the product's own checks still run. R2Q17 decides how CI
    proves the sandbox.

  • 12.5 cannot pass in any environment measured (R2Q8).

  • Three standing invariants stand in the way of four boxes (R2Q6, R2Q9):
    feature 007's served checkout (12.6a), batch G's empty seam (F6.1), and
    R1Q16's bundle ownership (F14.1, F15.1).

Where the rulings and #1144's text differ (reported, not settled here)

Fix round: lane openXfactory-3's check (at 43ddf275), folded in at 0513a3b1

Lane openXfactory-3 checked R2Q1–R2Q24 read-only and found 10 OK, 14 FIX and
2 MISSING. Every fix was verified against the trees before it was written in,
and the coordinator's rulings on the open points were applied:

  • R2Q1. The governance query binds the lander alone. submit's port comes
    from injection.
  • R2Q2. The repoint residue also covers design.md:1059-1061. Option (a)
    states what goes unrealized with R2Q3 (a).
  • R2Q3. The cites are corrected: R1Q4 (a)'s option text, the golden's test
    line, and openXdox-code's 32-entry test.
  • R2Q6. Feature 007's FR-004 and SC-002 are cited from codexFactory, and
    the promoted scenario from its archived home. Option (a) now lands in a
    worktree and fast-forwards. Round 2 completes its exceptions and its remote
    route (below).
  • R2Q7. The runtime's HEAD-branch code is measured against option (a).
  • R2Q9. It uses F13.1's real form, and only F15.1's health verbs. There is
    one batch, before phase 4's first checkpoint, and F6.1's stale "Today" text
    is struck.
  • R2Q12. D12 decides the pack-upgrade half. "New" is now absent from the
    previous default-tip run. Option (a) has a reset forget pending
    disappearances; option (b) derives them from git.
  • R2Q15. The hosted plane refuses by name and records no finding.
  • R2Q16. It is restated as what runs in the sandbox, with OQ-H-3 folded in.
  • R2Q17, R2Q18, R2Q22. Cites and consequences are corrected:
    • EXPECT_SKIPPED stays at 11;
    • the conftest lines are :130-147;
    • the digest plus the install's version pin what runs;
    • openDox-spec is already the arc's sixth repository.
  • R2Q19 and R2Q20. Each is now amend-or-keep, with keep recommended.
  • R2Q25 (new). It asks whether a finding's evidence may hold excerpts
    (OQ-H-19).

Fix round 2: lane openXfactory-3's second check (at 0513a3b1), folded in at 15c40f0d

12 of the 14 first-round fixes landed as worded, and R2Q8's 62/55/16/16/3/22
split was confirmed (lane 3 appended an erratum to its inventory). Eight
points were left on four questions:

  • R2Q6. "The tree restored" is cited at tasks.md:2910-2911.
    • Option (a) now counts FOUR exceptions:
      • a new argument check for merge --ff-only in the name-only guard, under
        which ("merge", "other-branch") (test_session_git.py:523) still
        refuses;
      • session_git.py:93's stated rule;
      • SC-002's HEAD clause and its working-tree clause.
    • The shipped project push (RULING C3) pushes a project's BARE repository,
      never a served checkout. So (a) names the route for each kind of checkout,
      and (d) says why a push from the served checkout is still a new act.
  • R2Q12.
    • A fourth class, "arrived with a pack upgrade", follows D12.
    • Disappearance is measured only between default-tip runs, so the fix loop's
      draft branch does not re-raise a fix in progress.
    • Option (a) is stated as narrowing 14.3's "recomputable from git", a reading
      for Brett.
  • R2Q16. A host's in-process check runs only at the scoped seam, and its
    results are never stored.
  • R2Q25. _CITE_EXCERPT_CHARS bounds a disposition-citation quote in
    action, not document text in evidence. F1's consequences are restated
    for both options.

Clarify answered (at ce64afc9)

All 25 answers are encoded in one commit:

  • clarify-questions.md: each answer is written inline, and the Answer
    state is ANSWERED.
  • spec.md:
  • The checklist: re-run. Only realization and analyze remain open.

No requirement or scenario of #1144 changes, because R2Q19 and R2Q20 keep the
ratified text. Two interplays between answers are reported to the holder, not
resolved:

  • R2Q1 (a)'s "the same in every mode" against R2Q3 (a)'s "no host carries the
    verbs";
  • R2Q7 (a)'s main against R2Q12 (a)'s default-tip baseline.

The 34 design questions deferred to the plan keep their proposed defaults, for
Brett to rule with the plan.

Review round 1 (at 6d6911e1), folded in at 6847e99e

Two independent read-only reviews, folded in ONE revision on the holder's
rulings: conform to ratified text wherever a conforming route exists, so that
what reaches Brett is short. Each claim was re-measured before it was applied.

  • The Opus review (speckit-analyze plus an adversarial pass; verdict
    "READY after the listed fixes"): 66 rows (ADV-01 to ADV-41, and D1, F1–F10,
    C1–C6, E1–E4, A1–A2, B1–B2). 60 applied, four of them (ADV-09, ADV-10,
    ADV-11, ADV-16) by conforming where the reviewer offered Brett a choice; 2
    left unchanged as the reviewer accepted them (A2, B2); 4 put to Brett (ADV-20,
    ADV-25, ADV-15, B1). One measured cite in the review is disputed: the
    merge-absence loop in tests/test_session_git.py is at :563-564, not
    :564-565 (sed -n 560,564p at a9ac96f9).
  • Lane openXfactory-3's PLANCHECK (125 lines: 34 FIX, 4 MISLABEL, 9 SHARED,
    4 NOT REACHED, 72 OK): 33 FIX applied and 1 put to Brett (CF-5); MISLABEL row
    31 conformed, the other three put to Brett (ARC-5, I-2, CF-6). The lane
    ACCEPTED the split on three conditions, each applied: T021 before T022; T054
    After T047, with openDox-code's copy record in the single-writer table; T073
    moved out of the arc as File add-neutral-product-standalone-operability: open the BUILD arc, recording ten rulings #1144's requirement-9 work.

The largest changes: submit/land take 12.4a's and 12.6a's --repo-root … --branch …; Submission carries remote, ref and a redacted url, and a
credential-bearing remote is pushed with the report redacted (12.1a); T055
builds 15.6a's eight packs by name; patches are unified diffs only, with
15.2a's refusal list and 65,536-byte bound; nothing is vendored into
openXdox-code's single-source copy record; the root's spec pin and the
dox-v1.2 cut (T060, on Brett's cut word) move before the copies, which land
T041 → T047 → T054; T061 never waits for the arc; the finding id hashes a
position-independent identity key; a dirty served checkout on main refuses
land; the store holds no patch text; health fix … --finding ID [--batch]
exactly as 14.5 declares; a new CI-owner task (T067) runs F15.1's shell block
in the required job.

The decisions, in three tiers (plan.md § "Design decisions"):

  • Tier 1, six RULINGS as multiple-choice questions: R-1 (the staging
    suite's 26 nodes; closes only with W-1), W-1 (the display.js route), ARC-5
    (File add-neutral-product-standalone-operability: open the BUILD arc, recording ten rulings #1144 archives with F9.2 open), I-2 (the baseline in a repository with no
    main), N-6 (phase 5 overlapping phase 4's tail), ARC-1 (the arc change's
    target_release:).
  • Tier 2, six readings to CONFIRM: CF-1 (I-1, "every mode"), CF-2 (batch
    Q's twelve items), CF-3 (H-1, the shim), CF-4 (H-2, batch C's scope, with
    both reviews' views), CF-5 (F12.1's composition is permanent), CF-6
    ("optionally on commit" is a documented hook line).
  • Tier 3, 55 proposed defaults, ruled together.

Validation (head 6847e99e)

gate result
python3 scripts/validate-openspec-cli-pin.py --all exit 0; Totals: 110 passed, 1 failed (111 items); every target validated --strict with 0 UNDISPOSITIONED failures. The one failure is add-chain-attestation's accepted disposition, as on main.
the feature's self-check 79 tasks; FR-001–FR-025 and SC-001–SC-008, R2Q1–R2Q25 and the 42 open boxes each map to a task; no dependency cycle
the single-writer chain check every order in plan.md's table is encoded in an After line: 0 problems
relative links in the feature directory and the README's feature-038 entry 0 broken
host-absolute path scan of the feature directory 0 hits outside the verbatim review, whose one line names the four path prefixes its own scan searched for (disclosed in the evidence file)
closing-keyword scan (the feature's files and this commit's message) 0 hits. The README's three hits are lines already on main, outside this PR's one line.

The plan ruling (#656 6013547504), encoded at 2a4a73d1 (T004)

Brett Heap ruled plan 038 at 6847e99e on 2026-10-06, by interactive
multi-choice, every item as recommended. His answers, verbatim:

  • R-1 "Admitted edit kind (Recommended)"; W-1 "Model import-free
    again (Recommended)"
    ; ARC-5 "Archive with F9.2 open (Recommended)";
    I-2 "main, else HEAD's branch (Recommended)"; N-6 "Allow the
    overlap (Recommended)"
    ; ARC-1 "implemented (Recommended)"; N-7b
    "Make it required (Recommended)";
  • the rest "Accept all as recommended (Recommended)": CF-1 to CF-8, the
    tier-3 defaults and the two-lane split.

T004 encodes it:

  • plan.md: a new § "Ruled answers, the plan ruling" quotes each answer;
    § "Design decisions" is retitled RULED and marks every item with the option
    taken. N-7b moves into tier 1; OQ-12-12 and OQ-12-16 become tier 2's CF-7 and
    CF-8. Tiers: 7 rulings, 8 readings confirmed, 52 defaults (67 items).
  • tasks.md: T004 and T009 ticked; every conditional resolved to the
    ruled option; T063 and T064 now name phase 4's pins in their After lines,
    since N-6 (a) no longer routes phase 5 through T033.
  • spec.md: I-2 (a)'s amendment, every "main's tip" baseline line now
    "the baseline branch's tip (main, else the branch HEAD names)", with a
    clarification session for the ruling.
  • The re-checks' five remaining fixes: packs always see the committed
    export of HEAD (15.1b); the capability keys' presence (openDox's own profile
    only) kept apart from their values (route-derived, as gate's); the phase-4
    openXdox-code src/ exceptions named; a finding-id collision is a finding
    against its producer; a file only one task ever writes needs no single-writer
    row.
  • Status headers. plan.md and tasks.md keep Status: draft, as plan
    034's do: the lifecycle's Ratified by: line must name an OpenSpec change
    (docs/document-lifecycle.md § Status Claim Rules).

Copilot's reviews, 2a4a73d1 to the final head 03adf0e4

Every open thread is answered and resolved, each classified under the
convergence rule (#656 5988818366).

At 2a4a73d1: 18 open threads (12 from earlier heads, 6 new), folded in at
b7137d5e:

  • Fix now (14): the run's pack inventory, so a zero-finding pack keeps its
    version and a newly added pack's findings are pack-upgrade (4189588543,
    4189216774); actions.land true for a bound lander OR a governed instrument
    (4189588476, 4190162003, 4193923461, 4193923732); the pack digest's
    tree per source kind (4193923552); FR-015's empty stub (4188845079);
    FR-005 states CF-5's permanent composition (4193923610); AT-R2's gh-free
    PATH (4189588925) and fixture git identity (4189588994, 4190161965);
    9.5's tick moved to T084, after the cut's sync and the publish
    (4190162022); this body's status (4193923795). FR-004 also states CF-1,
    for a thread already resolved (4189216706).
  • Accepted limit (2): a git-URL pack source on an internal host is
    fetchable over https or ssh (the fetch only reads, the digest pins what runs;
    4188656177); without a delegated cgroup the process count is unbounded,
    the false claim that a PID namespace bounds it withdrawn and each run
    recording which bound it had (4190161914).
  • Documents made consistent, the gate left to the holder (1): the analyze
    gate (4193923677).
  • Not a defect (1): openXfactory-3 and openxfactory-4 are the
    registered lane names (4188514202).

At b7137d5e: 2 new, folded in at f9cc2d02:

  • Fix now: a failing pack's stderr is never stored; its finding carries
    only engine-authored metadata (4194019231; tier 3's OQ-H15-11, refined under
    R2Q25 (a)).
  • For the holder at READY: the analyze gate again (4194019349). Brett's
    word starts implementation; round 1's CRITICALs are applied and re-checked;
    that re-check is not a fresh /speckit-analyze report; T003 stays open for
    the holder.

At f9cc2d02, the first review: 1 new.

  • Accepted limit: a pinned pack could copy a short excerpt into its
    message or an evidence string; the engine enforces the bound and the key
    rules, not the meaning (4194086023). Engine-owned templates would change the
    ruled finding shape, so that is the holder's to raise.

At f9cc2d02, the second review: 4 new, folded in at c93ae88b, all fix
now: spec's credential edge case now pushes and redacts, as OQ-12-11 ruled
(4194141741); engine-authored findings get engine-owned identity keys
(4194141935); the last places that ticked 9.5 before the cut's sync and the
publish now name T084 (4194141993, 4194142055).

At c93ae88b: 4 new, folded in at 2076f24b, all fix now: the baseline
is the latest earlier default-tip run of the SAME corpus root and baseline
branch (4194238666); list, fix and accept read only the resolved
corpus's runs (4194238615); SC-004 and the format rule name T084 for 9.5
(4194238727, 4194238779).

Previously missed items, with no thread (Copilot lists them in the review
body), every one fix now:

  • at b7137d5e: the credential behaviour (→ c93ae88b); spec § Assumptions
    no longer has the archive wait on the direction arc (ARC-5 (a); → 8cee8007);
  • at f9cc2d02: engine-owned identities (→ c93ae88b); the identity's
    persistence and disappearance only between complete, full runs (→
    67d6f28b); T003's disposition after T004 (→ 8cee8007); the phase table's
    9.5 timing (→ cbe2adfb); SC-004 (→ 2076f24b);
  • at c93ae88b: the checklist records the direction arc as ruled (→ 8cee8007);
  • at 2076f24b: an accepted id is never a disappearance; identity is
    engine-internal, never stored or emitted; only a complete, full default-tip
    run becomes a baseline (→ 67d6f28b);
  • at 67d6f28b: the once-only re-raise is an engine-authored
    uncited-disappearance finding with its own id; the phase table splits 9.5's
    row; User Story 3 runs F12.1 composed permanently; FR-025's 9.5 timing (→
    cbe2adfb);
  • at cbe2adfb: the land act's two success shapes (Landed, or the
    instrument's Submission); every repair commit carries a Finding: trailer,
    so a landing's citation is read from git (→ 3f807204);
  • at 3f807204: each run records every pack's exact pin and the commit its
    packs read, and fix re-runs a producer only there; every emitted finding
    carries evidence (→ 97e28b6c);
  • at abd28ba2: one exceptions entry per finding id (→ 8cee8007);
  • at 8cee8007: --timeout takes a whole number of seconds of at least 1 (→
    6f073ed2);
  • at 6f073ed2: the baseline compares each pack's exact pin, so a pin moved
    under an unchanged version is pack-upgrade (→ 55cc1334);
  • at 55cc1334: pack_id and kind bounded at 40 characters; each pack
    family declares its kind, own version and applies_to (→ 83a347e4).
  • at 83a347e4, the round the holder ruled the converging one: accepted
    limit
    , clarify-questions.md's record of the composed run says 10 files
    where spec § Assumptions, research R2 and plan C-1 carry the verified 11
    (wording in the answered round's record, not a task's contract);
  • at 74dfe79c, on the holder's ruling: the quickstart spells
    opendox-runtime runtime migrate as F14.1 does (fix now → 03adf0e4); the
    patch-to-finding association is reported to the holder, not chosen (§
    below).

Threads after 2076f24b, each answered and resolved:

  • at 67d6f28b: the finding contract's example is the engine's object after
    stamping (4194458091, fix now → cbe2adfb);
  • at cbe2adfb: land's remote check reads the chosen remote's PUSH URL,
    several refused (4194510646, fix now → 3f807204);
  • at 97e28b6c: a run is partial when any selected pack was not evaluated
    (4194645168); fix refuses a working-state run's finding, naming commit
    and re-run (4194645239); an open batch grows only at its base
    (4194645294), all fix now → abd28ba2;
  • at 8cee8007: the engine owns id-collision detection, with a path rule for a
    collision across paths (4195440891, fix now → 6f073ed2);
  • at 6f073ed2: accepted limit: a 16-digit hash collision ACROSS runs is
    not detected; the id's form is ruled (R2Q10 (a), N-13), the odds by chance
    are about 3 in a trillion for 10,000 findings, and a deliberate one needs
    about 2³² SHA-256 evaluations and can only mislabel a class or suppress one
    finding; recorded in the finding contract, for the holder to raise if he
    wants the id widened (4195511173);
  • at 55cc1334: T048 carries 15.1b's complete bwrap invocation and tests
    parent death, the new session and the read-only binds (4195592688, fix now
    → 83a347e4);
  • at 83a347e4: a pack's source and pinned tree may hold no symlink, and every
    host-resolved pack path is checked beneath the materialized pinned tree
    (4195679198, fix now → 74dfe79c);
  • at 74dfe79c, on the holder's ruling: land's remote check passes the push
    URL to git only as a transient remote in the child's environment, never in
    argv, and T012 gains test_the_push_url_never_reaches_git_argv
    (4195751210, 4195751277, fix now → 03adf0e4).

The final round, at 03adf0e4 (review 5429573631): "Needs a closer
look", Findings: None, no new thread. It lists one previously missed item,
an accepted limit under the holder's ruling: plan.md's "Scheduled acts"
row 4 says T010 lands "before any phase-4 or phase-5 slice adds a test", where
only T048's After line encodes T010 (a schedule note's wording; each task's
After line is the contract an implementer follows).

Reported to the holder, not settled here (openDox-spec#17, T040's three
schemas at 58383189, read through the contents API):

  • The patch-to-finding association is open in T040. Its finding is CLOSED
    (additionalProperties: false) and names no patch field, and the pack's
    stdout document is not among its three schemas. So no wire shape is chosen
    here; data-model.md § Patch's finding field ("the pack's own finding
    reference, before the engine stamps the id") stands as the open point for
    T045.
  • identity is REQUIRED in T040's finding, the shape "opendox health list --json emits", while this plan since 67d6f28b makes identity
    engine-internal and never emitted. One of the two moves before T041 copies
    the schema.
  • Compatible, noted: T040's pack_id and kind patterns are unbounded
    where this plan bounds them at 40 characters, and its dispositions schema
    does not state unique finding ids; the engine's and reader's rules are the
    tighter ones, so T040 need not change for them.

Threads: 52, 0 unresolved.

Validation (head 03adf0e4)

gate result
python3 scripts/validate-openspec-cli-pin.py --all --strict exit 0; Totals: 110 passed, 1 failed (111 items); every target validated --strict with 0 UNDISPOSITIONED failures. The one failure is add-chain-attestation's accepted disposition, as on main.
the feature's self-check 79 tasks (four done: T004, T006, T007, T009); FR-001–FR-025, SC-001–SC-008, R2Q1–R2Q25 and the 42 open boxes each map to a task; no dependency cycle
the single-writer chain check every order in plan.md's table is encoded in an After line: 0 problems
tier counts in plan.md 7 rulings, 8 readings confirmed, 52 defaults (67 items)
relative links in the feature directory and the README's feature-038 entry 36 checked, 0 broken
host-absolute path scan of the feature directory 0 hits outside the verbatim review in evidence/analyze-round-1.md, whose one line names the path prefixes its own scan searched for (disclosed there)
closing-keyword scan (the feature's files, the README entry, and the 16 commit messages since 6847e99e) 0 hits
git merge-tree of this head against main (92010d3e) clean

Validation (head ce64afc9)

gate result
python3 scripts/validate-openspec-cli-pin.py --all --strict exit 0; Totals: 110 passed, 1 failed (111 items); every target validated --strict with 0 UNDISPOSITIONED failures. The one failure is add-chain-attestation's accepted disposition, as on main.
[NEEDS CLARIFICATION] markers in spec.md; answers in clarify-questions.md; Q: → A: bullets in § Clarifications 0 markers; 25 of 25 answers inline; 25 of 25 bullets
the candidate map 61 of 61 inventory ids mapped, plus this feature's seven; round 1 holds 25 of 25 slots, and 34 are deferred to the plan
R2Q8's composed run, re-measured (openXdox-code 56e1c238, openDox-code a9ac96f9 installed, openxFactory 0f2a87f6 scripts/ on PYTHONPATH with its openDox and openXdox submodules initialized, each of the 16 suites run alone) 668 passed, 170 failed, 4 errors: 174 red in 10 files, as R2-INV-12 and T086 recorded
relative links in the four changed files 427 checked. 1 is broken, docs/ideation-dashboard-session-runbook.md at README line 223. It is already broken on main at 0f2a87f6, and this PR does not touch that line.
host-absolute path scan of the feature directory 0 hits
closing-keyword scan (the feature's files and all five commit messages) 0 hits. The README's three hits are lines already on main, outside this PR's one line.

Process

Lane: openxfactory-4

🤖 Generated with Claude Code

brettheap and others added 2 commits October 5, 2026 20:03
…roduct-standalone-operability

The /speckit.specify step for release 2 ("the document tool and
self-maintenance", phases 4-5) of the ratified OpenSpec change #1144. Release
2 is its own Speckit feature by R1Q21 (a) (#656 comment 5850003126), so the
one change hands off to two features: 034 (release 1) and this one. Started
on Brett Heap's word, #656 comment 6001702967: "Start release 2
(Recommended)".

It adds spec.md: six user stories, and FR-001 to FR-025 mapped to #1144's
requirements 6, 11, 14, 15 and 16 and to the 37 release-2 boxes of Groups 6,
12, 14 and 15, beside the every-phase guard (Group 11) and pins (9.5). It adds
a quality checklist, and 25 clarify questions (R2Q1-R2Q25, five of them
contradictions measured against the release-1 trees) that await Brett Heap.
It links the feature in the README's Documentation index.

This is specification only. It adds no code, moves no pin, touches no
OpenSpec change, and runs no clarify, plan or tasks step. It carries no Arc
trailer: spec authoring is bookkeeping (R1Q20 (a)).

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

Integrates the three read-only inventories this lane delegated to lane
openXfactory-3 (#656 comment 6001723339, claimed on 6001723764): R2-INV-12
for Group 12 (OQ-12-1 to OQ-12-17), and R2-INV-HEALTH part A (OQ-H-1 to
OQ-H-22) and part B (OQ-H15-1 to OQ-H15-22) for Groups 6, 14 and 15.

clarify-questions.md is rewritten as round 1: 24 questions, R2Q1-R2Q24, each
multiple choice with its recommended option first and one line on why it is
open, citing the inventory id and the #1144 line. Six are contradictions
(R2Q1, R2Q2, R2Q6, R2Q8, R2Q9, R2Q10). The falsifier amendments that
release 1's rules force are put as one set (R2Q9, seven items). 35
design-level questions are deferred to the plan, each with a proposed
default. Round 2 is empty. A last table maps all 61 inventory candidates and
this feature's own seven, so nothing is dropped silently.

spec.md follows the new numbering: every [NEEDS CLARIFICATION] marker names
its R2Q, and every R2Q is cited by at least one FR. It gains a Risks section:
the reference sandbox (bwrap) is unavailable by default on every target
measured, 12.5 cannot pass in any environment measured (668 passed and 174
red composed), and feature 007's served-checkout rule, batch G's empty seam
and R1Q16's bundle ownership stand in the way of 12.6a, F6.1, F14.1 and
F15.1. No requirement or scenario of #1144 is changed. The checklist and the
README entry follow the count.

Specification only: no code, no pin, no OpenSpec change, and no clarify, plan
or tasks step. No Arc trailer: spec authoring is bookkeeping (R1Q20 (a)).

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

sourcery-ai Bot commented Oct 5, 2026

Copy link
Copy Markdown

Reviewer's Guide

This specification-only PR introduces Speckit feature 038 for release 2 of add-neutral-product-standalone-operability, defining the phase-4 submission/landing work and phase-5 health, repair, exception, and check-pack contracts while deliberately stopping before clarification and planning; it also records the open decisions, risks, quality gates, and documentation index entry.

Flow diagram for specification clarification boundary

flowchart TD
    Specify[Speckit specification]
    Questions[24 open clarification questions]
    Clarify[Clarify with Brett Heap]
    Plan[Plan phases 4-5]
    Implement[Implementation]

    Specify --> Questions --> Clarify --> Plan --> Implement
    Specify -. current PR stops here .-> Questions
Loading

File-Level Changes

Change Details Files
Adds the release-2 specification for standalone submission, landing, health, repair, exceptions, and sandboxed check packs. specs/038-opendox-document-tool-self-maintenance/spec.md
Captures unresolved product decisions and the clarification workflow before planning.
  • Records 24 open R2Q1–R2Q24 questions, including six contradictions, with recommended options and consequences.
  • Defers 35 design-level questions to planning with proposed defaults.
  • Maps all 61 inventory candidates and seven feature-originated questions to their disposition.
specs/038-opendox-document-tool-self-maintenance/clarify-questions.md
Adds a draft quality gate for the specification lifecycle.
  • Checks requirement traceability, scenario coverage, testability, scope, dependencies, and measurable outcomes.
  • Explicitly leaves clarification, realization, and analysis gates open until later Speckit steps.
specs/038-opendox-document-tool-self-maintenance/checklists/requirements.md
Publishes the new release-2 feature in the documentation index.
  • Adds a Documentation index link to the feature specification, clarification questions, and quality checklist.
README.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.

Note

Copilot was unable to run its full agentic suite in this review.

Copilot review overview

Review effort: Lite
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Adds a full draft specification package for Speckit feature 038 (openDox release 2), including the main spec, a round-1 clarify questionnaire, and a requirements-quality checklist, and links it from the repository README.

Changes:

  • Introduces spec.md defining user stories, functional requirements (FR-001–FR-025), success criteria, assumptions, and risks for release 2 phases 4–5
  • Adds clarify-questions.md with 24 open round-1 clarification questions (R2Q1–R2Q24) plus plan-default candidates mapping
  • Adds a spec-quality checklist and updates the root README.md to reference feature 038
File Description
specs/​038-opendox-document-tool-self-maintenance/​spec.md New release-2 specification with scenarios/FRs/success criteria/assumptions/risks
specs/​038-opendox-document-tool-self-maintenance/​clarify-questions.md New round-1 clarification questions and candidate→destination mapping
specs/​038-opendox-document-tool-self-maintenance/​checklists/​requirements.md New checklist for spec completeness/quality gates
README.md Adds a link to the new feature 038 spec artifacts

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

Copilot AI balanced review requested due to automatic review settings October 5, 2026 20:46
…to the release-2 spec

Lane openXfactory-3 checked R2Q1-R2Q24 read-only at 43ddf27: 10 OK, 14 FIX,
2 MISSING. Every fix was verified against the trees before it was written in,
and the coordinator's rulings on the open points are applied.

- R2Q1: the governance query binds the lander alone; submit's port comes from
  injection (tasks.md:2500-2505).
- R2Q2: design.md:1059-1061 joins the repoint leftovers. With R2Q3 (a), ruling
  5783934499's third bullet and 12.5's "with the host's implementation
  registered" go unrealized, and only Brett can accept that.
- R2Q3: cites corrected (R1Q4 (a)'s option text, the golden's test, and
  openXdox-code's 32-entry assembled-surface test).
- R2Q6: feature 007's FR-004 and SC-002 cited from codexFactory; the
  promoted scenario's history and its archived home cited; land in a worktree
  and fast-forward, with three named exceptions; the user's own git push, or
  option (d).
- R2Q7: the runtime's HEAD-branch code is measured against option (a).
- R2Q8: 668 passed, 170 failed, 4 errors re-measured; the split re-classed.
- R2Q9: F13.1's form, F15.1's health verbs alone, one batch before phase 4's
  first checkpoint, and F6.1's stale Today text.
- R2Q12: D12 decides the pack-upgrade half; "new" is now absent from the
  previous default-tip run; reset-forgets (a) or git-derived (b).
- R2Q15: hosted refuses by name, with no finding.
- R2Q16: restated as what runs in the sandbox; OQ-H-3 folded in.
- R2Q17, R2Q18, R2Q22: cites and consequences corrected (EXPECT_SKIPPED 11,
  conftest :130-147, the digest plus the install's version, openDox-spec
  already the sixth repository).
- R2Q19, R2Q20: amend-or-keep, with keep recommended.
- R2Q25 (new): may a finding's evidence hold excerpts (OQ-H-19).

spec.md, the checklist and the README entry follow: 25 questions, 34
deferred to the plan, feature 007 cited by its own spec, and the sixth
repository corrected. No requirement or scenario of #1144 is changed.

Specification only. No Arc trailer: spec authoring is bookkeeping (R1Q20 (a)).

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

The proposed pack-fetch behavior lacks a required source-trust and credential policy.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity · 2 Low severity

Open (4)
Resolved since last review (1)

Copilot AI balanced review requested due to automatic review settings October 5, 2026 20:57
…, R2Q16 and R2Q25

Lane openXfactory-3's second look at 0513a3b found 12 of its 14 first-round
fixes landed as worded, and eight points left on four questions. Each was
verified against the trees before it was written in, and the coordinator's
rulings are applied.

- R2Q6: "the tree restored" is cited at tasks.md:2910-2911. Option (a) now
  counts four exceptions: a new argument check for merge --ff-only in the
  name-only guard (session_git.py:99), with test_session_git.py:523's
  ("merge", "other-branch") still refused; session_git.py:93's stated rule;
  and SC-002's HEAD and working-tree clauses. The shipped project push (RULING
  C3) pushes a project's BARE repository (repository_act.py:982), never a
  served checkout (serve.py:2107), so (a) names the route per checkout kind
  and (d) says why a push from the served checkout is still new.
- R2Q12: a fourth class, arrived with a pack upgrade, as D12 decides;
  disappearance measured only between default-tip runs; (a) stated as
  narrowing 14.3's "recomputable from git", a reading for Brett.
- R2Q16: a host's in-process check runs only at the scoped seam, and its
  results are never stored (spec.md:587-589 intact).
- R2Q25: _CITE_EXCERPT_CHARS is described correctly, and F1's consequences
  restated.

spec.md follows: the Baseline entity, and the served-checkout and push facts
in Assumptions. No requirement or scenario of #1144 is changed.

Specification only. No Arc trailer: spec authoring is bookkeeping (R1Q20 (a)).

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

The acceptance fixture omits a ratified empty-stub behavior, leaving required coverage incomplete.

Review effort: Balanced
Findings: 1 High severity · 2 Medium severity · 2 Low severity

Open (5)

…25, all (a))

Brett Heap answered release 2's clarify round 1 on 2026-10-05, by interactive
multi-choice, verbatim "Accept all 25 recommended (Recommended)". The record is
#656 comment 6003486656. Every question takes option (a).

- clarify-questions.md: each answer is written inline, and the Answer state is
  ANSWERED. The 34 questions deferred to the plan keep their proposed
  defaults, for Brett to rule with the plan.
- spec.md: a Clarifications session of 25 "Q: -> A:" bullets. Every NEEDS
  CLARIFICATION marker is resolved, so each FR states the ruled behaviour and
  cites its answer as "R2Qn (a)" (18 of 25 FRs changed). User stories, edge
  cases, key entities, success criteria (a new SC-008 for AT-R2), assumptions
  and risks follow the answers. FR-025 lists the bookkeeping amendments the
  answers owe #1144.
- checklists/requirements.md: re-run; only realization and analyze stay open.
- README: the feature's entry now reads clarified.

No requirement or scenario of #1144 is changed. R2Q19 and R2Q20 keep the
ratified text. Two interplays between answers are reported to the holder and
not resolved here: R2Q1 (a) with R2Q3 (a), and R2Q7 (a) with R2Q12 (a).

Specification only. No Arc trailer: spec authoring is bookkeeping (R1Q20 (a)).

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 AI balanced review requested due to automatic review settings October 5, 2026 22:32
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Runs /speckit-plan and /speckit-tasks for feature 038 on Brett Heap's answers
to clarify round 1 (R2Q1-R2Q25, all (a), #656 comment 6003486656) and his
ruling of the doc_health direction arc (ARC-Q1-ARC-Q4, all (a), #656 comment
6003918488). Planning documents only; no code until Brett rules the plan.

- plan.md: phases 4 and 5 with checkpoints, the dependency graph, the
  single-writer table, the proposed two-lane split (lane openXfactory-3 runs
  phase 4's repair U-1 to U-9 and phase 5's pack track), the critical path,
  the scheduled acts, both ruled-answer tables, 63 design decisions for Brett
  to rule (the 34 deferred items, the three interplays, R-1, W-1, H-1, H-2,
  the arc's open items, and 13 found here), and 17 conflicts reported, not
  resolved.
- research.md: the trees measured, crediting lane openXfactory-3's
  inventories (R2-INV-12, R2-INV-HEALTH, R2-INV-P4F, R2-ARC-ASK).
- data-model.md, contracts/ (the three health schemas of R2Q22 and the
  CLI/HTTP surfaces of submit, land and health), quickstart.md (AT-R2).
- tasks.md: 77 tasks, T001-T093, with box accounting for all 42 open
  boxes, falsifier mapping, and FR/SC and ruling coverage.

No Arc trailer: planning is bookkeeping (R1Q20 (a)).

Lane: openxfactory-4
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.

Comment thread README.md Resolved
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Two independent read-only reviews of 6d6911e are folded into one revision,
on the holder's rulings (conform to ratified text wherever possible):

- the Opus speckit-analyze and adversarial pass (ADV-01 to ADV-41, and D1,
  F1-F10, C1-C6, E1-E4, A1-A2, B1-B2): 60 of 66 rows applied, 2 left as
  the reviewer accepted them, 4 put to Brett;
- lane openXfactory-3's PLANCHECK (125 lines: 34 FIX, 4 MISLABEL, 9 SHARED,
  4 NOT REACHED): 33 FIX applied and 1 put to Brett; MISLABEL row 31
  conformed, the other three put to Brett; the lane split accepted on three
  conditions, each applied.

Both reviews are committed verbatim with their disposition tables in
evidence/analyze-round-1.md and evidence/plancheck-lane3-round-1.md.

The decisions table becomes three tiers: six RULINGS as multiple-choice
questions (R-1, W-1, ARC-5, I-2, N-6, ARC-1), six readings to CONFIRM
(CF-1 to CF-6), and 55 proposed defaults ruled together.

The README's entry for feature 038 now links the plan, research, data
model, contracts, quickstart, tasks and both evidence files (Principle IV).

Planning documents only; no code. No Arc trailer: planning is bookkeeping
(R1Q20 (a)).

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 5, 2026 23:59

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.

…47504)

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

Brett Heap ruled plan 038 at 6847e99 on 2026-10-06, by interactive
multi-choice, every item as recommended (#656 comment 6013547504). This
bookkeeping revision encodes it:

- plan.md: a new section quotes each answer verbatim (R-1, W-1, ARC-5, I-2,
  N-6, ARC-1, N-7b, and "Accept all as recommended" for the rest). The
  decisions section is retitled as RULED and marks every item with the
  option taken. N-7b moves into tier 1; OQ-12-12 and OQ-12-16 become tier
  2's CF-7 and CF-8. Counts: 7 rulings, 8 readings confirmed, 52 defaults.
- tasks.md: T004 and T009 are ticked; conditional wording is resolved to
  the ruled options (W-1 (A), R-1 (a), N-6 (a), ARC-1 implemented, ARC-5
  (a), N-7b (a)); T063 and T064 now name phase 4's pins (T028, T030) in
  their After lines, since N-6 (a) no longer routes phase 5 through T033.
- spec.md: I-2 (a) amends every "main's tip" baseline line to "the
  baseline branch's tip (main, else the branch HEAD names)", with a
  clarification session for the ruling.
- The reviewers' re-check of round 1 left five small fixes, applied here:
  packs always see the committed export of HEAD (15.1b); the capability
  keys' presence (openDox's own profile only) is kept apart from their
  values (route-derived, as gate's); the phase-4 openXdox-code src/
  exceptions are named; a finding-id collision is a finding against its
  producer; a file only one task writes needs no single-writer row.
- The data model and contracts read as ruled; the README entry says so.

Plan and tasks keep Status: draft, as plan 034's do: the lifecycle's
"Ratified by:" line must name an OpenSpec change.

Planning documents only; no code. No Arc trailer: planning is bookkeeping
(R1Q20 (a)).

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 09:51

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.

Comment thread README.md Resolved

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 pack export remains steerable by Git attributes, and symlinked pack sources can escape digest containment.

Review effort: Balanced
Findings: 1 High severity

Open (1)
Resolved since last review (1)
Previously missed (1)

In code that hasn't changed since last review

Low severity Correct conflicting measurement totals and file count

specs/​038-opendox-document-tool-self-maintenance/​clarify-questions.md:413

This measurement still says 10 files, but the later verified correction in research.md R2 and the plancheck disposition records 174 reds across 11 files. Update the clarification record so the same run is not documented with conflicting totals.

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

Copilot's review of 83a347e, the round the holder ruled the converging
one, raised one thread and one previously missed item, classified under
the convergence rule (#656 5988818366) and the holder's ruling:

- Fix now: a pack's source and pinned tree may hold no symlink, since a
  digest covers a symlink as its target string and a host-side declaration
  read or the /pack bind could follow it out of what was pinned. The
  engine refuses a symlinked source component or any symlink entry before
  reading the pack, materializes the tree into a directory it owns, and
  checks every host-resolved pack path beneath it after realpath. T047
  tests three hostile sources (manifest contract, T047; the thread).
- Accepted limit: clarify-questions.md's measurement record of the
  composed run says 10 files where spec.md Assumptions, research.md R2 and
  plan.md C-1 carry the verified 11; the record is the answered round's, and
  it is wording, not a task's contract.

Planning documents only; no code. No Arc trailer: planning is bookkeeping
(R1Q20 (a)).

Lane: openxfactory-4
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

Credential exposure, an ambiguous patch contract, and an invalid quickstart command remain unresolved.

Review effort: Balanced
Findings: 2 High severity

Open (2)
Resolved since last review (1)
Previously missed (2)

In code that hasn't changed since last review

Medium severity Define an unambiguous patch-to-finding association

specs/​038-opendox-document-tool-self-maintenance/​data-model.md:344

The patch-to-finding association is undefined: a pack cannot reference the engine-stamped finding id, and no pack-owned finding reference field is specified. The pack contract instead describes an optional patch embedded in each finding; choose one wire shape and align this table and T045 so multi-finding output is unambiguous.

Low severity Use the complete opendox-runtime migrate command

specs/​038-opendox-document-tool-self-maintenance/​quickstart.md:122

The documented second command is missing its executable: the runtime CLI is opendox-runtime, so running runtime migrate literally fails on the clean machine. Use the same full command spelling as the ratified F14.1 script.

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

The holder ruled the items of Copilot's review of 74dfe79 fix-now, in one
push:

- land's remote check never puts the push URL in git's argv, which any
  local user can read through /proc/<pid>/cmdline. It still reads the URL
  with git remote get-url --push and still refuses several; git then
  probes it through a transient remote passed in the child's environment
  (GIT_CONFIG_COUNT=1, GIT_CONFIG_KEY_0=remote.<transient>.url,
  GIT_CONFIG_VALUE_0=<push URL>; git 2.31 or later), and T012 gains the
  named node test_the_push_url_never_reaches_git_argv (data model, the
  land contract, T012; both threads).
- quickstart spells the migrate step as F14.1 does: opendox-runtime
  runtime migrate.

The patch-to-finding association is reported to the holder, not chosen
here: openDox-spec's T040 schemas at 58383189 leave the pack's output
shape open (the finding is closed and names no patch field).

Planning documents only; no code. No Arc trailer: planning is bookkeeping
(R1Q20 (a)).

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

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

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

🔵 Needs a closer look

The plan asserts a test-ordering guarantee that its task graph does not encode.

Review effort: Balanced
Findings: None

Resolved since last review (2)
Previously missed (1)

In code that hasn't changed since last review

Low severity Test scheduling guarantee exceeds encoded dependencies

specs/​038-opendox-document-tool-self-maintenance/​plan.md:527

This ordering claim is not encoded: T020–T025 can add or edit tests after T004 without waiting for T010. Only the first sandbox-test slice, T048, actually depends on T010, so the schedule should state that narrower guarantee.

@brettheap

Copy link
Copy Markdown
Contributor Author

READY at 03adf0e

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

Holder, at READY (T004, plan 038).

Gates at 03adf0e4. CI shows 15 success and 1 skipped. Copilot's final review, 5429573631, reads "Needs a closer look" with Findings: None. All 52 threads are resolved. No closing keywords.

Rulings at READY:

  • Post-ruling refinements (plan.md § "Revision: Copilot's reviews of the ruled revision folded"). Every item fills a gap the ruled options left open. None takes another option, so none needs Brett's word.
  • The last review's single item, the wording of plan.md's schedule note on T010, is an accepted limit under 5988818366.
  • A cross-run 16-digit id collision is an accepted limit. The odds are about 3 in a trillion at 10,000 findings, and a collision can only mislabel or suppress a finding, never land one. Widening the ruled id shape is not raised with Brett.
  • The conflict with T040's schemas (openDox-spec#17 at 58383189). The plan wins: a finding's identity is engine-internal, hashed into id, and neither stored nor emitted (R2Q25 (a)). So T040's finding schema must drop identity from what health list --json emits, and Document content cleanup decision #17 changes before it lands and before T060's cut.
  • Where a pack's patch goes is still open for T045. The holder rules it before T045 starts.
  • T003 closed on the re-check (6017901451). T002's PR ticks it.

@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:31:38Z, PR #1245 into opensoft/openxFactory main

@brettheap
brettheap merged commit 260234b into main Oct 6, 2026
16 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDED — lane openxfactory-4, 2026-10-06T14:31:57Z, PR #1245 → 260234b (opensoft/openxFactory main; squash)

brettheap added a commit that referenced this pull request Oct 6, 2026
…1248)

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:
- #656 [`6003486656`](#656 (comment)), R2Q1 to R2Q25, all (a), 2026-10-05;
- #656 [`6003918488`](#656 (comment)), ARC-Q1 to ARC-Q4, all (a), 2026-10-05;
- #656 [`6013547504`](#656 (comment)), plan 038 RULED, 2026-10-06: R-1 (a), W-1 (A), ARC-5 (a), I-2 (a), N-6 (a), and the readings CF-1 to CF-8;
- #656 [`6016648451`](#656 (comment)), RULED, 2026-10-06: *"Amend F12.1 with --chains (Recommended)"* and *"Widen the spans, served display (Recommended)"*, folded in at `2198edda` (item 8).

The claim is lane openxfactory-4's day-one CLAIMED, #656 [`6013592367`](#656 (comment)). 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

- **Realizes**: none (bookkeeping; FR-025).
- **Falsifier**: the PR's gates against the `main` it lands on, the pinned `scripts/validate-openspec-cli-pin.py --all` among them.
- **Ruled**: R2Q1, R2Q2, R2Q8, R2Q9, R2Q10, R2Q16, R2Q22, R2Q23; ARC-Q2, ARC-Q3.
- **Decisions**: CF-1, CF-2, CF-4, CF-5; R-1, ARC-5, I-2, N-6; N-15.
- **After**: T004. It also lands after #1245, so it stays a draft until the holder says #1245 has landed.

## 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.
- Each paragraph is labelled `**AMENDED — T005 Batch Q (plan 038, 2026-10-06; <comment id>; Ruled <answer>):**`. That is batch A to P's label, with the plan and the date added, because plan 034 has a T005 of its own. Batch Q continues release 1's letters.
- Each paragraph goes after the last addendum at its site and before any "Landed" note, as batch P placed its paragraphs.
- Task ids inside batch Q's paragraphs are written "plan 038's T0nn", because a bare id in #1144 names plan 034's task.
- Where a paragraph cites a line of #1144's own files, it says "at `main` `92010d3e`", the lines T005 measured, since this batch shifts every line below its first paragraph.

## 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: #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 #1245, and it stays a draft until the holder says #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)"* (#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 #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](https://claude.com/claude-code)


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

Copy link
Copy Markdown
Contributor Author

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

Correction to the holder note on READY above. The identity conflict is resolved the OTHER way. T040 lands as it stands, and plan 038 moves: a finding's identity is stored and emitted, bounded as openDox-spec#17's schema has it. The ruling is on #656; T002's bookkeeping PR records it in plan 038.

brettheap added a commit to opensoft/openDox-spec that referenced this pull request Oct 6, 2026
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Arc: neutral-product-standalone-operability

## T040: the three health schemas (R2Q22 (a))

This is plan 038's **T040** (`specs/038-opendox-document-tool-self-maintenance/tasks.md`, on opensoft/openXfactory#1245). openDox-spec gets three schemas, authored from that feature's `contracts/health-finding.md`, `contracts/health-packs-manifest.md` and `contracts/health-exceptions.md`. They follow the layout release 1's snapshot schema set (T053, #16). The contracts moved twice while this PR was in review, and the schemas follow them as they stand at #1245's `c93ae88b` (§ Review).

- **Realizes**: 15.1, 15.1a, 14.8 (part: the contracts).
- **Falsifier**: openDox-spec's own validation, quoted.
- **Ruled**: R2Q10, R2Q22, R2Q25 (opensoft/openXfactory#656 comment `6003486656`). **Decisions**: N-3, N-13, N-15, OQ-H-13, OQ-H15-5, -10, -12, -19 (#656 comment `6013547504`).

| path | what it is |
|---|---|
| `contracts/schemas/opendox-health-finding.schema.yaml` | one finding, as `opendox health list --json` emits it: 27 rules (24 shape, 3 reference). A shape the engine reads, not a file kind (N-15) |
| `contracts/schemas/opendox-health-packs.schema.yaml` | `health/packs.yaml`, `kind: opendox-health-packs`: 17 rules (16 shape, 1 reference) |
| `contracts/schemas/opendox-health-dispositions.schema.yaml` | `health/dispositions.yaml`, `kind: opendox-health-dispositions`: 7 shape rules |
| `examples/health/*.example.yaml` | 10 positive examples: 5 findings, 3 manifests, 2 exceptions files |
| `examples/health/negative/*.negative.yaml` | 51 negative examples, one per rule. Each is one change to a positive example and names its rule in an `# expected_failure:` line |
| `tests/test_opendox_health_contracts.py` | the conformance test, which this leg's required `validate` runs |
| `tests/test_contract_index.py` | holds the README's new contract index to the schemas on disk |
| `README.md` | a "Contracts" section: one row per schema under `contracts/schemas/`, with its `kind`, and N-15's line for the finding |

It touches no workflow, no existing test, no existing schema, no pin or gitlink, and nothing under `openspec/`.

## The layout, copied from the snapshot's

- **Naming.** Each schema is `contracts/schemas/<id>.schema.yaml`, and its `$id` is the file name. `<id>` is the id openDox-code's copy record will give each copy (`copies.yaml` requires `path == contracts/schemas/<id>.schema.yaml`). For the two file kinds, `<id>` is their `kind`.
- **`schema_version` and `kind`.** Each schema carries `contract_schema_version: 1`. The two file kinds require `schema_version: 1` and a `kind` constant equal to their id, so a file of another kind at their path is refused by name. The finding has neither: its `kind` is the family, a pattern. That is N-15, and `test_the_finding_is_a_shape_and_not_a_file_kind` holds it.
- **The body is JSON** under a comment header, because `validate` installs pytest and nothing else. PyYAML reads the same object wherever it is installed (tested).
- **Every rule has an identifier.** Every subschema that can fail carries `x-rule`, and an `x-rules` catalog gives each rule's class. Each rule has a negative that breaks it and no other, at one place. The catalog, the enforcement and the reference checks are held equal.
- **A reference rule judges only parts their own shape rules admit**, so a malformed part is reported once, by its own rule.
- **Every keyword is one openDox-code's validator evaluates** (`opendox.validator.KEYWORDS` at `a9ac96f9`), and a test holds that. So T047 and T054 add the two file kinds by copy. The finding is never built as a validator.
- **Every pattern reads the same in Python and in a browser.** Each guards its own tail with `$(?!\n)` or refuses every control character. Node's `RegExp` with the `u` flag reads the pattern table, and a sweep of the edge characters through every pattern; the sweep covers the controls, both engines' whitespace, the surrogate halves' ends and two astral characters.

## The contracts, encoded

**The finding** (`health-finding.md`; N-13 as ADV-07 refined it; R2Q25 (a)):
- The id is `<pack_id>.<family>.<h16>`. `h16` is the first 16 hex digits of sha256 over `json.dumps({"identity", "kind", "pack_id", "path"}, sort_keys=True, separators=(",", ":"), ensure_ascii=False).encode("utf-8")`. The test computes it for every example and pins the contract's own key byte for byte.
- `identity` is position-independent, and `locator` is display only and outside the hash. One test moves the locator and keeps the id. Another moves each of the four key parts, and the id moves with each.
- The engine's own findings have the engine's own identity keys. A pathless finding (install-level or pre-run) has exactly `{category, entry}`. A collision has exactly `{collided_id}`, whatever its path.
- `evidence` and `message` are bounded. Every evidence string, key or value, at any depth, is at most 200 characters. No evidence key is named `excerpt`, `text`, `content` or `quote`. `message` is one line of 1 to 200 characters.
- `git check-ref-format --branch health-fix-<id>` accepts every id the examples carry.

**`health/packs.yaml`** (`health-packs-manifest.md`; 15.1a; OQ-H15-5, -12, -14, -19):
- An entry carries exactly `id`, `version`, `source`, `digest`, and `commit` for a git URL only. A corpus-relative entry with a `commit` is refused (15.1a). A git-URL entry without one is refused.
- The digest is `{algorithm: sorted-ls-tree-r-v1, value: <64 hex>}`. Its tree depends on the source: a corpus source uses `<corpus-commit>:<source>`, and a git URL uses `<commit>^{tree}`. The definition is cited at a pinned openxFactory commit and blob. The engine makes the gitlink refusal and the digest check itself, because both need the pack's tree; the header says so.
- A source is `https://`, `ssh://` or scp-like `user@host:path`, or a corpus path with no colon, no backslash, no leading slash and no `..` segment. `file://`, `ext::`, `http://`, `git://` and absolute paths are refused. A URL carrying a credential is refused.
- `opendox` is reserved, ids are unique, and no budget or bound key is admitted anywhere (15.6).

**`health/dispositions.yaml`** (`health-exceptions.md`; OQ-H-13):
- `kind: opendox-health-dispositions`; each entry is `{finding: <finding id>, reason: <text>}`. The header says it SUPPRESSES and does not downgrade.
- Another kind is refused by name. The aggregation's own file is a negative example (plan 038's C-7): a top-level list of kind `xfactory_doc_health_dispositions`.

## Readings this PR takes (each stated in the schema text)

Where a contract's words leave a choice, this PR takes the reading below. Each is one edit to change.

1. **The finding is CLOSED** (`additionalProperties: false`), unlike the snapshot. A field the contract does not name would be a channel around R2Q25's bounds. The manifest and the exceptions file are closed, as their contracts' "an unknown key is refused" says.
2. **`evidence` is REQUIRED.** It is `{}` when empty. 14.5's ratified list puts it on every emitted finding, and so does the contract's own first sentence. The contract's field table marks it not required.
3. **`identity` is bounded like `evidence`, and holds no number.** The contract says "never a line number, never document text beyond such a key". A number also has no one canonical JSON spelling across languages (`1.0` and `1`, `1e21`), and the id hashes it.
4. **`locator.target` is bounded at 200 characters**, as a link target is in `evidence`.
5. **A pathless finding is `human-only`**, and so is `identity-collision`, as the contract's install-level and collision rules say.
6. **"A credential" in a URL** follows 12.1a's redaction rule. It means any user information before an `https://` host, any `https://` query string, and an `ssh://` password. A user name before an `ssh://` or scp-like host is admitted.
7. **"UTF-8" in the id rule** means every character is hashed as itself (`ensure_ascii=False`). The `\u`-escaped JSON is UTF-8 too and gives another id. The pack-upgrade example's path holds `é` and pins this reading.
8. **No lone surrogate** (U+D800 to U+DFFF) in any string a finding carries. UTF-8 cannot encode one, so the id could not hash it and no store could take it. The same holds for a manifest's `version` and `source`.

## The falsifier

> **Falsifier**: openDox-spec's own validation, quoted.

At this head (`5838318`), run as `validate.yml` runs it: Python 3.12, pytest 8.4.2 alone, Node on PATH, and the OpenSpec CLI at 1.2.0.

```
$ python -m pytest -q -rs
SKIPPED [1] tests/test_opendox_health_contracts.py:1351: could not import 'yaml': No module named 'yaml'
SKIPPED [1] tests/test_opendox_health_contracts.py:1362: could not import 'jsonschema': No module named 'jsonschema'
SKIPPED [1] tests/test_opendox_snapshot_contract.py:795: could not import 'yaml': No module named 'yaml'
SKIPPED [1] tests/test_opendox_snapshot_contract.py:806: could not import 'jsonschema': No module named 'jsonschema'
SKIPPED [1] tests/test_opendox_snapshot_contract.py:828: could not import 'jsonschema': No module named 'jsonschema'
602 passed, 5 skipped
$ OPENSPEC_TELEMETRY=0 openspec validate --all --strict
Totals: 4 passed, 0 failed (4 items)
```

`main` (`f7ee3c7`) gives `178 passed, 3 skipped`. The two new skips are this module's PyYAML and `jsonschema` cross-checks. I reran the whole suite with PyYAML 6.0.3, jsonschema 4.26.0 and rfc3339-validator 0.1.4 installed, and it gives `607 passed`. So `jsonschema` finds the same rules at the same places as the test's own evaluator for every example, and PyYAML reads the same object from every file. The CI run on this PR is the required check.

**The tests' teeth.** Two sweeps ran, each mutant alone on a scratch copy of the tree:

- **Every constraining keyword deleted.** The sweep covers each `type`, `const`, `enum`, `required`, `dependentRequired`, `minLength`, `maxLength`, `minProperties`, `minimum`, `pattern`, `not` and `additionalProperties: false` in the three schemas. Each was deleted in turn, and each name in a `required` list was dropped alone. That makes 142 mutants, and every one fails the suite: `killed 142, survived 0`.
- **44 hand-written sabotages**, for what a deletion cannot reach: the test's own reference checks and id rule, the index, and the boundaries. Every one goes red:

| sabotage | result |
|---|---|
| open the finding (drop `additionalProperties: false`) | 2 failed |
| make `evidence` optional | 1 failed |
| admit an `excerpt` key in evidence | 1 failed |
| bound evidence strings at 201 | 4 failed |
| stop checking evidence's nested values | 3 failed |
| admit a lone surrogate in evidence | 5 failed |
| admit numbers in identity | 4 failed |
| unbound identity's keys | 1 failed |
| admit a lone surrogate in identity's values | 7 failed |
| admit a lone surrogate in `path` | 2 failed |
| bound `message` at 201 | 3 failed |
| admit U+2028 in `message` | 1 failed |
| drop the id pattern's newline guard | 3 failed |
| admit `auto_fix` | 2 failed |
| drop the pathless `human-only` rule | 3 failed |
| let `line_start` stand without `line_end` | 1 failed |
| open the locator | 3 failed |
| admit `unclassed` | 2 failed |
| hash the `\u`-escaped key | 3 failed |
| hash one more field | 80 failed |
| drop the hash check | 4 failed |
| hash an identity its own rules refuse | 17 failed |
| open the pathless identity | 1 failed |
| let the pathless identity drop `entry` | 1 failed |
| let a collision's identity take any key | 7 failed |
| apply the pathless identity to a collision | 5 failed |
| order a span of malformed lines | 1 failed |
| count malformed ids as duplicates | 1 failed |
| admit a budget key in an entry | 9 failed |
| admit `opendox` as a pack id | 3 failed |
| let a corpus source carry a commit | 2 failed |
| stop reading scp-like as a git source | 3 failed |
| admit `https://` user information | 3 failed |
| admit `file://` | 5 failed |
| admit a `..` segment in a corpus source | 5 failed |
| admit a second digest algorithm | 2 failed |
| digest a git URL over `<commit>:<source>` again | 1 failed |
| drop the unique-id check | 2 failed |
| open an exception | 2 failed |
| let a reason be blank | 10 failed |
| forget U+FEFF in the reason pattern | 2 failed, the browser cross-check among them |
| admit a family name as an exception's finding | 5 failed |
| drop the finding's row from the index | 3 failed |
| give the finding a `kind` in the index | 2 failed |

## Review

- **Copilot at `9515885`** (review `5426941737`, three threads, each fix-now, answered in `9b6391c`):
  - a lone surrogate passed the schema and crashed the id rule's UTF-8 encode, so no string a finding carries may hold one now;
  - the test hashed an identity its own shape rules refused, so the hash check is now gated on the whole identity subschema (widened in `5838318` to the engine identity rules, which constrain identity from the root);
  - the git-URL digest's tree-ish: the manifest contract had moved, at #1245's `f9cc2d02`, to `<commit>^{tree}` for a git URL, and the header now defines both trees.
- **SonarCloud at `9515885`** failed its quality gate on 4.9% duplication. 57 lines of the evaluator repeated `tests/test_opendox_snapshot_contract.py`. They are tables now (`9b6391c`), and the gate passes.
- **Copilot at `9b6391c`** (review `5427099573`, four threads, each fix-now, answered in `952d16b`):
  - the finding contract had moved again, at #1245's `c93ae88b`, to give the engine's own findings fixed identity keys. The no-sandbox and collision examples now carry `{category, entry}` and `{collided_id}`, and the schema states both shapes;
  - the span-order and unique-id checks are now gated through their parts' subschemas.
- **Copilot at `952d16b`** (review `5427234521`, two threads):
  - a pathless collision met both identity rules, so the pathless rule now leaves `identity-collision` out (`73947fd`);
  - this description was stale, and it now carries the reviewed numbers and digests.
- **Copilot at `73947fd`** (review `5427334119`):
  - one thread, an accepted limit, answered on the thread. It asked to constrain a collision's `evidence` keys. The contract names none ("the colliding id and the count in evidence"), so the keys, and a reference rule holding the evidence's id to `identity.collided_id`, are T041's to fix;
  - its overview's "previously missed" items are answered in `5838318`. The missing-reason case was one of 35 such gaps that the keyword-deletion sweep found, and all are closed. Three citations now carry full commit and blob ids.
  - That commit also requires an object in the corpus-source `if`, a real gap the sweep found: a non-object entry drew a second, spurious refusal.
- **Copilot at `5838318`** (review `5427556662`): "Needs a closer look", no findings, no threads. Its overview's two "previously missed" items are cross-field consistency rules the contract does not state, and they are left to the holder as follow-ons, not changed here:
  - a non-empty `identity.entry` equal to `pack_id`, and an empty one with `pack_id` `opendox`. This does not hold universally: a refused manifest entry whose id is malformed cannot be named in `entry` at all;
  - `identity.collided_id`'s first part equal to the collision's `pack_id`. The contract implies it, because both are the producer's id, and the engine (T041) makes both.

## What is NOT done here

- **No openDox-code edit.** T041, T047 and T054 copy these schemas into openDox-code's copy record, at the spec commit T060 pins.
- **No root pin and no cut.** T060 moves the openDox root's spec pin to this PR's landed commit, adds three `contracts/manifest.yaml` entries and cuts `dox-v1.2`, on Brett's cut word.
- **No engine behaviour.** The digest check, the gitlink refusal, the version match against the pack's declaration, and suppression are the engine's, in openDox-code.

## For the tasks that build on this

- **T060.** The three new files, at this head. A squash or merge onto an unmoved `main` keeps the bytes, and T060 recomputes them at the landing all the same:

  | file | sha256 | bytes |
  |---|---|---|
  | `contracts/schemas/opendox-health-finding.schema.yaml` | `6fb9b29f23a4270fa0310624d9e59b5d82e9888a5168600671e90ed30f781016` | 19,317 |
  | `contracts/schemas/opendox-health-packs.schema.yaml` | `8a7309eed0db788ea715b868cccfe4d5031cd7750862dc22abb2874df07ebfca` | 12,469 |
  | `contracts/schemas/opendox-health-dispositions.schema.yaml` | `f904bded8333b6e5f9edff756727a6c31cd9a7bfb050a66a76c212db2f0f1103` | 5,552 |

  The tree's `sorted-ls-tree-r-v1` at this head is `d9f976c5b279b24b80387dad1deb0e8438d95f11ce183540bca93f86a5cd7363`.
- **T041.** The copy id is `opendox-health-finding`. `opendox.health_contract` should mirror:
  - the id rule's exact bytes (the `json.dumps` call above);
  - the 200-character bound and the four refused key names;
  - the lone-surrogate refusal and the closed field set;
  - the two engine identity shapes.

  It also fixes the engine's own vocabulary, which the schema leaves open:
  - the `category` values, which the schema admits as any name (`no-sandbox` is the example's choice);
  - a collision's `evidence` keys, and whether a reference rule holds its id to `identity.collided_id`.

  The set test reads "the validator's kinds plus the finding shape".
- **T047 and T054.** The two file kinds use only keywords the validator evaluates. Their catalogs declare the reference rules the validator must implement before it builds them: `opendox-health-packs` declares `ids-are-unique`, and `opendox-health-dispositions` declares none.
- **T045 (the pack protocol).** A pack's own output is this shape without `id`, `pack_id`, `pack_version` and `baseline_class`, plus an optional patch. The schema describes the emitted finding, so the engine supplies `evidence: {}` where a pack gives none.

🤖 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
… arc's own change (plan 038) (#1247)

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

## T070: author the `doc_health` direction arc's own change (plan 038)

This PR files `openspec/changes/realize-doc-health-direction-arc/`, the OpenSpec change that ARC-Q3 (a) rules (#656 `6003918488`, *"Own change, beside phase 5 (Recommended)"*). It is `Status: draft` until Brett Heap's ratify word (plan 038 T071), and no realization slice starts before that word.

This is the AUTHORING of a governance change, so the PR carries no `Arc:` line. The change's own value, `Arc: realize-doc-health-direction-arc` (ARC-4), is for its later realization landings.

- **Realizes:** none. It authors governance text and no code byte.
- **Falsifier:** the pinned OpenSpec gate (below), with the ledger, code-surface, target-release, sequenced-after and origin validators beside it.
- **Ruled:** ARC-Q1 and ARC-Q3 (#656 `6003918488`).
- **Decisions:** ARC-1 *"implemented (Recommended)"*, plus ARC-2, ARC-3 and ARC-4 among the tier-3 defaults, *"Accept all as recommended (Recommended)"* (#656 `6013547504`).

## What the change says

- **The realization (ARC-Q1 (a)).** openXdox-code's eight `DOC_HEALTH_SURFACE` modules (13 statements at openXdox-code `56e1c238`) stop importing openxFactory's `doc_health`:
  - the generic `lines` slice, and the generator's one `RealGit` read (`head_sha`), are re-authored in openDox-code;
  - the governed names are reached through four seams that openXdox-code declares and openxFactory's host wiring registers, in the pattern of `scripts/opendox_host.py:518-533`;
  - the 7 test files that import `doc_health` directly are respelled; none is among 12.5's 16 or F5.2's 7 protected suites.
- **The front matter.**
  - `code_surface: opensoft/openXdox-code, opensoft/openDox-code and openxFactory` (host wiring).
  - `target_release: implemented`.
  - `sequenced_after: []`.
- **`.openspec.yaml`.** `skip_specs: true`. The origin is `kind: staged` (`openxFactory:staging:doc-health-direction-arc`), with drafting provenance and no approval pair.
- **The tables the staged topic's exit path requires.** "Class by class" for the declared exclusion, and "module by module" for `corpus-adapter-seam` Requirement 1.
- **Decisions for the ratify read.** `design.md` § 11 puts seven, D1–D7, each with its alternative and the cost of a veto.

**Was an openXdox-spec delta needed? No.** The four seams are in-process registration points inside openXdox-code, and they cross no file, wire or schema boundary. Release 1's seams of the same kind landed with no spec-leg text:
- openDox-spec promotes no capability;
- openXdox-spec's one capability governs rendering, and its last commit (`f088b097`, 2026-09-17) predates every one of those seams.

`design.md` § 5 states this, and the condition under which T074 would stop and the change would gain a delta.

## Files (6 files, +1043)

| file | lines |
|---|---|
| `openspec/changes/realize-doc-health-direction-arc/proposal.md` | 196 |
| `openspec/changes/realize-doc-health-direction-arc/design.md` | 450 |
| `openspec/changes/realize-doc-health-direction-arc/tasks.md` | 297 |
| `openspec/changes/realize-doc-health-direction-arc/.openspec.yaml` | 73 |
| `README.md` (one *Active changes* bullet, at the head of the list) | +26 |
| `tests/sequenced_after/corpus-ledger.yaml` (this change's row, `moved_by: "#1247"`) | +1 |

## Gates at `2a79d329`

**The pinned gate.** `python3 scripts/validate-openspec-cli-pin.py --all --strict`, run from the openxFactory root, exits 0:

```
change/realize-doc-health-direction-arc
  ℹ [INFO] file: skip_specs is set in .openspec.yaml: change declares no spec-level behavior changes, zero deltas accepted
...
Totals: 112 passed, 1 failed (113 items)
openspec-cli-pin: DISPOSITIONED FINDINGS in openxFactory (1 applied) — this run is NOT a clean tree:
  ✗→D add-chain-attestation / signed-execution-chain/spec.md
OK openspec-cli-pin: @fission-ai/[email protected] verified against its content address; every target validated --strict with 0 UNDISPOSITIONED failures. THIS IS NOT A CLEAN TREE: 1 finding(s) are ACCEPTED EXCEPTIONS, named above.
```

On `main` (`92010d3e`) the gate gave `Totals: 111 passed, 1 failed (112 items)`, with the same single dispositioned finding. This change adds one passing item.

**The other validators, all exit 0:**

| command | result |
|---|---|
| `validate-sequenced-after.py . --ledger-diff` | "per-change sweep ledger consistent with the corpus (231 rows)" |
| `validate-sequenced-after.py .` | passed |
| `validate-code-surface.py .` | passed, membership arm included |
| `validate-target-release.py .` | passed |
| `proposal-support.py . verify realize-doc-health-direction-arc` | "proposal support verification ok" |

**doc-health.** `scripts/doc-health.py --single-repo .` was run on this head and on `main`, in the same clone with the gitlinks initialized. The two reports are byte-identical: `31 critical, 26 error, 69 warning, 20 info`.

**pytest.**
- CI's `pytest-suite`: `selected=9833 passed=9827 skipped=6 failures=0 errors=0`, floors met, freshness verifier passed.
- A local whole-suite run as `pytest-suite` runs it: `1 failed, 9206 passed, 7 skipped`.

The one local failure is `tests/hermes_runtime_contracts/test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository`, and it is environmental and pre-existing:
- On `main` in the same clone it fails identically, 3 of 3 runs, with `subprocess.TimeoutExpired`.
- The validator returns the expected `rc=2`, but takes 36.2s on this head and 34.7s on `main` in this container, past the test's `timeout=30`.
- CI runs the test green.

**CI:** 15 of 15 check runs succeed at `2a79d329`.

## Copilot

There were seven rounds, one at each head. Every inline finding was fixed, answered and resolved: **5 threads, 0 unresolved.**
- The missing ledger row.
- 4.4 as a realization landing.
- 7.2's evidence revisions.
- The `opendox @` pin naming the openDox-code commit (two threads).

Body-only "previously missed" items were also fixed in the rounds they appeared:
- a PR cannot span opensoft/openXdox and openxFactory;
- the census covers the root landings;
- ride-on pin landings keep #1144's trailer;
- the host's column call needs a cross-call take-back;
- the README status at ratification and at archive.

**At `2a79d329`** (review `5427373153`): *Needs a closer look*, **Findings: None**. Four "previously missed" items stand in the body, with no thread. Under the convergence rule (#656 `5988818366`) they are left to the holder, each with a proposed class:
1. **T072's falsifier: assert that only CR, LF and CRLF split rows**, not only the round trip. *Proposed:* falsifier strengthening, folded before T071.
2. **3.1's falsifier: the empty-seam refusal must also name its registrar** (D3 says it does). *Proposed:* as 1.
3. **4.1's test: refuse a leg declaring only some of the four new seams** (D7). *Proposed:* as 1.
4. **4.3's openXdox-code oracle freezes 12.5's 16 names.** 12.5 itself computes the set with `git grep -l -e 'open-pr' -e 'open_pr' -e 'FakePullRequests' -- 'tests/test_*.py'` and a floor of 16. *Proposed:* a guard gap with a simple payload (reuse 12.5's selector and floor), fixed before T071.

## What is NOT done

- No code anywhere, no realization slice, no pin move. Those are T072, T074 and T075, after T071.
- The staged topic `ideation/staging/doc-health-direction-arc/` stays staged. T077 exits it (D6).
- Plan 038 is not amended. `design.md` § 10 records, for the holder, six openXdox-code files the realization must also edit that plan 038's T074 `Files` line does not name. Among them, at `56e1c238` the help-tree `--deselect` lives in `.github/workflows/validate.yml:161-164`, and `composed.yml` does not exist yet.
- The PR stays a DRAFT until the holder says #1245 has landed. It lands under the holder's Rule 6 window.

🤖 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 to opensoft/openXdox-code that referenced this pull request Oct 6, 2026
…ate verbs (plan 038, P4F-5) (#39)

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

Arc: neutral-product-standalone-operability

## T020, U-1: host registration (HR) (plan 038, feature `038-opendox-document-tool-self-maintenance`)

After set met: T004 (opensoft/openXfactory#1245) landed as 260234b5 at 2026-10-06T14:31Z.

`tests/conftest.py` gains a governed-suite list beside `HOST_PLANE_SUITES`, `GOVERNED_HOST_SUITES`, with its own guard in `tests/test_host_plane.py`. For the length of each test of those eight suites it registers **the governed host**, and puts openDox's registry back afterwards, as the T086 stand-in fixture does:

- **Composed run** (openxFactory's `scripts/` on the path, R1Q23 (a)): openxFactory's own composite, `opendox_host.profile()`. That is the object openxFactory's process-start call registers. It carries openXdox's gate and projection columns and openxFactory's lane column, whose `POST /actions/refresh` two cases request. It is found the way `:413-421` finds `corpus_adapter_openxfactory`: only a missing `opendox_host` itself counts as "absent".
- **Elsewhere:** `GovernedStandInHost`, which carries openXdox's three governed columns and nothing else (`cli_gate.GateSubcommands`, `serve_gate.GateRoutesExtension`, `serve_projection.ProjectionRoutesExtension`). Each facet is built on first read.

Three design points, each guarded:

1. **Only the composite is registered, never `register_openxfactory()`.** That call also fills openxFactory's process-wide seams. openxFactory's host has no call that takes those seams back, so they would outlive the test into every later module of a multi-file run. It also refuses while openXdox's registry holds the profile the root `conftest.py` registers. Measured: registering the composite alone gives the same node outcomes, node for node, as calling `register_openxfactory()` with an openXdox-registry swap. Both were tried in a prototype; neither was committed.
2. **openxFactory's reach stays out of the process.** Importing openxFactory's lane column runs `carved_reach.install()`, which puts openxFactory's pinned `openXdox/code/src` at the head of `sys.path`. `openxdox` is a namespace package. Measured before this change: after `install()`, `importlib.util.find_spec('openxdox.cli_gate').origin` resolves to openxFactory's nested `openXdox/code/src/openxdox/cli_gate.py`, not to this checkout. So the fixture:
   - imports openXdox's three columns from this checkout first;
   - reads the composite's built facets with `sys.path` saved, then restores it;
   - refuses the case by name if any `openxdox.*` module came from anywhere else.
3. **One registration helper for both lists** (`a_hosts_plane`). A module on both lists runs under the governed host, which is also a host's plane (`plane_host_for`). The four overlapping modules are `test_gateway_provenance.py`, `test_session_confinement.py`, `test_session_gates.py` and `test_session_verbs.py`.

### The contract, from `tasks.md`

- **Realizes**: 12.5 (part).
- **Falsifier**: the composed run of the named nodes (R2-INV-P4F § host-reg; part-oneoffs § Group H), quoted.
- **Ruled**: R2Q8. **Decisions**: P4F-5 ("A governed-suite list with its own guard; the composite registered only in the composed run."), ruled with plan 038 by Brett Heap, everything as recommended (#656 `6013547504`).
- **After**: T004.
- **Files**: `tests/conftest.py` (first in the chain T020 → T021 → T073 → T074) and `tests/test_host_plane.py`. Nothing else is changed.

### The falsifier

**Base measured.**
- openXdox-code `56e1c238` (`origin/main`).
- openDox-code `a9ac96f9` (`main`), force-reinstalled with `--no-deps` over openXdox's pin, as 12.5's falsifier does.
- openxFactory `92010d3e` (`main`), with `openDox`, `openXdox` and `openXwallet` initialized recursively and its `scripts/` on `PYTHONPATH`.
- Python 3.12.3 and pytest 8.4.2, installed by the CI command `python -m pip install -e ".[test]"`.
- `LANG=C.UTF-8`, no `GIT_*` or `XF_*` variable, and no colour forcing.

**Head**: `c52900e9`.

**The command.** One process per suite file, over the 69 named nodes: host-reg 62 and Group H 7, read from R2-INV-P4F's node list:

```
PYTHONPATH="$OPENXFACTORY/scripts" python -m pytest -q -p no:cacheprovider -rA <that suite's named nodes>
```

RED at main `56e1c238`:

```
tests/test_branch_session.py: 5 failed in 6.17s
tests/test_gateway_provenance.py: 10 failed in 8.64s
tests/test_session_confinement.py: 15 failed in 17.78s
tests/test_session_gates.py: 9 failed in 12.97s
tests/test_session_lifecycle.py: 10 failed in 7.58s
tests/test_session_notebook.py: 9 failed in 6.33s
tests/test_session_verbs.py: 11 failed in 12.07s
PASSED nodes: 0
FAILED-or-ERROR nodes: 69
```

The causes at main: 41 nodes end in `SystemExit: 2` after `argparse.ArgumentError: argument command: invalid choice: 'gate'`. The others read `{'error': 'unknown_action', 'message': 'no such action route'}`, a `404` where `200` or `403` is expected, or (Group H's `create_document_offers_the_same_repository_flag_as_its_siblings`) no `gate` subparser at all.

GREEN at head `c52900e9`:

```
tests/test_branch_session.py: 5 passed in 6.45s
tests/test_gateway_provenance.py: 10 passed in 17.59s
tests/test_session_confinement.py: 15 passed in 19.34s
tests/test_session_gates.py: 2 failed, 7 passed in 11.59s
tests/test_session_lifecycle.py: 10 passed in 6.40s
tests/test_session_notebook.py: 9 passed in 10.87s
tests/test_session_verbs.py: 2 failed, 9 passed in 13.52s
PASSED nodes: 65
FAILED-or-ERROR nodes: 4
```

The four that stay red have each moved past the host to a cause another task owns:

- `test_session_gates.py::test_the_cli_offers_no_bypass_flag_for_the_endings`: `AttributeError: module 'opendox.cli' has no attribute 'cmd_gate_abandon_session'`. This is AL, T026.
- `test_session_verbs.py::test_the_cli_offers_no_inline_content_and_no_bypass_flag`: `... 'cmd_gate_edit_document'`. AL, T026.
- `test_session_verbs.py::test_the_save_cli_offers_no_token_and_no_bypass_flag`: `... 'cmd_gate_open_pr'`. AL, T026.
- `test_session_gates.py::test_explicit_release_has_cli_and_http_parity`: `{'error': 'gate_refused', 'message': "the gate-action record schema could not be loaded from .../contracts/schemas/gate-action-record.schema.yaml"}`. This is GA, T021.

**An erratum to R2-INV-P4F.** Its host-reg line "59 of 62 clear" was measured with HR, GA and RP simulated together. With HR alone it is **58**: `test_explicit_release_has_cli_and_http_parity` needs T021's GA as well. Its failure moves from `invalid choice: 'gate'` to the schema load above. T021's falsifier carries it.

### The 16 suites, composed, each alone (12.5's loop)

| suite | main `56e1c238` | head `c52900e9` |
|---|---|---|
| `test_branch_session.py` | 5 failed, 127 passed | 132 passed |
| `test_doxbench_mutation_boundary.py` | 80 passed | 80 passed |
| `test_doxbench_share.py` | 2 failed, 32 passed | 2 failed, 32 passed |
| `test_gate_loop_views.py` | 74 passed | 74 passed |
| `test_gateway_provenance.py` | 10 failed, 14 passed | 24 passed |
| `test_hosted_actor.py` | 5 passed | 5 passed |
| `test_session_commits.py` | 22 passed | 22 passed |
| `test_session_confinement.py` | 20 failed, 33 passed | 5 failed, 48 passed |
| `test_session_gates.py` | 27 failed, 54 passed | 20 failed, 61 passed |
| `test_session_lifecycle.py` | 10 failed, 43 passed | 53 passed |
| `test_session_notebook.py` | 10 failed, 29 passed | 1 failed, 38 passed |
| `test_session_records.py` | 29 passed | 29 passed |
| `test_session_runbook.py` | 9 failed, 2 passed | 9 failed, 2 passed |
| `test_session_transaction.py` | 4 failed, 53 passed | 4 failed, 53 passed |
| `test_session_verbs.py` | 14 failed, 51 passed | 5 failed, 60 passed |
| `test_staging_workbench.py` | 59 failed, 20 passed, 4 errors | 59 failed, 20 passed, 4 errors |
| **total** | **170 failed, 4 errors, 668 passed** | **105 failed, 4 errors, 733 passed** |

- The red set at main equals R2-INV-P4F's 174 rows, node for node. So no node has moved since the inventory, at these tips.
- At head, 65 of the 174 turn green: host-reg 58 and Group H 7.
- **No node green at main is red at head.**
- The 109 still red are the buckets of T021–T026: schema 16, moved-name 16, hosted-index 3, display-js 55, one-off 15, and host-reg 4 (above).

### Group T's second cause and the host half of the four `cmd_gate_*` nodes, by simulation

Each of these is masked by a first cause that another slice owns:
- Group T: T024's shim, on draft #38.
- The four `cmd_gate_*` nodes: T026's respellings in protected files.

So they were proved in two scratch copies outside every clone, now deleted. Each copy had T024's three-line shim and the eight `cli_mod.cmd_gate_` → `cli_gate.cmd_gate_` respellings applied. The two copies differ only in `tests/conftest.py`: one at main, one at this head.

```
conftest at main:
FAILED test_session_gates.py::test_the_abandon_cli_verb_enforces_the_human_gate_itself - SystemExit: 2
FAILED test_session_gates.py::test_the_cleanup_cli_verb_enforces_the_human_gate_and_deletes_the_branch - SystemExit: 2
FAILED test_session_verbs.py::test_the_cli_verb_enforces_the_human_gate_itself - SystemExit: 2
FAILED test_session_verbs.py::test_the_save_cli_verb_enforces_the_human_gate_itself - SystemExit: 2
FAILED test_session_gates.py::test_the_cli_offers_no_bypass_flag_for_the_endings - SystemExit: 2
FAILED test_session_verbs.py::test_the_cli_offers_no_inline_content_and_no_bypass_flag - SystemExit: 2
FAILED test_session_verbs.py::test_the_save_cli_offers_no_token_and_no_bypass_flag - SystemExit: 2
FAILED test_session_transaction.py::test_a_lock_contention_through_the_CLI_is_the_same_refusal - SystemExit: 2
conftest at head:
PASSED (6 of the 7 above), and test_a_lock_contention_through_the_CLI_is_the_same_refusal PASSED
FAILED test_session_gates.py::test_the_cleanup_cli_verb_enforces_the_human_gate_and_deletes_the_branch - assert 1 == 0
   (stderr: "cleanup-abandoned-branch refused: the gate-action record schema could not be loaded ..." -- GA, T021)
```

### Mutants of the new guards, all killed

Each mutant was applied to a copy of the head and run against `tests/test_host_plane.py` in a lone checkout. Every one exits 1:

```
M1-drop-a-listed-suite: KILLED
M2-add-an-unneeded-suite: KILLED
M3-stand-in-wins-on-both-lists: KILLED
M4-no-sys-path-restore: KILLED
M5-no-registry-restore: KILLED
M6-no-shadow-refusal: KILLED
M7-swallow-any-missing-module: KILLED
M8-never-the-composite: KILLED
M9-no-pre-import: KILLED
M10-gate-verbs-as-a-route: KILLED
M11-drop-a-12.5-marker: KILLED
M12-facets-not-read-in-window: KILLED
```

### The suite as CI runs it, and the protected suites

- **The required job's own command** (`python -m pytest -q --junitxml=… --deselect "$LEFT_OUT"`), in a venv built exactly as CI builds it (openDox at the `pyproject.toml` pin `dede32b4`), at this head: `selected=1105 passed=1101 skipped=4 failures=0 errors=0`. That is +6 on both floors (the six new cases in `tests/test_host_plane.py`), with skipped exactly 4. None of the new cases skips, lone or composed. `validate.yml` is not this task's file, so its floors are not raised here.
- **The governed set is unchanged at 16.** The new code spells 12.5's three markers only in `tests/conftest.py`, which 12.5's pathspec `tests/test_*.py` does not match. So the check that holds the list does not join the set it scans.
- **No protected file is edited.** T059's oracle, as 12.5 calls it, over this commit:
  ```
  $ python3 scripts/protected_suites.py --landings="c52900e9eb80324fcecceaf6705a06c057a4d243" --suites="$(cat governed.txt)"
  ok: 0 protected edit(s), each entered and holding
  ```

### CI and Copilot at the head `c52900e9`

- Checks: `validate` pass, `SonarCloud Code Analysis` pass (2 of 2).
- Copilot (`copilot-pull-request-reviewer[bot]`, requested through the reviewer API): review at `c52900e9`, state COMMENTED, "Findings: None". Its overview reads "Needs a closer look" for one stated reason only: "The draft remains dependent on open cross-repository prerequisite T004 and composed-host integration." That is this PR's After line (T004), not a finding. Review threads: 0, so 0 unresolved.

### Files changed

- `tests/conftest.py`: `GOVERNED_HOST_SUITES`, `governed_suites()`, `plane_host_for()`, `GOVERNED_COLUMNS`, `GovernedStandInHost`, `openxfactory_host()`, `governed_host()`, `a_hosts_plane()`, and the autouse fixture `_the_governed_host_for_the_governed_suites`. The T086 fixture now uses `a_hosts_plane` and yields to the governed host for the four overlapping modules.
- `tests/test_host_plane.py`: six lone cases holding the list, the precedence, the stand-in, the composed registration and its `sys.path` window, the shadow refusal, and the absent-host guard.

### Not done here

- GA (T021), RP (T022), the J and L one-offs (T023, T024), openDox web (T025) and the allow-list (T026) are other slices.
- The permanent composed workflow is T029.
- In a run where `opendox_host` is absent, these eight suites cannot be imported today (`doc_health`, declared). So `GovernedStandInHost` is reached in no current run. It is exercised by the guard's lone cases, and measured composed in a prototype: host-reg 58 and Group H 5 of 7. The two refresh nodes need openxFactory's own lane route.

🤖 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 to opensoft/openXdox-code that referenced this pull request Oct 6, 2026
…opendox.session_git (plan 038, CF-3) (#38)

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

Arc: neutral-product-standalone-operability

## T024, U-5: the H-1 shim (plan 038, feature `038-opendox-document-tool-self-maintenance`)

After set met: T004 (opensoft/openXfactory#1245) landed as 260234b5 at 2026-10-06T14:31Z.

Base brought up to date with main (T020 #39 c6d15b2) by a merge commit; CI green at 65c3910; the composed falsifier was measured at 873792a, before the merge, and was not re-run (the merge brought only T020's host registration).

A new `scripts/ideation_dashboard/session_git.py`, with NO `__init__.py` beside it:

```python
import sys

from opendox import session_git as _m

sys.modules[__name__] = _m
```

(the task's three statements; the file carries a comment block above them saying why).

### Contract, from `tasks.md`

- **Realizes**: 12.5 (part).
- **Falsifier**: the 4 nodes, composed, quoted; `test_dependency_direction.py` green (it does not scan `scripts/`).
- **Ruled**: R2Q8. **Decisions**: CF-3 (H-1), confirmed by Brett Heap's ruling of plan 038, everything as recommended (#656 `6013547504`).
- **After**: T004.
- **Files**: openXdox-code new `scripts/ideation_dashboard/session_git.py`. One file, nothing else.

### Why

The carve moved `ideation_dashboard/session_git.py` verbatim to openDox-code as `opendox.session_git`. `tests/test_session_transaction.py:296` still spells the old path, in the module-level string `LOCK_HOLDER` that a rival process runs (`from ideation_dashboard import session_git as sg`). A protected suite's module-level text lies inside no test, so no batch C entry can hold an edit to it; the shim restores the spelling instead, and edits no protected file. The trace is lane 3's R2-INV-P4F part, Group L.

With no `__init__.py`, `scripts/ideation_dashboard/` stays a portion of the `ideation_dashboard` namespace package, so in the composed run it merges with openxFactory's own `scripts/ideation_dashboard/` (which has none either) and does not shadow it. That follows from Python's namespace-package rule (ADV-39). `sys.modules[__name__] = _m` makes `ideation_dashboard.session_git` and `opendox.session_git` the same module object.

### The falsifier

**Base measured**: openXdox-code `56e1c238` (origin/main), openDox-code `a9ac96f9` (force-reinstalled with `--no-deps` over openXdox's pin, as 12.5's falsifier does), openxFactory `92010d3e` with `openDox`, `openXdox` and `openXwallet` initialized recursively and its `scripts/` on `PYTHONPATH` (R1Q23 (a)'s form). Python 3.12.3, pytest 8.4.2, the clone's CI install command (`python -m pip install -e ".[test]"`). **Head**: `873792a9`.

The four nodes, all in `tests/test_session_transaction.py`:

```
test_a_separate_process_holding_the_lock_refuses_the_in_process_action
test_a_lock_contention_through_the_ROUTE_is_a_409_carrying_the_engines_reason
test_step_lock_a_rival_process_holding_it_refuses_and_unwinds_the_open
test_a_lock_contention_through_the_CLI_is_the_same_refusal
```

RED at main (`56e1c238`), composed:

```
FAILED tests/test_session_transaction.py::test_a_separate_process_holding_the_lock_refuses_the_in_process_action
FAILED tests/test_session_transaction.py::test_a_lock_contention_through_the_ROUTE_is_a_409_carrying_the_engines_reason
FAILED tests/test_session_transaction.py::test_step_lock_a_rival_process_holding_it_refuses_and_unwinds_the_open
FAILED tests/test_session_transaction.py::test_a_lock_contention_through_the_CLI_is_the_same_refusal
4 failed in 2.90s
```

Their cause is `assert '' == 'held'` (the rival child dies on `ImportError: cannot import name 'session_git' from 'ideation_dashboard'`; the first node's `finally` then raises `BrokenPipeError`).

GREEN at head (`873792a9`), composed:

```
FAILED tests/test_session_transaction.py::test_a_lock_contention_through_the_CLI_is_the_same_refusal
1 failed, 3 passed in 3.42s
```

**Three of the four close.** The fourth, `test_a_lock_contention_through_the_CLI_is_the_same_refusal`, passes its first cause (`LOCK_HOLDER`) and stops at its second, at `tests/test_session_transaction.py:1148`:

```
opendox: error: argument command: invalid choice: 'gate' (choose from 'generate', 'generate-and-open', 'create', 'edit', 'model-binding', 'runtime')
```

That is the missing `gate` registration: `tests/test_session_transaction.py` is not in `HOST_PLANE_SUITES`, so no host carrying openXdox's `cli_gate.GateSubcommands` is registered for it. `tests/conftest.py` is T020's file and is NOT touched here. **The fourth node closes when T020 lands.** To show that, a throwaway pytest plugin kept outside the clone registered a host carrying `GateSubcommands` for that one suite only (the pattern at `tests/test_hermeticity_gate_verbs.py:48-52`), and the same four nodes at the same head read:

```
4 passed in 3.01s
```

**The composed whole, 66 files.** Each of the 66 files in `tests/declared_exclusion.yaml`, run alone and composed, at main and at head: 2571 cases at both, 720 red at main and 717 at head. The set that moved is exactly the three nodes above (red at main, green at head); no node is newly red.

**`test_dependency_direction.py`**: 17 passed in the CI form (the lone run). Composed it reads 16 passed, 1 failed, and the one is `test_first_attribute_access_refuses_and_names_the_layering`. It fails the same way at main (`56e1c238`), composed, so the shim does not cause it: that node asserts a refusal when `ideation_dashboard` cannot be imported, and composed the module is importable. It is a property of the composed form, noted here for the T029 composed workflow.

### Mutants

- **Drop the `sys.modules[__name__] = _m` line**: all four nodes go red again (`4 failed`, with the throwaway registration in place, so the registration is not what is being tested). The shim body then imports but exposes no `SessionGit`, and the rival child dies.
- **Add an `__init__.py`** beside the shim (a regular package): `ideation_dashboard` resolves to one portion, and `import ideation_dashboard.serve_openxfactory_lanes` raises `ModuleNotFoundError`. As shipped, it has two portions and the openxFactory lane module resolves. That is the shadowing the missing `__init__.py` prevents.

### The protected-suite oracle

`scripts/protected_suites.py`, called with the head commit as the landing and every `tests/test_*.py` as the suites, exits 0: `ok: 0 protected edit(s), each entered and holding`. The branch touches no path under `tests/`, and no `__init__.py` is added anywhere under `scripts/`.

### The full suite, as CI runs it

`python -m pytest -q --junitxml=pytest-report.xml --deselect "$LEFT_OUT"` after `python -m pip install -e ".[test]"`: `1095 passed, 4 skipped, 1 deselected in 83.41s`. The "Pin the triple" step's own arithmetic over that report: `selected=1099 passed=1095 skipped=4 failures=0 errors=0`, against the pins `selected>=1099 passed>=1095 skipped==4`. The shim adds no test, so the triple does not move.

### CI, Copilot, threads (at head `873792a9`)

- **CI**: 2 of 2 checks green. `validate` pass (1m30s; the full suite, with the "Pin the triple" step); `SonarCloud Code Analysis` pass (Quality Gate passed, 0 new issues, 0 security hotspots).
- **Copilot**: reviewed at this exact head. State COMMENTED, `Findings: None`. Its summary line reads "Needs a closer look: the draft explicitly depends on pending cross-repository sequencing and composed validation", which is this PR's own draft note and its After set (T004), not a finding.
- **Threads**: 0 review threads, 0 unresolved.
- **At the new head `65c3910f`** (the merge of `main` `c6d15b27`, brought in by GitHub's update-branch as a merge commit): `validate`, `SonarCloud Code Analysis`, `Sourcery review` and `copilot-pull-request-reviewer` all completed success (4 of 4); Copilot review 5431537774, state COMMENTED, "Approval recommended", `Findings: None`; 0 review threads, 0 unresolved. Against `873792a9` the merge changed only `tests/conftest.py` and `tests/test_host_plane.py`, T020's two files.

### What is NOT done

- `tests/conftest.py` and the `gate` registration: T020's. The fourth node closes there.
- No protected suite is edited, and no allow-list entry is added (U-7, T026, is the allow-list's).
- The shim reintroduces the retired `ideation_dashboard.*` spelling in openXdox-code's `scripts/`. `tests/test_dependency_direction.py` does not scan `scripts/`, so nothing refuses it; this is the reintroduction CF-3 confirms. Hosting the shim in openxFactory instead would contradict the carve manifest's `moved_verbatim` row.


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 to opensoft/openDox-code that referenced this pull request Oct 6, 2026
…'s posture-note follow-on (plan 038) (#91)

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

Arc: neutral-product-standalone-operability

## T025, U-6: openDox web (SF; DJ (A), W-1 ruled (A)), plan 038

- **Realizes:** 12.5 (part).
- **Falsifier (tasks.md):** openDox-code's whole suite; the 34 nodes, composed, quoted at T029.
- **Ruled:** R2Q8. **Decisions:** W-1, RULED (A) by Brett Heap in his ruling of plan 038 (opensoft/openXfactory#656 comment `6013547504`). The staging model becomes import-free again, which reverses § 3.4 S7's `./display.js` import by his word.
- **After:** T004 (opensoft/openXfactory#1245). **After set met: T004 #1245 → 260234b5.**
- **Files (tasks.md):** `src/opendox/web/views/staging-workbench.js`, `src/opendox/web/views/staging-workbench-model.js`, `tests/fixtures/web_boundary_census.yaml`, `tests/test_web_boundary.py`. This PR is FIRST in the census chain T025 → T015 → T016 → T057.

### What changed

**The model (`views/staging-workbench-model.js`), W-1 (A).**
- It imports nothing again. It now carries its own copy of the nine `views/display.js` tables it read: `STAGE_ROLES`, `STATUS_ROLE`, `SCOPE_KINDS`, `TAB_IDS`, `SESSION_SCOPE_KINDS`, `SESSION_BRANCH_NAMESPACES`, `SNAPSHOT_VALUES`, `NEUTRAL_DISPLAY.stages` (as `NEUTRAL_STAGES`) and `NEUTRAL_DISPLAY.areas` (as `NEUTRAL_AREAS`).
- Its neutral vocabulary is a small reader over three of those tables. It answers the five reads the model makes (`one`, `many`, `short`, `area`, `documentStage`) as `neutralDisplay()` does, and it refuses an unknown role by name, as `Display` does.
- The facet itself still arrives only through `setDisplay`, which the view calls at mount. Nothing a host declares is copied.
- The nine are exported together as `INLINED_DISPLAY_TABLES`, keyed by the `views/display.js` expression each one copies, so T050's inline-parity guard can read both ends.
- `views/display.js` is unchanged. It is T050's file.

**The view (`views/staging-workbench.js`), S1, T102's follow-on.**
- T102's two re-shows (the restored-scope reconcile and an unload) now redraw the plane already stated, through a new `redrawPostureNote`. They no longer call `showPostureNote` again, so the one rule keeps its definition and its two callers. `const stands = !!plane.note && plane.chat !== true;` is kept verbatim.
- One comment names `editingPosture` instead of its capitalised header. That comment was the only place the file carried the substring `POST`, which the no-write-path pin refuses.

**The census and its test.**
- The two rows' `loc` (model 2330 → 2468, view 3621 → 3633) and the class totals (A 18621 → 18759, C 12757 → 12769).
- A new declared class, `inlined_display_tables`, keyed by (path, identifier), with `copies` naming the `views/display.js` expression. The governance-literal sweep skips the string literals inside each declared table's own declaration, and nowhere else in the file. Five of the nine carry watched words: four seam-key tables, plus `STATUS_ROLE`'s role names that are spelled like status words.
- Three new tests:
  - `test_the_staging_model_is_import_free`: no `import`, static or dynamic, and no `from "..."` clause. It reads over the code, with comments and string contents blanked and each template literal's `${...}` substitutions read back as code. A substitution ends at its own code brace, so a brace inside a nested string, comment or regex cannot end it early. Both points come from Copilot's two rounds.
  - `test_every_inlined_display_table_is_real`: each row's table is declared in the file, and each `copies` names something `views/display.js` declares.
  - `test_the_inlined_tables_are_the_registry_the_model_exports`: the census rows and `INLINED_DISPLAY_TABLES` list the same tables. A table the sweep exempts is therefore always one T050's guard reads.
- `test_every_in_scope_file_reads_the_display_facet` accepts a third shape. An import-free file that inlines its tables must declare `setDisplay`, and an in-scope file that imports `./display.js` must import it from that file and call it.

### The falsifier, measured

**Environment.** Python 3.12.3, Node v24.21.0, pytest 8.4.2.
- **Composed run, in R1Q23 (a)'s form:**
  - openXdox-code `56e1c238` (its main), installed with CI's `python -m pip install -e ".[test]"`;
  - openDox-code force-reinstalled (`pip install --force-reinstall --no-deps`) at base `a9ac96f9` or at this head;
  - openxFactory `92010d3e` (its main), with submodules initialized recursively and `PYTHONPATH="$OPENXFACTORY/scripts"`.
  - run off CI (no `CI` variable), as R2-INV-12 measured its 174.
- **openDox-code's own suite:** run as its CI runs it: `CI=true`, a Postgres 16 database in `OPENDOX_TEST_DATABASE_URL`, and `python -m pytest -q --junitxml=pytest-report.xml`.
- **Colour.** Every run quoted below for `40490d4e` and `45f5c55d` unsets `FORCE_COLOR`, `CLICOLOR` and `COLORTERM` and sets `TERM=dumb`, so no colour code reaches a test that matches error text.
- **The final head is `137b75b8`.** It is `45f5c55d` with `origin/main` `34c20641` merged in (T010, #89). That merge brings only `.github/workflows/validate.yml`, where the sandbox is made live and `OPENDOX_TEST_SANDBOX_REQUIRED=1` is set. `src/` and `tests/` are byte-identical to `45f5c55d`.
- **Composed base for the final head:** main `34c20641`, whose `src/` is identical to `a9ac96f9`. openxFactory's `scripts/` and submodule gitlinks are the same at `92010d3e` and at its current main `51456835`.
- **Colour.** Every run quoted below for `40490d4e`, `45f5c55d` and `137b75b8` unsets `FORCE_COLOR`, `CLICOLOR` and `COLORTERM` and sets `TERM=dumb`, so no colour code reaches a test that matches error text.
- **The bundle is the same at every head after `158ab41f`.** `45f5c55d` changes only `tests/test_web_boundary.py` against `40490d4e`, and `40490d4e` changes the model by one line (Sonar's object spread). Each number is quoted at the head it was run on.

**1. The 34 nodes, composed.** Command: `python -m pytest -q tests/test_staging_workbench.py`.

| | result |
|---|---|
| base `a9ac96f9` | `59 failed, 20 passed, 4 errors in 9.61s` |
| head `158ab41f` | `29 failed, 54 passed in 9.09s` |
| head `45f5c55d` | `29 failed, 54 passed in 7.61s` |
| base main `34c20641` (for the final head) | `59 failed, 20 passed, 4 errors in 9.70s` |
| head `137b75b8` (final) | `29 failed, 54 passed in 9.73s` |

At every head, exactly 34 nodes flipped red to green and none flipped green to red. They are the 34 tasks.md names:

| node (R2-INV-P4F bucket) | base | head |
|---|---|---|
| the 28 display-js (DJ) test nodes: `test_workbench_kind_and_signal_vocabularies`, `test_cluster_scope_is_its_document_edges`, `test_cluster_scope_missing_completeness_stays_missing`, `test_possible_scope_separates_cited_from_inherited`, `test_staged_scope_is_folder_docs_plus_declaring_documents`, `test_picked_possible_outline_is_the_picked_topic`, `test_unresolvable_scopes_are_null`, `test_lens_rescope_filters_the_existing_seed_verbatim`, `test_scope_derivation_is_deterministic`, `test_cluster_neighbourhood_is_deduped_and_honours_no_bar`, `test_staged_scope_has_no_neighbourhood_when_no_linked_clusters`, `test_scopes_derive_from_the_real_fixture_snapshot`, `test_a_pasted_descriptor_carries_hostile_values_through_verbatim` ×5, `test_a_hostile_descriptor_stays_one_command` ×5, `test_no_descriptor_leaves_a_shell_metacharacter_unquoted` ×5, `test_the_draft_says_what_you_already_have_on_this_topic` | 28 failed | 28 passed |
| the 4 DJ setup errors: `test_a_stale_token_catalog_failure_gets_its_own_recoverable_rung`, `test_an_unreadable_catalog_gets_its_own_rung_distinct_from_configured_none`, `test_the_editor_only_and_capable_rungs_are_unchanged`, `test_the_catalog_rungs_never_outrank_hidden_or_gate_off` | 4 errors | 4 passed |
| S1 `test_staging_workbench_view_has_no_write_path` (`:798` `POST`, then the `:802` import-free pin) | failed | passed |
| S1 `test_only_the_plane_postures_still_stand_as_an_inline_note` (`showPostureNote(` counted 5, pinned 3) | failed | passed |

**The 29 still red are not this task's.** They are R-1's 23, S2's 4 (allow-list entries) and S3's 2, all of them T026's. Their cause moved:
- The harness nodes now fail on the module-level harness text, not on the import. `does not provide an export named 'BRAINSTORM_AREA'` appears 9 times and `'sessionRoute'` 12 times: these are R-1's 21 harness nodes.
- `display.js` appears in the base log 165 times and in the head log 0 times.

**2. The 16 governed suites, each run alone, composed: base `a9ac96f9` vs head `40490d4e`, and again base `34c20641` vs head `137b75b8`, with the same numbers.**
- base: 668 passed, 170 failed, 4 errors (R2-INV-12's 174 reds).
- head: 702 passed, 140 failed, 0 errors.
- Only `tests/test_staging_workbench.py` moved.

**3. Every openXdox-code test file run alone, composed: 98 files, 3660 cases, base vs `40490d4e`, and again `34c20641` vs `137b75b8`.** Both pairs give the same result: 42 nodes went red to green and 0 went green to red:
- the 34 above;
- 8 outside the governed set, which also copy the model alone and also read `ERR_MODULE_NOT_FOUND ... display.js` at base: `test_doxbench_save.py` 3 (errors), `test_doxbench_transport.py` 4 (errors), and `test_session_document_ownership.py::test_the_rewrite_picker_offers_the_tiles_own_material_and_nothing_else` 1 (failure).
- Totals: base 2933 passed, 638 failed, 83 errors, 6 skipped; head 2975 passed, 607 failed, 72 errors, 6 skipped.
- `test_dependency_direction.py::test_first_attribute_access_refuses_and_names_the_layering` fails at both, which is known and pre-existing at `56e1c238`.

**4. openDox-code's whole suite, as CI runs it.**
- base `a9ac96f9`: `selected=5469 passed=5457 skipped=11 failures=1 errors=0`. The one failure is `tests_runtime/test_migrations_apply.py::test_the_lock_is_released_after_a_run` (`the run left its advisory lock held`). It came from running alongside the head run against one Postgres server, where `pg_locks` is server-wide. Re-run alone at base, that file gives `37 passed`.
- head `158ab41f`, locally: `5461 passed, 11 skipped, 2 warnings in 1975.36s`, which is `selected=5472 passed=5461 skipped=11 failures=0 errors=0`. That is base + the 3 new test cases, with no other node changed, compared node by node. The skip count equals the pinned `EXPECT_SKIPPED` of 11.
- head `40490d4e`, locally with colour off: `5461 passed, 11 skipped, 2 warnings in 2011.25s`. `45f5c55d` changes only `tests/test_web_boundary.py`, which gives `16 passed` there.
- head `45f5c55d`, CI (`validate` run 37452643627): `triple: selected=5472 passed=5461 skipped=11 failures=0 errors=0` and `pins:   selected>=3977 (margin 1495) passed>=3966 (margin 1495) skipped==11`.
- **head `137b75b8` (final), locally, as CI now runs it:** `CI=true`, `OPENDOX_TEST_SANDBOX_REQUIRED=1`, Postgres 16, colour off. Result: `5461 passed, 11 skipped, 2 warnings in 1555.72s`, which is `selected=5472 passed=5461 skipped=11 failures=0 errors=0`.
- **head `137b75b8` (final), CI** (`validate` run 37496783300): `live: the sandbox ran and its tmpfs took a write`, `refused: the write outside its tmpfs failed, and the host directory is unchanged`, `triple: selected=5472 passed=5461 skipped=11 failures=0 errors=0` and `pins:   selected>=3977 (margin 1495) passed>=3966 (margin 1495) skipped==11`.

### Red first

The new import-free test, run against base's model (`a9ac96f9`, with this PR's final test file and census copied in):

```
E           AssertionError: views/staging-workbench-model.js loads another module: an `import` at lines [48]. W-1 (A) makes it import-free, so a table it needs from `views/display.js` is inlined and declared in the census's `inlined_display_tables` instead.
E           assert not [48]
1 failed, 15 deselected in 0.75s
```

At the same base, the whole file gives `4 failed, 12 passed`: the import-free test, the two declaration tests (`does not DECLARE const STAGE_ROLES`, and `exports no INLINED_DISPLAY_TABLES`), and the census `loc` rows. At `45f5c55d` it gives `16 passed`.

### Mutants

Each mutant was applied to a scratch copy of `45f5c55d`, whose `src/` and `tests/` the final head carries unchanged. Each ran against the 11 openDox-code suites that load the model; unmutated, those give `464 passed`. A mutant that adds or removes a line also trips the census `loc` row; the table names the guard that fires besides that.

| mutant | result |
|---|---|
| **M1, re-add the import** (`import { neutralDisplay as _n } from "./display.js";`) | KILLED: `test_the_staging_model_is_import_free`, with `loads another module: an import at lines [62]`. Composed (at `158ab41f`), it is `58 failed, 21 passed, 4 errors`, and all 32 DJ nodes are red again. |
| **M2, alter one inlined entry** (`SCOPE_KINDS.grouping` `"cluster"` → `"group"`) | KILLED: `14 failed, 450 passed`. The failures include `test_display_facet.py::test_the_workbench_model_takes_the_vocabulary_at_the_mount` and `test_workbench_edit_by_scope.py::test_the_browser_set_is_the_servers_set[cluster-g1…g6]`. Composed (at `158ab41f`), it is `34 failed, 49 passed`, with 5 DJ nodes red. |
| M2b, alter an entry the model never reads (`STATUS_ROLE.RETIRED` `"retired"` → `"retire"`) | SURVIVES (`464 passed`), by design. No behaviour reads it, and the equality of the copies is T050's inline-parity guard. |
| M3, a census row names an undeclared table | KILLED by the sweep: `views/staging-workbench-model.js:79 carries 'cluster'`, `:80 'possible'`, `:81 'staged'`. The two declaration tests also fail. |
| M4, a governance literal outside a declared table (`export const STRAY_KIND = "staged";`) | KILLED by the sweep: `views/staging-workbench-model.js:190 carries 'staged'`. The skip is span-limited. |
| M5, a table dropped from `INLINED_DISPLAY_TABLES` | KILLED: `test_the_inlined_tables_are_the_registry_the_model_exports`. |
| M6, `copies: TAB_ID` | KILLED: `views/display.js declares no TAB_ID`. |
| M7, the view stops calling `setDisplay(vocab)` | KILLED: `test_every_in_scope_file_reads_the_display_facet`. |
| M8, a re-export (`export { DRAFT_PATHS } from "./display.js";`) | KILLED: `a from clause at lines [1268]`. |
| M9, a dynamic import (`() => import("./display.js")`) | KILLED: `an import at lines [192]`. |
| M10, Copilot round 1's payload: an import inside a template substitution (`` `${import("./display.js")}` ``) | KILLED: `an import at lines [192]`. At `158ab41f` it SURVIVED: only the census `loc` row fired. |
| M11, Copilot round 2's payload: an import after a `"}}"` string inside a substitution | KILLED: `an import at lines [192]`. |

### Gates

- **CI at `137b75b8` (final):** `validate` pass (the required check, with the sandbox live) and `acceptance` pass. `validate` also passed at `158ab41f`, `40490d4e` and `45f5c55d`.
- **Copilot**, four rounds through the reviewer API:
  - `158ab41f`: "Changes recommended", 1 finding, r4194288989. An `import` inside a template substitution was blanked with the template. Fixed now at `40490d4e`.
  - `40490d4e`: "Changes recommended", 1 finding, r4194349872. A brace inside a nested string ended a substitution early. Fixed now at `45f5c55d`.
  - `45f5c55d`: "Needs a closer look", Findings: None. Its only remark was that the declared T004 prerequisite (#1245) was still pending; #1245 has since landed as `260234b5`.
  - **`137b75b8` (final): "Changes recommended", 1 finding, r4198449977. CLASSIFIED AS AN ACCEPTED LIMIT** under the convergence rule `5988818366`, for the holder's ruling. WRITER-RULES-R2 says "Changes recommended" at the final head blocks the holder's gate until the holder rules.
    - **The finding:** a regex literal after an un-braced `if (...)`, as in `${(() => { if (true) /}}/.test("x"); return import("./x.js"); })()}`, hides a later `import` from the guard. So does the same shape at top level. Reproduced at `137b75b8`.
    - **The cause:** `_js_spans`'s regex-or-division heuristic, written at § 3.4 S7 for the assertion-4 sweep and reused here. After `)`, a `/` is division in `(a) / b` and a regex in `if (a) /re/`, and only a parser can tell which. This leg has no JS parser in its dependency set, and changing the heuristic would also move the S7 sweep.
    - **What the guard still catches:** every form a maintainer writes, as the mutant table shows: static import, `from` re-export, dynamic import, an import in a template substitution, and an import after braces in a nested string, comment or regex. Only the deliberately built statement-level regex form gets past.
    - The reply on the thread says the same; the thread is resolved.
- **Threads:** 3, all answered and resolved, 0 unresolved. Two were fixed now (r4194288989, r4194349872); the third is the accepted limit above (r4198449977).
- **SonarCloud at `137b75b8` (final):** 0 open issues. The two it raised at `158ab41f` (javascript:S6661 object spread, python:S9073 composite assertion) are fixed at `40490d4e`.
  - The quality gate fails on ONE condition: new-code duplication is 3.9% against 3%. It is the 16-line `NEUTRAL_STAGES` table (model `:112-127`), a copy of `views/display.js` `:284-299` (`NEUTRAL_DISPLAY.stages`).
  - That copy is what W-1 (A) rules: the model carries the tables itself, and T050's guard holds them equal. Every other condition is OK (reliability, security, maintainability, hotspots 100% reviewed).
  - SonarCloud is not a required check on this repository (only `validate` is).
  - **HOLDER RULING (opensoft/openXfactory#656 comment `6016356225`): ACCEPTED LIMIT at READY**, under the convergence rule `5988818366`. The holder lands #91 over this one condition and says so in the landing note.

### What is NOT done

- **The equality guard** that the nine copies equal `views/display.js`'s is T050's. That is why M2b survives here.
- **The 29 nodes still red** in `tests/test_staging_workbench.py` are T026's: R-1's 23, S2's 4 and S3's 2.
- **Prose outside this task's files** that this change makes stale. It is left for the files' owners:
  - `views/display.js:203-205` says `SESSION_SCOPE_KINDS` is declared there "rather than in views/staging-workbench-model.js … the model is class C and may carry no literal". T050 owns that file.
  - `tests/test_outline_tab.py:882-890` and `tests/test_doc_wheel.py:135-137` describe the staging model as importing `./display.js`.
  - `tests/test_doxbench_abstract_pane.py:157-161` and `tests/test_doxbench_context_panes.py:118-122` still copy `display.js` beside the model. That is harmless and no longer needed.
- **The CI floors.** This PR adds three test cases, so `selected` rises by 3. `MIN_SELECTED`/`MIN_PASSED` are re-pinned by T017.
- **The pins:** openXdox-code's `opendox` pin, openxFactory's nested `openDox/code` and the root `openDox` gitlink. That is T027 and T028; the 34 nodes are quoted again at T029.

🤖 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 to opensoft/openXdox-code that referenced this pull request Oct 6, 2026
…tes again (plan 038) (#42)

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

Arc: neutral-product-standalone-operability

## T023, U-4: `swb-session.js` spells the model's two names at its call sites again (plan 038, feature `038-opendox-document-tool-self-maintenance`)

After set met: T004 (opensoft/openXfactory#1245) landed as 260234b5 at 2026-10-06T14:31Z.

Base brought up to date with main (T020 #39 c6d15b2, then T024 #38 8b64fae) by two merge commits; CI green at e8a067f; the composed falsifier was measured at c3c6a47, before the merges, and was not re-run (the merges brought only T020's host registration and T024's shim; INFERRED, not measured: the composed falsifier reads the same at the new head).

### Contract, from `tasks.md`

- **Realizes**: 12.5 (part).
- **Falsifier**: the 2 nodes, composed, quoted.
- **Ruled**: R2Q8. (The entry names no Decisions line.)
- **After**: T004.
- **Files**: openXdox-code `src/openxdox/web/views/swb-session.js`, plus ONE new test file, `tests/test_swb_session_transport.py`. The test file is not in the task's `tasks.md` entry: lane openxfactory-4 added it to T023's Files by its ruling on Copilot's first finding on this PR (`lane4-to-lane3.log`, 12:52:51Z, "FIX-NOW, as in T022 (a)"; recorded on #656 in lane 4's latest comment). No protected suite is edited, and the file is not one of the 16 `HOST_PLANE_SUITES`.

### What and why

`submitSession` took its two model calls from locals, `const headersOf = bound ? bound.consoleHeaders : consoleHeaders;` and `const repairWith = ...`, called as `headersOf(caps)` and `repairWith(send, repair)`. That is the `bound`-namespace refinement of Copilot review round 3, which arrived with the S5 carve in #18. `tests/test_session_confinement.py` pins both write transports (`swb-session.js` and `swb-create.js`) to the literal spellings `headers: consoleHeaders(caps)` and `withConsoleRepair(send, repair)`, so two nodes went red in the composed run. The pre-shed openxFactory copy spelled both exactly; `swb-create.js` still does. The trace is lane 3's R2-INV-P4F part, Group J.

The fix shadows the two module-level names inside `submitSession` instead of respelling the call sites:

```js
const MODULE_TRANSPORT = {
  consoleHeaders: (...args) => consoleHeaders(...args),
  withConsoleRepair: (...args) => withConsoleRepair(...args),
};
// inside submitSession:
const { consoleHeaders, withConsoleRepair } = bound || MODULE_TRANSPORT;
//   headers: consoleHeaders(caps),   ...   return withConsoleRepair(send, repair);
```

With a `bound` namespace the calls go to it, as before. With none, `MODULE_TRANSPORT` reaches the CURRENT install at call time, exactly as the two module-level consts do. The comment above it does not quote the pinned needles, because a needle quoted in its own source satisfies itself; each pinned needle occurs once in the file, in code (counted).

### The new test file, `tests/test_swb_session_transport.py`

The pinned spellings are text assertions, so they cannot tell the right model from the wrong one. Two node probes run the shipped module out of the composed bundle and assert on the request that reaches the injected fetcher:

- **bound**: two `firstEditTransport`s over two models that differ in exactly `consoleHeaders` and `withConsoleRepair`, both built before either is called; each request must carry its own model's header (from its own `caps`) and go through its own model's repair policy.
- **unbound**: a mounted session form, submit pressed; the request must carry the header the mounted model's `consoleHeaders` built and go through its `withConsoleRepair`. (The outcome panel the column writes after the request needs the shell's `page-overlay` host, which a stub DOM lacks, so the handler rejects after the fetcher is called; the probe records that and asserts on the request only.)

Both pass at main's own code (checked in the base clone), so they describe the behaviour the respelling preserves. They run in the lone CI form too: no openxFactory module, node only, as `test_gate_loop_probes.py` does.

### The falsifier

**Base measured**: openXdox-code `56e1c238` (origin/main), openDox-code `a9ac96f9` (plain install, `--no-deps`, over openXdox's pin, as R2-INV-P4F did), openxFactory `92010d3e` with `openDox`, `openXdox` and `openXwallet` initialized recursively and its `scripts/` on `PYTHONPATH` (R1Q23 (a)'s form). Python 3.12.3, pytest 8.4.2, the CI install command (`python -m pip install -e ".[test]"`). **Head**: `c3c6a47` (the fix is `f19e05c`; the test file is `c3c6a47`). Run with `FORCE_COLOR`, `CLICOLOR` and `COLORTERM` unset and `TERM=dumb`.

RED at main (`56e1c238`), composed:

```
FAILED tests/test_session_confinement.py::test_the_renderer_presents_the_console_token_from_the_capability_probe
FAILED tests/test_session_confinement.py::test_the_renderer_repairs_a_stale_token_by_re_reading_it_never_by_reloading
2 failed in 0.45s
```

(each: `AssertionError: swb-session.js`, from `'headers: consoleHeaders(caps)' in body` at `:290` and `'withConsoleRepair(send, repair)' in body` at `:383`)

GREEN at head `c3c6a47`, same environment:

```
PASSED tests/test_session_confinement.py::test_the_renderer_presents_the_console_token_from_the_capability_probe
PASSED tests/test_session_confinement.py::test_the_renderer_repairs_a_stale_token_by_re_reading_it_never_by_reloading
2 passed in 0.67s
```

### What else reads `swb-session.js`, and did not move

Every test file in the tree (`tests/test_*.py` and `tests/integration`, named on the command line so the declared exclusion does not drop them), composed as above, run SERIALLY on one idle container with `--continue-on-collection-errors` (`test_gate_console.py` fails to collect in both, for want of `scripts/proposal-support.py`):

| | nodes | failed | errors | passed | skipped |
|---|---|---|---|---|---|
| main `56e1c238` | 3671 | 550 | 94 | 3021 | 6 |
| head `c3c6a47` | 3673 | 548 | 94 | 3025 | 6 |

Compared node by node: the 3671 ids at main all appear at the head, and EXACTLY TWO of them change status, both red to green, the two above. The two extra nodes are the new file's, both passing. Nothing goes green to red.

The suites that read `swb-session.js`, red nodes at main and at the head: `test_gate_loop_probes.py` 0 / 0, `test_renderer.py` 25 / 25, `test_doxbench_save.py` 3 / 3, `test_session_confinement.py` 20 / 18 (the two above), `test_staging_workbench.py` 63 / 63, `test_doxchat_model_intake.py` 10 / 10, `test_doxbench_transport.py` 6 / 6, `test_assembled_bundle.py` 4 / 4, `test_doxbench_scope.py` 1 / 1, `test_gate_loop_views.py` 0 / 0. The three suites the trace names read 28 red on both sides, the same node ids, as the trace's trial found. Earlier pairs, run overlapping and while the container was out of process slots, showed `Resource temporarily unavailable` and `can't start new thread` errors in git-fixture and thread-spawning suites; they were discarded and re-run serially after the container was restarted, which is the pair above.

### Mutants of the fix

Spelling mutants, killed by the pinned nodes (composed, over `test_session_confinement.py`, `test_gate_loop_probes.py`, `test_doxbench_save.py` and `test_renderer.py`, compared with the head's own red set):

| Mutant | Result |
|---|---|
| M1: respell the `headers:` call as `(bound ? bound.consoleHeaders : MODULE_TRANSPORT.consoleHeaders)(caps)` (behaviour kept) | KILLED: both target nodes go red (the stale-token node pins the same headers spelling) |
| M2: respell the return as `(bound ? bound.withConsoleRepair : MODULE_TRANSPORT.withConsoleRepair)(send, repair)` | KILLED: the repairs-a-stale-token node goes red |

Behaviour mutants, which keep every pinned spelling and which only the new file can kill (run composed AND in the lone CI venv, same result in both):

| Mutant | Killed by |
|---|---|
| M3: drop `bound ||`, so the module pair is always used | `test_js_each_built_transport_sends_through_its_own_models_header_and_repair` (1 failed, 1 passed) |
| M4: `MODULE_TRANSPORT.consoleHeaders` calls `withConsoleRepair` | `test_js_a_mounted_form_sends_through_the_mounted_models_header_and_repair` (1 failed, 1 passed) |
| M6: `MODULE_TRANSPORT.withConsoleRepair` calls `consoleHeaders` | `test_js_a_mounted_form_sends_through_the_mounted_models_header_and_repair` (1 failed, 1 passed) |

Before the new file, M3 and M4 survived every committed suite (the finding on the first head).

### Other gates

- **CI form, lone** (`python -m pytest -q --deselect "$LEFT_OUT"` from the root, the CI venv, no `PYTHONPATH`) at `c3c6a47`: `1097 passed, 4 skipped, 1 deselected`; the workflow's triple reads `selected=1101 passed=1097 skipped=4 failures=0 errors=0`, which meets its pins (floors 1099 / 1095, skipped exactly 4, 0 / 0). At `f19e05c` and at main it read 1099 / 1095.
- **Protected suites:** `python3 scripts/protected_suites.py --landings=<both commits> --suites=<the 98 tests/test_*.py at origin/main>` prints `ok: 0 protected edit(s), each entered and holding`, with and without `--chains`. The new file is not in `HOST_PLANE_SUITES`.
- **Already red at main, composed, not from this change:** `tests/test_dependency_direction.py::test_first_attribute_access_refuses_and_names_the_layering` (the T024 writer attributes it to `ideation_dashboard` being importable when composed; I did not trace it); red in both the base and head runs.
- **CI at the head:** `validate` pass and `SonarCloud Code Analysis` pass (2 of 2) at `c3c6a47`.
- **Copilot:** two reviews, one per head. At `f19e05c8` (review 5428398958): 1 finding, that no committed test distinguishes the bound and unbound transports. Fixed by `c3c6a47`; thread answered and resolved. At `c3c6a470` (review 5428827782, COMMENTED, body "Changes recommended"): 2 findings, both on the new file.
  - "the declared one-file scope": this body said one file and "no test is added"; the body is corrected (Files above), the ruling that widened Files is cited, and the thread is answered and resolved.
  - "update the workflow coverage floors": see below. An accepted limit, answered and resolved.
  - 0 unresolved threads at the head. The holder rules on the "Changes recommended" label.
  - Holder ruling #656 `6017860539`: both Copilot findings, the "Changes recommended" label included, are ACCEPTED as they stand; the CI floors are left to T029.
- **At the new head `e8a067f3`** (two update-branch merges of `main`, both merge commits: `3b6cd13b` took T020 #39 `c6d15b27`, then `e8a067f3` took T024 #38 `8b64fae0`): every check-run completed success; Copilot review 5432366190, state COMMENTED, "Approval recommended", `Findings: None` (requested through the reviewer API after about 10 minutes without an auto-review); 3 review threads in all, all resolved, 0 unresolved, none new. Against `c3c6a470` the merges changed only `tests/conftest.py`, `tests/test_host_plane.py` and `scripts/ideation_dashboard/session_git.py`, the files of T020 and T024.
- **SonarCloud:** the `SonarCloud Code Analysis` check passes (quality gate); I did not list individual issues.

### What is NOT done

- **The CI floors are not raised** (`MIN_SELECTED` / `MIN_PASSED` in `.github/workflows/validate.yml`, 1099 / 1095; this PR's head selects 1101 and passes 1097). `validate.yml` is not in T023's Files, plan 038 gives its floors in this repository to no task (T017 and T051 re-pin openDox-code's), and the open sibling PRs that add tests (#39, #40, #41) would collide with this one on the same two lines. Floors are minimums, so the check passes and the margin is two wider than it was. The workflow's own comment says the commit that adds a test SHOULD raise them with the reason; whether and in which PR is for the holder to sequence.
- The other groups of R2-INV-P4F's one-off bucket (H, L, T, W, S) are other tasks.


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 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]>
brettheap added a commit that referenced this pull request Oct 7, 2026
…e identity response shape and the single-writer chains (plan 038) (#1257)

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

**T002, second bookkeeping batch, plan 038: T094 and the slice entries T095 to T104, the identity response shape, the single-writer chains, and the ticks.** Bookkeeping, so this PR carries no `Arc:` line. It touches no `openspec/changes/` path, so no Rule 6 window applies. It began stacked on #1251's head; #1251 has landed (`1837ea75`) and `main` is merged in (`543f6ce1`), so the diff against `main` is this batch alone.

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

- **Task**: T002, "Release-2 base, and the re-measure at the ruling" (landed in #1251; this is its second batch of bookkeeping, the brief of the holder's `T002b`).
- **Realizes**: none (bookkeeping; FR-025). **Falsifier**: T002 names none. Its gates are the brief's, quoted under "Review and gates".
- **Ruled / Decisions**: none of its own. Every item is a ruling already posted on `#656`, or a landing already merged, encoded as worded and cited by comment id or merge commit.

## The items

| # | Where | What changed | Record |
|---|---|---|---|
| 1 | tasks.md: T094, T095 to T104, T073 | T094 ticked, with its result quoted: 436 composed reds over 51 files, outside 12.5's set (Base 2; 533 at Base 1). The `T095+` placeholder becomes ten entries, T095 to T104, each with its slice name, Files, After and Falsifier from R2-INV-R9's outline and the holder's rulings, `Lane: 3 (openXfactory-3)`. T073's After and Files name them. The map's means, the rulings (R9-R1 (a), R9-R2 (a), W1 to W7) and the OQ defaults are recorded once, above the entries | map `R2-INV-R9.md`; `6021830607`; claim `6021862323`; rulings `6021830531` |
| 2 | T095, T101, T104, T097 | T095: the two confirmed departures from OQ-R9-1 (`plane_host_for` untouched, an autouse fixture registers the declared host; `DECLARED_HOST_SUITES` guarded structurally). T101: `tests/declared_exclusion.yaml` for ONE entry (reasons `[doc_health]`, note dropped, the `only` list loses the file, count stays 66). T104: `tests/test_binding_stylesheets.py`, the pin 572 to 574. T097: its served-display respelling is R9-R1 (a) applied | `6022291206`; the T097 line is `6023517122` (the holder confirmed the citation, `6026622117`) |
| 3 | plan.md: the single-writer table; tasks.md Files and After lines | W7's chains: `tests/conftest.py` T020, then T021 and T026 in landing order, then T095, T073, T074; `tests/test_host_plane.py` T020, T026, T095; `declared_exclusion.yaml` T101, T073, T074; the four T074 test files T103 then T074; the census T025, T104, T015, T016, T057 (the row splits, so `test_web_boundary.py` keeps its own chain). T015's and T074's After gain T104 and T103 | `6021830531`, `6022291206` |
| 4 | tasks.md: T072, T074, T075 falsifiers | The four folds of #1253, in the arc change's own wording: T072 asserts that ONLY CR, LF and CRLF split rows; T074's seam tests assert that an empty-seam read names the seam AND its registrar; T075's host-wiring test shows a leg declaring only SOME of the four seams refused, and a leg declaring the six and none of the four accepted; T074's protected-suite oracle computes 12.5's set as 12.5 does (`git grep -l -e 'open-pr' -e 'open_pr' -e 'FakePullRequests'`), from the pre-arc and the final tree, the floor of 16 on each, and takes the union | openxFactory#1253 to `fc4fa0ff`; Copilot `5427373153` |
| 5 | spec.md FR-011; tasks.md T041 | FR-011's JSON shape gains `identity`, emitted and bounded as openDox-spec's finding schema bounds it (no `excerpt`, `text`, `content` or `quote` key, no number, strings of at most 200 characters, `{category, entry}` for a pathless finding, `{collided_id}` for a collision). T041's falsifier gains a response-shape test asserting exactly that bound. The coverage row for FR-011 names T041. The serialized-size cap was already T041's at the base (T041's text says so, and T042 "stores what T041 bounds"), so nothing moved | holder `6018624750` |
| 6 | tasks.md ticks | T011, T014, T021, T023, T025, T026 and T060 ticked, T070's tick gains #1253, and T002's own landing is recorded. Each merge commit was verified with `gh pr view <n> -R <repo> --json mergeCommit` (listed below) | the landings |
| 7 | tasks.md: T072 | A Files line (`src/opendox/lines.py`, `tests/test_lines.py`); the Ruled line gains `6023517122`: `head_sha` (a), its own public `head_sha` parity-tested against `serve._head_of`, `serve.py` untouched; the line split (a), `doxbench_defaults.py` untouched. Folding either private helper is recorded as unscheduled and optional, and is not scheduled | holder `6023517122` |
| 8 | contracts/health-finding.md:91 | The sentence reads: a stored `identity` makes a cross-run collision between STORED findings detectable; an exception-only finding is never stored; whether the engine reports it remains T046's concern. Nothing else on the line changed | holder `6018624750`; Copilot `5433292692` |
| 9 | plan.md; tasks.md | Copilot's three items at #1251's head `1eb8e9eb`, accepted by the holder at its landing: (a) the pin and landing-order row for T073 names T005 and T095 to T104 as prerequisites, and `T095+` reads T095 to T104 at the critical path, the lane table and the revision note; (b) the combined `conftest.py` and `test_host_plane.py` row splits, and the cross-lane summary gains T026 (and the other chains of item 3); (c) the same split in T020's, T021's and T026's Files lines | holder replies `4201056969`, `4201057311`, `4201057577`; READY note `6026651962` |

### The ticks, verified

| task | pull request | merge commit | merged |
|---|---|---|---|
| T011 | opensoft/openDox-code#92 | `09b8d44a` | 2026-10-06T19:15:55Z |
| T014 | opensoft/openDox-code#93 | `a7a1c4d3` | 2026-10-06T22:23:06Z |
| T021 | opensoft/openXdox-code#40 | `f70bc9c3` | 2026-10-06T19:07:10Z |
| T023 | opensoft/openXdox-code#42 | `d45a0939` | 2026-10-06T17:45:33Z |
| T025 | opensoft/openDox-code#91 | `84f8ed83` | 2026-10-06T17:33:31Z |
| T026 | opensoft/openXdox-code#43 | `36bbef79` | 2026-10-06T22:35:40Z |
| T060 | opensoft/openDox#20, the tag `dox-v1.2` (tag object `58538ff3`, on `6a9f4902`), opensoft/openDox#21 | `6a9f4902`, `c7f75845` | 17:46:59Z, tag 17:58:45Z, 19:02:39Z |
| T070 | openxFactory#1253 (T070b, added to its tick) | `fc4fa0ff` | 2026-10-06T18:56:42Z |
| T002 | openxFactory#1251 (its own landing) | `1837ea75` | 2026-10-06T22:31:42Z |

- **T021** landed with Copilot r4199337845 an ACCEPTED LIMIT (holder READY note `6023492215`); T021's entry records it.
- **T025's** entry says its 34 nodes are "quoted at T029"; that stays T029's, and the entry says so.
- **T011's** server node is T014's, as its own Falsifier says.

**Skipped, because already present at the base:** T020's and T024's ticks (#1251 item 13) and T004's tick (#1245, `260234b5`), all confirmed with `git show <commit>:<tasks.md> | grep`.

**T071 is NOT ticked.** Brett's word, "Ratify it (Recommended)" (`#656` `6023375303`), is recorded on T071's entry, but the change's ratification-record PR has not landed (no such PR is open or merged on `opensoft/openxFactory` at this writing). The box stays open.

## Readings the holder accepted (`6026622117`), disclosed as the brief requires

- **W7 omits T026 from the openXdox-code chains.** The single-writer table keeps T026 where its own ruling (`6016648451`) puts it, and lane 3's claim (`6021862323`) says T026's PR lands before T095. So the conftest chain reads T020, then T021 and T026 in landing order, then T095, T073, T074; and `test_host_plane.py` reads T020, T026, T095, as W7 gives it with T026 added.
- **R9-R2's last sentence** ("If the re-scoped test runs alone, it leaves the declaration, and the count moves with it, as the declaration's own rules require") is recorded in T100 as worded. `declared_exclusion.yaml` is NOT added to T100's Files: the holder's file list at `6022291206` names it for T101 only.
- **Edits outside tasks.md**, ruled in scope as each item names its place: plan.md (items 3, 9), spec.md FR-011 (item 5) and `contracts/health-finding.md:91` (item 8).

## Other notes on where an item needed a reading

- **Counting.** The task count reads 90 rows: the placeholder `T095+` is replaced by T095 to T104 (81 - 1 + 10).
- **Plan 034's task numbers.** The entries cite plan 034's T103 (#80, in T099's `Host` header) and plan 034's T086 (W2, in the rulings) as "plan 034's", because plan 038 now has its own T103.
- **OQ-R9-3.** The map did not measure the respelled gate-console and wheel-model skips; T097 and T103 say so, and the map's 127 passed and 5 skipped is quoted as the measurement.
- **Counts of slices** are copied in the map's own form (for example "16 nodes, and +5 on R9-R1 (a)"), not summed.
- **T095's chain after T026.** T095's After names T021 and T026, both landed.
- **Not mirrored from the arc's 4.1:** T075's falsifier gains the some-of-four refusal and the six-and-none acceptance, which #1253 folded. The arc's two older refusals (part-way through the seams; at the column call) are not in T075, since #1253 did not add them.
- **T046 and T057** carry no response-shape falsifier for `identity`: item 5 names T041's.

## Review and gates

- **`python3 scripts/validate-openspec-cli-pin.py --all`**, in the clone named `openxFactory`, at `691648c6`: 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.** The full local run was stopped at about 44% at a coordinator drain, so it is NOT a result and is not claimed. The repository's own gate, `pytest-suite` in CI at `691648c6`, completed `SUCCESS` (2026-10-06T23:32:38Z to 23:58:56Z).
- **Doc-health**, `scripts/doc-health.py --single-repo . --as-of 2026-10-07`, branch `691648c6` against `origin/main` `0992369a` in the same clone: the two reports are byte-identical (sha256 `ce17aadd6d96e484170e2ec4784e44972e33c7d1a6c65830ea14a1035f2ae976`; `Findings: 31 critical, 26 error, 69 warning, 20 info. New regressions vs previous report: 0.`). So no new error.
- **CI at `691648c6`**: all 14 check runs are `SUCCESS` (rollup `SUCCESS`): `pytest-suite`, `merge-master-approval` (the red inherited from `main` since #1252 was cleared by #1138), `openspec-cli-pin`, `doc-health-py314`, `openxdox-consumer-gate`, `wallet-validation`, `clearing-dispatch-gate`, `signed-execution-chain-gate`, `former-id-arrival-gate`, `release-tag-gate`, `openreposhape-pin`, the two `lane-line` runs and SonarCloud.
- **`main`** has moved to `0992369a` since the last merge (`543f6ce1`). GitHub reports this PR `MERGEABLE`, and the ruleset is not strict, so `main` is not merged in again (a merge would restart the 27-minute gate).

| Copilot at | verdict | findings | answered |
|---|---|---|---|
| `691648c6` (final; review `5435686665`) | Changes recommended | 1 (thread `4201443690`): T041's falsifier cannot verify what T046's `health list --json` and T057's HTTP route emit; the review summary adds that the new T095 to T104 collide with plan 034's task numbers cited unqualified at `spec.md:662`, `spec.md:1222` and `clarify-questions.md:437` | accepted limit (#656 `5988818366`): plan-record accuracy, not a bypass, and the T041 placement is the holder's own instruction (item 5). Answered (`4201487553`) and resolved |

1 thread, 0 unresolved. The holder ruled both points YES at `6027706377` and has them encoded in a THIRD batch, not here: the `identity` falsifier split across T041, T046 and T057, and the plan 034 references qualified. This PR therefore carries T041's wording as the brief gave it.

## Files changed

- `specs/038-opendox-document-tool-self-maintenance/tasks.md`, `plan.md`, `spec.md`
- `specs/038-opendox-document-tool-self-maintenance/contracts/health-finding.md`

## What is NOT done

- T071 stays open (its ratification record has not landed). No box of #1144 is ticked, and no task other than those listed is ticked.
- No scenario or spec delta beyond FR-011's JSON-shape bullet is touched, and nothing is under `openspec/changes/`. `README.md` is untouched.
- The T095 to T104 entries record the slices; none of their work is done here.

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