Repository navigation
Restate FLOOR PART 2 as a source→destination mapping with declared multiplicity (RULING OQ-K, split-opendox § 5.4) - #874
Conversation
…ltiplicity (RULING OQ-K) RULING OQ-K (Brett Heap, 2026-09-09T22:19:57Z, by click-through in session `openXfactory-4`; #656 comment 5609526215): "OQ-K → FLOOR PART 2 restated as a source→destination mapping with declared multiplicity for replicated files (a small amendment PR to the change)." An IN-PLACE amendment of the ratified, unarchived packet — the form this packet's own 2026-09-05 repository-shape amendment set, and the form the ruling itself names. Not a sibling `amend-*` change and not a `## MODIFIED Requirements` delta: FLOOR PART 2 is not a promoted requirement, by design § D6's own "WHY NO PROMOTED REQUIREMENT IS AUTHORED FOR THE FLOOR". The ratified equality is false twice. By DESIGN: the landed carve manifest (#865 → 1716748) carries 18 `replicated_at_destination` rows, three of them test modules holding 30 `def test_`, and § 3.7 requires EVERY destination to pass the conformance corpus — so those 30 have three homes each and the post-split sum exceeds the pre-split count by exactly 60 on its first run. Its only mechanical repair would be to delete replicas FLOOR PART 3 requires. By STALENESS: 3,927 / 7,612 were measured at a858e5b on 2026-09-04, before the five pre-carve splits and before the manifest existed. Restated in four clauses: (a) total coverage — no test is lost; (b) declared multiplicity, in the row and never inferred; (c) the sum check Σ(destinations) = source_count + Σ (m − 1) × row_test_count; (d) pinned by test at each destination, the way pytest-suite.yml already pins the collection triple. Measured at carve_commit b075fd9 against the landed manifest: 4,411 source; 1,128 + 2,345 + 998 = 4,471; 4,471 = 4,411 + 60. ✔ RULING OQ-1 is NOT reopened: four parts, part 2 still about tests, both rejected single-instrument alternatives still rejected. Nine sites in four files plus the record; no spec delta, no promoted requirement, no manifest, nothing under contracts/, .github/ or scripts/. Record: openspec/changes/split-opendox-two-layer-product/review/amendment-2026-09-09-floor-part-2-mapping.md Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Two additions from a sibling author who stood down in this lane's favour, folded in with one correctness fix. § 0.4 — the RULED OQ-1 bookkeeping row still read as if part 2 were never restated. It now carries an `AMENDED 2026-09-09 — RULING OQ-K` note in § 0.6's own inline-bold style, naming the comment, the URL and what moved, with the tick and the rejected alternatives untouched. § 5.4 — the four named REFUSAL CASES the check owes. The floor carries no `#### Scenario:` blocks because it has no spec delta to host them (§ D6, "WHY NO PROMOTED REQUIREMENT IS AUTHORED FOR THE FLOOR"), so the scenario obligation lands as named cases on the build task: `test-home-missing`, `destination-test-shortfall`, the REPLICATED-FILE case at m = 3 that PASSES with excess (3 − 1) × 20 = 40 (and where deleting a replica is itself a refusal), and `replica-multiplicity-undeclared`. The first two are the ratified rule's own cases kept in intent; the last two are OQ-K's, and exist because a mapping can fail in ways an equality could not express. CORRECTNESS FIX to the drafted first case: "its disposition is not `replicated_at_destination`" would have refused every `stays_openxfactory_*` row carrying tests, and there are 32 of them holding 968 `def test_`. A stays row HAS a home — `openxFactory` itself. The case now turns on whether the row names a home at all, and adds `deleted_at_carve` carrying tests as the same refusal under its own name (measured at carve_commit: zero such rows). Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 1 day and 3 hours by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's GuideThis amendment updates the ratified split packet’s FLOOR PART 2 so test coverage is validated as a manifest-derived source-to-destination mapping, explicitly accounting for replicated files instead of requiring an invalid raw equality. It documents the OQ-K ruling and amendment provenance while deliberately leaving promoted requirements, the manifest, implementation, and execution tasks unchanged. Flow diagram for manifest-derived test coverage validationflowchart LR
S[Source test files] --> M[Manifest row mapping]
M --> H[Declared destination homes]
H --> C[Per-destination test collection]
C --> V{Coverage checks}
V -->|missing home| R1[REFUSE test-home-missing]
V -->|destination shortfall| R2[REFUSE destination-test-shortfall]
V -->|undeclared replica set| R3[REFUSE replica-multiplicity-undeclared]
V -->|all checks pass| P[Accept carve evidence]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟡 Changes recommended
The restated “declared multiplicity” rule is not fully self-declared in all carrier sites (destination/home set not always explicitly named), which undermines the “never inferred” requirement as written.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR amends the ratified split-opendox-two-layer-product OpenSpec packet to restate FLOOR PART 2 (RULING OQ-1) from a cross-repo scalar equality into a manifest-driven source→destination mapping that accounts for replicated test files via declared multiplicity, and records the OQ-K ruling in the packet’s standard in-place amendment form.
Changes:
- Update FLOOR PART 2 language across the packet (proposal/design/tasks) to define the mapping rule, refusal cases, and the multiplicity-adjusted sum check.
- Add an amendment decision record for 2026-09-09 (OQ-K) and update the README OpenSpec Records row to reflect the amendment.
- Update the archive-gate evidence line to reference the restated mapping/ledger rather than a scalar equality.
File summaries
| File | Description |
|---|---|
| README.md | Extends the OpenSpec Records row for split-opendox-two-layer-product to include the 2026-09-09 OQ-K amendment. |
| openspec/changes/split-opendox-two-layer-product/tasks.md | Restates FLOOR PART 2 as a mapping with declared multiplicity; updates the floor evidence line accordingly. |
| openspec/changes/split-opendox-two-layer-product/proposal.md | Adds an amendment header line and rewrites the RULED OQ-1 part-2 floor description to the mapping form. |
| openspec/changes/split-opendox-two-layer-product/design.md | Adds an amendment header line and replaces § D6 (2) with the mapping-based floor text. |
| openspec/changes/split-opendox-two-layer-product/review/amendment-2026-09-09-floor-part-2-mapping.md | New decision record capturing the OQ-K ruling, rationale, and the measured arithmetic against the landed manifest. |
Review details
Suppressed comments (1)
openspec/changes/split-opendox-two-layer-product/tasks.md:935
- “Measured at
carve_commit: zero such rows” is a bit ambiguous here because it’s not obvious whether “such rows” refers todeleted_at_carverows overall or onlydeleted_at_carverows that contain tests. Consider rephrasing to explicitly say it’s zero rows matching the stated condition.
declares) — THEN the carve REFUSES `test-home-missing`. A `deleted_at_carve`
row carrying `def test_` is the same refusal under its own name: deleting
tests is a decision to be RULED, never inferred from a disposition. Measured
at `carve_commit`: zero such rows, and `deleted_at_carve` carries zero
`def test_`. *(This is the intent the ratified text was reaching for — no
- Files reviewed: 5/5 changed files
- Comments generated: 4
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Copilot's review of this pull request raised one substantive finding at three sites plus a clarity nit; both are taken, and a fourth is declined on this packet's own record. TAKEN — "declared, never inferred" was not self-declaring. Clause (b) required a replicated row to DECLARE its repository set, but `tasks.md` § 5.4, `design.md` § D6 (2) and `proposal.md`'s RULED OQ-1 item 2 each stated only `m = 3` and left the set itself to be read off § 3.7 — which is inference, the exact thing the clause forbids. All three now NAME it: `openxFactory` (retained), `opensoft/openDox-code` and `opensoft/openXdox-code`, for each of the three test-carrying replicated rows. The replicated refusal case names them too. TAKEN — the first refusal case's "zero such rows" did not say which rows. It now states both limbs separately: no row under the surface carries `def test_` and no home (each of the 146 test-carrying rows names a destination, a `stays_openxfactory_*` reason or a replica set), and no `deleted_at_carve` row carries a single `def test_`. DECLINED — refreshing `proposal.md`'s `Lane:` header to the lane's current name. This packet's 2026-09-05 amendment ruled that question already: "The `Ratified:` and `Lane:` lines are UNTOUCHED — the lane rename of 12:46Z explicitly does not rewrite records." The header records the lane the packet was AUTHORED in; the amendment records carry the current name in their own `Lane:` lines. Recorded with its citation in the amendment record's "What this amendment does NOT move". Re-validated: pinned-CLI `--strict` clean, proposal-support ok, doc-health byte-identical to base. Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Lane: openxfactory-4-opendox-extraction Copilot round 1 — 3 taken, 1 declined, at TAKEN (one finding, three sites): "declared, never inferred" was not self-declaring. Clause (b) required a replicated row to DECLARE its repository set, but TAKEN (the suppressed comment): "zero such rows" did not say which rows. The first refusal case now states both limbs separately — no row under the surface carries DECLINED: refreshing
The header records the lane the packet was AUTHORED in; the amendment records carry the current name in their own Re-validated at the new head: pinned-CLI |
There was a problem hiding this comment.
🟡 Changes recommended
Multiple documents restate the key Σ formula with ambiguous/mis-scoped summation notation that should be corrected for mathematical clarity and consistency.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 4
- Review effort level: Lite
…t round 2) Copilot's second round raised one finding at four sites: the sum check was written `Σ (m − 1) × row_test_count` (proposal § RULED OQ-1 item 2, tasks § 5.4, tasks § 8.2) and `Σ(replicated rows) (m − 1) × row_test_count` (the record), either of which reads as multiplying by a separate Σ term, or as summing the term over EVERY row. Neither is the rule: a row that is not replicated contributes nothing. All six formula sites — including the refusal case that names the term UNCOMPUTABLE — now use design.md § D6 (2)'s own spelling, `Σ over replicated rows of (m − 1) × row_test_count`, and § 5.4 and the record say in words that the Σ ranges over the replicated rows only. The record's worked arithmetic now shows the per-row sum rather than one collapsed product — `(3 − 1) × 20 + (3 − 1) × 6 + (3 − 1) × 4 = 60` — so the three replicated rows are visible as three terms. Re-validated: pinned-CLI `--strict` clean, proposal-support ok, doc-health byte-identical to base. Refs #656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Lane: openxfactory-4-opendox-extraction Copilot round 2 — all 4 taken, at The Σ was ambiguously scoped at four sites. It read All six formula sites — including the and § 5.4 and the record now say in words that the Σ ranges over the replicated rows only. The record's worked arithmetic also shows the per-row sum instead of one collapsed product, so the three replicated rows are visible as three terms: Re-validated at |
There was a problem hiding this comment.
🟡 Changes recommended
The new FLOOR PART 2 text implies multiplicity declaration/refusal for all replicated rows, but only enumerates/depends on test-carrying replicated rows, creating an internal inconsistency that should be clarified.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (2)
openspec/changes/split-opendox-two-layer-product/tasks.md:904
- This sentence makes the check sound uncomputable/refusing whenever a replica set is undeclared, even if the replicated row carries zero
def test_(in which case it doesn’t affect the sum). If the intent is to require declaration only for test-carrying replicated rows, reflect that here as well.
lands the enumeration below IS the declaration. An undeclared replica set makes
the check uncomputable, which is a REFUSAL and not a pass.
openspec/changes/split-opendox-two-layer-product/tasks.md:966
- The "undeclared replica set" refusal is stated for any
replicated_at_destinationrow, but the Part 2 arithmetic/sum only depends on replicated rows that carry tests. Consider scoping this case to replicated rows withrow_test_count > 0to avoid implying the carve should refuse on a replica that contains no tests.
- **AN UNDECLARED REPLICA SET (NEW, RULING OQ-K).** WHEN a
`replicated_at_destination` row names no homes, THEN its multiplicity is
unknown, the Σ over replicated rows of `(m − 1) × row_test_count` is
UNCOMPUTABLE, and the carve REFUSES
`replica-multiplicity-undeclared` — an uncomputable check is never a pass.
- Files reviewed: 5/5 changed files
- Comments generated: 4
- Review effort level: Lite
|
Lane: openxfactory-4-opendox-extraction INDEPENDENT VERIFICATION of head Verified by a separate window in two detached worktrees of its own — one at (1) FORM — PASSIn-place amendment of the ratified, unarchived packet: inline Both alternatives confirmed unavailable, independently:
Validation, run here at the head: (2) SUBSTANCE — PASS, with one scoping defectRe-read against The correction the author claims is real and it matters. § 5.4's first case turns on whether a row names a home at all — and it explicitly counts SHOULD-FIX — clause (b) and the fourth refusal case are scoped too widely (this is Copilot round 3's finding, and I reach it independently). Clause (b) binds "a row dispositioned (3) ARITHMETIC — PASS. My own numbers, measured at
|
| group | .py rows with tests |
def test_ |
|---|---|---|
→ opendox_code |
40 | 1,098 |
→ openxdox_code |
71 | 2,315 |
not_moved / stays_openxfactory_adapter |
28 | 813 |
not_moved / stays_openxfactory_governance |
4 | 155 |
not_moved / replicated_at_destination |
3 | 30 |
| source total | 146 | 4,411 |
Zero rows resolve to a missing blob at b075fd91; zero non-.py rows carry def test_; no row with tests reaches opendox_spec or openxdox_spec. Replicas: test_conformance.py 20, test_interface_closure.py 6, test_no_home_vocabulary.py 4 — 30, at m = 3. Destinations 1,098+30 = 1,128, 2,315+30 = 2,345, (813+155)+30 = 998; Σ = 4,471 = 4,411 + (3 − 1) × 30 = 4,411 + 60 ✔. Every figure in § 5.4, § D6 (2), the record and the body matches mine exactly — no disagreement on any clause. Ancillary claims also re-measured and correct: repository-wide 8,731 def test_ at b075fd91; tests/ideation-dashboard/ 4,169 across 140 .py files; scripts/corpus_adapter.py carries 0, so OQ-Q genuinely cannot move the arithmetic; the manifest is 454 rows (172/146/136) and is read, not edited.
The claim that the ratified equality fails by exactly 60 is therefore confirmed, and so is the claim that its only mechanical repair would break FLOOR PART 3.
(4) SCOPE — PASS
Exactly five paths against merge-base 17167481: README.md (one row, one hunk) and the four packet files. Nothing under contracts/, .github/, scripts/, openspec/specs/ or docs/. specs/ideation-dashboard/spec.md is byte-identical — I confirm its 102 **Migration**: blocks and that 87 carry "test counts that must SUM across the three repositories", a phrase that names no quantity to be equal to. Leaving them is defensible and the record declares it, but it does leave 87 delta-side summaries whose wording a reader will have to reconcile with "Not a scalar equality" at archive time — worth a line in the archive evidence.
(5) DOC-HEALTH — PASS
python3 scripts/doc-health.py --single-repo . run at the head and at base 17167481 in separate worktrees: byte-identical after normalising the worktree name. 10 critical / 6 error / 14 info / 47 warning on both. No new finding. proposal-support . verify ok (above).
(6) HYGIENE — FAIL on two items
- Lane line first in the body ✔;
**Refs #656**✔; no closing keyword ✔;closingIssuesReferences0 ✔ (the only regex hit is the noun "one correctness fix."). - Commit trailers: all four commits carry
Co-Authored-By: Claude Opus 5 (1M context)and noLane:trailer — rule 6 wants one on every commit; the squash subject must carry it. - Copilot ran THREE rounds, not two. Round 3 (
2026-09-09T23:35:39Z, four inline comments,isOutdated=false— i.e. against this exact head) is unanswered and unaddressed:design.md:559, the record:114,tasks.md:898(the clause-(b) scoping finding above, which I independently confirm) andtasks.md:921("reds on", a wording nit). 5 review threads are unresolved, not 0 — those four plus the deliberately declinedproposal.md:31. - The decline is correct. Leaving
proposal.md'sLane: openxfactory-opendoxheader stale is ruled by this packet's own 2026-09-05 amendment — "TheRatified:andLane:lines are UNTOUCHED — the lane rename of 12:46Z explicitly does not rewrite records" — and the header records the lane the packet was authored in. Refreshing it would rewrite a ratified header to say something untrue when written. I would decline it too. It should still be replied to and resolved rather than left open.
(7) CI at head — one check still running
SonarCloud Code Analysis pass · clearing-dispatch-gate pass · lane-line pass · merge-master-approval pass · openreposhape-pin pass · openspec-cli-pin pass · release-tag-gate pass · signed-execution-chain-gate pass · wallet-validation pass · Sourcery review skipped · pytest-suite IN_PROGRESS. mergeStateStatus: BLOCKED (code-owner review), mergeable: MERGEABLE.
Verdict. The amendment is sound: the form matches its own precedent, the restatement preserves RULING OQ-1 and its intent, and the arithmetic is independently reproducible to the digit. Two things stand between it and landing, neither of them the substance: answer Copilot round 3 — taking the clause-(b) scoping fix, which is a real defect and not a nit — and pytest-suite green. Brett's separate word is still owed either way.
…e trigger the zero-count evidence actually arrives on
Copilot (two sites) and Codex (P2), both ACCEPTED and both fixed rather than
refuted.
COPILOT — a ticked box under a paragraph that still shouts it is open. The § 2
group note ("2.1 AND 2.2 STAY OPEN") and the 2026-06 half of box 5.1 ("STAYS
OPEN, AND NOT FOR WANT OF A CYCLE") are kept VERBATIM, because they are the
honest account of why those boxes were open for three days — but each now
carries a dated bracket marker BEFORE it saying it is a superseded record to be
read in the past tense, so the contradiction is not what a reader meets first.
Neither record's words are altered and neither is deleted.
CODEX P2 — the evidence recipe named a trigger that does not exist, and the
packet had already measured that at § 3 finding 3. `merge-master-approval.yml`
is the only workflow that PRINTS a `covered-pending` reading, and its triggers
are `pull_request_target` and `workflow_dispatch` only; `pytest-suite.yml`, the
workflow that does run on `push: branches: [main]`, computes no
`pending_floor_extension` report at all (verified in this tree: `grep -c` over
pytest-suite.yml returns 0). So "the next `main` run" in box 5.5's own words
resolves to no run. Both 5.5 (b) and the archive ledger's step (3) now name the
run the evidence actually arrives on — the first ADVISORY run over a base that
includes the landed re-pin, i.e. a merge-master-approval run on the next pull
request opened or synchronised after it, or a hand workflow_dispatch. That is
exactly how box 5.1's own evidence was produced: run 34417309342 is a
pull_request_target run on the unrelated PR #874 reading a base that already
carried #832. Step (3) therefore rides ordinary pull-request traffic and needs
no new surface, which is why the finding changes the recipe and not the plan.
Also pre-empted, because checking Codex's claim turned it up: `grep -ln
covered-pending .github/workflows/*.yml` names review-lane-repin.yml too, but
its occurrence is a design comment on the cadence-versus-tolerance argument
(line 94), not output — the lane renders no floor report. The note says so.
openspec validate --all --strict at the pinned CLI: unchanged from main
(0 undispositioned, the same 2 accepted exceptions). No box was ticked or
untucked by this commit: 29 ticked / 6 open, as before.
Refs #745
Lane: openxfactory-2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…eplicas; precedent count corrected; Copilot round 3 SHOULD-FIX A (the verifier's, and Copilot round 3's, reached independently). Clause (b) and refusal case 4 (`replica-multiplicity-undeclared`) bound EVERY `not_moved / replicated_at_destination` row. The landed manifest carries 18 such rows and § 5.4 declares homes for the 3 that carry tests (20 / 6 / 4 `def test_` at m = 3); read literally the other 15 — all carrying 0 `def test_` — had undeclared replica sets and the carve REFUSED today. Both sites now bind only a replicated row THAT CARRIES TESTS, with the reason stated: a zero-test replica contributes (m − 1) × 0 = 0 whatever its set, so it can neither move the Σ nor make it uncomputable, and its replica set is owed to FLOOR PART 1. Case 4 gains the measured-today sentence case 1 already had: the case does not fire — 15 zero-test replicas are outside the clause's domain, the 3 test-bearing ones are declared. Carried at `tasks.md` § 5.4 (b) and case 4, `design.md` § D6 (2) (b), and the record's clause (b) bullet and case table. SHOULD-FIX B. The record's precedent survey said every one of the seven archived `amend-*` changes amends through a `## MODIFIED Requirements` delta. Six do; `2026-09-05-amend-chain-anchoring-readiness-and-durability` uses `## ADDED` (`specs/chain-anchoring/spec.md`, re-measured here). The sentence now says six MODIFIED and one ADDED, and says why the conclusion is untouched: the delta VERB was never what makes a sibling packet unavailable — the promoted capability is, and ADDED and MODIFIED alike need a `specs/<capability>/` to write into. Copilot round 3, four threads at 1c640a5: three are SHOULD-FIX A at its three sites (`tasks.md` 898/903/962, `design.md` 559, the record 114) and are taken above; the fourth is a wording nit — "an equality pin on a sum reds on merge refs" now reads "goes RED on merge refs" (`tasks.md` § 5.4 (d)). Re-validated at this tree: `validate-openspec-cli-pin.py --change` 1 passed / 0 failed; `--all` every target --strict with 0 undispositioned failures (the 2 accepted exceptions untouched); `proposal-support.py . verify` ok; doc-health `--single-repo .` identical to base 1716748 after masking the worktree name and the clock-derived report date and draft ages — 10 critical / 6 error / 14 info / 47 warning on both, no new finding. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openxfactory-4-opendox-extraction Verifier round 1 taken in full, at SHOULD-FIX A — the scoping defect, reached independently by the verifier and by Copilot round 3, and it was real. Clause (b) and refusal case 4 ( SHOULD-FIX B — a Copilot round 3 — 4 threads, all answered and resolved; the fifth stays declined and is now closed. Three of the four are SHOULD-FIX A at its three files ( Nothing about the ruling moved. RULING OQ-1 is still not reopened, RULING OQ-K's restatement is unchanged in substance, the arithmetic is untouched — Re-validated at
Scope is unchanged: three packet files in this commit, nothing under 🤖 Generated with Claude Code |
There was a problem hiding this comment.
🟡 Changes recommended
Multiple Markdown inline-code formulas are split across lines (and one reference is ambiguous), which can render inconsistently and should be corrected before landing.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 4
- Review effort level: Lite
….yml explicitly Three sites in proposal.md and tasks.md still split the Σ(destinations) formula's backtick span across two physical lines (design.md's copy was already joined at e638c70); rejoin each onto one line so the code span renders as intended. tasks.md § 5.4 (d) also named its workflow reference only as "that file" two sentences after `pytest-suite.yml` was last named; name it explicitly to remove the ambiguity Copilot round 4 flagged. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]>
…ually re-read on The archive ledger's 5.5 row still summarised the evidence trigger as the box's own phrase, "on the next `main` run", while the paragraph directly below it measures that no such run exists: `merge-master-approval` — the only workflow that emits `covered-pending` — triggers on `pull_request_target` and `workflow_dispatch` only, and `pytest-suite.yml`, the workflow that does run on `push: branches: [main]`, greps zero for `pending_floor_extension` in this tree. The row now carries the box's phrase as a quotation, says that it resolves to NO RUN, and names the run the reading actually arrives on: the first advisory `merge-master-approval` run over a base that includes the landed re-pin — the next pull request opened or synchronised after it, or a hand `workflow_dispatch`. That is the same trigger the body text and box 5.5 (b) already name, and the same one box 5.1's own evidence came from (run 34417309342, a `pull_request_target` run on the unrelated PR #874). No box state changes; the diff is one table cell. Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
One documentation clarity issue remains in tasks.md where two replicated test module paths are referenced without their full tests/corpus-adapter/ prefix, making the source mapping ambiguous.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
openspec/changes/split-opendox-two-layer-product/tasks.md:921
- In the arithmetic paragraph, the three replicated test modules are listed but two paths are missing the
tests/corpus-adapter/prefix (test_interface_closure.py,test_no_home_vocabulary.py). Using full paths for all three keeps the reference unambiguous and consistent with the decision record’s tables.
- Files reviewed: 5/5 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
|
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox) LANDING — lane openxfactory-4-opendox-extraction, session openXfactory-4 (2) c6d5cc team-01f@Eagle, 2026-09-10T00:37:09Z, PR #874 into openxFactory main Gate: head |
…-record: take #871's release-tag-publication change before opening the PR; no release-surface path moved on main MEASURED, NOT ASSUMED. `git diff --name-only 1716748 origin/main -- contracts/ docs/contract-versioning-policy.md docs/terminology-and-repo-topology.md docs/xfactory-domain-factory-model.md tests/intent-compliance/test_release_boundary.py` is EMPTY across the whole span since the integration point, so the re-formed candidate be77cb3 does not need re-forming and contract-v3.6 is still free on all three surfaces. WHAT MAIN CARRIES SINCE 1716748, first-parent: #871 `9c0e2cda` (release-tag-publication keeps the findings a later Skip used to discard — scripts/doc_health/release_tag_publication.py, runner.py and their tests, the very family the release-tag gate runs), #873 `8480378a` (tick bookkeeping in adopt-codexfactory-repository-identity) and #874 `bf803b55` (split-opendox FLOOR PART 2 restated). The brief named 9c0e2cd as the tip; main advanced to bf803b5 while this branch's full suite ran, and bf803b5 moves README.md and the split-opendox change directory only. The gates are RE-RUN at this merge under main's NEW gate code rather than carried over from the pre-merge readings. Lane: opsXfactory-1 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013yeStdjshnETAn94CE6Tgg



Lane: openxfactory-4-opendox-extraction
Refs #656
The ruling
Brett Heap, 2026-09-09T22:19:57Z, by click-through selection in session
openXfactory-4(#656 comment5609526215), verbatim:The form, and the precedent it cites
An IN-PLACE amendment of the ratified, unarchived packet — inline
> Amended 2026-09-09.notes at every carrier site plus areview/amendment-<date>-<topic>.mddecision record and the README OpenSpec Records row. That is the form this packet's own 2026-09-05 repository-shape amendment used (review/amendment-2026-09-05-repository-shape.md), and it is the form the ruling itself names — "a small amendment PR to the change".The two alternatives were checked and neither is available:
## MODIFIED Requirementsdelta inside this change would have to modify a requirement that does not exist. FLOOR PART 2 is not promoted and is in no spec delta —design.md§ D6 says so under its own heading "WHY NO PROMOTED REQUIREMENT IS AUTHORED FOR THE FLOOR, stated so the omission is a decision and not a gap", becauserelease-realization's archive gate is already held by two active changes.amend-*change. All seven archived precedents (2026-09-03-amend-owner-layer-severity…2026-09-09-amend-marker-defect-reporting) amend a promoted capability underopenspec/specs/. (Corrected ate638c705on the verifier's SHOULD-FIX B: six of the seven do it through a## MODIFIEDdelta; the seventh,2026-09-05-amend-chain-anchoring-readiness-and-durability, uses## ADDED. The delta VERB was never what makes a sibling packet unavailable here — the promoted capability is.) With no promoted requirement here, such a packet would carry an emptyspecs/and fail--strictwhichever verb it used.Old vs new
tasks.md§ 5.4, as ratified:As restated (full text at
design.md§ D6 (2), carried attasks.md§ 5.4):def test_has at least ONE post-split home named by its own row. A file with tests and no home is a LOST TEST and the carve REFUSES.not_moved / replicated_at_destinationrow THAT CARRIES TESTS DECLARES the repository set its replica lands in, the retainedopenxFactorycopy included;mis that set's size. Declared in the row, never inferred at arrival — an undeclared replica set on such a row makes the check uncomputable, which is a refusal and not a pass. The clause binds test-bearing replicated rows only (scoped ate638c705): the manifest's 18 replicated rows are 3 test-bearing and 15 zero-test, and a zero-test replica contributes(m − 1) × 0 = 0whatever its set, so its replica set is owed to FLOOR PART 1 rather than to this floor.Σ(destinations) = source_count + Σ (m − 1) × row_test_count, every term read from the manifest at the carve commit.openxFactory, the waypytest-suite.ymlalready pins the collection triple — SKIPPED exactly, SELECTED and PASSED as floors, failures and errors zero. Per destination, never as one cross-repository equality.The cases the check owes, each of them a refusal
The floor carries no
#### Scenario:blocks because it has no spec delta to host them — the same reason no promoted requirement is authored for it — so the scenario obligation lands as named cases on the build task, where a carve operator reads them:def test_and its row names no home (nodestination, and nonot_movedreason that constitutes one)test-home-missing— and adeleted_at_carverow carrying tests is the same refusal under its own name, because deleting tests is a decision to be RULED. Measured atcarve_commit: zero such rowsdef test_falls BELOW the total its own rows declaredestination-test-shortfall— the silent drop, the part whose absence Brett named when he rejected snapshot-equivalence alonereplicated_at_destinationrow declaresm = 3and carries 20def test_(tests/corpus-adapter/test_conformance.py)source_count, three times across the homes, excess exactly(3 − 1) × 20 = 40; and deleting a replica to make a raw equality hold is itself a refusal, because § 3.7 requires every destination to carry that corpus. This is the case the ratified equality could not expressreplicated_at_destinationrow that carriesdef test_names no homesreplica-multiplicity-undeclared— the multiplicity is unknown, the sum term is UNCOMPUTABLE, and an uncomputable check is never a pass. A zero-test replicated row is outside the case (its term is(m − 1) × 0 = 0). Measured atcarve_commit: this case does not fire today — 15 zero-test replicas are outside the clause's domain, the 3 test-bearing ones are declaredThe first two are the ratified rule's own cases kept in intent; the last two are OQ-K's.
Four drafted cases were handed over by a sibling author who stood down in this lane's favour; ALL FOUR were taken, with one correctness fix. The draft's first case turned on "its disposition is not
replicated_at_destination", which would have refused everystays_openxfactory_*row carrying tests — 32 rows holding 968def test_, every one of which HAS a home, namelyopenxFactoryitself. The case now turns on whether the row names a home at all, and addsdeleted_at_carvecarrying tests as the same refusal under its own name. The same author's second addition — thetasks.md§ 0.4 bookkeeping note — was taken as drafted.The intent is unchanged — no test is lost, and a silent drop still refuses. RULING OQ-1 is NOT reopened: four parts, part 2 still about tests, both rejected single-instrument alternatives still rejected. Only part 2's TEST moves.
The arithmetic, with the landed manifest's real numbers
Measured at
carve_commit b075fd91dc8fced8e1373825ba80220c33536baeover each row's blob, against the manifest that landed as PR #865 (17167481), countingdef test_— the packet's own idiom:.pyrows with testsdef test_→ opendox_code→ openxdox_codenot_moved / stays_openxfactory_adapternot_moved / stays_openxfactory_governancenot_moved / replicated_at_destinationThe three replicated test modules, at multiplicity 3 each because § 3.7 requires the conformance corpus to pass at every destination — openDox, openXdox's adapter implementation and
openxFactory's own adapter:def test_mtests/corpus-adapter/test_conformance.pytests/corpus-adapter/test_interface_closure.pytests/corpus-adapter/test_no_home_vocabulary.pyopenxFactoryremainderThe ratified equality reads
4,471 = 4,411and fails by exactly 60 — the term it does not have. Its only mechanical repair would have been to DELETE replicas that FLOOR PART 3 requires: breaking part 3 to satisfy part 2. The scalars are also stale —3,927 / 125 / 7,612were measured ata858e5b0on 2026-09-04, before the five pre-carve splits and before the manifest existed; the repository now holds 8,731def test_.The replicated census, since clause (b) now turns on it: the landed manifest carries 18
not_moved / replicated_at_destinationrows — 3 test-bearing (20 + 6 + 4 = 30def test_, homes declared at § 5.4) and 15 carrying zero, namelyscripts/corpus_adapter.py,output_boundary.py,path_slug.py,wire_messages.py, the eighttests/corpus-adapter/fixtures/*,tests/hermeticity.py,tests/ideation-dashboard/conftest.py,staging_shapes.pyandtests/import_scan.py. Only the 3 enter the Σ, and only the 3 are bound by clause (b).The figures were measured twice independently by two authors working the same ruling, from the landed manifest, and both runs returned the same numbers; a third, independent verification at
1c640a5breproduced every one of them to the digit.What moved, and what did not
Ten sites in four files plus the record:
proposal.md(headerAmended:line, the eleven-acts item 12, RULED OQ-1 item 2),design.md(headerAmended:line, the R-indexOQ-1row, § D6 (2)),tasks.md(§ 0.4's bookkeeping row, § 5.4, § 8.2's archive-gate evidence line),README.md(the change's OpenSpec Records row, as the 2026-09-05 amendment's own form requires), andreview/amendment-2026-09-09-floor-part-2-mapping.md.NOT touched: no promoted requirement authored, modified or removed;
openspec/specs/untouched; no spec delta gains, loses or re-titles a requirement or scenario. The 87 ofspecs/ideation-dashboard/spec.md's 102**Migration**:blocks that summarise the floor as "test counts that must SUM" are left byte-identical — that phrase names no quantity to be equal to and is not falsified, and the 2026-09-05 amendment set the same precedent ("No spec delta file is touched by this amendment.").docs/opendox-carve-manifest.yamlis READ and not edited — clause (b)'s one obligation on FLOOR PART 1 lands in FLOOR PART 1's own successor pull request. Nothing undercontracts/,.github/orscripts/.Validation
python3 scripts/validate-openspec-cli-pin.py --change split-opendox-two-layer-productTotals: 1 passed, 0 failed (1 items)— @fission-ai/[email protected] verified against its content address,--strictcleanpython3 scripts/validate-openspec-cli-pin.py --all--strictwith 0 undispositioned failures; the 2 accepted exceptions (add-chain-attestation,add-composed-view-authoring) are pre-existing and untouchedpython3 scripts/proposal-support.py . verifyproposal support verification okpython3 scripts/doc-health.py --single-repo .vs the same run at base17167481e638c705, the clock-derived report date and draft ages, the run having crossed UTC midnight) — 10 critical / 6 error / 14 info / 47 warning on both; no new finding(Every row above re-run at
e638c705after the round-1 fixes, with the same outcome.)Verifier round 1
An independent verification of
1c640a5bby a separate window, in two detached worktrees of its own (one at the head, one atcarve_commit b075fd91), returned PASS on form, substance, arithmetic, scope and doc-health — every figure re-measured rather than read from this body, and no disagreement on any clause — with NOT READY on hygiene: an unanswered Copilot round 3, and two SHOULD-FIX items. All of it is taken ate638c705:tasks.md§ 5.4 (b) and case 4,design.md§ D6 (2) (b), the record's clause (b) and its case table.amend-*changes use## MODIFIED;2026-09-05-amend-chain-anchoring-readiness-and-durabilityuses## ADDED. Corrected in the record and above. The conclusion is unchanged, and the record now says why the delta verb was never load-bearing.tasks.md§ 5.4 (d)), taken as drafted. The fifth open thread —proposal.md:31's staleLane:header — stays declined, on this packet's own 2026-09-05 amendment ("the lane rename … explicitly does not rewrite records"); the verifier independently agreed with the decline and asked only that it be answered and closed, which it now is. Unresolved review threads: 0.The verifier also noted, as an observation rather than a defect, that
specs/ideation-dashboard/spec.md's 87**Migration**:blocks summarising the floor as "test counts that must SUM" are deliberately left byte-identical, and that a line reconciling them belongs in the archive evidence.tasks.md§ 8.2's archive-gate evidence line already carries the amendment; the reconciliation note is owed at archive, not here.NOT DONE
replicated_to:field here, andscripts/validate-carve-manifest.pydoes not yet refuse an undeclared replica set — clause (b) declares the obligation and names FLOOR PART 1's own successor pull request as where it lands. Until then § 5.4's enumeration IS the declaration.scripts/corpus_adapter.pyis one of the 15 zero-test replicated rows, so the arithmetic is identical under either disposition — and, sincee638c705, so is clause (b), which does not reach a zero-test row at all.This pull request touches
openspec/changes/, so Rule 6's landing window applies at landing (LANDING —posted on the PR and inLANES.md, other lanes held untilLANDED —or 30 minutes).Asking for Brett Heap's separate word to land this.
🤖 Generated with Claude Code
Summary by Sourcery
Replace the stale scalar test-count equality in FLOOR PART 2 with a manifest-based source-to-destination mapping that preserves replicated test homes and refuses silent coverage loss.
New Features:
Bug Fixes:
Enhancements:
Documentation:
Tests: