Repository navigation
Runbook: serving the multi-repository local plane - #100
Merged
Merged
Conversation
Brett's live question on the header ('what is merge view and why is it
unavailable?') has a documentation answer as well as an operational one: a
single-repository serve can never arm a project's merged view, because a
merged view composes PUBLISHED member snapshots and one repository
publishes one. The runbook now carries the two-step recipe — publish the
register roster with the existing nightly lane (absolute --out-dir, so the
shared aggregation checkout stays clean), then serve that index with
--local-index plus per-entry --source-root — and names the two gotchas:
the lane renders each repository from its aggregation submodule checkout
(which may trail main), and --checkout-root stays the tree the gate acts
on regardless of which repository is on screen.
Verified by running it: 14/14 register repositories published, every
project derived its aggregate, and xFactory's merged view composed
AdxFactory + LedgerxFactory (97 documents, 148 clusters, namespaced ids,
per-item repository attribution) with zero page errors.
Co-Authored-By: Claude Fable 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
This PR updates the ideation dashboard session runbook to explain why merged (“all repositories in project”) views can appear unavailable when serving a single-repository snapshot, and documents a two-step local workflow to publish multiple repository snapshots plus an index, then serve that index locally with per-repo --source-root mappings.
Changes:
- Add a new runbook section describing the multi-repository local plane workflow (publish via
nightly_lane --repositories registered, thenserve --local-index). - Document two operational “gotchas”: aggregation submodule checkout freshness vs live worktrees, and
--checkout-rootbeing the gate’s write target regardless of the repo currently viewed.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+95
to
+99
| --snapshot /abs/scratch/local-plane/openxFactory-snapshot.json \ | ||
| --checkout-root . --local-index /abs/scratch/local-plane/index.json \ | ||
| --repository openxFactory --actor "$(git config user.name)" --port 8765 \ | ||
| --project-register /path/to/xFactory/project-register.yaml \ | ||
| --source-root openxFactory=. \ |
Comment on lines
+109
to
+114
| - The lane renders each repository from its **aggregation submodule | ||
| checkout**, which may trail that repository's `main`. When you want a | ||
| repository rendered from a live worktree instead (typically the one you | ||
| are working in), publish that one separately with | ||
| `--repositories <id> --checkout /abs/path/to/worktree` into the same | ||
| out-dir before writing the index, or accept the pinned rendering. |
brettheap
added a commit
that referenced
this pull request
Aug 22, 2026
…tantive PRs (#178) * Propose add-substantive-review-lane: governed council review for substantive PRs Generalizes codexFactory's proven gate_rules_council + merge_readiness_council + Merge Master machinery (live autonomous deliberation 2026-08-14, xFactory PRs #85/#100) beyond its single rules-as-code candidate class (doc-health-nightly / docs_only_path_overflow) into a named substantive review lane spanning governed xFactory repos: six ADDED requirements on roles-authority-model covering authority generalization, gate-rules-council candidate classes, accountability, reviewer/enforcer identity separation, the fail-closed envelope, and a codexFactory-reviewed openxFactory pilot. Rollout order, non-engineering persona homes, company-policy-lead per-PR seating, per-repo ruleset shape, and risk-tiering taxonomy are declared open questions, not decided. Co-Authored-By: Claude Opus 4.8 <[email protected]> * Encode Brett's five 2026-08-22 rulings into add-substantive-review-lane Brett Heap ruled all five of the proposal's declared-open questions in-session on 2026-08-22, against a written recommendation set. Two rulings departed from the recommendation and are marked as such wherever they land. proposal.md - "Open questions (declared here, not decided)" becomes "Decided questions (ruled by Brett Heap 2026-08-22)": each question carries its ruling, the requirement that encodes it, and the route it took (proposal edit, or a named follow-up path). - Status header still says draft — the rulings settle the questions, not the ratification, which stays Brett's separate read. - What Changes / Modified Capabilities go six ADDED requirements -> ten; the downstream-realization list gains the merge-readiness conditional seat and the Q4-decided ruleset shape; Out of scope now names only the two deliberately deferred residues. specs/roles-authority-model/spec.md — 6 requirements -> 10, 30 scenarios - Q1 -> NEW "Adoption beyond the pilot qualifies on recorded evidence": the evidence bar (>=3 council-cleared substantive PRs across >=2 candidate classes, zero enforcer incidents, one completed gate-rules review cycle) and the engineering-owned-before-domain ordering principle. The order itself stays with a named follow-up change. - Q2 -> "Pilot repository and reviewing domain" rewritten: codexFactory's councils review substantive PRs in EVERY adopting repo, no domain repo instantiates personas for this lane, and the tenant company-policy-lead seat carries the policy dimension. The persona-home FORK is what is removed; the adoption-change-per-repo mechanism survives, now affirming codexFactory as reviewer. - Q3 -> NEW "Company-policy seat participation in per-PR councils": rules-council-only by default; a candidate class MAY declare a company-policy pull-in condition, defined by the gate_rules_council at class-definition time and never per PR; a pull-in class whose convening cannot seat it is refused and parked. - Q4 -> NEW "Ruleset interaction shape for the substantive review lane": the App's real APPROVE satisfies required review, the council-verdict check-run is transport only and never a ruleset satisfier, human review stays an always-available alternate path on every repo, divergence needs its own recorded decision. - Q5 -> NEW "Constitutional floor for autonomous clearance": the ratified never-clearable floor is tier-independent and unoverridable by unanimity; contract bytes, gate/workflow definitions, credential surfaces and security posture are permanently human-only; autonomous clearance is eligible only for docs-/derived-artifact-shaped blast radii. The tier VOCABULARY is explicitly deferred in the requirement's own text. design.md — decisions updated, history kept, nothing deleted - Decision B AMENDED by Q5 (declare-presence still stands; a constitutional floor is added beneath it, on the omnigent constitutional-false precedent). - Decision C AMENDED by Q4 (the per-repo shape is no longer open). - Decision D marked SUPERSEDED IN PART, its 2026-08-15 text kept verbatim as the reason the rules-only posture is now the DEFAULT, with the superseding ruling recorded after it and the three properties that bound it. - Decision E AMENDED by Q1+Q2 (its stated reason for deferring order is discharged; the deferral is now evidence-based, with the bar recorded). - Decision F ADDED for Q2, which had no decision entry of its own — records the recommendation, Brett's override, and the residual risk he accepted. tasks.md - 1.2 flipped to done (the questions are ruled and encoded); the ratification gate becomes its own 1.3, still open and still Brett's. - 2.1 / 6.1 / 6.3 recount to ten; 3.1 gains the Q5 floor as enforced data; 3.3 becomes the Q3 pull-in realization; 5.1 wires the decided Q4 shape. README.md OpenSpec Records row restated to match, still not-yet-ratified. Co-Authored-By: Claude Fable 5 <[email protected]> * Close Copilot's ADMIT/READY finding with an explicit layer mapping Copilot's real finding on PR #178: the "Fail-closed substantive review envelope" requirement conditions approval on "unanimous ADMIT", while the enforcer that realizes this lane checks verdict `ready` plus unanimity. Read literally, that is two different conditions and one of them is unimplemented. It is not two conditions — it is two layers' words for one. ADMIT is the neutral roles-authority-model verdict word, and the already-promoted "Low-risk enforcement envelope" requirement uses exactly it ("any policy-required governed review verdict is ADMIT with no undispositioned conditions", openspec/specs/roles-authority-model/spec.md:81). READY is codexFactory's enforcement-layer word for the same state. Fixed by stating the mapping in the requirement rather than by silently swapping one word for the other: the requirement now says the codexFactory realization expresses ADMIT as `verdict == ready` AND unanimous, that an enforcer checking ready+unanimous IS checking unanimous ADMIT, and that the two words MUST NOT be read as two conditions. A scenario pins it, and makes explicit that no realization is required to invent an ADMIT-named verdict value of its own. Swapping the neutral word for the enforcement word would have been the other available fix and is deliberately not taken: it would push a codexFactory vocabulary into a domain-neutral capability and break the term's agreement with the requirement it sits beside. Co-Authored-By: Claude Fable 5 <[email protected]> * Disposition all five substantive-review-lane questions in the fragment Brett Heap ruled all five in-session 2026-08-22. Each question is rewritten into the ratified staged-topic outline form (`### Qn.` with Context / Recommended answer / Explanation / Disposition status / Added-by) and carries its disposition: the ruling condensed, the date, who ruled it, and the ROUTE it took — proposal edit, named follow-up path, or both. Q1 rollout order: ruled as recommended — order deferred to a named follow-up change on pilot evidence; the evidence bar and the engineering-before-domain ordering principle decided now. Q2 persona home: ruled, recommendation OVERRIDDEN — codexFactory reviews every governed repo, zero new persona homes. Q3 company-policy-lead seating: ruled, a bounded THIRD option — rules-only default with a per-class declared pull-in, defined by the gate-rules council at class-definition time, fail-closed for those classes. Q4 ruleset shape: ruled as recommended — the proven shape everywhere. Q5 risk tiers: ruled as recommended — constitutional floor now, vocabulary deferred. Two sections the ratified outline template requires and this fragment lacked are added with real content rather than placeholders, which also clears its standing `staged-topic-template` warning ("no pre-document idea notes section; no conflicts section"): Idea notes carries the two realization facts booked into the proposal's tasks.md, the unresolved one-or-two-follow-up- changes question, and Q3's unrequested generality; Conflicts names the three real tensions this closure does NOT resolve — Q2's override against the domain-standing objection the recommendation was built around, Q3's exception against the councils' own "PERMANENTLY DISTINCT" 2026-07-22 wording, and Q3 against design.md Decision D as authored. The honesty note gains the mechanical reason this topic cannot exit the way the two prior exited topics did: `proposal-support.py transition` REFUSES to move it into the proposal's supporting-docs/, because the packet declares `kind: ad_hoc` and a transition would have to declare `kind: staged` ("origins are immutable"). The Exit section records that, and how the topic retires instead. Checkers on the final state: `_template_gaps` -> [], `_staged_exit_changes` -> []. Full doc-health `--single-repo . --as-of 2026-08-22`: 4 critical, 6 error, 77 warning, 3 info; 0 new vs the same-clock origin/main baseline at ca0b905 (4/6/78/3) — one warning fewer, none new. Co-Authored-By: Claude Fable 5 <[email protected]> * Close and retire the substantive-review-lane-questions staging topic The topic's own Exit said it closes once all five questions carry a disposition. Brett ruled all five 2026-08-22, the dispositions landed in the fragment (previous commit f1acf0d), so the condition is met and the folder is retired. The retirement route is NOT the one the two prior exited topics took. Both of those moved their material into a change's `supporting-docs/` via `scripts/proposal-support.py transition`. That is impossible here, by design: the tracked proposal declares `origin.kind: ad_hoc`, a transition must declare `kind: staged`, and transition() refuses the disagreement outright ("origins are immutable"). The refusal is correct — this topic never was the proposal's origin, and its honesty note has said so since capture — so the fragment is NAMED rather than linked, with its commit, path, and file sha256 recorded in the INDEX detail section and a `git show` line that recovers it. INDEX.md, following the doxbench-editing-model precedent: - The table row is KEPT and flipped to the exit-record form, carrying all five rulings in condensed form and marking the two that departed from the recommendation (Q2 overridden, Q3 a bounded third option). - The detail section's Files bullet becomes the retirement record with the named provenance and the reason the supporting-docs route was unavailable. - The Open questions bullet becomes five dispositions, each with its route in brackets (proposal edit / named follow-up path). - A new bullet names the three conflicts the retired fragment recorded and this closure does NOT resolve, so they survive the folder: Q2's residual domain-standing objection, Q3's inconsistency with the councils' own "PERMANENTLY DISTINCT" wording, and Q3 against design.md Decision D. - The Exit bullet states what the closure did NOT do: the tracked proposal stays `Status: draft`; ratification is Brett's separate read. The "Full promotion — delete the row" maintenance rule is deliberately not followed and the deviation is stated in the row itself: nothing was promoted, and there is no promoted-proposal pointer in ideation/README.md to carry the record instead. doc-health `--single-repo . --as-of 2026-08-22` after the retirement: 4 critical, 6 error, 77 warning, 3 info; 0 new vs the same-clock origin/main baseline at ca0b905 (4/6/78/3). The one warning that disappeared is the retired fragment's own `staged-topic-template` finding. No finding mentions the topic. Co-Authored-By: Claude Fable 5 <[email protected]> * Take the adversarial fidelity review: two blocking fixes and six should-fixes B1 (blocking) — the constitutional floor was enumerated one member SHORT of the ratified record it names. codexFactory `hermes/domain/review-councils/records/2026-07-23-gate-rules-nightly-sweep-clearance.md` lines 44-45 record SIX members — "identity, head ref, any failed check, secret findings, security-touching paths, gate-weakening changes" — and the encoded sentence had five: HEAD-REF MISMATCH was missing. The omission came in upstream, through the recommendation and the ruling summary, but the sentence NAMES the ratified floor, and the ratified floor is what the record says it is — so completing it is fidelity, not a new ruling. The requirement now carries all six AND names that record as the floor's SOURCE OF TRUTH, with the restated enumeration explicitly subordinate to it, so a future divergence is caught against the artifact instead of against a paraphrase. Recorded in proposal.md's Q5 disposition and design.md Decision B. B2 (blocking) — Q1's ordering principle had drifted. Brett's ruling is flat: "engineering-owned repos before domain repos." The encoding had narrowed it to a two-candidate tie-break ("where two candidate repositories otherwise both clear that bar") and added an escape hatch ("unless the follow-up change records a reason to depart"). Both weaken it — the tie-break lets a lone domain repo qualify because no engineering repo happened to be proposed beside it, and the hatch lets any follow-up opt out in a sentence. Reverted to the ruled wording: no domain repository is adopted while any engineering-owned governed repository remains unadopted, each adoption still meeting the bar in its own right, no departure hatch. New scenario covers the single-candidate case the tie-break reading left open. Drift and its correction recorded in design.md Decision E. S1 — Q3 granularity resolved to CONDITION-HOLDS and made unmissable. Brett's option text ("a defined per-PR pull-in condition (like the security officer's rule_touches_security_posture) for policy-touching classes") settles the ambiguity the condensed summary carried. The requirement now states the per-PR evaluation explicitly; a new scenario covers declared-but-not-holding (convenes domain-seats-only, seat unavailability does NOT park); design.md Decision D gains a GRANULARITY block quoting the option text and saying what the choice buys; tasks §3.3 is de-mixed to the one shape, with all three cases as verification targets. S2 — proposal.md principle 6 still carried the overridden two-axis parenthetical ("the software-engineering domain reviewing the engineering-contracts repo"), sitting under a "not reopened" heading. That is the exact domain-match rationale Q2 overrode. Replaced with the ruled ground and a note saying what it used to read. S3 — form elevation surfaced, not changed. Q1's bar and Q5's floor were ruled "as proposal text" and are encoded as promoted requirements. The form is KEPT (a floor that outranks unanimity must be checkable, and a bar whose job is to gate a future adoption change cannot live in prose that archives), but design.md Decisions B and E now each name the elevation as this change's encoding choice, flagged for Brett's ratification read. S4 — assigned the "PERMANENTLY DISTINCT" amendment. tasks §3.3 IS the codexFactory change that edits merge-readiness.yaml, so realizing it as written would leave that file contradicting its own header. Amending the 2026-07-22 wording to the ruled default-plus-bounded-exception is now part of that task, citing Brett's ruling as the amending authority and leaving the original decision legible. S5 — recorded the rulings' interaction squeeze on the pilot as design.md Decision G and a tasks §5.2 note: Q5 (ii) + (iii) plus §4.4's exact-string head-ref matcher confine the pilot's first autonomously clearable class to docs-shaped AND fixed-branch space. The autonomous evidence will be thin and the Q1 bar slow to satisfy honestly; the substantive-PR ambition is exercised meanwhile through the council-reviewed-but-human-approved path. Brett ratifies with that in view. N2 — the ADMIT mapping named the realization predicate incompletely. Added the third conjunct: `verdict == ready` AND every seat concurring AND `undispositioned_conditions == 0` (the `verdict_required: ready_unanimous` + `undispositioned_conditions: 0` pair the rules-as-code carries). Scenario updated to match. N3 — tasks §4.5 said "the same key read two ways", which is false and would send the realization hunting a bug that does not exist. Verified by reading the code: they are TWO different keys in two files; `target_repos` is the enforced scope (`envelope.py`'s `_find_surface` and `candidate_head_refs` filter on it); `rule.repository` is never read in the decision path (`council_clearance.py`'s `validate_rule` neither requires nor reads it, no module under `scripts/merge_master/` reads it, and the 2026-08-05 activation record calls it "the rule's descriptive `repository:` field"). Restated as what it actually is: a NAMING hazard — an unenforced repo-shaped key holding a different value than the enforced one. N4 — ticked task 1.1; both its facts are verified true on this branch, and leaving it unticked beside the ticked 1.2 was inconsistent. N5 — Q4's requirement opened as an obligation on the App to approve. Reworded so the obligation is conditional on a clearance and the requirement fixes the SHAPE of a clearance's ruleset effect, creating no duty to clear or approve any particular PR. Spec delta is now 10 requirements / 33 scenarios (was 10/31 — the "30" in the earlier report was itself stale, counted before the ADMIT-mapping scenario landed in 49f5b7c). Gates: openspec single valid; --all --strict Totals: 67 passed, 0 failed (67 items), 18 changes / 49 specs; pytest 3983+15s / 63 / 704+1w across the three separate invocations; validate-ideation-dashboard-contracts 0 error / 4 warning; doc-health --as-of 2026-08-22 4/6/77/3 with 0 new against a freshly re-measured same-clock origin/main ca0b905 baseline of 4/6/78/3; contracts/ untouched and verify-commit unchanged. Co-Authored-By: Claude Fable 5 <[email protected]> * Ratify add-substantive-review-lane on Brett's four ratification-read rulings Brett Heap ruled the four ratification-read items in-session via question prompts, 2026-08-22 — a DISTINCT act from the earlier same-day clarify round that ruled the five Q1-Q5 open questions. Both are recorded, and the ratification record cross-references the clarify round rather than absorbing it. 1. FORM ELEVATION — ACCEPTED. Q1's evidence bar and Q5's constitutional floor were ruled "as proposal text" and encoded as promoted requirements; the change flagged the elevation instead of performing it silently. Brett accepted it; both stay requirements. One line added to each FORM ELEVATION block (design.md Decisions B and E). 2. Q1 BAR COUNTING RULE — ANY COUNCIL-CLEARED VERDICT COUNTS. This OVERRODE the encoder's autonomous-only reading. tasks.md §5.2 previously said "only the autonomous ones count toward the Q1 evidence bar"; that clause is replaced by the ruled rule, labelled as Brett's 2026-08-22 ruling: A unanimous merge_readiness_council verdict counts toward the >=3 bar whether the approving review was cast by the merge-master App or by a human. The bar measures COUNCIL QUALITY, not enforcer autonomy. Swept for consistency: the requirement body now carries the rule, a new scenario ("A human-approved council-cleared pull request still counts") pins it, and design.md Decision G is corrected — its squeeze analysis stands in full (autonomous evidence WILL be thin) but its conclusion narrows, because what is thin is the pilot's AUTONOMY, not its countable evidence. 3. ORDERING STAYS ABSOLUTE. The literal consequence was put to Brett before he ruled: a DORMANT engineering-owned repo blocks every domain adoption indefinitely. Two softenings were offered — a recorded-waiver clause, and scoping the block to actively-maintained engineering repos — and he declined both. The escape path is a direct Brett escalation inside the future adoption change that needs it, not requirement text. Recorded in design.md Decision E so the consequence reads as a ruled cost, not an oversight. 4. RATIFIED. Recorded on the shape the recent archives use (add-roster-directory-admission-surface, add-roster-device-admission- surface): proposal.md Status draft -> ratified with a Ratified: line naming Brett Heap, 2026-08-22, in-session via question prompts, plus a review/ratification-2026-08-22.md record carrying the decision, the two-rounds-one-day provenance, the four read-items, the pre-ratification fidelity review (B1/B2 + six should-fixes, and Copilot's ADMIT/READY finding), four conscious-acceptance notes, and the realization Next. tasks.md 1.3 ticked with that evidence. Swept every stale draft claim rather than only the packet's: the README OpenSpec Records row now reads RATIFIED and carries the four read-items; the ideation/staging/INDEX.md exit record for the retired substantive-review-lane-questions topic previously asserted the proposal "stays Status: draft", which the ratification falsified — corrected to name both acts and keep them distinct, since the topic's closing condition was the five dispositions and never the ratification. Spec delta: 10 requirements / 34 scenarios (was 10/33 — one scenario added by ruling 2). No contract bytes move; target_release stays none. Gates: openspec single valid; --all --strict Totals: 67 passed, 0 failed (67 items), 18 changes / 49 specs; pytest 3983+15s / 63 / 704+1w across three separate invocations; validate-ideation-dashboard-contracts 0 error / 4 warning; doc-health --as-of 2026-08-22 4/6/77/3 with 0 new against a freshly re-measured same-clock origin/main ca0b905 baseline of 4/6/78/3; contracts/ untouched and verify-commit unchanged. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: brettheap <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]>
This was referenced Oct 11, 2026
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.
Documentation follow-up to Brett's header annotation ("what is merge view and why is it unavailable?") and his choice to make it actually work locally.
Why:
generate-and-open --repository <one>serves exactly one snapshot, so⊞ all repositories in <project>disables for every project not containing that repository — a merged view composes published member snapshots. Nothing was broken; the setup simply had one member.What the runbook now says: the two-step recipe using existing tooling —
nightly_lane --repositories registered --out-dir <absolute>to publish the whole register roster (absolute out-dir keeps the shared aggregation checkout clean; unscannable repos are skipped, not fatal), thenserve --local-indexwith per-entry--source-root. Plus the two gotchas: the lane renders each repository from its aggregation submodule checkout (may trail main; publish a live worktree separately with--checkoutwhen that matters), and--checkout-rootstays the tree the gate acts on regardless of the repository on screen.Verified by running it, not just writing it: 14/14 register repositories published; every project derived its aggregate (
core,domains,medx-clinical,installs,openxfactory,xfactory); xFactory's merged view composed AdxFactory + LedgerxFactory — 97 documents, 148 clusters, namespacedrepo::id, per-item repository attribution, header readingxfactory · 2 repos · composed 2026-08-07— with zero console errors, page errors, or >=400 responses. Full suites 2766 passed (exit 0); strict validation green. Docs-only change.🤖 Generated with Claude Code