Skip to content

Stage doxbench-editing-model: left-selects / chat-works / right-shows editing workbench - #182

Merged
brettheap merged 1 commit into
mainfrom
change/stage-doxbench-editing-model
Aug 15, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/stage-doxbench-editing-model

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Summary

Stages a new topic under ideation/staging/doxbench-editing-model/ encoding Brett Heap's 2026-08-15 in-session direction: the settled interaction model for editing any document inside doxBench.

Brett's seven claims (verbatim substance)

  1. Left panel = the selector of what you are working on. Existing tabs (docs, lens, outline) stay, PLUS a dynamic numbered tab ('1', '2', …) for every document a user opens in edit mode.
  2. Outline tab focused → the center chat session operates in THAT context, editing the outline document; the right panel shows the chat's working output — a new 'unsaved' version of the outline.
  3. Docs tab → the docs wheel; clicking a doc tile expands it (as today) → two options: read (immersive large-screen reader) and edit (loads the doc into the left panel as a new numbered tab).
  4. A doc with an open unsaved edit must be visibly marked on its wheel tile (e.g., tile color change).
  5. When a doc tab is selected (edit mode): center chat binds to that doc's context; the right panel shows the updated doc as the chat and/or user edits it.
  6. Right panel redesign: NOT split (md top / preview bottom) — TAB-BASED: an Editor tab (raw md) and a Preview tab (large rendered preview). The right panel carries Save and Cancel.
  7. The general model: left selects the working doc, center chat works on it, right shows the result with save/cancel.

What was verified against the live code (not assumed)

  • doxbench-state.js's BUFFER_KINDS is frozen to exactly ["outline", "document"], and the state validator throws unless the buffer set is exactly those two keys.
  • doxbench_turns.py's require_outline_and_document refuses any turn request that does not supply exactly one outline buffer and one document buffer; PROPOSAL_TARGETS is the same fixed two-tuple.
  • doxbench-save.js's SAVE_BUFFER_ORDER is a fixed, ordered two-buffer commit sequence (outline first, establishing session ancestry the document buffer's commit depends on).
  • The right panel (doxbench-editor.js) already renders a textarea and a preview side by side in one pane per buffer tab — the literal split view Claim 6 retires.
  • The docs wheel's expanded tile (doc-wheel.js) offers exactly one verb today (read).
  • The wheel (wheel.js/wheel-model.js) carries no dirty-tile concept — only an unrelated health-status badge idiom worth reusing.

This means the N-buffer generalization of state, turn assembly, and save ordering is the load-bearing engineering question this topic surfaces — not a UI-only change.

Open questions (6, none blocking)

  1. Numbered vs. named tabs and tab-overflow policy — recommended: numbered chips with filename tooltip, LRU overflow into a dropdown.
  2. Save/Cancel semantics — recommended: Save = commit-per-gate-action on the session's draft branch (existing branch-session substrate) with PR-as-save (open-pr) as the promotion act; Cancel = discard to base_content.
  3. Dirty-tile signaling storage — recommended: a distinct visual state driven by live buffer dirty flags, session-local, never persisted into the snapshot.
  4. Chat-context binding rule — recommended: chat always binds to the active left-panel selection; every turn names the buffer it acted on.
  5. Editor/Preview default and sync — recommended: Preview default, live re-render on switch, reusing the existing debounced-preview pipeline.
  6. Concurrent-edit safety — recommended: keep the existing per-buffer content-hash generation guard, applied per buffer regardless of count (already buffer-scoped, not state-scoped).

Sibling relationship: staged-topic-outline-template's Open question 4 (which intent verb authorizes AI section-patching — edit-apply) is the content-contract half of the same underlying act; this topic is the interaction-model half. Deliberately kept as two separate topics so neither's exit gates the other.

Test plan

  • python3 scripts/doc-health.py --single-repo . before/after diff: 0 new findings
  • python3 scripts/validate-ideation-routing.py . --strict: 0 errors, 0 warnings
  • xspec:candidate target=ideation-dashboard markers verified to resolve and pass tag-hygiene family cleanly

🤖 Generated with Claude Code

… editing workbench

Encodes Brett's 2026-08-15 direction as the settled interaction model for
editing any document in doxBench: the left panel is the selector (docs,
lens, outline, plus a dynamic numbered tab per document opened in edit
mode), the center chat always binds to the active selection, and the right
panel becomes an Editor/Preview tab pair with Save/Cancel — replacing
today's split markdown/preview layout. Verified live that BUFFER_KINDS,
turn assembly, and save ordering are all hard-coded to exactly two buffers
(outline, document), so the N-buffer generalization is flagged as the
load-bearing engineering core rather than assumed away. Sibling of
staged-topic-outline-template's Open question 4 (content-contract vs.
interaction-model halves of the same AI-edit act).

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

@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 6630cea into main Aug 15, 2026
1 check passed
@brettheap
brettheap deleted the change/stage-doxbench-editing-model branch August 15, 2026 13:43

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

Stages a new ideation topic documenting the settled interaction model for doxBench multi-document editing, including the implications of generalizing today’s fixed outline+document buffer model to N buffers.

Changes:

  • Registers the new staged topic doxbench-editing-model in ideation/staging/INDEX.md.
  • Adds the primary staged-topic fragment describing the 7 settled claims, conflicts with current code constraints, and the 6 open questions for follow-on design work.

Reviewed changes

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

File Description
ideation/staging/INDEX.md Adds the doxbench-editing-model entry and its detailed section to the staging index.
ideation/staging/doxbench-editing-model/doxbench-editing-model.md Introduces the staged topic document capturing the interaction model, constraints, and open questions.

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

Comment on lines +9 to +11
selected, and the right panel shows the result as an Editor/Preview TAB PAIR
(replacing today's split markdown-over-preview layout) carrying Save and
Cancel. A docs-wheel tile's expanded view gains a second verb — edit, beside
Comment thread ideation/staging/INDEX.md
Comment on lines +1297 to +1299
— primary: 7 claims, live `xspec:candidate` Why/What changes/Impact
sections, 7 idea notes, 6 conflicts, 6 open questions each with
Context/Recommended answer/Explanation/Disposition status, exit.
brettheap pushed a commit that referenced this pull request Sep 3, 2026
… the two-packet collision

THE OPENXFACTORY HALF OF THE FLOOR REPAIR THIS PACKET'S OWN PROMOTION FORCED,
TAKEN A SECOND TIME AND FOR A REASON THAT IS NOT A CORRECTION OF THE FIRST.

TWO openxFactory packets each promoted a NEW capability on 2026-09-03, and
codexFactory's `repository_gate_floor` for this repository is REGENERATED BY
ENUMERATING A TREE rather than by editing a list. `add-project-repo-schema`
(PR #616, merged 20:49Z as `19d00872`) landed first and codexFactory PR #183
(`605d48ac`) regenerated for it. codexFactory PR #184 (`8cb17373`) then
regenerated for THIS packet at `c9928846` — PR #615's PRE-MERGE branch head,
which did not yet carry #616's promotion — so its block went 54 -> 54 rather
than 54 -> 55 and SILENTLY DROPPED `openspec/specs/project-repo-schema/spec.md`,
the entry #183 had just landed.

NEITHER EARLIER PULL REQUEST IS DEFECTIVE. Each regenerated at a real tree,
exactly as CSC-C7 requires. This is the failure mode a two-lander collision
HAS, and the pinned core's `docs/repository-gate-floor-repair-runbook.md`
already answers it by making the SECOND LANDER regenerate once at its OWN
POST-MAIN-MERGE head.

AND `main` WAS NEVER BROKEN IN THE INTERVAL — stated so nobody hunts an
incident that did not happen. `main`'s pin named `605d48ac`, whose 58-entry
floor covers `main`'s 54-spec tree INCLUDING `project-repo-schema`. The gap
becomes reachable only when THIS packet's fifty-fifth spec lands, which is the
moment this advance exists to serve.

CODEXFACTORY'S HALF LANDED: PR #186, MERGE COMMIT (not squash)
`8f770afbf86043ee0f5494ded0f12f51c2a9b45e`, 2026-09-03T21:55:35Z, regenerated
at openxFactory `8d893a0f` — this branch's merge of `main` `19d00872`, and the
FIRST COMMIT ANYWHERE carrying fifty-five tracked paths under
`openspec/specs` — restoring `project-repo-schema` BESIDE
`standards-body-registry`. codexFactory `main` was re-verified at that same
commit by `git ls-remote` immediately before this advance rather than assumed.

FIVE SITES MOVE, IN ONE LOGICAL CHANGE, because the tests fail if any of them
disagree:

  contracts/review-lane-pin.yaml               core_commit  605d48ac -> 8f770afb
  .github/workflows/merge-master-approval.yml  PINNED_CORE_COMMIT (same)
  .github/workflows/merge-master-approval.yml  core checkout ref: (same)
  .github/workflows/pytest-suite.yml           core checkout ref: (same)
  contracts/review-lane-floor-snapshot.yaml    re-copied at the new commit

and the snapshot's declared witnesses move with it: `entry_count` 58 -> 63,
`sha256` 6ab79400… -> b8f95136916fc58d297a8319408bebbffaf327790fd2885a677e22de193f41f8.

THIS PIN NEVER NAMED `8cb17373`, AND THAT IS RECORDED RATHER THAN TIDIED AWAY.
Commit `0d17d1be` on this branch DID advance onto it at 16:24, and the later
catch-up merge of `main` — which carried PR #616's own advance to `605d48ac` —
resolved the pin sites to `main`'s side, so the intermediate 58-entry state
`8cb17373` describes was never the state this branch shipped. A reader
comparing this file's history to codexFactory's will see #184 land and this pin
skip it; that is the collision, not a lost edit.

THE SNAPSHOT IS A WITNESS AND WAS NOT HAND-EDITED (CSC-C7). It is a byte copy
fetched from the pinned core at `8f770afb` and verified THREE independent ways:
sha256 as above over 12492 bytes; GIT'S OWN CONTENT ADDRESSING —
`git hash-object` of the vendored file equals the blob sha codexFactory's tree
carries at that path and commit, `351c47fb5bfad13697dc6c777b9bb17a147e8e45`;
and `cmp` against a REAL shallow checkout of codexFactory at that commit. The
freshness comparison in `test_floor_snapshot.py` — which SKIPS when the core is
absent — was additionally run WITH that core on disk
(`PINNED_CORE_CHECKOUT=…`): 56 passed, ZERO skipped, so the byte-for-byte
assertion CI performs actually ran and passed here.

THE FLOOR GREW BY FIVE, AND ONLY ONE OF THEM IS A SPEC. Measured on the merged
tree, not inferred from the proposal.

  * THE SPEC: `openspec/specs/standards-body-registry/spec.md`. The generated
    block goes 54 -> 55 tracked paths. Coverage over this branch's merged tree:
    all 55 tracked paths under `openspec/specs` are floored, 0 uncovered, and 0
    floored spec paths are dead. Both `project-repo-schema` and
    `standards-body-registry` are present.
  * THE OTHER FOUR ARE CHOKEPOINTS, NOT SPECS, and they arrive here for the
    first time: codexFactory PR #182 (merge `e5534552`, 20:51:52Z — AUTHORED
    BEFORE #183/#184 BUT MERGED AFTER BOTH, which is why they surface at an
    advance whose stated object is a spec) floored the sibling
    FACTORY-IDENTITY REGISTER FAMILY BY NAME —
    `governance/factory-identity/register.yaml` and the wallet, grant and
    custody attestation beside it — realizing THIS repository's own ratified
    `add-cpc-clearing-boundary` task 2.7. By name is FORCED, not preferred:
    `_parse_exact_path` refuses wildcards and trailing slashes, so the
    directory cannot be floored as a prefix. All four exist on this tree,
    verified path by path, so the advisory lane gains four reachable floor
    paths and no dead entry. The document's hand-reasoned chokepoints go
    4 -> 8, and its own self-description moves with it: 4 + 1 becomes 8 + 1.

LOCKSTEP RE-MEASURED RATHER THAN CARRIED OVER: both xFactory judging surfaces
still name `f4702f64` (read directly off xFactory `main` 2026-09-03 — the two
`ref:` literals in `merge-master-approval.yml` and
`council-convening-lane.yml`), so `lockstep.status` stays `diverged` and the
obligation to converge at a future re-point ceremony stands. THE GAP WIDENED BY
FIVE ENTRIES, NOT BY A NEW KIND OF DIVERGENCE: the cause is unchanged from
2026-09-01 and is still forced by the feature.

Also takes a FIFTH catch-up merge of `origin/main` (`9a773a31`, the
`contract-v3.2` cut) — merged, never rebased — and files the archived packet's
tasks.md §5.7 forward with the completed repair. The squash SHA is deliberately
NOT invented there: it is filled in at landing by the merge-provenance comment.

Validated: tests/review_lane_pin + tests/sequenced_after +
tests/test_standards_body_registry.py = 190 passed, 1 skipped, 18 subtests
passed (that one skip being the freshness comparison, separately exercised
green with the core present); tests/doc-health = 1500 passed;
`openspec validate --all --strict` = 86 passed, 0 failed;
`scripts/validate-omnigent-contracts.py` = all checks passed;
`import cryptography` = 41.0.7.

Lane: openxfactory-f2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dt5nEtqzRNgf3Z5fEAQZtF
brettheap added a commit that referenced this pull request Sep 3, 2026
…03, realized by #593 (3c237cd), green on main (run 33717394896) (#615)

* Archive update-standards-body-current-publications: ratified 2026-09-03, realized by #593 (3c237cd), green on main (run 33717394896)

Brett's word: "archive it". Finishes work an Opus agent left on disk,
uncommitted, after being killed twice by provider errors — verified
rather than redone: the 8-file move to
openspec/changes/archive/2026-09-03-update-standards-body-current-publications/,
the byte-identical promotion to
openspec/specs/standards-body-registry/spec.md (real Purpose section,
requirements diff-clean against the delta), and the README "OpenSpec
Records" entry.

Took a catch-up merge of origin/main first: declare-spent-bundle-state's
own archive (PR #611, squash 7af2725) landed on main after this
branch was cut from 6da1e1f, so every gate and pin below is
re-measured against 7af2725 rather than the stale base. Corrected the
sequenced_after live pin accordingly in the same commit as the corpus
move (its own protocol): active_sole - 1 falls 12 -> 11 (this archive,
a SOLE modifier); active_co_modified already held at 20 from the
sibling archive this branch merged, not from this one. Ran
`python3 scripts/validate-sequenced-after.py . --sweep` on both trees
to confirm: 32 active + 126 archived = 158, 108, 50, 20 / 12.

Also added tasks.md 5.7 naming this PR as the landing act for the
archive that ran uncommitted in the isolated clone.

Gate evidence: PR #593 squash 3c237cd
on main; pytest-suite run 33717394896 (2026-09-03T05:26Z) and
signed-execution-chain-gate both success on that commit.

Validated: openspec validate --all --strict 86 -> 86 passed (33
active + 53 specs -> 32 active + 54 specs); pytest tests/doc-health
1500 passed either side; pytest tests/test_standards_body_registry.py
17 passed; pytest tests/sequenced_after 118 passed;
scripts/validate-omnigent-contracts.py all checks passed; doc-health.py
--single-repo . 6 critical / 6 error / 29 warning / 13 info either
side, 0 new regressions, and --family promotion-fidelity /
duplicate-packet / status-validity all zero findings either side.

Lane: openxfactory-f2

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GSRxesWQMRgFKUjoJiDd1w

* README: re-measure the archive entry's gates against the second catch-up merge

origin/main moved 5 more commits (#603 #599 #601 #614 #602, tip
1c3e744) while this PR was being finished. None touch this packet's
files, so the archive act itself is unaffected, but the doc-health.py
--single-repo info count and the base commit cited in the entry were
stale. Re-measured back-to-back on 1c3e744 (before) and the merged
tree (after): 6 critical, 6 error, 29 warning, 14 info, 0 new
regressions, unchanged by this act. Also records the one transient
pytest tests/doc-health network-read failure
(test_this_repository_can_consult_the_retention_namespace) that a
clean rerun did not reproduce.

Lane: openxfactory-f2

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GSRxesWQMRgFKUjoJiDd1w

* tasks.md: name PR #615 as the landing act

Fills the placeholder §5.7 left after PR creation.

Lane: openxfactory-f2

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GSRxesWQMRgFKUjoJiDd1w

* tasks.md: stop claiming PR #615 already landed on main

Copilot review round 1, taken: 5.7 said "LANDED ON main" while the PR
is still open. Corrected to state the PR exists and is open, not
merged; a follow-up line records the squash SHA once it actually
merges.

Lane: openxfactory-f2

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GSRxesWQMRgFKUjoJiDd1w

* tasks.md: name the third catch-up merge (#604)

A fourth commit landed on origin/main after the round-1 fix; §5.7 said
"TWO catch-up merges" when a third had since happened.

Lane: openxfactory-f2

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GSRxesWQMRgFKUjoJiDd1w

* Fix two Markdown rendering defects Copilot flagged

Round 2/3: an inline-code span split across two lines in tasks.md
(inline spans can't contain a newline) and a stray line break in
README.md that orphaned "with" on its own line. Cosmetic only, no
claims changed.

Lane: openxfactory-f2

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GSRxesWQMRgFKUjoJiDd1w

* Advance the review-lane pin onto codexFactory's regenerated 58-entry floor

THE OPENXFACTORY HALF OF A TWO-REPOSITORY REPAIR THIS PR'S OWN PROMOTION
FORCED. Promoting `standards-body-registry` adds a path under
`openspec/specs/`, and codexFactory's `repository_gate_floor` for this
repository ENUMERATES that surface exactly — so the new spec arrived OFF the
floor and `tests/review_lane_pin/test_floor_snapshot.py`'s LQ-A7 coverage
assertion reddened the REQUIRED `pytest-suite`. That is the guard working: a
spec the floor does not carry is a spec the floor does not protect.

THE ORDER IS FORCED AND IS THE RUNBOOK'S
(`docs/repository-gate-floor-repair-runbook.md` in the pinned core, and the
ordered repair the assertion prints on failure): codexFactory regenerates the
block at an openxFactory commit that ALREADY carries the new path, and only
then may this pin advance onto it — a pin cannot name a document that does
not yet exist.

CODEXFACTORY'S HALF LANDED FIRST: PR #184, merge
`8cb173738ebecd773eadd1b77b11d29029b37382` (2026-09-03T19:53:55Z),
regenerated by `scripts/merge_master/generate_specs_floor_block.py` at
openxFactory `c9928846` — this branch's own head, the only tree carrying the
new path.

FIVE SITES MOVE, IN ONE LOGICAL CHANGE, because the tests fail if any of them
disagree:

  contracts/review-lane-pin.yaml          core_commit  db157dbb -> 8cb17373
  .github/workflows/merge-master-approval.yml  PINNED_CORE_COMMIT (same)
  .github/workflows/merge-master-approval.yml  core checkout ref: (same)
  .github/workflows/pytest-suite.yml           core checkout ref: (same)
  contracts/review-lane-floor-snapshot.yaml    re-copied at the new commit

and the snapshot's declared witnesses move with it:
`entry_count` 57 -> 58, `sha256` bf7a6b69… ->
22993960b31ff7853df719a701b0f53cd62c420ed7fe25b2da1ba6646bf16f7b.

THE SNAPSHOT IS A WITNESS AND WAS NOT HAND-EDITED. It is a byte copy fetched
from the pinned core at `8cb17373` and verified two independent ways: sha256
as above over 9219 bytes, and GIT'S OWN content addressing —
`git hash-object` of the vendored file equals the blob sha codexFactory's
tree carries at that path and commit, `cdb08cd603a0d10c44f3c843e024d73bd1d6e1ce`.
The freshness comparison in `test_floor_snapshot.py` — which SKIPS when the
core is absent — was additionally run WITH the core on disk
(`PINNED_CORE_CHECKOUT=…`): 56 passed, ZERO skipped, so the byte-for-byte
assertion CI performs actually ran and passed here.

MEASURED, NOT ASSUMED. The new floor is the old floor plus exactly
`openspec/specs/standards-body-registry/spec.md` — nothing removed, no dead
entry introduced. 58 entries = the same 4 hand-reasoned chokepoints + 54 spec
paths (was 53). Coverage over the merged tree: all 54 tracked paths under
`openspec/specs/` are floored, 0 uncovered, and 0 floored spec paths are dead.
`project-repo-schema` has NOT landed, so 54 is the correct surface.

LOCKSTEP RE-MEASURED RATHER THAN CARRIED OVER: xFactory's two judging surfaces
still name `f4702f64` (read from xFactory main 2026-09-03), so
`lockstep.status` stays `diverged` and the obligation to converge at a future
re-point ceremony stands. The gap widened by ONE ENTRY, not by a new kind of
divergence — the cause is unchanged from 2026-09-01 and still forced by the
feature.

Also files forward the archived packet's tasks.md §5.7 with the floor repair.
The squash SHA is deliberately NOT invented there: it is filled in at landing
by the merge-provenance comment.

Validated: tests/review_lane_pin + tests/sequenced_after +
tests/test_standards_body_registry.py = 190 passed, 1 skipped (that skip being
the freshness comparison, separately exercised green with the core present);
tests/doc-health = 1500 passed; `openspec validate --all --strict` = 86 passed
0 failed; `scripts/validate-omnigent-contracts.py` = all checks passed.

Lane: openxfactory-f2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dt5nEtqzRNgf3Z5fEAQZtF

* Anchor §5.7's not-yet-merged claim to its writing instant, not the present tense

TAKEN FROM COPILOT's review of `0d17d1be` ("Needs a closer look"): the §5.7
prose asserts landed state in the PRESENT TENSE — "still not merged", "`main`
does not carry this archive" — and this packet is ARCHIVED, so that wording
goes FALSE the instant the pull request merges and leaves a permanent stale
claim inside a record.

The finding is right about the shape and this commit takes it FOR THE HALF THIS
LANE AUTHORED. The claim is now ANCHORED TO AN INSTANT — "as of this note's
writing, 2026-09-03, branch head `0d17d1be`, this packet had not merged" — so
it stays TRUE after the merge instead of decaying, and it points a reader
wanting the LANDED state at the merge-provenance comment rather than at a line
that speaks only for the moment it was written. No fact changes; the tense
does.

WHAT THIS COMMIT DOES NOT TOUCH, AND WHY. Copilot also flagged lines 172 and
184-189 — the PRIOR session's §5.7 prose, not this lane's. Those are left
alone on two grounds: this lane's scope is to APPEND a dated note to §5.7, not
to rewrite another lane's record text; and the phrasing there is the
repository's deliberate doctrine, stated in its own voice ("NOT YET TRUE, AND
NAMED SO IT STAYS FALSE UNTIL IT ISN'T"), which exists to stop a packet
claiming landed state before it lands — the archive-gate rule in
`docs/release-realization-flow.md` § The Archive Gate, and the
claim-outrunning-machinery lesson family. Rewriting it as a bare "TBD" would
weaken a guard rather than fix a defect. That text also already commits to
completing the provenance at landing, which is the act that retires the
staleness.

Lane: openxfactory-f2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dt5nEtqzRNgf3Z5fEAQZtF

* Advance the review-lane pin onto the 63-entry floor: second lander of the two-packet collision

THE OPENXFACTORY HALF OF THE FLOOR REPAIR THIS PACKET'S OWN PROMOTION FORCED,
TAKEN A SECOND TIME AND FOR A REASON THAT IS NOT A CORRECTION OF THE FIRST.

TWO openxFactory packets each promoted a NEW capability on 2026-09-03, and
codexFactory's `repository_gate_floor` for this repository is REGENERATED BY
ENUMERATING A TREE rather than by editing a list. `add-project-repo-schema`
(PR #616, merged 20:49Z as `19d00872`) landed first and codexFactory PR #183
(`605d48ac`) regenerated for it. codexFactory PR #184 (`8cb17373`) then
regenerated for THIS packet at `c9928846` — PR #615's PRE-MERGE branch head,
which did not yet carry #616's promotion — so its block went 54 -> 54 rather
than 54 -> 55 and SILENTLY DROPPED `openspec/specs/project-repo-schema/spec.md`,
the entry #183 had just landed.

NEITHER EARLIER PULL REQUEST IS DEFECTIVE. Each regenerated at a real tree,
exactly as CSC-C7 requires. This is the failure mode a two-lander collision
HAS, and the pinned core's `docs/repository-gate-floor-repair-runbook.md`
already answers it by making the SECOND LANDER regenerate once at its OWN
POST-MAIN-MERGE head.

AND `main` WAS NEVER BROKEN IN THE INTERVAL — stated so nobody hunts an
incident that did not happen. `main`'s pin named `605d48ac`, whose 58-entry
floor covers `main`'s 54-spec tree INCLUDING `project-repo-schema`. The gap
becomes reachable only when THIS packet's fifty-fifth spec lands, which is the
moment this advance exists to serve.

CODEXFACTORY'S HALF LANDED: PR #186, MERGE COMMIT (not squash)
`8f770afbf86043ee0f5494ded0f12f51c2a9b45e`, 2026-09-03T21:55:35Z, regenerated
at openxFactory `8d893a0f` — this branch's merge of `main` `19d00872`, and the
FIRST COMMIT ANYWHERE carrying fifty-five tracked paths under
`openspec/specs` — restoring `project-repo-schema` BESIDE
`standards-body-registry`. codexFactory `main` was re-verified at that same
commit by `git ls-remote` immediately before this advance rather than assumed.

FIVE SITES MOVE, IN ONE LOGICAL CHANGE, because the tests fail if any of them
disagree:

  contracts/review-lane-pin.yaml               core_commit  605d48ac -> 8f770afb
  .github/workflows/merge-master-approval.yml  PINNED_CORE_COMMIT (same)
  .github/workflows/merge-master-approval.yml  core checkout ref: (same)
  .github/workflows/pytest-suite.yml           core checkout ref: (same)
  contracts/review-lane-floor-snapshot.yaml    re-copied at the new commit

and the snapshot's declared witnesses move with it: `entry_count` 58 -> 63,
`sha256` 6ab79400… -> b8f95136916fc58d297a8319408bebbffaf327790fd2885a677e22de193f41f8.

THIS PIN NEVER NAMED `8cb17373`, AND THAT IS RECORDED RATHER THAN TIDIED AWAY.
Commit `0d17d1be` on this branch DID advance onto it at 16:24, and the later
catch-up merge of `main` — which carried PR #616's own advance to `605d48ac` —
resolved the pin sites to `main`'s side, so the intermediate 58-entry state
`8cb17373` describes was never the state this branch shipped. A reader
comparing this file's history to codexFactory's will see #184 land and this pin
skip it; that is the collision, not a lost edit.

THE SNAPSHOT IS A WITNESS AND WAS NOT HAND-EDITED (CSC-C7). It is a byte copy
fetched from the pinned core at `8f770afb` and verified THREE independent ways:
sha256 as above over 12492 bytes; GIT'S OWN CONTENT ADDRESSING —
`git hash-object` of the vendored file equals the blob sha codexFactory's tree
carries at that path and commit, `351c47fb5bfad13697dc6c777b9bb17a147e8e45`;
and `cmp` against a REAL shallow checkout of codexFactory at that commit. The
freshness comparison in `test_floor_snapshot.py` — which SKIPS when the core is
absent — was additionally run WITH that core on disk
(`PINNED_CORE_CHECKOUT=…`): 56 passed, ZERO skipped, so the byte-for-byte
assertion CI performs actually ran and passed here.

THE FLOOR GREW BY FIVE, AND ONLY ONE OF THEM IS A SPEC. Measured on the merged
tree, not inferred from the proposal.

  * THE SPEC: `openspec/specs/standards-body-registry/spec.md`. The generated
    block goes 54 -> 55 tracked paths. Coverage over this branch's merged tree:
    all 55 tracked paths under `openspec/specs` are floored, 0 uncovered, and 0
    floored spec paths are dead. Both `project-repo-schema` and
    `standards-body-registry` are present.
  * THE OTHER FOUR ARE CHOKEPOINTS, NOT SPECS, and they arrive here for the
    first time: codexFactory PR #182 (merge `e5534552`, 20:51:52Z — AUTHORED
    BEFORE #183/#184 BUT MERGED AFTER BOTH, which is why they surface at an
    advance whose stated object is a spec) floored the sibling
    FACTORY-IDENTITY REGISTER FAMILY BY NAME —
    `governance/factory-identity/register.yaml` and the wallet, grant and
    custody attestation beside it — realizing THIS repository's own ratified
    `add-cpc-clearing-boundary` task 2.7. By name is FORCED, not preferred:
    `_parse_exact_path` refuses wildcards and trailing slashes, so the
    directory cannot be floored as a prefix. All four exist on this tree,
    verified path by path, so the advisory lane gains four reachable floor
    paths and no dead entry. The document's hand-reasoned chokepoints go
    4 -> 8, and its own self-description moves with it: 4 + 1 becomes 8 + 1.

LOCKSTEP RE-MEASURED RATHER THAN CARRIED OVER: both xFactory judging surfaces
still name `f4702f64` (read directly off xFactory `main` 2026-09-03 — the two
`ref:` literals in `merge-master-approval.yml` and
`council-convening-lane.yml`), so `lockstep.status` stays `diverged` and the
obligation to converge at a future re-point ceremony stands. THE GAP WIDENED BY
FIVE ENTRIES, NOT BY A NEW KIND OF DIVERGENCE: the cause is unchanged from
2026-09-01 and is still forced by the feature.

Also takes a FIFTH catch-up merge of `origin/main` (`9a773a31`, the
`contract-v3.2` cut) — merged, never rebased — and files the archived packet's
tasks.md §5.7 forward with the completed repair. The squash SHA is deliberately
NOT invented there: it is filled in at landing by the merge-provenance comment.

Validated: tests/review_lane_pin + tests/sequenced_after +
tests/test_standards_body_registry.py = 190 passed, 1 skipped, 18 subtests
passed (that one skip being the freshness comparison, separately exercised
green with the core present); tests/doc-health = 1500 passed;
`openspec validate --all --strict` = 86 passed, 0 failed;
`scripts/validate-omnigent-contracts.py` = all checks passed;
`import cryptography` = 41.0.7.

Lane: openxfactory-f2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dt5nEtqzRNgf3Z5fEAQZtF

---------

Co-authored-by: openRepoShape CI <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Brett Heap <[email protected]>
brettheap added a commit that referenced this pull request Sep 4, 2026
…of declarations (#627) (#640)

* Fixtures: one capability per N-writer declaration arrangement (#627)

`modified-block-currency-chains`, on the `-two-writers` tree's convention
that one arrangement per capability cannot interfere with another. Seven:
a declared chain of three; a chain whose last writer drops the first's
addition, so the basis substitution is falsifiable; the REAL-CORPUS shape,
where the last writer names a predecessor three links back as well as its
own (OpsxFactory's `reanchor-keycloak-broker-to-syscore2` does exactly
this, and a rule counting one predecessor per writer would report the
compliant corpus as forked); a fork; a cycle; a chain with an unratified
writer beside it; and a ratified writer whose only declaration names that
unratified one.

Inert on its own — the arm reads them in the next commit.

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

* modified-block-currency: resolve N-writer ordering as a linear chain (#627)

THE ARM COULD NOT READ A COMPLIANT CORPUS. `_arm_ordering` resolved a
group of exactly TWO ratified writers from the declaration between them
and reported every larger group as undecided "whatever they declare",
recorded at the time as safe because "the population in the real corpus
is ZERO". It is now five: OpsxFactory's `aks-administration-workflow`
'Bounded action classes for managed workloads' has five ratified writers,
each declaring its predecessor by ratification date (PR #182), and
`release-realization`'s "Ordered deltas and branch vocabulary" obligates
that declaration from EVERY later writer. A checker that cannot read the
shape the rule obliges is reporting its own limitation as a defect.

THE SPEC PERMITS IT. `openspec/specs/doc-health/spec.md`'s "Title
resolution and the two-writers rule" states ORDER IS BY DECLARATION and
constrains the TWO-writer case ("EXACTLY ONE of two active RATIFIED
writers SHALL declare"); its scenario opens "two or more active changes
... exactly one declares". No requirement anywhere says "no order for
more than two" — that sentence lived only in this module.

RESOLVED MEANS ONE TOTAL ORDER, not one edge per writer. `_chain` runs
Kahn's algorithm over the declarations with a uniqueness demand at every
step, so a REDUNDANT declaration the chain already implies by transitivity
resolves rather than forks — which the real corpus needs:
`reanchor-keycloak-broker-to-syscore2` names its predecessor AND, three
links back, the change it re-anchors. Each later writer is then measured
against its predecessor's block, link by link, on the pair path's own
ruling that a `MODIFIED` block IS its writer's outcome.

FAIL-CLOSED, AND THE DEFECT IS NAMED. Where the declarations state no
single chain the group is still reported at the same class and severity,
with a rule text saying which: `cycle`, `forked` (two writers declared
later than a placed writer and neither later than the other),
`unanchored` (more than one starting point), or `outside` — an unanchored
group where a writer's only declaration names a writer of this
requirement that is NOT ratified, which explains the missing anchor
instead of leaving a reader to hunt for it.

THE 2-WRITER PATH IS UNTOUCHED, structurally: its branch is still taken
first and `test_the_two_writer_path_never_consults_the_chain_rule` makes
`_chain` explode while every two-ratified-writer group in the
`-two-writers` tree is evaluated. `TEMPLATE_ORDERING`, its class pattern,
the shape mask and the report-section contract are all unchanged — only
the interpolated `{why}` moves — so no finding class was added and none
was re-banded.

The three-writers pin is RE-AIMED, not deleted: that fixture never was a
chain (one writer declares, one declares nothing), so it is the
`unanchored` case, still reported against all three blocks. Its citation
in the coverage audit follows it, the audit being a live reference.

Measured: OpsxFactory ordering 5 -> 0 with no new finding in any class
(carriage ledger 7 -> 3, the four blocks now measured against their
predecessors); openxFactory's own family section byte-identical to
origin/main's. Ten mutants, ten dead.

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

* doc-health.md: the ordering arm reads N-writer chains (#627)

One sentence in the `modified-block-currency` family paragraph: three or
more active ratified writers of one requirement resolve where their
declarations state a single linear chain, each later block measured
against its predecessor's rather than against canon, and a group stating
no such chain is still reported and now names the defect.

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

---------

Co-authored-by: Claude Fable 5 <[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