Repository navigation
The outline section model, and the verb Q4 named that cannot do the job - #197
Merged
Merged
Conversation
Task 3.1's core, built and tested; task 3.2 BLOCKED on a ratified ruling whose
premise does not hold. Recorded in the task ledger rather than only in a
message, because the next person to pick this up needs the finding, not a
retelling of it.
WHAT IS BUILT. `web/views/outline-model.js` — pure, no DOM, no fetch. It turns a
primary fragment's text into the sections the outline tab will render:
identified from the fragment's OWN `## ` headings and `xspec:` fences, never
content-sniffed, never fabricated. Classifies required / added /
proposal-element, extracts `Added-by:` provenance, and reports conformance gaps
by name.
Two properties carry the tab's honesty and both are pinned by test:
* NOTHING IS FABRICATED — every reported section is asserted to be a real
line in the source. A reader must be able to trust that what the tab shows
is what the file says.
* QUOTING THE SKELETON IS NOT ADOPTING IT. The canonical template ships as a
copy-pasteable ```markdown fence containing every required heading, so a
fence-blind scanner would report a fragment that merely pasted it as fully
conforming. That is the third fence-blindness defect this week, after
`proposal-support.py verify` and the doc-health snapshot scan.
It also degrades as task 3.3 requires — a pre-template fragment reports
`pre-template` with its real sections rather than "broken" — and a test pins
that the model and doc-health's `staged-topic-template` family mean the same
thing by conformance, since a surface and its checker disagreeing about the
contract is worse than either being wrong alone.
WHAT IS BLOCKED, AND WHY IT IS NOT A JUDGEMENT CALL.
`edit_apply(gate, change_id, document, redline)` is the gate console's
MAIN-RESIDENT redline verb: it requires `--change-id` ("the change owning the
document") and applies to CHANGE DOCUMENTS. A staged topic's fragment is not
one, has no owning change, and is edited on a session branch — `edit-document`'s
job, the verb the ratified buffer contract already uses twelve times. The
intent-plane change references the same gate-console verb; there is no second
session-scoped `edit-apply`.
The two states are mutually exclusive BY RULE: `edit-apply` needs a change id,
but `location-conformance` fires the moment a staged fragment cites a live
change, and its remedy is to move the material out of staging — demonstrated
today on this very topic. A fragment with an owning change is no longer in
staging to patch.
Q4's stated context — "the branch-session model already exposes an `edit-apply`
intent verb for content changes on a session branch" — is wrong about this verb,
and I carried it into the spec delta without checking. Q4's INTENT (no second
write verb, reuse the existing session path, section scoping is a targeting
detail) is satisfied by `edit-document` unchanged, but amending a ratified delta
is Brett's ruling, not mine.
The section index and the add-section affordance share one pane, so the wiring
waits on that ruling rather than being built twice.
Gates: `pytest tests/ideation-dashboard` 2859 passed / 5 skipped / exit 0 (2850
before, plus these 9 — the new module trips no bundle guard); `openspec validate
--all --strict` 60/60.
Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
Introduces a new pure staged-topic outline parsing/model layer for the ideation dashboard, plus a focused node-based test suite to pin “no fabrication” and fence-awareness behavior. Updates the change task ledger to record that task 3.2 is currently blocked due to the referenced verb/contract mismatch.
Changes:
- Add
outline-model.jsto derive outline sections/gaps from real##headings andxspec:markers while ignoring fenced skeleton examples. - Add node-executed pytest coverage to validate conformance states, provenance extraction, and question sub-field reporting.
- Update the tasks ledger with the current implementation/blocker status for outline tab work.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
tests/ideation-dashboard/test_outline_model.py |
Adds node-driven tests for the new outline model behavior. |
scripts/ideation_dashboard/web/views/outline-model.js |
Adds the pure outline section/gap model (fence-aware, no DOM/fetch). |
openspec/changes/add-staged-topic-outline-template/tasks.md |
Records task 3.1 status and 3.2 blocking rationale in the ledger. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| - [~] 3.1 Render identified sections from headings and `xspec:` fences. No | ||
| content-sniffing, no fabricated headings. | ||
| - [ ] 3.2 Add-section affordance writing through `edit-apply`, scoped by the | ||
| MODEL BUILT, RENDERING NOT WIRED. `web/views/outline-model.js` is a pure, |
Comment on lines
+29
to
+43
| def run_model(text: str) -> dict: | ||
| """Evaluate `outlineModel(text)` under node and return its JSON.""" | ||
| with TemporaryDirectory() as tmp: | ||
| script = Path(tmp) / "run.mjs" | ||
| payload = Path(tmp) / "input.md" | ||
| payload.write_text(text, encoding="utf-8") | ||
| script.write_text( | ||
| "import { readFileSync } from 'node:fs';\n" | ||
| f"import {{ outlineModel }} from {json.dumps(str(MODEL_JS))};\n" | ||
| f"const text = readFileSync({json.dumps(str(payload))}, 'utf8');\n" | ||
| "console.log(JSON.stringify(outlineModel(text)));\n", | ||
| encoding="utf-8") | ||
| out = subprocess.run([NODE, str(script)], capture_output=True, text=True) | ||
| assert out.returncode == 0, out.stderr | ||
| return json.loads(out.stdout) |
brettheap
added a commit
that referenced
this pull request
Sep 4, 2026
…dxchart-overlay-boundary (64 -> 65) Lane: openxfactory-max001 STEP (2) OF THE TWO-REPOSITORY ACT THIS PACKET'S OWN PROMOTION FORCED, on Brett Heap's word "land it when green then do medxpractice" (2026-09-04). Archiving `create-medxchart-overlay-boundary` promotes `openspec/specs/medxchart-overlay-boundary/spec.md`, and codexFactory's `repository_gate_floor` for this repository ENUMERATES that surface exactly, so the new spec arrived OFF the floor and reddened the REQUIRED `pytest-suite` in THREE places — `tests/review_lane_pin/test_floor_snapshot.py`'s LQ-A7 coverage assertion AND both of its negative controls, which guard the ordering of that same surface and fail with it by construction — plus the advisory `merge-master-approval` lane at stage `floor_incomplete`. 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 IT IS THE RUNBOOK'S (`docs/repository-gate-floor-repair-runbook.md` in the pinned core): codexFactory regenerates at an openxFactory commit that ALREADY carries the new path, and only then may this pin advance onto it. codexFactory's half landed as PR #197, MERGE COMMIT (not squash) `bfb8bde39f61d3eb4a768cdc7117a3bbc1418d2d`, 2026-09-04T14:05:07Z, regenerated by `scripts/merge_master/generate_specs_floor_block.py` at openxFactory `2a3b29c8` — THIS pull request's own archive commit, the first tree in existence carrying the new path. codexFactory `main` was re-verified at that same commit by `git ls-remote` immediately before this advance rather than assumed: it returned `bfb8bde39f61d3eb4a768cdc7117a3bbc1418d2d refs/heads/main`. FIVE SITES MOVE, IN ONE LOGICAL CHANGE, because the tests fail if any of them disagree: contracts/review-lane-pin.yaml core_commit 79198ac4 -> bfb8bde3 .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` 64 -> 65, `sha256` 07e9f64d... -> 13f650b663f5dc836fa268ada40d5e5de7c38c8ede337d840f8004aeefd7312a. THE SNAPSHOT IS A WITNESS AND WAS NOT HAND-EDITED (CSC-C7). It is a byte copy of the floor at the pinned core, and BYTE IDENTITY WAS GATED, not asserted: the completion script REFUSES unless (a) `bfb8bde3` is an ancestor of codexFactory `origin/main` and (b) the sha256 of `git show <sha>:scripts/merge_master/openxfactory-review-authority-floor.yaml` equals the recorded value. Both gates passed. Verified three independent ways: sha256 as above over 12599 bytes; GIT'S OWN CONTENT ADDRESSING — the vendored file's blob sha equals the one codexFactory's tree carries at that path and commit, `39289deafa9cce609e2f7600a8996cac683cad1e`; and 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 here. THE FLOOR GREW BY EXACTLY ONE AND IT IS THE SPEC. No chokepoint arrives with it. The whole diff against `79198ac4`: one added entry line, the generated block's three regeneration fields (`generated_at` and its `--ref` `c236c6b1` -> `2a3b29c8`, `entry_count` 56 -> 57), and the document's two "8 + 1" self-descriptions moving 64 -> 65. The EIGHT hand-reasoned chokepoints are untouched. Coverage MEASURED on this branch's tree: 57 tracked paths under `openspec/specs`, all 57 floored, 0 uncovered, 0 dead. THE PIN NAMES `bfb8bde3` WHILE THE FLOOR WAS GENERATED AT `2a3b29c8`, AND THE BRANCH HEAD IS LATER THAN BOTH — the same shape #647 shipped, and MEASURED rather than waved through: `git ls-tree -r --name-only <ref> openspec/specs` returns the IDENTICAL 57-path set at `2a3b29c8` and at the head (the commit between them is a Copilot fix to one archived-change file, which promotes nothing), and `2a3b29c8` is an ancestor of the head. NO COLLISION, MEASURED. `main` (`96aa61a3`) carries 56 tracked spec paths and this branch 57 — main's set is a PROPER SUBSET, so no spec exists on main that `2a3b29c8` failed to enumerate. The two commits main gained since this branch was cut (#651 doc-health preflight, #648 nightly-refresh source seal) promote no capability and add no spec, so neither can shorten the floor. One regeneration at one tree is sufficient and the second-lander remedy is not engaged. HISTORICAL PROSE PRESERVED. The four live literals moved; every remaining `79198ac4` in these files is history describing the 12:25 advance (PR #195, its regeneration tree, the ancestry chain) and was left standing. The prior notes gained a forward pointer rather than a rewrite. LIVE CLAIMS RE-MEASURED, NOT CARRIED OVER. The divergence paragraph's counts (sixty-four -> sixty-five, fifty-six -> fifty-seven spec paths), the `pinned_members` counts (SIXTY-FOUR -> SIXTY-FIVE, FIFTY-SIX -> FIFTY-SEVEN), and the snapshot's `generated_at` non-member note (`c236c6b1` -> `2a3b29c8`) all move with the pin. Historical sentences do not. LOCKSTEP RE-MEASURED RATHER THAN CARRIED OVER: both xFactory judging surfaces still name `f4702f64`, read 2026-09-04 AT THIS ADVANCE directly off xFactory `main` (`merge-master-approval.yml` line 146 and `council-convening-lane.yml` line 302), so `lockstep.status` stays `diverged` and the obligation to converge at a future re-point ceremony stands undischarged. THE GAP WIDENED BY ONE MORE ENTRY, not by a new kind of divergence. That value is written SHORT in the prose on purpose: this file's own guard `test_the_pin_carries_exactly_one_commit_shaped_value` permits exactly ONE 40-hex token in it, and that one is `core_commit` — writing `f4702f64` in full reds the required suite, which is how the constraint was found rather than assumed. TWO ADVANCES IN ONE DAY IS THE FEATURE'S CADENCE AND A THIRD IS ALREADY OWED. Every openxFactory archive promoting a NEW capability owes one, because the floor is an EXACT ENUMERATION. `add-subject-establishment` paid it at 12:25:19Z and this packet at 14:05:07Z, one hundred minutes apart. The sibling `create-medxpractice-overlay-boundary` will take the floor 65 -> 66; folding it into #197 would have put a DEAD entry on this tree, which is the state LS-A2 exists to prevent. One regeneration per landed tree, in order. Validated: `pytest tests/review_lane_pin` = 55 passed, 1 skipped, 18 subtests (that one skip being the freshness comparison, separately exercised green with the core present: 56 passed, 0 skipped); `openspec validate --all --strict` = 90 passed, 0 failed; `scripts/validate-sequenced-after.py .` passed and `--ledger-diff` consistent (165 rows); `pytest tests/sequenced_after` = 162 passed; doc-health `--single-repo` finding set still BYTE-IDENTICAL to main (6 critical / 4 error / 27 warning / 16 info, 0 new regressions); all four YAML files re-parse. Refs #608 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv Lane: openxfactory-max001
brettheap
added a commit
that referenced
this pull request
Sep 4, 2026
…lay-boundary Lane: openxfactory-max001 MERGED, NOT REBASED — force-pushing is forbidden here and this branch carries merged bot rounds. Taken because #654 read CONFLICTING at `dd76e7fe`, and a conflicting pull request does not DISPATCH its `pull_request` workflows at all: only `merge-master-approval` (a `pull_request_target` lane) ran at that head, which is why the REQUIRED `pytest-suite` never appeared rather than never finished. MAIN GAINED THREE COMMITS since `48dc9b67`: #651 (doc-health preflight initializing MedxEHR's nested submodules), #648 (nightly-refresh source seal) and #643 (ARCHIVE of `add-consumer-identity-namespace`). Only the third collides, and only in two files. ONE CONFLICT, IN README.md, AND BOTH SIDES ARE KEPT. Two archives landed the same day and each inserted its row at the top of `Archived changes:`. Resolved by keeping BOTH rows — this packet's above `add-consumer-identity-namespace`'s, newest-lander first, which is the order that list already reads in. Neither row is edited, shortened or merged into the other. The two ACTIVE-section removals (one per side) sat in different regions and auto-merged; verified after the fact that neither active row survives. THE LEDGER AUTO-MERGED AND THE ROWS ARE NAMED RATHER THAN COUNTED. Against `origin/main` the merged ledger differs in EXACTLY ONE row, and it is ours: create-medxchart-overlay-boundary: active -> archived, moved_by "#654" Main's own row from #643 — `add-consumer-identity-namespace: {state: archived, class: co-modifier, ..., moved_by: "#643", moved_on: "2026-09-04"}` — is carried verbatim from main's side, unstamped by this lane. No partner flipped on either side, so NO MOVEMENT LOG ENTRY IS OWED by this merge, and `tests/sequenced_after/test_sweep.py` is byte-identical to main's copy, so main's MOVEMENT LOG lines are retained verbatim rather than re-derived. THE FIVE PIN SITES ARE KEPT AT OURS, DELIBERATELY. Main did NOT advance its review-lane pin in these three commits: it still names `79198ac4` with the 64-entry floor. `bfb8bde3` is STRICTLY AHEAD of it (codexFactory PR #197 merged at 14:05:07Z, with `79198ac4` as an ancestor), and taking main's side would re-introduce the very `floor_incomplete` refusal this branch exists to repair. So `core_commit`, both `merge-master-approval.yml` literals, `pytest-suite.yml`'s core checkout `ref:` and the vendored snapshot (`entry_count` 65, `sha256` 13f650b6…) all stand at ours. Nothing of main's is discarded by that: `bfb8bde3` contains `79198ac4` by ancestry. NO FLOOR COLLISION, MEASURED. #643 promotes into an EXISTING capability (`credential-contracts`, a MODIFIED block) and adds NO spec path, so `main` still carries 56 tracked paths under `openspec/specs` against this branch's 57 — main's set remains a PROPER SUBSET, no spec exists on main that `2a3b29c8` failed to enumerate, and the second-lander regeneration remedy is not engaged. Gates on the merged tree: `openspec validate --all --strict` 89 passed, 0 failed (32 active + 57 specs — one fewer active than before the merge because #643 archived its own); `validate-sequenced-after.py .` passed (32 active, 2 declaring); `--ledger-diff` consistent, 165 rows, active co-modified/sole 20/13 -> 19/13 on #643's archive; `pytest tests/review_lane_pin tests/sequenced_after` 217 passed, 1 skipped, 18 subtests, and `tests/review_lane_pin` 56 passed / ZERO skipped with `PINNED_CORE_CHECKOUT` set, so the byte-for-byte snapshot comparison ran here too. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv Lane: openxfactory-max001
brettheap
added a commit
that referenced
this pull request
Sep 4, 2026
…zed by MedxChart PR #1 (8bc39a8c), gated by ruleset 22272824 (run 33876197016) (#654) Lane: openxfactory-max001 Archive of create-medxchart-overlay-boundary (ratified 2026-09-03 "ratify both, 1 and 1", #608 0f1edc0): § 5.1–5.2 realized by opensoft/MedxChart PR #1 (8bc39a8c); § 5.3 ruleset 22272824 (Brett's console act, API-verified); § 5.4 green run under it 33876197016 (attempt 2). Promotes the MODIFIED placement requirement into openspec/specs/domain-descendant-boundary/spec.md and the three ADDED requirements into the new openspec/specs/medxchart-overlay-boundary/spec.md (byte-identical to the delta). Floor advance: codexFactory #197 → bfb8bde3 (64→65), pin sites in lockstep. One ledger row moved; no MOVEMENT LOG entry owed. Brett's word: "land it when green then do medxpractice" (2026-09-04). Required checks green; merge-master-approval red by design on a pin-repair PR (runbook CPL-C2; precedent #647), green confirmed on the following main run. Admin merge: self-authored PR (standing pattern B2). Refs #608 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H9aKd8YF3ktcLmVJJxQYKv
This was referenced Sep 4, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task 3.1's core, built and tested; task 3.2 BLOCKED on a ratified ruling whose
premise does not hold. Recorded in the task ledger rather than only in a
message, because the next person to pick this up needs the finding, not a
retelling of it.
WHAT IS BUILT.
web/views/outline-model.js— pure, no DOM, no fetch. It turns aprimary fragment's text into the sections the outline tab will render:
identified from the fragment's OWN
##headings andxspec:fences, nevercontent-sniffed, never fabricated. Classifies required / added /
proposal-element, extracts
Added-by:provenance, and reports conformance gapsby name.
Two properties carry the tab's honesty and both are pinned by test:
line in the source. A reader must be able to trust that what the tab shows
is what the file says.
copy-pasteable ```markdown fence containing every required heading, so a
fence-blind scanner would report a fragment that merely pasted it as fully
conforming. That is the third fence-blindness defect this week, after
proposal-support.py verifyand the doc-health snapshot scan.It also degrades as task 3.3 requires — a pre-template fragment reports
pre-templatewith its real sections rather than "broken" — and a test pinsthat the model and doc-health's
staged-topic-templatefamily mean the samething by conformance, since a surface and its checker disagreeing about the
contract is worse than either being wrong alone.
WHAT IS BLOCKED, AND WHY IT IS NOT A JUDGEMENT CALL.
edit_apply(gate, change_id, document, redline)is the gate console'sMAIN-RESIDENT redline verb: it requires
--change-id("the change owning thedocument") and applies to CHANGE DOCUMENTS. A staged topic's fragment is not
one, has no owning change, and is edited on a session branch —
edit-document'sjob, the verb the ratified buffer contract already uses twelve times. The
intent-plane change references the same gate-console verb; there is no second
session-scoped
edit-apply.The two states are mutually exclusive BY RULE:
edit-applyneeds a change id,but
location-conformancefires the moment a staged fragment cites a livechange, and its remedy is to move the material out of staging — demonstrated
today on this very topic. A fragment with an owning change is no longer in
staging to patch.
Q4's stated context — "the branch-session model already exposes an
edit-applyintent verb for content changes on a session branch" — is wrong about this verb,
and I carried it into the spec delta without checking. Q4's INTENT (no second
write verb, reuse the existing session path, section scoping is a targeting
detail) is satisfied by
edit-documentunchanged, but amending a ratified deltais Brett's ruling, not mine.
The section index and the add-section affordance share one pane, so the wiring
waits on that ruling rather than being built twice.
Gates:
pytest tests/ideation-dashboard2859 passed / 5 skipped / exit 0 (2850before, plus these 9 — the new module trips no bundle guard);
openspec validate --all --strict60/60.Co-Authored-By: Claude Opus 5 [email protected]
🤖 Generated with Claude Code