Skip to content

Record the doxBench two-plane memory ruling (threads-as-truth + staged-set knowledge service) - #203

Merged
brettheap merged 1 commit into
mainfrom
change/record-doxbench-memory-ruling
Aug 18, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/record-doxbench-memory-ruling

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Summary

  • Dispositions doxbench-editing-model's open Q7 (which memory system persists per-document chat threads and assembles the staged-set-wide context) as ruled — Brett's 2026-08-18 in-session ruling synthesizing his live-UI annotations, a web-research pass on harnesses/graph-context managers, and an external design review he supplied.
  • The ruled design is a two-plane memory model: Plane 1 is session working memory — per-document thread sidecar files on the session's draft branch (structured thread-state header + transcript), committed on Save, shared only via an explicit share-session commit+push. Plane 2 is a governed Staged-Set Knowledge Service — retrieval over the staged set plus promoted findings, behind one MCP boundary + assembly port, graph-less in v1 (local hybrid lexical/BM25 + embeddings + thread-states) with a concrete graduation trigger for adding a graph manager (Cognee preferred) later. Promotion is gate-only through existing lifecycle verbs; source ranking is status-driven; the chat harness is oh-my-pi via a thin stdlib bridge (one OMP RPC session per document-thread; threads never held in harness memory).
  • Adds nine new Claims (13-21) recording the ruled design, plus an Idea notes VERIFY LIST before Phase B realization flagging external-review claims (OMP memory backends, MCP client depth, SYSTEM.md re-read behavior, Cognee's current graph backend) that still need independent confirmation.
  • Updates ideation/staging/INDEX.md's doxbench-editing-model detail section: memory design ruled, every Phase B question now dispositioned, Phase B proposal drafting is next.

Test plan

  • doc-health pre/post diff (single-repo self-gate): findings unchanged at 3 critical / 6 error / 70 warning / 3 info both before and after; 0 new regressions reported by --previous-report/--new-findings-out.
  • scripts/validate-ideation-routing.py . --strict: 0 errors, 0 warnings.
  • Verified every existing Open-question Recommended answer: prefix in the fragment remains intact (Q1-Q7).

Co-Authored-By: Claude Opus 4.8 [email protected]

Dispositions Q7 (which memory system persists per-document threads and
assembles set-wide context) as ruled: a two-plane design — per-document
sidecar thread-state files on the session branch as truth, plus a
Staged-Set Knowledge Service (governed, shared, derived retrieval over
the staged set and promoted findings) behind one MCP boundary, graph-less
in v1 with a concrete graduation trigger, install-declared retrieval
backend, promotion gated through existing lifecycle verbs, a
status-ranked source hierarchy, and the chat running through the
oh-my-pi harness via a thin stdlib bridge (one OMP session per
document-thread; threads never held in harness memory). Adds nine new
Claims (13-21) recording the ruled design, a Ruling block on Q7, and an
Idea notes VERIFY LIST of items the external design review's claims that
still need our own confirmation before Phase B realization. Updates the
INDEX.md topic detail to reflect all Phase B questions now dispositioned.

Dispositioned-by: Brett Heap (in-session ruling) · 2026-08-18

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 18, 2026 17:48

@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 8b84e2f into main Aug 18, 2026
1 check passed
@brettheap
brettheap deleted the change/record-doxbench-memory-ruling branch August 18, 2026 17:49

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

This PR updates the staged ideation docs to record Brett Heap’s 2026-08-18 ruling for doxBench chat memory as a two-plane model (session thread sidecars as working-memory truth + a governed Staged-Set Knowledge Service behind one MCP boundary), and marks Phase B’s memory-design question as dispositioned.

Changes:

  • Updates the staging index entry for doxbench-editing-model to reflect Q7 as ruled and Phase B questions as fully dispositioned.
  • Adds Claims 13–21 and a detailed “Ruling” block describing the ruled two-plane memory model, plus a “VERIFY LIST” of externally sourced details requiring independent confirmation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ideation/staging/INDEX.md Updates the doxbench-editing-model summary to reflect the ruled two-plane memory design and Phase B readiness.
ideation/staging/doxbench-editing-model/doxbench-editing-model.md Records the ruling via new claims, a ruling block, and a verification checklist for unconfirmed external-review assertions.

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

Comment on lines 623 to +627
assembly server-side and out of the wire preserves the serve's write
discipline (the interactivity boundary's declared allowlist); and a summary-
per-other-thread (rather than every thread in full) bounds context growth as
the staged set's document count grows.
Disposition status: open — awaiting Brett's ruling from the options
discussion he requested ("discuss options with me")
Ruling: THE RULED TWO-PLANE MEMORY DESIGN (Brett, 2026-08-18, synthesizing his
Comment on lines +681 to +682
Disposition status: ruled (Brett, 2026-08-18) — the two-plane memory design
below
brettheap added a commit that referenced this pull request Sep 5, 2026
…r lanes (proposal, draft) (#676)

* Author openxFactory's half of the floor addition grace as a draft proposal

codexFactory's `add-floor-addition-grace` is RATIFIED and REALIZED (issue #203
ruled option (c), "rule c, this lane authors it"; "ratify 205, B1 stands"; PR
#206, merge `712fc8ca`). Its ratified requirement *"The blocking check and the
reporting lane implement one completeness rule"* has a second lane, and the
second lane is this repository's — NAMED there as the companion change
`openxFactory: mirror-floor-addition-grace` and deliberately not authored there
(its tasks 4.1-4.3). This is that companion, as a PROPOSAL ONLY.

## What is refused today, and where it blocks

The `repository_gate_floor` for `opensoft/openxFactory` is an EXACT SET: 59
generated spec paths inside a 67-entry floor. So promoting a capability is an
ADDITION to the set the floor enumerates, and `surface - entries` reports the
new path as uncovered in two places at once — the REQUIRED `pytest-suite`
assertion `test_every_tracked_openspec_spec_path_is_on_the_floor` (org ruleset
21538893) with the two negative controls that fail with it by construction, and
`merge-master-approval.yml` step 8 at stage `floor_incomplete`.

The repair was paid FIVE TIMES IN TWO DAYS (codexFactory PRs #183, #195, #197,
#198, #204 - four on 2026-09-04 alone), each matched here by an advance moving
five pin sites in lockstep. Until this companion lands, the ratified grace is
INERT IN THE ONLY LANE THAT BLOCKS.

## The measured defect this retires, re-measured here rather than quoted

Re-measured on this branch against `origin/main` (`55c95dc1`), 2026-09-05:

    3afd8a8  (THE LIVE PIN)  NOT an ancestor of main
    c236c6b                  NOT an ancestor of main
    8d893a0                  NOT an ancestor of main
    0ae7408                  ancestor
    2a3b29c                  ancestor

THREE OF THE LAST FIVE declared `generated_at` pins are not ancestors of `main`,
the live one among them, because the old order forced regeneration at an
openxFactory PULL-REQUEST HEAD. With the addition graced the regeneration
FOLLOWS the landing and can pin at a landed commit.

## The packet

SEVEN `## ADDED Requirements`, 28 scenarios, in a NEW capability
`review-lane-floor-mirror`. No `MODIFIED` and no `REMOVED` block anywhere in the
delta: `grep -rl "review-lane-pin\|LQ-A7\|floor_snapshot" openspec/specs`
returns NOTHING across all 59 promoted capabilities, so there is no requirement
text to modify and no sibling-delta hazard to walk into.

Decision A, the packet's one real design choice: the REQUIRED lane MIRRORS the
rule and is falsified by replaying the core's 16 exported vectors plus its 5
refused ones; the ADVISORY lane IMPORTS `evaluate_floor_completeness` outright.
The asymmetry is measured, not stylistic - the pinned core checkout is
`continue-on-error: true` in `pytest-suite.yml` on purpose ("a required check
that fails for reasons the candidate cannot fix blocks everything"), so an
IMPORTING blocking assertion could only skip (the blocking check silently
ceasing to block - the CSC-F16 shape inside the guard against CSC-F16) or fail
for a cause no candidate can fix. Step 8 already treats an unreadable core as
fatal and has nothing to protect by keeping a second copy of the rule.

Decision B: a NEW capability rather than `neutral-product-pin`, on that pin
file's OWN written ground - `contracts/review-lane-pin.yaml` declares
`kind: pinned_workflow` and says why, "Reusing `pinned_contract_manifest` would
have claimed a digest discipline this pin does not have and cannot have".

Decision D: `sequenced_after: [codexFactory:add-floor-addition-grace]` - the
FIRST cross-repository entry in this corpus. The grammar accepts
`<repository>:<change-id>` and checks a qualified foreign entry for
well-formedness only, which is exactly the disposition this dependency has.

## Validation

    openspec validate mirror-floor-addition-grace --strict   valid
    openspec validate --all --strict            90 passed, 0 failed (was 89)
    scripts/proposal-support.py . verify        ok
    scripts/validate-sequenced-after.py .       passed (31 active, 2 declaring)
    pytest tests/review_lane_pin -q             55 passed, 1 skipped (unchanged)

`--ledger-diff` is STALE by exactly this change's one missing row and the six
derived totals that follow from it; the row is seeded in the next commit, once
the pull request number this ledger records exists.

RATIFICATION IS OWED AND IS BRETT HEAP'S ACT. His word of 2026-09-05,
"companion", authorized the AUTHORING and not the content; nothing here is
ratified by being authored. No realization code, no pin advance, no
regeneration, no D-3 tolerance value, and no codexFactory file touched.

Refs #675
Lane: openxfactory-2 (openXfactory-2)
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Move the one ledger row this packet's arrival moves

A consequence of the previous commit, not a re-baseline to make a check pass.

## The row — moved by the tool, never by hand

`python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#676'
--moved-on 2026-09-05` -> `wrote tests/sequenced_after/corpus-ledger.yaml (168
rows, 1 moved by #676)`, and the row it names is `mirror-floor-addition-grace`.

    +  mirror-floor-addition-grace: {state: active, class: sole,
    +    declares: [codexFactory:add-floor-addition-grace], depth: 0,
    +    prose: false, moved_by: "#676", moved_on: "2026-09-05"}

ONE LINE, ONE INSERTION, ZERO DELETIONS — `git diff --stat` reads
`1 file changed, 1 insertion(+)`. **NO PARTNER FLIPPED**: the packet's delta
opens a NEW capability (`review-lane-floor-mirror`), so it shares no requirement
key with any change in the corpus and lands `class: sole` without moving anybody
else's class. **No MOVEMENT LOG entry is owed** —
`add-per-change-sweep-ledger`'s restated rule reserves an entry for a move the
row diff does NOT state, and this move is entirely stated by the row diff.

`--ledger-diff` had reported the staleness in advance and named its whole
extent: one missing row plus the six derived totals that follow from it
(change_ids 167->168, active 30->31, sole_modifiers 52->53, active_sole 10->11,
declaring 3->4, and the declaring_ids tuple). It now reads
`per-change sweep ledger consistent with the corpus (168 rows)`, exit 0, and
`pytest tests/sequenced_after` is **162 passed** where it was 4 failed.

## One honest finding about `depth: 0`, recorded rather than smoothed over

This is the corpus's FIRST cross-repository `sequenced_after:` declaration, and
the derived `depth` it produces is **`0`** — because the sweep measures "the
longest RESOLVABLE declared chain from this change", a qualified FOREIGN entry
resolves for no validator by design (*"the neutral validator cannot read another
repository's corpus and MUST NOT pretend to"*), and no hop is therefore
walkable.

The ledger's own header says `0` is the value it wanted to keep away from a
non-declaring row because *"`0` would read as a resolved root"*. Here the row
DOES declare — `declares:` carries the foreign parent verbatim, so the two keys
read together say exactly what is true — but a reader keying on `depth` ALONE
would read this row as a root, which it is not. The value is what the tool
derived and it is not hand-corrected here; the observation is recorded so the
first instance of the shape is on the record rather than rediscovered by
whoever files the second one.

Refs #675
Lane: openxfactory-2 (openXfactory-2)
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Record the depth: 0 reading the first cross-repository declaration produces

The observation was in the ledger commit's message and nowhere a future author
would look. `design.md` gains § 7, so the shape is on the record at its FIRST
instance rather than rediscovered at its second.

`sequenced_after: [codexFactory:add-floor-addition-grace]` is the corpus's first
QUALIFIED FOREIGN entry — measured 2026-09-05, three changes declare the field
and all three declare bare local parents. The sweep derives `depth: 0` for it,
and the value is TRUE: `depth` is "the longest RESOLVABLE declared chain", and a
qualified foreign entry resolves for no validator BY DESIGN
(`validate_resolvable` checks well-formedness only, because "the neutral
validator cannot read another repository's corpus and MUST NOT pretend to").

But the ledger's own header keeps `depth` off a non-declaring row for exactly
this reason — "`0` would read as a resolved root" — and `[]`, the POSITIVE root
claim, is a fact the ledger goes to trouble elsewhere to keep apart from
absence. Read together with `declares:` the row is exact; read on `depth` alone
it is misleading.

Nothing is hand-corrected: hand-editing a derived key is the defect "moved by
the tool, never by hand" exists to prevent. Whether `depth` should distinguish
"no resolvable hop" from "resolved root" is left as a question somebody can take
up deliberately, in its own change, now against a real example.

`openspec validate mirror-floor-addition-grace --strict` still valid; no
requirement, scenario or front-matter field moves.

Refs #675
Lane: openxfactory-2 (openXfactory-2)
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Copilot round 1: the pin-window command is the core's own, argument for argument

FINDING ACCEPTED, AND IT IS A REAL DEFECT rather than a style note. Copilot
found the same fault at two of the three sites that write the command
(`proposal.md` § What Changes, `tasks.md` 2.2); the third (`design.md` § 3) had
`--name-only` but not `--pretty=format:` and carried HALF the same fault, so all
three are corrected in one act rather than only the two that were reported.

WHAT WAS WRONG. The packet wrote the B1 window as

    git log --diff-filter=A <generated_at>..<base> -- openspec/specs

which emits COMMIT HEADERS interleaved with nothing else — no path list at all
without `--name-only`, and commit metadata mixed into the paths even with it
unless `--pretty=format:` empties the header. A realization following the
written command would have parsed a different thing from the one the pinned core
parses, in a packet whose entire object is that the two lanes must not diverge.

THE FIX IS NOT "ADD A FLAG", IT IS "COPY THE CORE'S INVOCATION". All three sites
now carry `specs_floor_block.paths_added_after_pin`'s exact argument list:

    git log --diff-filter=A --name-only --pretty=format: \
        <generated_at>..<base> -- <prefix>

and each says why the two flags are load-bearing. `design.md` § 3 states the
principle the correction actually follows: copying the invocation is the same
discipline as replaying the core's vectors — the rule has one home, and so does
the command that feeds it.

No requirement, no scenario and no front-matter field moves; the spec delta is
byte-unchanged. `openspec validate mirror-floor-addition-grace --strict` valid;
`--all --strict` 91 passed / 0 failed; `proposal-support.py . verify` ok.

Refs #675
Lane: openxfactory-2 (openXfactory-2)
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Record Brett's ratification of mirror-floor-addition-grace: "ratify the companion when green, then realize it"

Brett Heap (repository owner), in session, verbatim: "ratify the companion
when green, then realize it" — a standing word given while the packet was
being authored, applied at the first head where the condition held,
ce9a81e (all ten checks green, three Copilot threads resolved, Copilot
Approval recommended, Codex quota-refused). Recorded on PR #676 (comment
beginning "RULING — Brett Heap") and issue #675 (comment beginning
"RATIFIED — Brett Heap").

RATIFIED: the seven `## ADDED Requirements` (28 scenarios) on the new
capability `review-lane-floor-mirror`, as written. Because the word
preceded the authoring's completion, authoring decisions A-F stand as
recommended and none is separately ruled; the owner may veto any by
follow-up.

Nothing in the spec delta changes between the ruled head and this commit:
`git diff ce9a81e -- specs/ design.md tasks.md .openspec.yaml` is empty.
Ratification authorizes promotion of the delta and performs no
realization; realization is the next act on the same word.

Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Lane: openxfactory-2 (openXfactory-2)

* Copilot round 2: the origin field answers its own "has not happened"

.openspec.yaml's origin.approved_by note said the packet's content
ratification "has not happened" — true when authored, stale after the
ratifying commit. Append, in the same field, the house precedent's shape
(amend-chain-anchoring-readiness-and-durability's .openspec.yaml): the
field still records authorization to file only, and a separate dated
statement records that the packet has since been ratified, citing the
verbatim word, the head it applied at, and the ratification record.
Nothing in the field's original text moves.

Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Lane: openxfactory-2 (openXfactory-2)

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 5, 2026
…6724f0), pinned at a landed regeneration (#689) — the first promotion judged under the grace (#699)

* Archive mirror-floor-addition-grace: ratified (#676), realized (#686 f6724f0), pinned at a landed regeneration (#689) — the first promotion judged under the grace

Brett Heap's word in session on 2026-09-05, verbatim "archive the grace
packets" — one word over BOTH halves of a cross-repository pair. This is the
SECOND half, and the order is this packet's own declaration rather than a
preference: proposal.md carries sequenced_after:
[codexFactory:add-floor-addition-grace], so the parent archived first
(codexFactory PR #218, merge commit 35c08994, 2026-09-05T19:47:09Z, promoting
repository-gate-floor 5 -> 12 requirements and closing codexFactory issue #203).

AND THIS ARCHIVE IS THE PACKET'S OWN FALSIFICATION TEST. It CREATES
openspec/specs/review-lane-floor-mirror/spec.md, a new tracked path under a
floor that is an EXACT ENUMERATION. Under the regime this packet replaced, that
path would be reported UNCOVERED in two lanes at once and the REQUIRED
pytest-suite would refuse this pull request until a two-repository hand repair
had run — the cost measured at five payments in two days. Under the grace now in
force in both lanes, THIS pull request's own diff creates the path, so the
required lane should stay GREEN with the path covered-pending
(created_by_candidate) and the advisory lane should print
pending_floor_extension naming it. Tasks 5.2 and 5.3 are observations of THIS
pull request's checks and are ticked in a later commit here, with run ids and
the verbatim lines, or not at all.

EVERY SHA RE-READ FROM THE GITHUB API FOR THIS ACT, not remembered. RATIFIED
2026-09-05 "ratify the companion when green, then realize it", applied at head
ce9a81e; record review/ratification-2026-09-05.md, archived with the packet;
decisions A-F stand as recommended, none separately ruled. PROPOSED by PR #676
(568fa37). REALIZED by PR #686 (f6724f0, 2026-09-05T17:30:54Z). REGENERATED AT
A LANDED COMMIT by codexFactory PR #212 (67a6ffc9, generated_at 3afd8a8 ->
f6724f0, 59 entries unchanged) — the first floor repair in this programme that
did NOT block the pull request that caused it. RE-PINNED onto it by PR #689
(b680499), five sites in lockstep, which is what makes the live test
measurable: f6724f0 IS an ancestor of this repository's main (checked with
git merge-base --is-ancestor on this tree), where the retired 3afd8a8 was not,
so B1's pin window resolves rather than fail-safing to None. No contract bundle,
no digest set, no contract_bundle_version spent, no release tag owed.

THE ESCAPE IS DISCLOSED. python3 scripts/proposal-support.py . archive
mirror-floor-addition-grace was run FIRST and REFUSED — exit 1, "change has
incomplete tasks", working tree untouched; its gate is
scripts/proposal-support.py:1079-1081, read off those three lines in this tree
and UNCONDITIONAL on WHICH box. OPENSPEC_TELEMETRY=0 openspec archive
mirror-floor-addition-grace --yes was used instead: "Task status: 26/29 tasks",
"Warning: 3 incomplete task(s) found. Continuing due to --yes flag.",
"review-lane-floor-mirror: create", "+ 7 added", "Totals: + 7, ~ 0, - 0, -> 0".
Precedents: govern-sibling-added-modified-deltas (#571 3bcde7e),
declare-spent-bundle-state (#611 7af2725), add-subject-establishment (#647
e4ff4fb), add-chain-anchoring (#669 66d11a2),
amend-chain-anchoring-readiness-and-durability (#670 3d7b8f3), and one hour
earlier this packet's own parent (codexFactory #218, 35c08994).

THREE BOXES STAY OPEN, none of them undone realization. 5.2 and 5.3 are this
pull request's own observations (above). 6.3 says in its own first words that it
is NOT OWED HERE: the D-3 escalation-tolerance NUMBER is codexFactory's to set
in its own CODEOWNERS-routed document — it stands PROPOSED at 3, offered for
veto, no veto exercised, UNRULED — and option (b) of codexFactory issue #203
remains unruled and undesigned. An openxFactory archive cannot close a
codexFactory owner's box and none is attempted.

BYTE-CHECKED PROMOTION, one way because the capability is NEW: the archived
delta's requirement region (16 744 bytes) against the created specification's
(16 745), extracted from the first "### Requirement:" line on both sides — diff
reports exactly one difference, 182a183, a single appended blank line at
end-of-file, the same one-byte archiver signature #669 and #670 each recorded.
SEVEN requirements / 28 SCENARIOS on both sides, counted rather than added.
git status --porcelain -uall openspec/specs/ names that one file and no other.

THE ## Purpose WAS WRITTEN BY THIS ACT and is the one thing in the promoted file
the archiver did not author. Leaving the tool's "TBD - created by archiving
change ... Update Purpose after archive." would have made this the ONLY promoted
specification in the corpus still carrying it — 552a3a7 repaired all 39 others
on 2026-09-05 — so it was replaced in the promoted specification directly, which
is the only surface where such an edit lands. It carries no SHALL and lies
outside the byte-checked region.

REPOINTS, listed rather than summarized. README.md: the entry MOVED from
"Active changes" to the head of "Archived changes", relinked to the archive
path, with the word, the evidence chain, the escape, the open box and the live
test stated. tests/review_lane_pin/test_floor_snapshot.py: the packet citation
in the mirror's own header comment repointed to the archive directory and the
promoted capability named beside it (comment only; no assertion, name or watched
string moved). LEFT ALONE ON THE #669/#670 PRECEDENT: contracts/review-lane-pin.yaml's
history paragraphs and every archived record that cites the old path — records
are frozen, and contracts/ carries provenance rather than navigation.

GATES ON THIS HEAD: openspec validate --all --strict 94 passed / 0 failed;
proposal-support.py . verify ok; validate-sequenced-after.py . passed. The
per-change sweep ledger is STALE by design at this commit (row
mirror-floor-addition-grace state active -> archived, plus the three derived
totals) and is re-seeded in the NEXT commit with this pull request's real
number, never by hand.

Lane: openxfactory-2 (openXfactory-2)
Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Seed the per-change sweep ledger row for this archive: mirror-floor-addition-grace active -> archived, moved by #699

The row is MOVED BY THE TOOL, never by hand, which is the substrate's own rule:
python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#699'
--moved-on 2026-09-05 — "wrote tests/sequenced_after/corpus-ledger.yaml (173
rows, 1 moved by #699)". Exactly ONE row moved and the diff is one line:

  mirror-floor-addition-grace: {state: archived, class: sole,
    declares: [codexFactory:add-floor-addition-grace], depth: 0, prose: false,
    moved_by: "#699", moved_on: "2026-09-05"}

class stays `sole`, the CROSS-REPOSITORY parent declaration is carried
unchanged, and `depth: 0` is carried unchanged too — the known oddity this
packet's own design.md § 7 recorded when it filed the corpus's first
cross-repository `sequenced_after:` (a foreign parent resolves for
well-formedness but contributes no hop to a depth this repository can measure).
It is NOT hand-corrected here.

The pull request number could not be known before the pull request existed,
which is why this is a second commit rather than part of the archive: the
archive commit deliberately left the ledger STALE and said so.

AFTER, on this head: validate-sequenced-after.py . --ledger-diff reports
"per-change sweep ledger consistent with the corpus (173 rows)" over 34 active
+ 139 archived (was 35 + 138); python3 -m pytest tests/sequenced_after -q is
162 passed, where the archive commit alone had the three expected sweep
failures (test_the_LIVE_corpus_and_the_LEDGER_agree_row_by_row,
test_the_totals_DERIVED_FROM_THE_LEDGER_equal_the_MEASURED_sweep,
test_the_live_ledger_reports_the_SAME_totals_the_sweep_MEASURES).

Lane: openxfactory-2 (openXfactory-2)
Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* The live test found the controls: negative controls measure their grace sets like the shipped assertion; 5.2/5.3 ticked with the observed outputs

Lane: openxfactory-2 (openXfactory-2)

This is the live test task 5.2/5.3 exist for. PR #699 (this pull request)
is the programme's first real promotion: it creates
openspec/specs/review-lane-floor-mirror/spec.md, a new tracked path under
the exactly-enumerated floor. On head 1fde704:

- merge-master-approval run 33989488802 printed the advisory lane's
  pending_floor_extension outcome for the first time ever (the parent's
  own archive record, codexFactory PR #218, could only report the report
  SHAPE with nothing pending): stage pending_floor_extension,
  covered-pending 1 (tolerance 3, pin measured), PENDING
  (created_by_candidate): openspec/specs/review-lane-floor-mirror/spec.md,
  floor evaluated 0 never-clearable path(s) touched.
- pytest-suite run 33989489654 held the required lane's own shipped
  assertion, TheRealFiles::test_every_tracked_openspec_spec_path_is_on_the_
  floor, GREEN with the same path covered-pending — but the SAME run found
  two negative controls red: NegativeControls::test_the_unmutated_surface_
  is_a_positive_first and NegativeControls::test_a_fabricated_off_floor_
  spec_path_is_refused (2 failed, 9631 passed, 21 skipped).

Cause: both controls called graced_uncovered(self.surface, self.entries,
(), ()) with hard-coded EMPTY grace sets, while the shipped assertion
beside them measures created/window from resolve_base_branch(),
created_since_merge_base() and pin_window(). On a branch that legitimately
creates a spec path, the controls saw it as uncovered where the shipped
assertion correctly saw it covered-pending. This is a defect in the
companion realization (PR #686, authoring decision E: the controls were
moved onto the graced expression but not onto the graced measurement),
predicted by Copilot review (thread PRRT_kwDOTAvnrs6fmnH4) and caught here
by the first real promotion — exactly what this live test was for.

Fix, in tests/review_lane_pin/test_floor_snapshot.py only:
NegativeControls.setUpClass now derives generated_at/created/window the
same way TheRealFiles.setUpClass and the shipped assertion do.
test_the_unmutated_surface_is_a_positive_first now asserts missing == ()
and that every covered-pending path carries a measured reason, instead of
asserting ((), ()) against a live surface that legitimately has a pending
path. test_a_fabricated_off_floor_spec_path_is_refused now takes a
baseline before adding the fabrication and asserts the fabricated path
alone is refused while pending is unchanged from that baseline.

Re-run after the fix: tests/review_lane_pin -q -> 73 passed / 2 skipped
(both controls pass on this branch); with PINNED_CORE_CHECKOUT at
codexFactory 67a6ffc9 -> 75 passed / 43 subtests, no skips.
tests/sequenced_after -q -> 162 passed. openspec validate --all --strict
-> 94 passed / 0 failed. validate-sequenced-after.py . --ledger-diff ->
consistent (173 rows, no row moves).

tasks.md: ticks 5.2 and 5.3 in the archived
2026-09-05-mirror-floor-addition-grace change with the verbatim run
output above. README.md: the mirror-floor-addition-grace archive entry
pointed at "tasks.md § Archive" for the observed result, but the evidence
lives in tasks.md's own 5.2/5.3 items — corrected the pointer, and added
one sentence naming the negative-controls defect this live test found and
fixed, so the archive narrative does not read as a clean first pass.

Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 5, 2026
…or joins the floor (67 -> 68), the first advance that lands with no red before it (#702)

* Re-pin the decision core at codexFactory #226: review-lane-floor-mirror joins the floor (67 -> 68), the first advance that lands with no red before it

STEP (2) of the two-repository act. codexFactory issue #203, ruled option
(c) by Brett Heap ("rule c, this lane authors it"). Brett Heap's word in
session 2026-09-05 ~20:0xZ, verbatim "land the companion archive when green,
then do the regeneration". The companion archive landed as openxFactory PR
#699 (merge b5eddaa) — the openxFactory half of archiving
`mirror-floor-addition-grace` itself, promoting
`openspec/specs/review-lane-floor-mirror/spec.md` under a floor that is an
exact enumeration. PR #699 landed GREEN under the grace: the required lane
held the surface `covered-pending` (`created_by_candidate`, tolerance 3) and
the advisory lane printed `pending_floor_extension` naming the path — the
first promotion in this programme's history that did not block the pull
request that caused it.

codexFactory PR #226 (MERGE COMMIT `ad15a8988490bf19c659254a92354987ec3a4028`,
merged 2026-09-05T21:52:00Z) then ran `generate_specs_floor_block.py --write`
at openxFactory `b5eddaa3` — PR #699's own merge commit, a commit reachable
from openxFactory `main` (`git merge-base --is-ancestor` holds) — closing the
deferral: `generated_at` / `--ref` move `f6724f04` -> `b5eddaa3`;
`entry_count` moves 59 -> 60; the floor total moves 67 -> 68. This commit is
the five-site advance that regeneration makes owed.

## Five sites, before -> after

| Site | Before (`67a6ffc9`) | After (`ad15a898`) |
|---|---|---|
| `contracts/review-lane-pin.yaml` `core_commit` | `67a6ffc932da44ebe1529d8cc25ab222b60a4ca1` | `ad15a8988490bf19c659254a92354987ec3a4028` |
| `.github/workflows/merge-master-approval.yml` `PINNED_CORE_COMMIT` | `67a6ffc9…` | `ad15a898…` |
| `.github/workflows/merge-master-approval.yml` core checkout `ref:` | `67a6ffc9…` | `ad15a898…` |
| `.github/workflows/pytest-suite.yml` core checkout `ref:` | `67a6ffc9…` | `ad15a898…` |
| `contracts/review-lane-floor-snapshot.yaml` (byte copy) | sha256 `18389a3d…3521a8`, 15402 bytes, blob `fdcd9f7e834a487d96cb87b8cc0c3ef5d6a4d771`, entry_count 67 | sha256 `b4dcf676…45bf241`, 15456 bytes, blob `3912c660649f0258f85fccbf14a1c1c4ce465296`, entry_count 68 |

Exactly ONE 40-hex commit-shaped token remains in `review-lane-pin.yaml`
(`core_commit`), verified with `\b[0-9a-f]{40}\b` — the sha256 digest is 64
hex characters and matches no 40-char word-bounded substring of itself.

## Witnesses

At codexFactory `ad15a898`,
`scripts/merge_master/openxfactory-review-authority-floor.yaml`:
sha256 `b4dcf676e388e7984da90a8e71b135cc06f2d740b34a41a86de663bc145bf241`,
15456 bytes, blob `3912c660649f0258f85fccbf14a1c1c4ce465296` — three-way
identity confirmed: `git show ad15a898:…floor.yaml | sha256sum` == the
vendored copy's `sha256` == `cmp` byte-for-byte against the vendored file on
disk == `git hash-object` on the vendored file matches the blob `git
rev-parse ad15a898:…floor.yaml` names.

**THE FLOOR GREW BY ONE AND IT IS THE SPEC promoted by #699.** `git diff
67a6ffc9 ad15a898 -- scripts/merge_master/openxfactory-review-authority-floor.yaml`
in the pinned core, read in full rather than summarized: the block's
`generated_at` / `--ref` header lines move `f6724f04` -> `b5eddaa3`,
`entry_count` moves 59 -> 60, and ONE entry line is added —
`openspec/specs/review-lane-floor-mirror/spec.md` — inserted in sorted order
among the other `openspec/specs/**` paths. The EIGHT hand-reasoned
chokepoints are untouched and nothing is removed, so no dead entry arrives
with it.

## No collision measured

openxFactory PR #687 (`change/repoint-pytest-suite-at-pin`), the lane noted as
a collision risk in the prior re-pin, is **MERGED** (`gh pr view 687
--json state` -> `MERGED`) and already part of `origin/main` before this
branch was cut, so its edits to `.github/workflows/pytest-suite.yml` are
already in this tree; this commit's only change to that file is the
codexFactory core checkout's `ref:`, a separate line from anything #687
touched. No other open pull request was found editing any of the four
touched files.

## Lockstep re-measured on xFactory main

xFactory's own two merge-master surfaces still pin codexFactory
`f4702f647c285012c15717043332f68f1edefc29` (the 2026-08-28 ceremony), read
from the local aggregation checkout without fetching or writing to it (never
touch `~/projects/xFactory`). At that commit,
`scripts/merge_master/openxfactory-review-authority-floor.yaml` still carries
exactly FOUR never-clearable paths, not the sixty-eight this pin now names —
the divergence this file's own comment history already records stands
unchanged by this advance, and is re-stated (SIXTY-SEVEN -> SIXTY-EIGHT) where
it is a live claim; the dated historical paragraphs describing each prior
advance are left untouched.

## Validated

- `pytest tests/review_lane_pin -q` (no core on disk): **73 passed, 2
  skipped, 22 subtests passed.**
- `PINNED_CORE_CHECKOUT=<codexFactory clone at ad15a898> pytest
  tests/review_lane_pin -q`: **75 passed, 43 subtests passed, no skips** —
  the freshness verifier and the vector replay both ran.
- `OPENSPEC_TELEMETRY=0 openspec validate --all --strict`: **95 passed, 0
  failed.**
- `python3 scripts/validate-sequenced-after.py . --ledger-diff`: **consistent
  with the corpus (174 rows), no row moves** — this re-pin is not an OpenSpec
  change and touches no ledger row.
- All four touched YAML files (`review-lane-pin.yaml`,
  `review-lane-floor-snapshot.yaml`, and the two workflow YAMLs) re-parse
  clean under `yaml.safe_load`.
- `git diff --stat` against `origin/main` is exactly the five sites, four
  files, no more.

## Frozen records untouched

Both governing packets are ARCHIVED: openxFactory
`openspec/changes/archive/2026-09-05-mirror-floor-addition-grace/` and
codexFactory `2026-09-05-add-floor-addition-grace/`. Neither `tasks.md` is
edited — they are frozen records, and this advance's own obligation is not a
box either packet declares (the second post-grace regeneration is the grace
mechanism operating as designed, not a packet task). Only the five pin sites
move.

Lane: openxfactory-2 (openXfactory-2)
Refs #675
Co-Authored-By: Claude Fable 5.1 <[email protected]>

* Copilot round 1: the live counts read 68 and 60 everywhere the pin speaks in the present tense

Copilot thread PRRT_kwDOTAvnrs6fnUaW on `contracts/review-lane-pin.yaml:521`
(PR #702) found a genuine miss: the pinned_members `why:` for
`openxfactory-review-authority-floor.yaml` says "SIXTY-EIGHT never-clearable
paths as of this advance" two lines above, then still read "8 + 1 rather
than 67 equally-reasoned chokepoints" a few lines later — the SAME live
sentence describing the document's own self-description, left at the old
count. Fixed: 67 -> 68.

Swept the whole file for every other live-tense count claim
(`SIXTY-SEVEN|67-entry|\b67\b|FIFTY-NINE|\b59\b`) and classified each hit:

- Every `59`/`67` inside the dated "ADVANCED ... TIME" / "UNCHANGED IN KIND
  BY THE Nth ADVANCE" paragraphs (declared_from's comment history and the
  pinned_members `why:` narrative) is HISTORICAL — each paragraph is a frozen
  record of what was true at ITS OWN advance, and later paragraphs already
  supersede them without editing them in place, exactly as the eighth's
  paragraph was left alone when the ninth's was added. Left untouched.
- The `FIFTY-NINE` at "the same FIFTY-NINE the `67a6ffc9` advance carried,
  plus ONE" is a correct backward reference to the PRIOR pin's count, not a
  stale current-count claim. Left as written.
- `lockstep.reason`'s last paragraph, "UNCHANGED IN KIND BY THE NINTH
  ADVANCE ... this file now names `67a6ffc9`, carrying the SAME 67-entry
  floor as `e57643a7`", was the field's live endpoint before this advance and
  is now itself historical — same treatment as every earlier "now names"
  paragraph in that field once superseded. Left it exactly as it reads (it
  was true when the ninth advance made it true) and APPENDED a new paragraph,
  "THE GAP WIDENS AGAIN, THE TENTH ADVANCE, 2026-09-05", which is now the
  field's live endpoint: names `ad15a898`, a SIXTY-EIGHT-entry floor, ONE
  MORE than `67a6ffc9`'s sixty-seven (the added entry being
  `openspec/specs/review-lane-floor-mirror/spec.md`), and records that this
  advance — unlike the eighth and ninth — actually grows the floor, so the
  gap against xFactory's still-unmoved `f4702f64` (re-read from the local
  aggregation checkout without fetching or writing to it; both its surfaces
  still name `f4702f64` verbatim) widens again rather than holding.

Validated on this head: `\b[0-9a-f]{40}\b` still matches exactly ONE token
(`core_commit`); `pytest tests/review_lane_pin -q` (no core) 73 passed / 2
skipped / 22 subtests; the same with `PINNED_CORE_CHECKOUT` at codexFactory
`ad15a898`, 75 passed / 43 subtests, no skips; all four pin-site files
re-parse clean under `yaml.safe_load`; `git diff --stat` against the prior
commit on this branch touches only `contracts/review-lane-pin.yaml`.

Refs #675
Lane: openxfactory-2 (openXfactory-2)
Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 6, 2026
…(PROPOSAL ONLY) (#708)

* WIP: companion proposal for option (b) — the re-pin lane (proposal.md)

Refs codexFactory#232, codexFactory#203. PROPOSAL ONLY; nothing realized.

Lane: openxfactory-2

* Propose the companion re-pin lane (design, delta, tasks, origin, README record)

Eight ADDED requirements on review-lane-floor-mirror; nothing realized, every
box unticked. The judge (LQ-A7, its controls, the byte-identity verifier and its
named watch) is deliberately untouched.

Refs codexFactory#232, codexFactory#203.

Lane: openxfactory-2

* Seed the per-change sweep ledger row for mirror-floor-regeneration-automation (#708)

One row added; tests/sequenced_after 162 passed. The ledger and the live corpus
agree again row by row.

Lane: openxfactory-2

* Take Copilot's thread: the ledger row's moved_on is the authorship date, 2026-09-06

The row read `moved_on: "2026-09-05"` while the README entry, the proposal
front-matter (`Proposed: 2026-09-06`) and `.openspec.yaml` (`created:
2026-09-06`) all said 2026-09-06. The seeder defaults `--moved-on` to
`datetime.date.today()` (scripts/validate-sequenced-after.py:265), which is the
LOCAL date; the packet was authored and both pull requests were opened after
00:00Z on 2026-09-06, so the local default was a day behind the fact.

Re-seeded through the sanctioned writer rather than hand-edited — the ledger
row is reset to origin/main and rewritten with
`--seed-ledger --moved-by '#708' --moved-on 2026-09-06`, which reports
"176 rows, 1 moved by #708". The diff is exactly one line.

`python3 -m pytest tests/sequenced_after -q` -> 162 passed.

Refs codexFactory#232, codexFactory#203.

Lane: openxfactory-2

* Ratify mirror-floor-regeneration-automation: Brett Heap, 2026-09-06, "ratify both when green, then land them"

A PAIR word over this companion and its parent codexFactory #235 together,
recorded 2026-09-06T01:18Z on PR #708 (comment 5556025824), applied at head
e4ef8ad. THE WORD WAS CONDITIONAL AND THE CONDITION WAS MET: the ruling held
the ratifying commit until `pytest-suite` left pending on that head; it was
polled at 60-second intervals and PASSED (run 34003024740, 23m50s), and only
then was this authored. Decisions M-1 through M-7 STAND AS RECOMMENDED; no veto
was exercised and each remains one edit away.

NO REQUIREMENT TEXT MOVES. `git diff e4ef8ad -- .../specs/ .../design.md
.../tasks.md` is EMPTY at this commit: eight ADDED requirements, 24 scenarios,
one ADDED heading, no MODIFIED and no REMOVED block. What changes is
proposal.md's Status:/Ratified: headers and its two dated notes, the README
OpenSpec Records entry's standing, .openspec.yaml's kept-and-answered
approved_by statement, and the new review/ratification-2026-09-06.md.

NOTHING IS REALIZED, AND NO PIN MOVES. contracts/review-lane-pin.yaml,
merge-master-approval.yml's PINNED_CORE_COMMIT and its checkout ref,
pytest-suite.yml's checkout ref, and contracts/review-lane-floor-snapshot.yaml
with its sha256 and entry_count: 68 are all byte-unchanged. The JUDGE — LQ-A7,
its two negative controls, the byte-identity verifier, its named-testcase watch
and EXPECT_SKIPPED — stays outside the declared code_surface.

The catch-up merge of origin/main (0adb5c6) is carried in the same act. It
brought no conflict and added no change directory, so the per-change sweep
ledger needed no re-seeding: --ledger-diff reports "per-change sweep ledger
consistent with the corpus (176 rows)" with this change's row intact at
moved_by "#708", moved_on 2026-09-06, depth 1; tests/sequenced_after -> 162
passed.

OPENSPEC_TELEMETRY=0 openspec validate mirror-floor-regeneration-automation
--type change --strict -> valid; --all --strict -> 94 passed, 2 failed, the
same two pre-existing failures main carries.

Refs codexFactory#232, codexFactory#203, codexFactory#231.

Lane: openxfactory-2

* Carry the codexFactory #235 round-2 sweep across: the same approved_by contradiction and Status: draft residue, fixed here too

The openxFactory half of the sweep Copilot's round 2 opened on codexFactory
#235. Copilot has not reviewed this head; these were found by carrying that
review's findings across rather than by waiting to be told twice.

1. .openspec.yaml approved_by contradicted itself — "the packet remains
   Status: draft ... a separate act that has not happened" sitting beside "THE
   PACKET HAS SINCE BEEN RATIFIED". Same defect openxFactory #676 fixed in
   98edcb4, fixed the same way: the approval-to-author sentence goes into the
   past tense, scoped to when the field was written.
2. tasks.md 6.1 still said "It is Status: draft". It now carries a dated
   2026-09-06 note recording the ratification, and 6.2 one recording that
   M-1..M-7 stood. BOTH BOXES STAY UNTICKED — ticking an owner's-act box is a
   claim an agent may not make about the owner.
3. design.md section 8's "second cross-repository entry" was CHECKED and HELD,
   and now carries its evidence: corpus_sweep('.') reports declaring=5 over
   change_ids=176, and of those five exactly TWO carry a qualified foreign
   entry — mirror-floor-addition-grace (codexFactory:add-floor-addition-grace)
   and this one. The claim was true; only the number was missing.

CHECKED AND NEEDING NO CORRECTION: this packet carries no "fenced front matter"
claim of any kind (grep -rn 'fenced' over the packet and the README entry
returns nothing), so the four false absolutes corrected on codexFactory #235 —
"no codexFactory proposal is fenced", "the second proposal to carry
sequenced_after:", "the only fenced proposal in the corpus" — are not mirrored
in this repository and nothing here inherited them.

NO REQUIREMENT TEXT MOVES AND NO PIN MOVES. `git diff 4c40990 --
.../specs/` is EMPTY: eight ADDED requirements, 24 scenarios, one ADDED
heading, no MODIFIED and no REMOVED block; zero ticked boxes. Narrative
corrections to a RATIFIED packet at a later head under the SAME word, on the
precedent of openxFactory #701. review/ratification-2026-09-06.md carries a
dated addendum recording exactly that.

OPENSPEC_TELEMETRY=0 openspec validate mirror-floor-regeneration-automation
--type change --strict -> valid; --all --strict -> 94 passed, 2 failed, the
same two pre-existing failures main carries. --ledger-diff -> consistent
(176 rows); tests/sequenced_after -> 162 passed.

Refs codexFactory#232, codexFactory#203.

Lane: openxfactory-2

* Take Copilot round 3: the workflow permissions key is pull-requests, and the tasks header overclaimed

MEASURED, not assumed: across both .github/workflows/ trees the workflow
`permissions:` key is spelled `pull-requests` in every occurrence
(`pull-requests: read` x3, `pull-requests: write` x3) and `pull_requests` in
none; actions/create-github-app-token's input is `permission-pull-requests`,
hyphenated the same way. The underscore form is the App INSTALLATION
permission's spelling in the App/API vocabulary — the form both repositories'
READMEs already use for App grants. Both sites here describe what the LANE'S
WORKFLOW needs, so they take the hyphen form with the App-side spelling named
beside it: two vocabularies, and the one that goes in YAML is now the one
written.

Second thread: tasks.md's header said "NOTHING BELOW IS STARTED BY THE
AUTHORING OF THIS PACKET" directly above a group 1 that lists this packet's own
authoring acts. The absolute was wrong. The header now scopes itself — no
REALIZATION is started (groups 2-5), group 1 is the proposal's own acts with
its boxes still unticked for the stated reason, and group 6 is the owner's,
recorded by dated note because an agent may not tick an owner's-act box.

NO REQUIREMENT TEXT MOVES and no box is ticked. Narrative corrections to a
RATIFIED packet at a later head under the SAME word (precedent openxFactory
#701); review/ratification-2026-09-06.md carries a dated round-3 line.

Lane: openxfactory-2

---------

Co-authored-by: Brett Heap <[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