Skip to content

Record worker auth memory operations readiness - #27

Merged
brettheap merged 2 commits into
mainfrom
feat/live-factory-worker-ops-readiness
Jun 26, 2026
Merged

brettheap merged 2 commits into
mainfrom
feat/live-factory-worker-ops-readiness

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Summary

  • mark CloudPC worker, auth, memory, and operations tasks complete
  • add evidence for worker lane scale-out, subscription auth profile rules, Plan A credential restore, agentmemory, GBrain/Honcho docs, DR, and no-secret checks

Tests

  • OPENSPEC_TELEMETRY=0 openspec validate enable-live-openworkflow-factory --strict
  • OPENSPEC_TELEMETRY=0 openspec validate --all --strict
  • git diff --check
  • ./scripts/smoke-cloudpc-deployment-plan.sh (Omnigent-Install)
  • ./scripts/smoke-worker-lane-config.sh (Omnigent-Install)
  • ./scripts/smoke-phase8-scaleout.sh (Omnigent-Install)
  • ./scripts/smoke-phase9-operations.sh (Omnigent-Install)
  • ./scripts/smoke-no-committed-secrets.sh (Omnigent-Install)
  • ./scripts/smoke-agentmemory.sh (Omnigent-Install)
  • ./scripts/smoke-plan-a-credential-install.sh (Omnigent-Install)

Copilot AI review requested due to automatic review settings June 26, 2026 05:51

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@brettheap
brettheap merged commit 10a85a3 into main Jun 26, 2026
@brettheap
brettheap deleted the feat/live-factory-worker-ops-readiness branch June 26, 2026 05:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Marks Phase 8 (“CloudPC Worker, Auth, Memory, And Operations”) as complete for the enable-live-openworkflow-factory change and adds accompanying evidence + merge readiness documentation for local/dry-run operations readiness.

Changes:

  • Check off Phase 8 tasks in the change task list.
  • Add Phase 8 evidence covering worker pack/lane scale-out, auth profile restore/no-secrets posture, memory helper boundaries, and operations/DR smoke coverage.
  • Add a merge readiness report for PR #27 including acceptance criteria coverage and warnings about optional live auth probes.

Reviewed changes

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

File Description
openspec/changes/enable-live-openworkflow-factory/tasks.md Marks Phase 8 readiness tasks as completed in the change checklist.
openspec/changes/enable-live-openworkflow-factory/evidence/phase-8-worker-auth-memory-operations.md Adds Phase 8 evidence for worker/auth/memory/ops readiness, including commands run and results.
openspec/changes/enable-live-openworkflow-factory/evidence/merge-readiness-openworkflow-pr-27.md Adds merge readiness report documenting AC coverage and warnings for PR #27.

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


## Known Caveat

Live Claude/Codex auth probes were not forced in this slice. The operation smoke reports:

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b31518079

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- [x] 8.2 Verify auth profile restore/onboarding runbooks avoid committed secrets.
- [x] 8.3 Verify worker memory rules treat memory as context, not canonical truth.
- [x] 8.4 Verify operations and DR smoke sequence is documented.
- [x] 8.5 Record operations readiness evidence.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Record stop-condition checks before closing Phase 8

Marking the evidence task complete closes the Phase 8 slice, but the new evidence file does not include the explicit stop-condition check required for every slice by openspec/changes/enable-live-openworkflow-factory/design.md lines 28-35. This matters especially for this phase because the stop conditions include secret leakage and shared writable auth homes; final validation/archive can now treat worker/auth operations as complete without those release-blocking checks being recorded.

Useful? React with 👍 / 👎.

brettheap pushed a commit that referenced this pull request Jul 22, 2026
…on) + §4 realization record

Register the possibles-register AI-derivation intake delta as the additive
contract-v1.14 bundle: manifest bump + the kernel's first manifest entry
(per-file sha256, delegated-validator consumption rule), CHANGELOG release
entry, contracts/README doc-index row, and the release digest inventory
(179 entries). Check change tasks 2.6 and 4.1-4.4 with realization evidence
(codexFactory PRs #25/#27, Omnigent-Install PR #22, xFactory child
workflow); update the README OpenSpec Records entry to 18/20 — remaining:
5.1's WHEEL edge-class styling + first-lane-run evidence, and 5.2 records.

Co-Authored-By: Claude Fable 5 <[email protected]>
brettheap pushed a commit that referenced this pull request Aug 27, 2026
…o tests that asserted nothing

All nine non-satisfied audit rows are closed. Suite 1077 -> 1115.

THE MUTATION ROUND EARNED ITS PLACE. Thirty perturbations; two of them killed
no test, and both were real:

- #15 stripped the backticks from `contract-v1.45` in BOTH canon and the block.
  `test_no_unit_boundary_falls_inside_a_versioned_token` SURVIVED, because it
  only asserted the token was ABSENT from the ledger — and when a boundary moves
  on both sides at once, the two halves still match, nothing is reported, and
  the negative assertion holds. A negative cannot see a symmetric break. The
  test now asserts POSITIVELY on canon's own derivation: each of the three
  tokened sentences is exactly ONE body unit with its whole token inside it.
- #29 dropped the `kinds` filter from `_units`. Every U-class test SURVIVED,
  because each re-filters by kind afterwards. Added
  `test_the_u_class_helper_reads_the_same_set_as_the_ledger_arm`, which parses
  the arm's OWN stated numerator and denominator out of the finding it emits
  ("does not carry N of the M body units") and requires `_units` to agree —
  measured 17 of 28 on #329 where the unfiltered helper gives 24 of 36.

After both fixes: 28 of 30 mutants killed, 0 survivors. The two N/A rows are
pure test-body assertions with no fixture to perturb, and are recorded as N/A
rather than counted as kills.

ROWS CLOSED

- A3 § 3.3, the one TRUE hole — `merge-gut`. A four-bullet scenario merged
  away with two bullets carried: the ledger names exactly the two uncarried,
  the scenario arm is quiet, no marker defect. The companion declares those two
  in a `Removed from canon` marker (one of them cites `openxFactory`, so its
  span needs a longer fence) and goes silent — and the silence is PROVEN caused
  by removing the marker and watching the noise return.
- A5 § 3.4 — prefix and both-ends widening (T033), plus the real #351 instance
  end to end (T014).
- A6 § 3.5 — `tokens`: `.openspec.yaml`, `promotion_fidelity.py` and
  `contract-v1.45` (period between digits, the shape F1 lacked), a three-item
  bullet list, and a FOUR-sentence dated note restated with its THIRD sentence
  amended, reported ONCE.
- A7 § 3.6 — `rewrap`: a complete restatement re-wrapped at varying widths,
  one paragraph mid-sentence and one bullet after its `**THEN**`. Returns [],
  and is shown NOT skipped.
- A10 § 3.7c — the form anchor read off the REAL packet file: its two `- `
  template bullets are not marker-form. This is what the row claimed and
  nothing asserted.
- A11 § 3.7d — `fence`: the same clause named with a double-backtick fence
  (suppresses the whole unit) and with a single backtick (names a fragment,
  suppresses nothing, clause reported). The pair is what makes the rule
  falsifiable.
- A15 § 3.10 — `name-order`: `add-zz-first` DECLARES and is therefore the later
  writer while sorting LAST by name. The finding lands on its path and names
  `add-aa-second`'s DELTA as the basis, so the substitution is visible in the
  finding. Under name-ascending ordering the roles invert and the test fails.
- A18 § 3.13 — determinism over all thirteen trees, non-empty first.

ONE TASK EXPECTATION WAS WRONG AND IS CORRECTED, not worked around: tasks.md
T042 predicted the single-backtick marker would ALSO be reported as a marker
defect. It is not, and should not be — the delta reports a marker only where it
names a unit the block STILL CARRIES; a name matching no canon unit declares
nothing and is silent, per `suppression()`'s three-way resolution. The test
asserts the correct behaviour and the fence README explains why.

NO MODULE CHANGE. `git diff --stat <merge-base> -- scripts/ openspec/ .github/`
is empty. Mutants #26, #27 and #30 edit the module deliberately and are reverted
in the same working step, never committed.

Co-Authored-By: Claude Opus 5 <[email protected]>
brettheap added a commit that referenced this pull request Aug 27, 2026
#329 reconstructed from history, nine audit gaps closed, no behaviour added (#426)

* Speckit F2 specify: the regression-fixture catalogue is an audit first, then six gaps

`add-modified-block-currency-check` § 3 (3.1-3.13) is this feature's whole
scope. F1's implementation review found F1 already realizes every scenario of
the ratified delta with a test, so F2 is an AUDIT of those 97 tests against
§ 3 item by item, plus RED-first tests for what the audit finds gapped — and
no behaviour added to the module.

The two histories § 3.1 and § 3.2 ask for were VERIFIED RECOVERABLE before
this spec was written, and both reconstructions were run through the family:

- #351 — `add-doxchat-model-intake`'s pre-repair block and the canon of
  2026-08-25, both at bcfc26a (parent of the repair f68261f, merged
  87d0b95 / PR #358). The scenario arm names exactly `The menu offers a
  routing rule` and `A fourth provider verb is proposed`; the ledger carries
  the repair commit's clauses, the reverted `every loaded editor` line, and
  canon's badges bullet — which the block's replacement contains verbatim as
  a strict prefix, the REAL instance of the widening mechanism.
- #329 — `add-release-inventory-drift-check`'s pre-archive delta and canon,
  both at d5f447e (parent of the archive 38b548d, merged b03b999 /
  PR #331). One of eight scenarios restated, seven brought by its own ADDED
  requirement, file-level count flat at eight on both sides, seven titles
  named.

Nothing needs synthesizing for 3.1 or 3.2. Zero [NEEDS CLARIFICATION]: every
candidate ambiguity is settled by the packet, the delta, an orchestrator
decision or measured evidence, and each is recorded in Assumptions A1-A9 with
what settles it. A1 and A2 are the two that shape every assertion — the
human's "six clauses" live inside THREE normative sentence units, and the
rendered ledger truncates each unit, so full clause text is asserted on the
units the comparison returns rather than on the rendered string.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Speckit F2 plan: 18 audit rows over 14 items, and both histories recovered before the plan was written

`contracts/coverage-audit.md` is the deliverable of this phase and the single
home for the § 3 -> F1-test mapping. Taken from the LANDED test file, not from
F1's plan, its hand-off, or its spec's Out of Scope, all three of which
disagree about what F1 covers (research R10; the hand-off wins, being later
and consistent with decision D4).

18 rows for 14 items — § 3.7 carries eleven distinct obligations and needs
five of them. 10 satisfied, 1 satisfied-and-extended, 4 partial, 3 gapped.
Six new fixture trees and two unit-level assertions close the seven
non-satisfied rows.

Measured, not assumed (research R2), by building both reconstructions and
calling the family on them:

- fixture A (#351 @ bcfc26a): 2 findings. One `warning` naming exactly
  `The menu offers a routing rule` and `A fourth provider verb is proposed`;
  one `info` listing 11 of canon's 25 units — 3 body sentences carrying the
  repair commit's five body clauses, the reverted `every loaded editor` line,
  the drifted hosted-plane line, and canon's badges bullet, which the block's
  replacement contains as a STRICT PREFIX. That last is § 3.4's mechanism in
  the real history, and F1 had no end-to-end case for it.
- fixture B (#329 @ d5f447e): 2 findings. One `warning` naming all seven
  omitted titles; one `info` listing 17 of 28 units. Canon 8 scenarios, delta
  FILE 8 scenarios, fires anyway.

Two readings that shape every assertion, both promoted to research items
rather than left to the implementer: § 3.1's "six body clauses" are five
human-named clauses lying inside THREE normative sentence units (R3), and the
ledger truncates each unit at 140 characters, so full clause text is asserted
on the units the comparison returns and the rendered finding is asserted on
its quoted prefixes (R4). `data-model.md` § 4 makes that the U/F assertion
discipline every test obeys.

Four decisions taken here and flagged for veto beside the five given: O1 one
new test file rather than growing F1's 1400-line one; O2 the re-spelled
finding classifiers pinned by a PARTITION invariant instead of a cross-file
import; O3 a reconstruction freezes the REQUIREMENT verbatim, not the 279 KB
file; O4 the delta side is copied WHOLE, because § 3.2's flat count lives in
its ADDED section.

Constitution gate IV caught one real violation while running: quickstart.md
carried a host-absolute worktree path. Rewritten repo-relative.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Speckit F2 tasks: 61 tasks, 28 of them tests, and a two-stage RED for the assertions that carry the feature

RED-first is the point of this feature, so the convention is written down
rather than assumed. A fixture test written before its fixture fails by ERROR,
which proves nothing about the assertion — so the rows that carry the feature
use a two-stage RED: stage 1 the test errors with no fixture; stage 2 the
fixture is built and then PERTURBED in the one way that matters (the omitted
scenario restored, the widened bullet replaced by canon's, the gutted merge
bullets carried, the note's third sentence un-edited, a re-wrapped paragraph
altered) and the test must fail on its ASSERTION. T058's mutation round
re-runs every stage 2 mechanically.

Two tasks record honestly that they have NO pre-state RED — T033's containment
widenings and T051's scope snapshot are green the moment they are written, so
their evidence is the mutation round and the task says so instead of claiming
a RED that did not happen.

Phase order follows the audit's severity rather than § 3's numbering: US1 the
two reconstructions (MVP, and a legitimate terminal state), US2 the audit
(independent of every fixture, so it can go first if the reconstructions
stall), US3 the merge-gut — the one TRUE hole, where a refactor could silently
permit an undeclared bullet deletion — then US4's four narrowings, then US5.

T053 is an OPEN DEFECT SLOT, per orchestrator decision D1: if a fixture found
the family behaving other than the ratified delta states, it gets its own task,
its own RED and its own PR line as a defect, never a fixture adjustment. If
nothing fired the task says so and says what was checked.

T052 makes D1 mechanically checkable — `git diff --stat origin/main --
scripts/ openspec/ .github/` must be empty — and T002 blocks everything on the
base still being unmoved, because an audit of a file that has since moved is
worse than no audit.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Speckit F2 analyze: zero CRITICAL, six findings, and the validation guide validated nothing

The pass earned its keep on F1. Four of `quickstart.md`'s `-k` selectors were
written on TREE names — `history_351`, `history_329`, `merge_gut`,
`containment` — none of which appears in any test name tasks.md writes. Every
one of those commands would have selected zero tests and exited 5, so the guide's
three most important steps validated nothing. Selectors rewritten against the
real names, and T056 now checks that each picks a non-zero count.

F2 is the defect this repo keeps paying for, caught in its own plan: plan.md
carried a second inventory of test NAMES, five already drifted from tasks.md's
spelling and four tasks.md tests missing from it. The inventory is deleted;
tasks.md is the one home for the figure (62 tasks, 29 [TEST], 30 functions).

F4 is the one that mattered most for correctness. FR-002 and FR-008 were
carried only by T059's prose, and FR-002's other half — that a `satisfied`
verdict is ACTUALLY satisfied — was checked by nothing: T024 proves a cited
test name exists, not that it asserts what the row claims. T059 is now four
numbered concrete steps, including a spot-check of every one of the ten
`satisfied` rows against the cited test body, and FR-008's count check as a
literal grep with a declared exception list.

F6: T037's "RED stage 2" asserted that a test STILL PASSES, which is not a RED.
It conflated two properties — the mask governs where units END, and says
nothing about whether two units are equal. T034 and T036 each get a real stage
2 (strip the backticks from `contract-v1.45`; un-edit the note's third
sentence), and the conflated property becomes T037a.

F3 and F5 are small: US2's acceptance covered `gapped` but not `partial`
although four rows are partial, and T022 left `<repo root>` unexpanded.

Recorded and NOT fixed, because it cannot be: the audit's ten `satisfied`
verdicts rest on a human reading of F1's test bodies. If one is wrong, this
feature ships a hole it believes it closed. plan.md says so in those words.

Also recorded: origin/main advanced nine commits since the 19e3f6b branch
point, and the diff over every audit input is EMPTY, so the base holds. Not
rebased. T002 re-runs that diff before any other task.

Suite unchanged at 1077 — nothing is implemented this round, by instruction.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Plan review fixes: two of my own `satisfied` verdicts were wrong, and I quoted a hedge the packet does not contain

Seven blockers and sixteen nits from the coordinator's plan review, all applied.
Two of them are findings against this feature's own audit, and both are the
exact failure its closing note predicted — a row citing a test whose NAME
matched the obligation and whose BODY did not discharge it.

B6 — A15 (§ 3.10) re-verdicted `partial`. F1's cited
test_no_date_folder_or_created_field_decides_the_ordering says in its OWN
docstring that its fixture "sorts BEFORE … by name and by any date a fixture
could carry, and the declaration points the same way", so it cannot be the test
§ 3.10 asks for; its structural grep forbids date readers and forbids NOTHING
about folder or change-id name, which the delta prohibits in the same breath.
A build sorting the ratified group by b.change passes every F1 test. New tree
`modified-block-currency-name-order` + T043a/T043b: `add-zz-first` is the
DECLARER and therefore the later writer, so it sorts LAST by name and the test
fails under name-ascending ordering. Test-only.

N8 — A10 (§ 3.7c) re-verdicted `partial`. Its cell claimed "the anchor is
asserted against this packet's OWN delta prose" and nothing was: F1's
fenced-example test asserts over a fenced block written in its own test body,
and the packet sets its two templates out as `- ` BULLETS, which are carriage
units the fenced exemption never reaches. T043c reads the real file.

B4 — research.md and plan.md QUOTED § 3.2 as hedging "reconstruct … if
recoverable, else synthesize faithfully and say so". grep over the ratified
packet finds no such words; the phrasing came from the session brief. Removed
everywhere, attributed to decision D2 where it lives, and T021 reworded so the
fixture README states the true history positively — caught pre-commit,
rewritten inside archive commit 38b548d, recoverable at its parent d5f447e —
instead of denying a revert no ratified document asserted.

B7 — measured the classifier collision rather than assuming O2 worked: the
obvious key `"declaration"` matches 3 findings across TWO classes (one marker
defect, both blocks of the mutual-declaration pair). T008 now names five keys,
each a fragment of one arm's f-string, verified to partition all 24 findings
over the eight trees with none in two classes and none in zero.

B3 — ten tests had no stage-2 perturbation and T058's prose list never reached
them. T011's evidence line now names five perturbations for five tests, and
T058 is a 30-row table: perturbation, test that MUST fail. Rows 27 and 30 touch
scripts/ and say so — applied in the working step, never committed.

B1 — the audit cited a whole superseded task numbering after tasks were
renumbered. Every last-column id re-mapped and verified to exist; T023 now
checks task-id VALIDITY and the verdict tallies, not just item coverage.

B2 — T024 and quickstart § 6 harvested `test_[a-z0-9_]+` over the whole audit,
which eats the MODULE basename `test_modified_block_currency` from the prose
path: permanently red, and T004 would have sent the implementer to "fix the
audit" for a defect in the harvester. Backticked spans only, plus a >30 floor
so a regex matching nothing cannot pass.

B5 — the provenance template could not satisfy T044: the SHA sat on line 42 and
line 3 read "Not synthesized". SHA hoisted into line 3; T044's SYNTHESIZED
match is case-sensitive and whole-word; "two lines" vs "three" reconciled.

Nits: real byte sizes (228,041 and 50,505, not "279 KB … comparable"); f68261f
CLAIMS six body clauses and NAMES five, so the five named are what is asserted;
`_units` mirrors the ledger's kind filter (unfiltered gives 24/36 on #329 vs
the ledger's 17/28); T058 not T060 is the mutation round; T037 out of the [TEST]
list; the count-exception list gets ONE home in data-model.md § 4 with T035's
"exactly two body units" added; quickstart § 4 selector reaches T037a and the
new tests; T022 discriminates shallow-vs-disagree with `git rev-parse
--is-shallow-repository` per test_ideation_readiness.py; A12 clause 7's silence
comes from whole-scenario suppression, not from the survivor; T051 drops its
duplicate of F1's FAMILY_NOTES assertion; T049/T050 assert non-empty first; the
nine-commit figure is re-measured at T002 rather than quoted.

N11 — F1's four residues (plus a docstring that undercounts its own fixture)
appended to specs/019-modified-block-currency-family/tasks.md, which is where
F1's owner reads. No issue filed.

Audit now: 18 rows, 8 satisfied / 1 extended / 6 partial / 3 gapped; nine rows
for F2 to close. 66 tasks, 31 [TEST], 32 test functions, seven new trees.

Co-Authored-By: Claude Opus 5 <[email protected]>

* F2 phases 1-3: #351 and #329 frozen in their own text, and nine mutants killed

The two defects that motivated `add-modified-block-currency-check` can no longer
regress silently. Both fixtures are REAL TEXT recovered from this repository,
not shapes:

- #351 @ bcfc26a (parent of the repair f68261f, merged 87d0b95 / PR #358).
  One `warning` naming exactly `The menu offers a routing rule` and `A fourth
  provider verb is proposed`; one `info` listing 11 of canon's 25 units.
- #329 @ d5f447e (parent of the archive 38b548d, merged b03b999 / PR #331).
  One `warning` naming all seven omitted titles; one `info` listing 17 of 28;
  canon 8 scenarios and delta FILE 8 — flat, and the family fires anyway.

`test_the_reconstructed_fixtures_are_the_history_they_claim` re-derives both
from git rather than trusting the files: the delta side byte-for-byte, the canon
side scoped to the requirement section, with shallow-vs-disagree told apart by
`git rev-parse --is-shallow-repository` per test_ideation_readiness.py.

STAGE-2 RED EVIDENCE — nine perturbations applied, each named test failed, all
reverted; no mutant survived:

  1 restore `The menu offers a routing rule` into the 351 block -> T010 failed
  2 delete the broker-lane sentence from the 351 CANON           -> T012 failed
  3 restore `every loaded editor MUST remain usable`             -> T013 failed
  4 un-widen the 351 badges bullet to canon's verbatim           -> T014 failed
  5 rename the 351 fixture repo dir                              -> T015 failed
  6 corrupt one byte of the 351 delta fixture                    -> T022 failed
  7 restore one omitted scenario into the 329 block              -> T017 failed
  8 add an eighth scenario to the 329 delta FILE                 -> T019 failed
  9 carry canon's `Four of the seventeen` sentence in the block   -> T020 failed

T014 closes audit row A5(b) on the REAL instance: canon's badges bullet is a
strict PREFIX of the block's replacement, and the test checks that prefix
relation in its own body rather than claiming it in a docstring — so a fixture
edit that broke the premise cannot leave the test passing while testing nothing.
That is the packet's § 6.4 residue, the finding PR #358's manual verification
reported, and F1 had no end-to-end case for it.

Phase 2's harness carries decision O2's partition invariant, and it is measured
rather than assumed: `test_the_naive_declaration_key_would_collide` records as
an executable fact that keying the marker class on `"declaration"` reaches the
mutual-declaration ORDERING finding too, so a later session cannot "simplify"
the five keys back into a collision.

`_units` mirrors `_arm_ledger`'s kind filter, without which a U-class assertion
reads 24 of 36 on #329 where the ledger reads 17 of 28.

Suite 1077 -> 1089. The one RED remaining is deliberate:
test_the_tree_enumeration_finds_every_tree requires all seven new trees and
five are still to come.

Co-Authored-By: Claude Opus 5 <[email protected]>

* F2 phases 5-8: seven trees, 38 tests, and the mutation round found two tests that asserted nothing

All nine non-satisfied audit rows are closed. Suite 1077 -> 1115.

THE MUTATION ROUND EARNED ITS PLACE. Thirty perturbations; two of them killed
no test, and both were real:

- #15 stripped the backticks from `contract-v1.45` in BOTH canon and the block.
  `test_no_unit_boundary_falls_inside_a_versioned_token` SURVIVED, because it
  only asserted the token was ABSENT from the ledger — and when a boundary moves
  on both sides at once, the two halves still match, nothing is reported, and
  the negative assertion holds. A negative cannot see a symmetric break. The
  test now asserts POSITIVELY on canon's own derivation: each of the three
  tokened sentences is exactly ONE body unit with its whole token inside it.
- #29 dropped the `kinds` filter from `_units`. Every U-class test SURVIVED,
  because each re-filters by kind afterwards. Added
  `test_the_u_class_helper_reads_the_same_set_as_the_ledger_arm`, which parses
  the arm's OWN stated numerator and denominator out of the finding it emits
  ("does not carry N of the M body units") and requires `_units` to agree —
  measured 17 of 28 on #329 where the unfiltered helper gives 24 of 36.

After both fixes: 28 of 30 mutants killed, 0 survivors. The two N/A rows are
pure test-body assertions with no fixture to perturb, and are recorded as N/A
rather than counted as kills.

ROWS CLOSED

- A3 § 3.3, the one TRUE hole — `merge-gut`. A four-bullet scenario merged
  away with two bullets carried: the ledger names exactly the two uncarried,
  the scenario arm is quiet, no marker defect. The companion declares those two
  in a `Removed from canon` marker (one of them cites `openxFactory`, so its
  span needs a longer fence) and goes silent — and the silence is PROVEN caused
  by removing the marker and watching the noise return.
- A5 § 3.4 — prefix and both-ends widening (T033), plus the real #351 instance
  end to end (T014).
- A6 § 3.5 — `tokens`: `.openspec.yaml`, `promotion_fidelity.py` and
  `contract-v1.45` (period between digits, the shape F1 lacked), a three-item
  bullet list, and a FOUR-sentence dated note restated with its THIRD sentence
  amended, reported ONCE.
- A7 § 3.6 — `rewrap`: a complete restatement re-wrapped at varying widths,
  one paragraph mid-sentence and one bullet after its `**THEN**`. Returns [],
  and is shown NOT skipped.
- A10 § 3.7c — the form anchor read off the REAL packet file: its two `- `
  template bullets are not marker-form. This is what the row claimed and
  nothing asserted.
- A11 § 3.7d — `fence`: the same clause named with a double-backtick fence
  (suppresses the whole unit) and with a single backtick (names a fragment,
  suppresses nothing, clause reported). The pair is what makes the rule
  falsifiable.
- A15 § 3.10 — `name-order`: `add-zz-first` DECLARES and is therefore the later
  writer while sorting LAST by name. The finding lands on its path and names
  `add-aa-second`'s DELTA as the basis, so the substitution is visible in the
  finding. Under name-ascending ordering the roles invert and the test fails.
- A18 § 3.13 — determinism over all thirteen trees, non-empty first.

ONE TASK EXPECTATION WAS WRONG AND IS CORRECTED, not worked around: tasks.md
T042 predicted the single-backtick marker would ALSO be reported as a marker
defect. It is not, and should not be — the delta reports a marker only where it
names a unit the block STILL CARRIES; a name matching no canon unit declares
nothing and is silent, per `suppression()`'s three-way resolution. The test
asserts the correct behaviour and the fence README explains why.

NO MODULE CHANGE. `git diff --stat <merge-base> -- scripts/ openspec/ .github/`
is empty. Mutants #26, #27 and #30 edit the module deliberately and are reverted
in the same working step, never committed.

Co-Authored-By: Claude Opus 5 <[email protected]>

* F2 closing: the audit is self-checking, T053 fired nothing, and two verdicts of my own were wrong

All 66 tasks complete. Suite 1077 -> 1115 (+38). `openspec validate --all
--strict` 75/0, unchanged. Scope diff against the merge-base: empty.

THE AUDIT NOW READS ITSELF. Three tests in the new file open
contracts/coverage-audit.md and fail on it: every backticked test name it cites
must be defined (floor of thirty harvested, so a regex matching nothing cannot
pass); all fourteen § 3 items must appear in the `§ 3 item` column with exactly
one bolded verdict per row and the four tallies matching the row bodies; and
every T0NN in the last column must exist in tasks.md. That third test exists
because this audit shipped once citing a whole superseded task numbering.

Appending the closing ledger broke two of those three immediately — the ledger
cites F2's own tests, and its table repeats the row ids with unbolded verdicts in
a different layout, so the harvest and the row count both went wrong. Fixed by
reading both test files and by selecting main-table rows on the presence of a
BOLDED verdict. A self-check that cannot survive its own file being extended is
not a self-check.

T053 — NOTHING FIRED, and the scope of that claim is written down rather than
implied: the scenario and ledger arms on real historical text; marker
suppression in all three branches of its resolution; the `Merged into`
titles-only rule; the fence rule in both directions; basis substitution under a
declaration; the sentence mask on three token shapes; normalization over a fully
re-wrapped block; skip-vs-quiet; determinism and the advisory band over all
thirteen trees. No module defect. What was found is F1 DOCUMENTATION residue,
already appended to F1's tasks.md.

T059's adversarial pass, run rather than described. Its one finding went the
other way: tasks.md T042 predicted a marker defect the module correctly does not
emit. A name matching no canon unit declares nothing and is silent, per
`suppression()`'s three-way resolution. The task was wrong, the module is right,
and the task is corrected in place rather than the fixture bent to match it.

Also corrected in place: T052 compared against `origin/main`, which had moved 18
commits past this branch's base — so the scope check reported that branch's own
progress as 13 files and 2,443 deletions this feature had supposedly made. It
now uses `$(git merge-base HEAD origin/main)`, and against that it is empty.

The count-exception list in data-model.md § 4 is now the real list, grown by
what implementation actually needed: T024's thirty-name floor, T023's eighteen
rows and four tallies, T043c's exactly-two template bullets, and the comparison
that parses the ledger arm's OWN numerator and denominator out of the finding it
emits. 38 count-shaped lines in the test file, every one on that list.

pr-body.md states plainly what this does NOT do: it does not close #330, and it
proposes no severity flip.

STOPPING HERE. No PR opened.

Co-Authored-By: Claude Opus 5 <[email protected]>

* Implementation-review fixes: a mutation row named the wrong killers, and the count-exception list did not cover its own file

Six findings from the implementation review, all documentation. No test, fixture
or module byte changed; suite still 1115.

1. Mutation table row 29 named `T012, T020` as killers of "drop the `kinds`
   filter from `_units`". BOTH SURVIVE that mutation — each re-filters by kind
   after calling the helper, which is exactly why the mutant survived its first
   run. The killer is the test the survival forced into existence,
   `test_the_u_class_helper_reads_the_same_set_as_the_ledger_arm`, and only
   that one. The row now says so, and says why.

2. Four sites still diffed against `origin/main` — quickstart.md's two scope
   commands, plan.md's evidence row, and spec.md's SC-010 — while only
   tasks.md and pr-body.md had been corrected to the merge-base. That branch
   advances independently, so its tip reports its own progress as 13 files and
   2,443 deletions this feature never made. All four now use
   `$(git merge-base HEAD origin/main)`, and SC-010 states the reason so the
   next reader does not "simplify" it back.

3. F1's residue header said "Four findings" over five numbered items.

4. The count-exception list was an ENUMERATION of individual assertions, and it
   did not cover its own file: ~20 of the 38 count-shaped lines mapped to no
   row, including `len(holders) == 1` — the assertion that kills mutant #15.
   A list that does not cover the file makes T059 step 2's claim false, and a
   per-line list goes stale on the next test. Reworded to six declared SHAPES:
   per-arm cardinality (the ledger's promoted at-most-one rule), vacuity floors,
   fixture-premise guards, the count that IS the rule, figures parsed out of the
   arm's own finding, and the audit's structural claims. T059 step 2 now points
   at the shapes.

5. The #329 tree is deliberately STALE `doc-health` text, and nothing said so.
   Its canon says "seventeen check families" and its delta restatement says
   "nineteen" while `families.FAMILIES` registers 22 — so a whole-family sweep
   over that tree draws 3 `family-enumeration` warnings (the enumeration
   omitting `duplicate-packet`, `family-enumeration` and
   `modified-block-currency`, plus both numerals). Measured, not assumed. Inert
   today: nothing sweeps fixture trees and
   `test_the_real_corpus_reads_zero_on_both_halves` reads the repository's canon.
   The README now carries the warning AND the instruction not to refresh the
   text — its staleness is the historical fact the fixture exists to freeze.

6. T009's signature was missing the `repo` parameter the helper actually takes.

pr-body.md refreshed to the final numbers: 1115 tests, 75/75 validate, 7 new
trees, 28/30 mutants with 0 survivors plus the reviewer's 10/10, the audit's
closing table, and the honesty note that the eight remaining `satisfied`
verdicts rest on a human reading of F1's test bodies — if one is wrong, this
change ships a hole it believes it closed.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

Co-authored-by: brettheap <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
…pin between them

A BRANCH NAME IS NOT A CITATION A READER CAN FOLLOW. The row note and the
movement-log entry both said "Realized at opensoft/openDox-code
`build/q7-binding-stylesheets` (DRAFT PR)" — a parenthesis promising a pull
request that had no number when the sentence was written, which is the same
defect as a count nobody ran a command to get. Every slice annotation before
this one names its leg by number (`DRAFT PR #21`, `DRAFT PR #17`), and these
now do: **openDox-code #27** and **openXdox-code #22**.

AND THE STEP BETWEEN THEM IS NAMED, because it is the one thing the landing
order cannot be read off the two PRs alone: openXdox-code pins an `opendox`
older than `ViewBinding.styles`, so its four sheets are DECLARED but INERT
until that pin advances — which is what its `specs_for()` feature detection is
for. The order is this annotation, then #27, then the pin bump, then #22 live.

No line number, no count, no declared edit and no digest moves.
`scripts/validate-carve-manifest.py` -> `OK ... 456 row(s) ... 143
moved_verbatim, 175 moved_with_declared_edit, 138 not_moved; 318 digest(s)
recomputed`. `pytest -q tests/carve_manifest tests/carve_arrival
tests/carve_conformance tests/opendox_pin tests/openxdox_pin` -> 425 passed.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
…omething

COPILOT ROUND 5 ON #1068, all four open threads and the body's suppressed
findings. WHAT LEAVES IS UNCHANGED AND MEASURED SO: at openDox-code `0b4e8bbf`
/ openXdox-code `0a0265f7` the tool still answers 54 gate-exclusive classes, 59
exclusive blocks AT THE SAME SELECTORS AND THE SAME EXTENTS, 89 lines, 10 of
them reading an `--st-*` token; at the two leg heads it answers 0 blocks / 0
lines, which is the extraction working.

THE SCANNER (findings at `:185`, `:218`, `:200`, `:353`)
* AN ASSIGNMENT COUNTS ONLY WHERE THE TARGET SAYS IT IS A CLASS. A bare
  `x = "..."` rule made every assigned string a class write, and
  `btn.title = "commission proposal authoring for this staging topic "`
  (`dispose.js`:402) is exactly that: every word on the class alphabet, and
  `topic` declared in `styles.css`. The target is named now — `className`,
  `class`, `cls`, `classes`, `classList`, `+=` included.
* A DOT IS A SELECTOR ONLY INSIDE A SELECTOR. Two conditions together: the
  literal is SHAPED like a selector (a path or URL carries `/`, which no
  selector does outside an attribute value) and the `.` does not follow an
  identifier character. MEASURED over the six contributed modules: the old rule
  found 14 dotted tokens and 13 were routes, module specifiers, filenames or
  sentences — `"./helpers.js"`, `"gate.lens: ctx.model."`, `"proposal.md"`,
  `"e.g. Field Pilots"`. `div.foo` is the one real selector form this refuses,
  a loss in the SAFE direction: under-reading the gate side KEEPS a rule.
* PREFIXES COME UNDER THE SAME ASYMMETRY. `prefix_refs(..., class_bearing_only)`
  requires a `class="..."` run or a bare class list in argument/assignment
  position; the gate side uses it, the openDox side stays broad because
  over-reading there only keeps a rule.
* A MISSING CHECKOUT IS A REFUSAL, NOT A ZERO. `glob` on an absent directory
  reported `0 gate-exclusive classes, 0 blocks` — the same output a COMPLETED
  extraction produces, so a mistyped argument read as a measured result. Both
  checkouts and a non-empty gate directory are now named refusals.

THE SHARED FIGURE MOVES 21 -> 18, and nothing else does. `g` (`"e.g. Field
Pilots"`, gate-projects.js), `lens` (`"gate.lens: ..."`, gate-lens.js) and
`topic` (the `btn.title` sentence, dispose.js) were shared only through those
false reads. Shared classes STAY in `styles.css` either way, so the extraction
is bit-for-bit what it was; the manifest's two citations and the row note carry
the new figure with the reason.

THE STYLESHEET PARSER (findings at `:275`, `:315`, `:334`, `:447`, `:462`)
* Strings are blanked beside comments, so `content: "}"` no longer closes a
  block early and shifts every extent after it.
* `parse_nested` RECURSES: `@media { @supports { .gatebar { } } }` recorded
  `@supports` as a rule and never emitted `.gatebar`.
* Attribute selectors are stripped BEFORE class tokens, so
  `[data-state=".gatebar"]` no longer yields the class `gatebar`.
* `reads_st_token` / `declares_st_token` read a comment-blanked body: a
  commented-out `var(--st-...)` is not a token dependency.
* `styles_css.lines` is `splitlines()`, the convention `line_of` numbers in — a
  final line without a trailing newline is a line to one and not to the other.

TWO ASSERTIONS THAT ASSERTED NOTHING
* `assert sum(len(v) for v in q7_expected.values()) == 5` compared a local
  constant with itself. The COMMITTED admissions introduced at RULED Q7's two
  commits are counted now, so a sixth riding in on this act's name fails.
* `assert 88 + 1 == lines` compared two constants; a 89-line window of pure
  deletions passed it. What this repository can pin is WHICH line is the
  replacement — carve `:161`, the split selector list the row note names — so
  it pins that and the 88 remaining. The opcodes live in the leg diff, and
  openDox-code #27's suite is where the after-state is executed.

ANSWERED, NOT TAKEN
* `:86`, the `${...}` brace walk that does not lex the interpolation's own
  strings: MEASURED INERT — 44 files, 34 interpolations, none carrying a brace
  inside a string inside one, no runaway span. The walk is copied
  behaviour-for-behaviour from openDox-code's `tests/test_web_boundary.py`,
  which is the tool's guarantee that a token it reports is one that leg's own
  suite would see; diverging here would break that. REGISTERED FOR A LATER
  DECLARED ACT, in that suite and this copy together. The limit is now written
  down where the walk is.
* `:440`, that the report "cannot produce the documented 59 blocks / 89 lines":
  it produces exactly those — `exclusive_blocks` is 59 and `exclusive_block_lines`
  is 89 at the cited base commits. The two MIXED rules are reported in
  `mixed_blocks`, not in the 59, and the manifest declares how each is handled:
  carve `:161` SPLIT so openDox keeps `.filterpop[hidden]`, carve `:2514`
  `.swb-draftchrome .swb-cactions` moved whole. Both are still there and still
  mixed after these changes, verified against the before/after reports.
* Grammar: "the DELETIONS that make".

GATE: `validate-carve-manifest.py` -> OK 456 rows, 143/175/138, 318 digests,
4 RE-DESTINED. `pytest -q tests/carve_manifest tests/carve_arrival
tests/carve_conformance tests/opendox_pin tests/openxdox_pin` -> 503 passed
(494 + 9 new census tests, each carrying the input that used to be read wrong).

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 16, 2026
Copilot review round 17 on openxFactory #1068 (review 5228016625), finding
`:1095`: the census reports `.swb-draftchrome .swb-cactions` in `mixed_blocks`,
so its 59 exclusive blocks and their 89-line union cannot BE the 89-line
declared window. The premise is right and the conclusion does not follow — the
window was never derived from the census — but nothing in the row said so, and
a reader with two 89s in front of them has no way to tell. So the row note now
decomposes the window, measured at openDox-code 0b4e8bbf -> #27's head
9e25f684 against the carve blob b075fd9 with `carve_lines` + `difflib`:

  99 lines of the leg's own file change, and 89 of them have a carve
  counterpart -- exactly the declared window, symmetric difference []. Of those
  89: 78 sit inside the 59 exclusive blocks, 9 are the comment and brace lines
  the moved rules carry out with them (8 comment lines and one `}`), and 2 are
  the mixed pair the note already named -- carve `:161` replaced in place and
  carve `:2514` moved whole. The other 10 changed lines have NO carve
  counterpart: they are lines slice S7 created, and the arrival verifier reads
  this file against the carve blob, where they do not exist.

  The union carries one line the window does not, for the same reason in
  reverse: the closing `}` at leg `:1575` (carve `:1554`) is inside an
  exclusive block, and the diff aligns it to an identical `}` that survives. So
  88 of the union's 89 lines change, the window has 89 carve lines, and the two
  are the same SIZE and not the same SET.

`test_the_real_manifest_carries_the_q7_css_extraction_declared_edits` now pins
carve `:2514` in the window beside carve `:161`, which is the half of that
difference this repository can check: the leg diff carries the other half, and
`scripts/verify-carve-arrival.py` -- not the census -- is what refuses an
undeclared edit.

GATE AT THIS HEAD: `python3 scripts/validate-carve-manifest.py` OK, 456 rows,
143/175/138, 318 digests, 4 RE-DESTINED; `tests/carve_manifest/` 235 passed, 1
skipped; `tests/carve_arrival/` 158 passed.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 17, 2026
…red deletions (#1068)

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

RULED Q7 (Brett Heap, 2026-09-12, `#656` comment
`5648049748`): *"a contributed binding's CSS lives WITH THE BINDING, in its own
sheet; openDox's declared design tokens (the `--st-*` family, S7) are the one
stable styling surface; nothing else in `styles.css` is."* This is the
declared-edit window for the extraction `#1023` § 6 registered as owed and the
S7 LANDED note (`5688498049`) register item 1 carried forward. It lands FIRST,
per RULED Q-L1 (`5628560136`).

ONE ROW. `scripts/ideation_dashboard/web/styles.css` gains ONE `adapter calls`
entry of 89 carve-commit lines. The row was already `moved_with_declared_edit`
and already a carrier — slice S7 converted it — so rows (456), dispositions
(143 / 175 / 138), the carrier count (176) and the replica count (20) all stand
where the pre-existing `openxdox_code` annotation left them. Three absolutes
move, re-derived at every site that states them: 2454 -> 2543 declared lines,
`adapter calls` 1482 -> 1571, `opendox_code` 1667 -> 1756.

THE FLOOR QUESTION, SETTLED BY MEASUREMENT BEFORE A LINE OF EITHER LEG WAS
WRITTEN. `#1023` § 6 recorded that "a stylesheet block leaves for another leg"
fits none of RULING OQ-1's three classes, and it was right about the document it
read: that row was `moved_verbatim`, carrying no `edits:` at all. Slice S7
(`#1030` -> `b3a75537`) converted it and declared 152 of its lines
`adapter calls`, so the surviving question is narrower — is a DELETION
declarable? The floor answers twice. BY PRECEDENT: § 3.4 slice S6 declared 122
`serve_projection.py` DELETIONS under this same class and landed. BY
MEASUREMENT: `verify-carve-arrival.py --destination opendox_code --phase B`
against a throwaway prototype REFUSES `arrival-undeclared-edit` naming exactly
these 89 lines, and answers `OK ... 84 declared-edit row(s) within their lines`
with them declared. Every line is that refusal's own output, re-derived by
`_check_declared_lines`' algorithm and never transcribed.

WHAT THE 89 ARE. 59 rule blocks leave openDox's stylesheet for four sheets
openXdox-code ships beside the bindings that own them. A block leaves only when
EVERY class in its selector is named by openXdox's six contributed modules and
by no file of openDox's own bundle — `scripts/measure_opendox_css_census.py`,
added by this act so the figure is reproducible from this repository: at
openDox-code `0b4e8bbf` / openXdox-code `0a0265f7`, 54 exclusive and 18 shared. (18, and the record says why it moved twice: Copilot's round 3 stopped the census counting a bare literal in a non-class position, and rounds 5-6 bounded an assignment to a class-named target and a `.token` to a literal SHAPED like a selector with the dot in selector POSITION -- so 24 -> 22 -> 21 -> 18 as `why`, then `g`, `lens` and `topic` stopped being read as named by the gate. WHAT LEAVES NEVER MOVED: 54 gate-exclusive classes, 59 blocks at the same extents, 89 lines)
It reproduces `STYLE_RESIDUE`'s `51 / 24` EXACTLY at `cb343ae8` under its
literal-only scan, which is how the 51 is known to have been three short:
`.dispose-accepted`, `.dispose-rejected` and `.dispose-deferred` are built by
`"disposebtn dispose-" + v.outcome` (`dispose.js`:275).

FIVE ADMISSIONS, each pinned by path AND `since` in
`test_the_committed_admissions_file_keeps_the_ruled_seed_and_stays_well_formed`:
`tests/test_binding_stylesheets.py` at `opendox_code` (`144a4a33`) and
`src/openxdox/web/views/{dispose,gate-projects,gate,swb}.css` at
`openxdox_code` (`b18687ce`).

THE PIN: `Q7_WINDOW` / `Q7_CONVERTED`, read off the literal with `ast`, asserted
as a contiguous run occurring exactly once AND following slice S7's on the same
row, refusing a repeated line over the WHOLE row (S7's 152 and this act's 89
must be 241 distinct numbers), and re-deriving 89 / 1 entry /
`{"adapter calls": 89}` / 2454 + 89 = 2543. Slice S7's own § 2 conversion check
is AMENDED in the same act, for the reason its § 1 was amended by S8: a
conversion claims S7's entries are the row's FIRST, not its ONLY.

COPILOT, SEVENTEEN ROUNDS, every finding fixed or answered BY MEASUREMENT and
every thread resolved (27 threads, 0 unresolved). The rounds found nothing wrong
with WHAT LEAVES and a great deal wrong with the SCANNER that decides it: a
pseudo-class, an ID and an attribute breaking a compound; a sentence and a
`class=` in prose reading as markup; `class=` inside another attribute's value;
`data-class`; a single-quoted attribute; an unquoted value running into the next
attribute name; a `+` chain of three literals and a call result joining one; a
selector list with a classless branch; a class inside `:not()` anchoring a
branch; a comment and a `<script>` body walked as live markup; a JavaScript
template in a class-bearing position naming nothing; `splitlines()` against the
carve floor; a summed rather than unioned line total; three missing named
refusals; and two assertions that asserted their own constants. EVERY repair was
checked the same way — the FULL per-token census at `0b4e8bbf` / `0a0265f7`,
diffed before and after — and it is BYTE-IDENTICAL across all of them: 54 / 18 /
59 blocks / 89 lines / 10 reading a token, the same 59 selectors at the same
extents, and 0 blocks / 0 lines at the two leg heads. Round 14 made that
falsifiable rather than reported: the committed report is pinned at
`tests/carve_manifest/fixtures/q7-css-census-0b4e8bbf-0a0265f7.json`, tied to
this row's declared line count, and re-derivable at the cited revisions.
FOUR findings REFUTED with measurement or mutation, including the `created:`
ordering (the order the review asked for is the one that makes
`verify-carve-arrival.py` refuse `arrival-unreadable`; the committed order is
`sorted()`'s and the verifier answers OK against it) and the claim that carve
`161` is declared twice on this row (`S7 152 | Q7 89 | overlap []`). TWO asks
REGISTERED for a later declared act, by name: a CI job that re-derives the
census across two checkouts (its home is `openxdox-consumer-gate.yml`, not a row
annotation), and the `${...}` brace walk this tool copies behaviour-for-behaviour
from openDox-code's own `tests/test_web_boundary.py`.

GATE: `scripts/validate-carve-manifest.py` -> `OK ... 456 row(s) ... 143
moved_verbatim, 175 moved_with_declared_edit, 138 not_moved; 318 digest(s)
recomputed; 4 row(s) RE-DESTINED`. `tests/carve_manifest/` -> 235 passed, 1
skipped; `tests/carve_arrival/` -> 158 passed;
`tests/carve_manifest/test_css_census.py` -> 54 passed, 1 skipped; and the
pinned census RE-DERIVED against checkouts of both cited revisions -> 1 passed.
Arrival re-proved from THIS branch's manifest against openDox-code #27's head
`9e25f684`: `OK ... 119 row(s) arrived, 35 digest(s) verified, 84 declared-edit
row(s) within their lines, 1 unapplied; 4 of 4 declared replica(s); 150 file(s)
under src/opendox, tests with none undeclared; 22 declared admission(s) used`.

THE WINDOW IS 89 CARVE LINES AND THE CENSUS'S UNION IS 89 LEG LINES, AND THEY
ARE THE SAME SIZE RATHER THAN THE SAME SET — measured `0b4e8bbf` -> `9e25f684`
against carve blob `b075fd91dc8f`: 99 lines of the leg's file change, 89 have a
carve counterpart and those 89 ARE this window (symmetric difference `[]`); of
them 78 sit inside the 59 exclusive blocks, 9 are the comment and brace lines
the moved rules carry out, and 2 are the mixed pair (carve `:161` split, carve
`:2514` moved whole). The other 10 changed lines are lines slice S7 created and
have no carve counterpart at all. The row note says this, and the manifest test
pins carve `:2514` in the window beside carve `:161`.

WHAT THIS DOES NOT DO. It moves no byte at either leg — opensoft/openDox-code
#27 and opensoft/openXdox-code #22 land after it, with the openXdox-code pin
bump between them. It does NOT annotate the three pre-existing `openxdox_code`
undeclared-edit rows (measured identical at the leg head and at that leg's main)
— #1031's act, landed. It does NOT close the coupling RULED Q7 leaves open: the
four sheets read 13 of openDox's NON-token custom properties, counted and
registered in `STYLE_RESIDUE.open_coupling` rather than hidden.


RULED openxFactory#656 comment `5700475319` (Brett Heap, 2026-09-16, by
interactive multi-choice) answers the two questions this act put to him, both as
it already does them, and both are cited where the decision is stated: FOUR
sheets for six bindings with a single `styles` specifier and href de-duplication
LOAD-BEARING; and the 13 non-`--st-` custom properties MOVED VERBATIM with the
coupling REGISTERED BY MEASUREMENT in `STYLE_RESIDUE["open_coupling"]`, asserted
by openXdox-code's own suite.

Refs #656 (stays OPEN). CLAIM: 5699629486.


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 23, 2026
…(s)" from openXdox (RULED #656 5801057769); openXdox pin cd2596a2 → 2f3f857d (#1148)

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

Realizes the openxFactory side of Brett Heap's ruling at [#656 comment 5801057769](#656 (comment)) (2026-09-23T19:00:37Z), verbatim **"yes, overlay implemented items too"**. It extends [5784683830](#656 (comment)) ("1, keep completed and overlay implemented"), which #1146 served. This is **STEP 2** of the forced order (RULED [5767804734](#656 (comment)) item 5), and both steps before it have landed:

| step | PR | landed |
| --- | --- | --- |
| the facet's `one` / `many` | [opensoft/openXdox-code#27](opensoft/openXdox-code#27) | `626f2c8d` (squash, 2026-09-23T20:17:07Z) |
| STEP 1, the openXdox root's `code` pin | [opensoft/openXdox#18](opensoft/openXdox#18) | `2f3f857d` (squash, 2026-09-23T20:26:02Z) |
| STEP 2, openxFactory's openXdox pin | this PR | |

openXdox `main` is exactly `2f3f857d`, and openXdox-code `main` is exactly `626f2c8d`.

## What a served page shows

Measured from a real `opendox.serve.build_server()` in each assembly, `GET /capabilities`, `display` block:

| | `main` `d52b4199` | this head |
| --- | --- | --- |
| `host_facet` / `host_profile` | `declared` / `openxfactory-engineering` | `declared` / `openxfactory-engineering` |
| `stages.completion` `short` / `label` | `implemented` / `implemented` | unchanged |
| `stages.completion` `one` / `many` | `completed item` / `completed items` | **`implemented item` / `implemented items`** |
| `stages.completion` `gate` | `null` | unchanged |
| the other five stations | openDox neutral | unchanged |

In openDox's shell, `one` renders in the wheel's two completion sentences. openXdox-code#27 runs both under node through the xFactory host: `what landed: this implemented item's detail files` and `this implemented item records no detail files`.

## `_display_facet()` needs NO code change, as #1146 designed

`_openxdox_stages()` copies openXdox's `stages` two levels deep, so the new nouns arrive with the pin. `scripts/profile_openxfactory.py` changes in **docstrings only**: its AST with every docstring stripped is identical to `main`'s (`ast.dump` compared). The docstrings said openXdox's entry is "one stage entry and two fields (`short`, `label`)" and cited only the first ruling. They now cite #27 (`626f2c8d`) and `5801057769`: one stage entry, four fields.

## The pin: value-only, in one commit

- `openXdox` gitlink: `cd2596a2` → **`2f3f857d`**
- `contracts/openxdox-pin.yaml` `commit:`: `cd2596a2…` → **`2f3f857daccce6ade3a15e0f3d0e926f9ff7c925`**
- `digests.tree_sha256`: `eb367f68…` → **`149dc2cd6701abbacb635718713b01cb172e6eadb2f6a29607212016aa23d1c5`**

The digest is `sorted-ls-tree-r-v1` over the root's 29 records, from `verify-openxdox-pin.py`'s own `tree_digest` and from an independent `ls-tree` + `sha256`. The control recomputes `eb367f68…` at `cd2596a2`. `2f3f857d^{tree}` = `eb89dc23^{tree}` = `c79958ac`, so #18's squash moved no byte. **No line is added or removed**: the file stays 154 lines, since a promoted spec cites it by line.

**The openDox pin does not move.** openXdox's `contracts/opendox-pin.yaml` still names `dc7aa08f` at `2f3f857d`, and `verify-opendox-pin.py` reports `lockstep with openXdox confirmed`.

## Tests: `tests/test_engineering_profile_display_facet.py`, section 8 only, 30 → 31 passed

Lines 1-407 are byte-identical to `main`, so active change `amend-home-adapter-scope-and-mapping-axis-count`'s `:300-303` citation holds.

- **The positive predicate** (`_completion_renders_the_ruled_words`, renamed from `…_word`) requires all four words: `short` and `label` `implemented`, `one` `implemented item`, `many` `implemented items`.
- **The neutral assertion** keeps the other five stations whole, and completion's `gate` only.
- **No two stations share a rendered word**, now checked for `one` and `many` as well as `short` and `label`.
- **The no-restate AST scan** covers the three ruled words AND every word openXdox's `stages` declares. A word openXdox adds at a later pin is therefore covered without editing the test.
- **A new shortfall case:** #26's two names without #27's item nouns, which is what a pin still naming openXdox-code `195276b7` serves, fails the positive predicate. The drop test now asserts that some field fell back to openDox's word, rather than `label` in particular.

**Mutation sweep over the composer**, each defect applied alone. All eleven were caught, and the control is 31 passed:

| mutation | result |
| --- | --- |
| M1 no `stages` composed | 9 failed |
| M2 the four words restated instead of copied | 11 failed |
| M3 openXdox's mapping aliased | 1 failed |
| M4 shallow copy | 1 failed |
| M5 missing `DISPLAY` raised as `AttributeError` | 1 failed |
| M6 missing `DISPLAY` degraded to no stages | 1 failed |
| M7 only `short` taken | 3 failed |
| M8 a second stage overlaid | 4 failed |
| M9 the code leg on disk at `ab04453d` (no `DISPLAY`) | 28 failed |
| M10 a malformed `DISPLAY` degraded to no stages | 4 failed |
| **M11 the code leg on disk at `195276b7`** (#26's names, no nouns: an unbumped pin) | 2 failed |

## Gates

**CI, like for like.** `main`'s own `push` run at `d52b4199`, against this head's `pull_request` run, which merged `af23298e` into that same `d52b4199` (merge `1b8b313f`):

| check | `main` `d52b4199` | this head `af23298e` |
| --- | --- | --- |
| `pytest-suite` summary | `8439 passed, 6 skipped, 338 deselected, 410 subtests` (run 35910949799) | `8440 passed, 6 skipped, 338 deselected, 410 subtests` (run 35916269160) |
| `pytest-suite` pinned triple | `selected=8855 passed=8849 skipped=6` | **`selected=8856 passed=8850 skipped=6`**, `failures=0 errors=0` |
| freshness verifier / vector replay | passed / passed | passed / passed |
| `openxdox-consumer-gate` pin suites | pull requests only; floor 105 | `105/105/0`, margin 0, four named verdicts passed (run 35916269093) |
| `openxdox-consumer-gate` consumer suite | floor 1137 | `1137/1137/0`, margin 0, named verdict passed |
| every other check | push-triggered on `d52b4199`: `clearing-dispatch-gate`, `signed-execution-chain-gate`, `review-lane-repin` success | SUCCESS: `clearing-dispatch-gate`, `former-id-arrival-gate`, `lane-line`, `merge-master-approval`, `openreposhape-pin`, `openspec-cli-pin`, `release-tag-gate`, `signed-execution-chain-gate`, `wallet-validation`, SonarCloud |

**+1 selected and +1 passed, exactly the one new shortfall case**, with the same 410 subtests on both sides and SKIPPED at the pinned 6.

**Local, at `af23298e`**, in the CI-shaped checkout, each gate running its workflow's exact command:

| gate | `main` `d52b4199` | this head `af23298e` |
| --- | --- | --- |
| `validate-openspec-cli-pin.py --all --no-cache` | exit 0: `Totals: 110 passed, 1 failed (111 items)`, 0 UNDISPOSITIONED, 1 ACCEPTED EXCEPTION | identical |
| `verify-openxdox-pin.py` | OK `cd2596a2` / `eb367f68…` | OK `2f3f857d` / `149dc2cd…`, gitlink read from HEAD |
| `verify-opendox-pin.py` | OK, lockstep confirmed | OK, lockstep confirmed |
| clearing-dispatch, signed-execution-chain, the wallet readers, factory-identity, former-id-arrival, release-tag, openreposhape-pin | exit 0 | exit 0 |
| pin suites / consumer suite | | `105/105/0` / `1137/1137/0` |

## Rule 6

This PR touches no `openspec/changes/` path and no README OpenSpec Records line, so it is a **plain gate with no landing window**.

## Claims

Sibling search at 2026-09-23T20:28:34Z:
- no other open PR in `openxFactory` touches these files or pins
- no PR is open in `openXdox` or `openXdox-code`

## Owed after this lands (not taken here)

- **STEP 3**, the `opensoft/xFactory` aggregation pointer advance, in the forced order.

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


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 24, 2026
…fest (Q-L1 form; RULED 5815412869 C3) (#1153)

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

## What this is

This is the row annotation RULED Q-L1 requires to land **FIRST**, for the leg PR opensoft/openXdox-code#28 (`fix/snapshot-validator-carve-residue`, `45825ff7`, re-cut on that leg's `main` `626f2c8d`). That PR's head is now `87e627c`, after two review rounds of its own. Neither round moves this window (see *Measured*). That PR takes the three snapshot-validator defects the archived `split-opendox-two-layer-product` booked at `tasks.md` § 8.9 (amendment #6, RULED Q-P3 (a), #656 comment `5728856581`; the box was DEFERRED at the archive by RULED `5778397686`):

- **(i)** the validator's `SCHEMAS_DIR` resolves to an absent directory;
- **(ii)** `snapshot.py`'s `VALIDATOR_RELPATH` names the path this repository shed at `cc4ae9d3`;
- **(iii)** `find_validator`'s parent walk adopts an enclosing pre-shed checkout.

RULED at #656 comment [5815412869](#656 (comment)) (item 3, **C3**, all (a)) and claimed at [5815613524](#656 (comment)). Two of the four rulings bind this PR:
- **Q-XDV2 (a):** both new entries are filed under `path constants`;
- **Q-XDV3 (a):** this annotation lands first, then openXdox-code.

Q-L1's binding clause (`5642758731`): *"an edit to an ARRIVED file … outside its declared lines is an undeclared movement — each slice that edits such a file pairs its leg PR with an openxFactory row-annotation PR (the ASK-7 pattern) that lands FIRST"*.

**This does NOT discharge #1144 task 7.3.** 7.3's FALSIFIED BY asks the INSTALLED openXdox distribution to find its own validator from a `start` outside the product. The leg PR deliberately answers `None` for such a start. So phase 2's realization of 7.3 will revisit `tests/test_snapshot_validator_home.py::test_a_start_outside_the_product_is_refused_not_walked`. The holder is taking that tension to Brett as a phase-2 question. It does not block this act.

The arrived leg test `tests/test_snapshot_validation_launch.py` belongs to the same revisit (Copilot, openXdox-code#28 round 2). It launches from the corpus root, outside the product, so under the confinement it would report validation SKIPPED. It cannot be collected in that repository at the base or at the head, because the pinned openDox-code's `serve.py` imports `ideation_dashboard`, and it is not in that repository's required check.

## The window

| row | before | after |
| --- | --- | --- |
| `scripts/ideation_dashboard/snapshot.py` → `openxdox_code` `src/openxdox/snapshot.py` | `moved_verbatim` | `moved_with_declared_edit`, `path constants` [13, 24, 29, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 133, 163, 167] — 16 |
| `scripts/validate-ideation-dashboard-contracts.py` → `openxdox_code` | the carve's own entry [114, 115, 116, 909, 1800], never applied | plus a second `path constants` entry [14, 15, 16, 94, 224, 225, 226, 230, 237, 1822] — 10 |

The line numbers are the CARVE COMMIT's. They were computed with `verify-carve-arrival.py`'s own algorithm (`carve_lines.text_records` + `difflib` opcodes, as `_check_declared_lines` reads them) against the re-cut leg head. They are identical to the helper bank's measurement against the first cut, because the four fix files are byte-identical and `openXdox-code` #26/#27 touched none of them. `docs/opendox-carve-admissions.yaml` admits the leg's two created suites (`tests/test_snapshot_validator_home.py`, `tests/test_validator_schema_home.py`, `since: 45825ff7…`).

## The figures, summed rather than transcribed

- Declared lines 2717 → **2743** (`path constants` 246 → 272).
- Rows carrying `edits:` 176 → **177**.
- `moved_verbatim` 143 → **142**; `moved_with_declared_edit` 175 → **176**; `not_moved` 138, unchanged.
- The runbook's `openxdox_code` row goes from `9 / 83 | 917` to `8 / 84 | 943`.
- The per-destination sum goes from 2715 to 2741, and the two replica lines make 2743.

Moved with them:
- runbook § 2's tables and history;
- the README index entry;
- three script docstrings;
- the aggregate pins in `tests/carve_manifest` and `tests/carve_arrival`;
- the Q7 disposition digest (`2c48fa07…` → `4c4aecf1…`), moved beside its conversion record as its own failure message asks.

A new test, `test_the_real_manifest_carries_the_snapshot_validator_residue_declared_edits`, pins the window by row, class and line. Main's manifest has not moved since the bank measured it at `2e222d98`: no commit since then touches any carve file.

## Measured

- `scripts/validate-carve-manifest.py`: `OK … 142 moved_verbatim, 176 moved_with_declared_edit, 138 not_moved; 318 digest(s) recomputed`, rc=0.
- `scripts/verify-carve-arrival.py --destination openxdox_code --phase B`, with the leg's six declared replicas:
  - **leg `45825ff7` vs THIS manifest: OK.** 96 rows arrived, 8 digests verified, 87 declared-edit rows within their lines, 3 unapplied, 34 declared admissions used.
  - **leg `45825ff7` vs main's manifest: refused.** `arrival-digest-mismatch` at `src/openxdox/snapshot.py`, so the annotation is required.
  - **leg head `87e627c` (after openXdox-code#28's two review rounds) vs THIS manifest at `9248478c`: OK.** 87 declared-edit rows within their lines, 3 unapplied, 34 declared admissions used, rc=0. Against the carve blob, the leg's diff still touches exactly lines 14, 15, 16, 115, 116, 224, 225, 226, 230 and 1822 of the validator row, plus insertions beside 94 and 237. Every one is declared.
  - **leg `626f2c8d` (today's pin) vs THIS manifest: OK.** 85 within, 5 unapplied, and the two new admissions are reported `STALE (declared but not needed)` until the leg lands. So this PR lands ahead of the leg without reddening anything.
  - **The window is tight.** A copy without `:1822` refuses `arrival-undeclared-edit … [1822]`.
- `pytest tests/carve_manifest tests/carve_arrival`: **408 passed on `main` → 409 passed here** (the new window test).
- **The PR gates, `main` `dd2466ad` vs this branch at `9248478c`** (local, same-kind full clones at `…/openxFactory`, pinned CI lock, OpenSpec CLI 1.12.0, decision core `b21f0100`):

  | gate | `main` | this branch |
  | --- | --- | --- |
  | the PR gates' scripts (`verify-openxwallet-pin`, `validate-clearing-dispatch`, `verify-openxdox-pin`, `verify-opendox-pin`, `validate-release-tag-gate`, `validate-signed-execution-chain --require-pinned-wallet-vocabulary`, `wallet-yaml-syntax-gate`, `validate-openxwallet`, `validate-factory-identity`, `validate-openspec-cli-pin --all --no-cache`, `validate-openreposhape-pin`, `validate-carve-manifest`, `validate-sequenced-after`) | all rc=0 | all rc=0 |
  | `validate-former-id-arrival.py --base dd2466a --head HEAD` | — | passed |
  | `openxdox-consumer-gate` pin suites | 105 / 105 / 0, HOLDS | 105 / 105 / 0, HOLDS |
  | `openxdox-consumer-gate` `tests/ideation-dashboard` | 1137 / 1137 / 0, HOLDS | 1137 / 1137 / 0, HOLDS |
  | `pytest-suite` in CI (the required check) | 8857 / 8851 / 6 (`main`'s test tree, from #1151's run) | **8858 / 8852 / 6**, freshness and vector replay passed ([job 107696117836](https://github.com/opensoft/openxFactory/actions/runs/36018216905/job/107696117836)); +1 is the new window test |
  | `pytest-suite` locally, per test case | 8446 cases | 8447 cases: the one added is the window test, which passed |
  | doc-health `--single-repo --as-of 2026-09-24` | 31 critical / 25 error / 52 warning / 20 info | identical. The one delta is the draft-age info line, where min goes 2 → 0 because the cutover runbook is edited |

  In the local per-test diff, the only outcome changes are three environment-bound `tests/doc-health/test_pin_reachability.py` cases, which depend on whether the retention ref namespace can be consulted from a local clone. Both local runs share two failures: a `test_validator_cli.py` subprocess timeout while several suites ran at once, and `test_snapshot_equivalence.py::test_a_prefix_whose_path_cannot_be_resolved_is_replaced_not_raised_on`. CI is green.

## Touches

Nothing under `openspec/changes/`, and not the README OpenSpec Records block (only the cutover-runbook doc-index line), **so no Rule 6 landing window**.

## Landing order (forced)

1. **This PR**, on a plain gate.
2. opensoft/openXdox-code#28. It stays DRAFT until this one lands. Its commit `45825ff7` is what both admissions' `since:` name.
3. OWED, separate PRs:
   - the openXdox root's code-pin bump, in the shape of openXdox#17/#18;
   - then this repository's openXdox pin bump, in the shape of #1146/#1148. It carries the consumer updates the fix makes due: `tests/ideation-dashboard/test_dashboard_source_seal.py::test_the_sealed_layout_is_the_one_find_validator_walks_up_to` asserts the old walk, and `scripts/ideation_dashboard/nightly_lane.py` calls `find_validator(agg_root)`, a start outside the product that answers `None` under the fix.

## Review round

- **Copilot at `580e4684` (🟡), answered at `9248478c`.**
  - Both threads asked for the two admissions to be pinned by path AND `since`. The committed-admissions test gains a THIRTEENTH BUMP block, and the window test compares a path→`since` mapping. Moving one `since` to the later leg tip fails both (2 failed).
  - The overview's "stale count explanation" was the admissions test's ordinal sequence. It now reads "#1091 and #1153, thirteen amendments, ten of which bump `opendox_code`", recomputed from `git log --first-parent`.
  - `tests/carve_manifest` + `tests/carve_arrival`: 408 passed on `main` → 409 passed.
- **Copilot at `9248478c`: 🟢 Approval recommended.**


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[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