Skip to content

OpenSpec: add-project-overview (project overview from the maintenance design packet) - #12

Merged
brettheap merged 25 commits into
mainfrom
change/add-project-overview
Oct 9, 2026
Merged

brettheap merged 25 commits into
mainfrom
change/add-project-overview

Conversation

@brettheap

@brettheap brettheap commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openRepoProject-2
Claim: #10 (comment)

Governed change: add-project-overview (DRAFT, awaiting Brett Heap's ratification)

OpenSpec proposal for project overview, the bounded local project discovery with an attention filter, a versioned JSON envelope and a readable human report, designed in the project maintenance packet (ideation/brainstorm/, PR #7 at da33d92). Change 2 of two: it depends on add-project-clean-all-safe (#9, PR #11) for the shared evidence model and the cleanup gates its suggestions cite, and modifies none of the specs that change owns. It absorbs the doctor repository-health reporting of the closed PR #2 (acf0133, 80fdef3) as local-only, read-only reporting, with no remote, GitHub or PR queries.

Baseline: origin/main 7a9134b merged in (PR #8 realization of feature 002, PR #13 archive of prefer-triad); citations pinned at da33d92; project cleanup paths unchanged in content. No code, no tests and no Speckit artifacts are in this PR.

Phases

  • 1-2 proposal.md drafted
  • 3 alignment review (stack-architect 4 MISMATCH + 14 DRIFT, qa-lead 9 MISMATCH + 12 GAP) and fix round at 6204234; packet author's fidelity reads folded
  • 4-5 council (product-advocate, systems-architect, adversary-engineer): 12 VALID, 4 NOTED, 0 DISMISSED; clarifications.md; fix round at 083fcd0; packet author's final read (N-1..N-6) at c34fc64
  • 6 spec deltas at 5094e4e: new capability project-overview with 12 ADDED requirements (59 scenarios); project-review-safety 1 MODIFIED (2 scenarios); design.md D1-D13; governance tasks.md with one Speckit handoff (feature 005-project-overview, created by /speckit.specify after ratification and after feature 003 merges)
  • openspec validate add-project-overview --strict valid; openspec validate --all --strict 6 passed, 0 failed; openspec status 4/4 artifacts complete; python3 -m unittest discover -s tests -v 94 OK
  • reconciliation with add-project-clean-all-safe at 0b3c33d, commit 996a181: [E]'s per-child rule under the overview's own 64 s arithmetic, manifest over-cap from st_size, the merged remote-gone text quoted exactly, the reflog gate mirrored with reflog-unavailable after unstarted-branch, caps from the shared constants, the submodule-first test on every repository, unsupported-path-bytes on root and common_dir, escaping by Unicode categories Cc, Cf, Zl and Zp, a validity flag beside every JSON path with ignored_samples as {path, path_valid_utf8} objects (departure from DI:724-819 recorded); design D12 pruned to none open; 60 scenarios. Resolves Codex's nested-path finding; its 129-256 band finding was already covered
  • fix round at fa9f0be from the independent re-verification at 996a181 and the packet author's read (R-13b, R-14, R-15): three scenarios name a commit of their own, task 2.2 ticked with its re-read against d6aaa9a, requirement 5 limited to the rows clean's report inspects, remedies unified with PR OpenSpec: add-project-clean-all-safe (batch worktree cleanup from the maintenance design packet) #11, the anchor-based reflog test mirrored (creation anchor by all-zeros old object or branch: message; one outcome rule), repository.root from the first registry record for a linked-worktree candidate, unsupported-path-bytes on common_dir with a scenario, the limit key targets, the R-8 departure recorded; 61 scenarios; origin/main 26a5668 merged at 12febc0 (openspec validate --all --strict 7 passed, 0 failed). The OQ-4 measurement (task 2.1) is owed before the Speckit handoff
  • targeted re-check of fa9f0be: every R-13b, R-14 and R-15 item verified, remedies byte-identical with PR OpenSpec: add-project-clean-all-safe (batch worktree cleanup from the maintenance design packet) #11, cross-change items [E] [L] [G] [R] [P] all matching, READY for content; ef288fe fits the inspection-incomplete remedy to unprobed rows (R-16), aligns D5 and the scenario lists, and cites change 1 at its final 4f2162b (which carries R-15)
  • packet author's delta read of fa9f0be (one MEDIUM: the fetch-created clause could not reach the reflog gate without an upstream): resolved at fd4b05a (the branch is given an upstream by git branch -u, the over-64 KiB residual joins Risks, the line-format note states that git update-ref writes no message) and 568c477 (change 1's literal movement wording "whose old and new objects are non-zero and differ"; R-18 recorded); 61 scenarios; openspec validate --all --strict 7 passed, 0 failed
  • packet author's last delta read at 568c477: clean; its wording notes applied at 4495ae7 (selected: null credited to R-15; design D12 names R-16 and R-18 with the corrected sequence against change 1's shas)
  • READY at 4495ae7; Speckit handoff renumbered to 005-project-overview at 704eaa9 because lane 1's PR Name a parent that is not a directory in project new (feature 003-parent-obstacle-wording) #17 holds feature 003 and change 1 becomes 004 (numbering only; head 704eaa9): content verified by the independent re-verification, a targeted re-check and the packet author's three delta reads; reconciled with add-project-clean-all-safe at 7e2589f (PR OpenSpec: add-project-clean-all-safe (batch worktree cleanup from the maintenance design packet) #11, READY at 8973762, which must land first); openspec validate --all --strict 7 passed, 0 failed; 94 tests OK; 61 scenarios; origin/main 26a5668 merged
  • open question 1 ruled by Brett Heap ("yes, local ancestry proof outranks remote-gone, apply it", 2026-10-09) and applied at cc43860: requirement 6 mirrors change 1's ladder (a merged worktree whose upstream was deleted is merged-removable with the --all-safe suggestion; only an unmerged one is remote-gone); the interim text is gone from every place; the ruling supersedes R-6; the default-branch remote-gone finding is untouched (it reads the checkout's own upstream); 61 scenarios; openspec validate --all --strict 7 passed, 0 failed
  • task 2.1, the OQ-4 measurement, executed and ticked at 1cc936e: the caps stand as measured (128 candidates, 512 rows; worst case 48.3 s of 60 s; exceedances outside it fail safe as incomplete); numbers posted in the comments; two findings: this workstation's default root has 219 candidates, so a default-root run here is incomplete with 91 omitted, by design; and Git 2.43 lacks GIT_NO_LAZY_FETCH, so rulings R-23 and R-25 pin protocol.allow=never and every common transport on every Git child, with GIT_ALLOW_PROTOCOL among the seventeen names the shared scrub removes (verified on a partial clone; final head a8f710d); origin/main f401e06 merged at 74acb47 (96 tests)
  • ratified by Brett Heap on 2026-10-09, in his words to this lane: "ratify, merge OpenSpec: add-project-clean-all-safe (batch worktree cleanup from the maintenance design packet) #11 and run the runbook"; PR OpenSpec: add-project-clean-all-safe (batch worktree cleanup from the maintenance design packet) #11 landed as 0050f3e; origin/main 0050f3e merged at c563f16 (the departures stated as ratified at 33054f9); final head c563f16; squash-merged per the runbook; next: /speckit.specify 005-project-overview after feature 004 merges, the archive after feature 005 lands

Open for Brett Heap (recorded in the proposal and design): a merged worktree whose remote branch was deleted classifies remote-gone and never gets the batch suggestion (both lanes recommend that a local ancestry proof outranks it for worktree rows); squash merges never satisfy the ancestry proof (recommendation: a local patch-equivalence follow-on change).

Out of scope, as the packet defers them: branch deletion, cache disposal, remote or GitHub queries, family traversal, bench, container and park integrations.

Refs #10, #6.

🤖 Generated with Claude Code

Add the OpenSpec change add-project-overview (governing issue #10, refs #6):
the `project overview` subcommand, with bounded local discovery, an
attention filter and a versioned JSON envelope, taken from the project
maintenance design packet merged by PR #7 (da33d92).

The proposal names a new `project-overview` capability with ten ADDED
requirements and one MODIFIED requirement in `project-review-safety`
("YAML decoding errors are structured refusals"). It depends on change 1,
add-project-clean-all-safe (#9), for the shared evidence model and the
cleanup gates, and modifies none of its specs. It absorbs the doctor
repository health of the closed PR #2 (acf0133, 80fdef3) as local-only,
read-only reporting, records the open decisions it takes as proposal
decisions open to ratification, and lists the packet's errors.

Proposal only: no spec deltas, design or tasks yet, so strict validation
of this change reports "Change must have at least one delta" until the
spec phase.

Lane: openRepoProject-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 8, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR adds only a draft OpenSpec governance proposal for a future, bounded and read-only project overview command: it defines discovery, shared cleanup evidence, findings, JSON output, suggestions, absorbed doctor health reporting, safety behavior, sequencing, and out-of-scope boundaries, with no production code, tests, specs, or Speckit artifacts implemented yet.

File-Level Changes

Change Details Files
Adds a draft OpenSpec proposal defining a bounded, local-only project overview capability that discovers projects, groups worktrees, reuses the cleanup evidence/classifier, reports attention findings, and emits actionable-but-non-authorizing suggestions.
  • Defines repeatable root selection, shallow marker-based discovery, repository identity grouping, deterministic ordering, caps, omission reporting, concurrency, deadlines, and incomplete-result semantics.
  • Specifies per-candidate error isolation and reuse of change 1's shared evidence, cleanup ladder, merge-target resolution, and batch eligibility gates.
  • Defines attention categories, severity-driven exits, --attention display filtering, --strict, and a versioned JSON envelope.
  • Constrains suggestions to canonical repository-root argv arrays, with --all-safe only when change 1's cleanup gates pass and no destructive authorization flags.
  • Keeps the command read-only and local, and explicitly excludes remote/GitHub queries, family traversal, branch deletion, cache disposal, and bench/container/park integrations.
openspec/changes/add-project-overview/proposal.md
Absorbs the closed doctor repository-health work into the proposed overview while documenting intentional departures and gaps.
  • Maps doctor health fields and classifications into overview merge-target, Git tracking, worktree findings, and summary semantics.
  • Adds default-branch drift, unpushed, remote-ahead, dirty, and inspection-error findings without changing protected-default classification or performing remote operations.
  • Records deliberate non-carried behavior, including family recursion and remote merge-target or pull-request lookups.
openspec/changes/add-project-overview/proposal.md
Introduces a proposed capability and safety-spec delta for the eventual specification phase, without implementing code or tests.
  • Plans ten ADDED requirements for project-overview, covering discovery, grouping, bounds, fault isolation, classification, findings, suggestions, JSON, read-only behavior, and default-branch health.
  • Proposes one MODIFIED project-review-safety requirement to make invalid manifest encoding a candidate row error with overview exit 1 while preserving structured handling elsewhere.
  • Defers ratification, alignment and council review, spec deltas, validation, implementation, tests, README changes, and the single Speckit handoff until change 1 is ratified and merged.
openspec/changes/add-project-overview/.openspec.yaml
openspec/changes/add-project-overview/proposal.md
Establishes sequencing and governance constraints with the dependent add-project-clean-all-safe change.
  • Identifies change 1 as the owner of shared probes, evidence bounds, budgets, process handling, cleanup classification, safety specs, and batch refusal gates.
  • Requires this proposal's eventual spec and implementation to align with change 1's ratified contracts and to run after feature 003 merges.
  • Documents the draft status, unresolved review questions, packet corrections, expected file conflicts, and strict-validation limitations before phase 6.
openspec/changes/add-project-overview/.openspec.yaml
openspec/changes/add-project-overview/proposal.md

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Apply the alignment review of add-project-overview (stack architect SA-1
to SA-18, QA lead QA-1 to QA-21) under the lane lead's rulings: 38
findings applied, SA-3 superseded by D-J. Every finding's resolution is
in "Questions Resolved by the Alignment Review".

Rulings applied:
- D-A: a failed status probe on the merge-target checkout is
  inspection-error by change 1's R1; drift findings apply only to a
  protected-default checkout (OQ-20, absorption table, Corrections).
- D-B: an 11th ADDED requirement, "Overview exits by completeness and
  severity", carries the exits, signals and the overview's Git refusal.
- D-E: a bare repository's row has repository.root null and no suggestion.
- D-G: change 1 supplies the single-child runner; the overview owns the
  four-way scheduler, the in-flight registry and daemon filesystem workers.
- D-H: OQ-22 is change 1's; this change records only that
  project-doctor-repository-health is superseded by project-overview.
- D-I (relabelled): null suggestions on the protected-default checkout,
  departing from DI:704, DI:645 and DI:650-651.
- D-J (amended): the gate withholds --all-safe on inspection-incomplete,
  inspect-cap and unprobed rows; target-cap keeps it; no Corrections entry.
- D-K: house section order and title case; Dependencies and Sequencing
  under Impact; the absorption section a subsection of Decisions.
- D-L: change 1 cited by name, section title and reading label.
- D-M: requirements cite change 1's canonical headers by name; the 60 s
  invocation deadline is the overview's own (requirement 3).
- D-N, D-S: a failed root git status becomes a row-level inspection-error.
- D-O, D-X: SIGTERM and SIGHUP exit 143 and 129; Cancelled. best effort.
- D-P, D-V: the finding field suggestion_gate names the withholding gate,
  inspect-cap included for a repository over the 256-row report cap.
- D-Q: OQ-4 marks the caps provisional; tasks.md carries the warm and
  cold-cache measurement before the Speckit handoff.
- D-Z, L5: Decisions split into packet open decisions taken, adopted
  packet decisions, lane additions and departures.
- C1, C13: stale baseline sentences completed; non-UTF-8 scenarios cited.
- Open Questions: remote-gone before a merge proof, put to Brett.

Lane: openRepoProject-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Alignment review resolution, add-project-overview @6204234

Proposal: openspec/changes/add-project-overview/proposal.md at 6204234
(babd1d5 + 1). 38 findings applied, SA-3 superseded by D-J. Rulings D-A to
D-L are the lane lead's cross-change rulings; the later rulings follow the
findings table.

Finding Severity Ruling Proposal section changed
SA-1 MISMATCH applied per D-A Absorbing (OQ-20, table); Corrections
SA-2 MISMATCH applied per D-B (requirement 11, not 8) What Changes; Capabilities; Dependencies
SA-3 MISMATCH superseded by D-J (QA-17 applied) Dependencies
SA-4 MISMATCH applied Impact
SA-5 DRIFT applied Impact
SA-6 DRIFT applied per D-I (relabelled) Absorbing (OQ-20); Decisions (departures)
SA-7 DRIFT applied Corrections
SA-8 DRIFT applied per D-G Dependencies; Impact; Corrections
SA-9 DRIFT applied Decisions (suggestion display string)
SA-10 DRIFT applied Impact
SA-11 DRIFT applied Capabilities (Modified); Corrections
SA-12 DRIFT applied per D-H Decisions (preamble); Absorbing (OQ-22 record)
SA-13 DRIFT applied Decisions (OQ-7)
SA-14 DRIFT applied Absorbing
SA-15 DRIFT applied Capabilities (New)
SA-16 DRIFT applied Absorbing (OQ-19)
SA-17 DRIFT applied Absorbing
SA-18 DRIFT applied per D-K Status; Impact; Decisions; Corrections; Open Questions; layout
QA-1 MISMATCH applied per D-A Absorbing (OQ-20, table); Capabilities (requirement 10); Corrections
QA-2 MISMATCH applied Absorbing (table)
QA-3 MISMATCH applied; inspection-error-default row per D-A Absorbing (table)
QA-4 MISMATCH applied What Changes; Capabilities (requirement 3)
QA-5 MISMATCH applied, consistent with D-J (amended), D-I and D-P What Changes
QA-6 MISMATCH applied per D-I (relabelled) Absorbing (OQ-20); Decisions (departures)
QA-7 MISMATCH applied per D-H Decisions (preamble); Absorbing (OQ-22 record); Out of Scope
QA-8 MISMATCH applied Capabilities (New)
QA-9 MISMATCH applied Capabilities (requirement 8)
QA-10 GAP applied; status cells corrected, see note 1 Absorbing (prose, table)
QA-11 GAP applied Absorbing (table)
QA-12 GAP applied Absorbing (table)
QA-13 GAP applied per D-B, with D-O What Changes; Capabilities (requirement 11)
QA-14 GAP applied, with C13 Capabilities (requirement 8)
QA-15 GAP applied Capabilities (requirement 3)
QA-16 GAP applied, with D-M Decisions (OQ-9)
QA-17 GAP applied per D-J (amended: no Corrections entry) Dependencies
QA-18 GAP applied per D-E What Changes
QA-19 GAP applied; see note 2 What Changes; Absorbing (OQ-20)
QA-20 GAP applied, completed by C1 Corrections
QA-21 GAP applied; see note 3 Absorbing

"Absorbing" is the subsection "Absorbing Doctor Repository Health from the
Closed PR #2" under "Decisions Taken by This Proposal"; "Dependencies" is
"Dependencies and Sequencing" under Impact.

Later rulings (lane openRepoProject-3's fidelity reads of PRs #11 and #12):

Ruling What changed Proposal section changed
D-M Requirements cite change 1's canonical headers by name ([E] Repository inspection requires Git 2.36 and shares one evidence model, [L] Clean classifies preservation and cleanup actions, [G] the batch and bounds headers); the 60 s deadline is the overview's own Capabilities (lead-in, requirements 2, 3, 5, 7, 8, 11); Dependencies; Decisions (OQ-9)
D-J (amended) The gate also withholds --all-safe for rows the overview left unprobed; target-cap keeps it; the DI:675-686 Corrections entry removed What Changes; Capabilities (requirement 7); Dependencies; Decisions (departures)
D-I (relabel) Departures cited as DI:704, DI:645 and DI:650-651, not DI:635-636 Absorbing (OQ-20); Decisions (departures)
D-O SIGTERM and SIGHUP get the SIGINT treatment, exits 143 and 129 What Changes; Capabilities (requirement 11); Decisions (departures)
D-X Cancelled. printed on a best-effort basis (EIO after SIGHUP) What Changes; Capabilities (requirement 11); Decisions (departures)
D-P Finding field suggestion_gate (beside suggested_command) names the gate that withheld or limited a suggestion, stated as a departure from DI:810-819 What Changes; Capabilities (requirement 7); Decisions (departures)
D-V inspect-cap on the read-only suggestion over change 1's 256-row report cap; 129 to 256 rows keep a plain read-only suggestion Decisions (departures, suggestion_gate)
D-Q OQ-4: caps provisional in the deltas; governance tasks.md carries the warm and cold-cache measurement, on a Linux filesystem, before the handoff Decisions (OQ-4, OQ-5); Impact (Speckit handoff)
C1 80fdef3 missing from DI:33-35, BA:39-42 and OV:176-178; HO:365-366 and HO:377-380 on PR #7 Corrections (stale baseline sentences)
C13 Non-UTF-8 scenarios DI:1338-1347 and DI:1392-1408 cited Capabilities (requirement 8)
L5 OQ-1 to OQ-3, OQ-20 to OQ-24, OQ-28 and OQ-29 called lane additions Decisions (preamble; OQ-19 to OQ-21 labels)
D-Z Decisions split: packet open decisions taken; packet decisions adopted (OQ-5, OQ-9, OQ-25); lane additions; departures Decisions
D-N At a040790 a failed root git status raises Refused (project:326-328), exit 2; now a row-level inspection-error, inherited Dependencies (change 1's R1)
D-S Same baseline change for status, doctor and update (project:995-1000) Dependencies (change 1's R1)
OPEN FOR BRETT remote-gone outranks a merge proof (project:442 before :457); the overview keeps the packet's ladder until Brett rules Open Questions (new section)

Notes:

  1. QA-10: acf0133's doctor never reaches unavailable on a refused
    manifest or a failed top-level status, because snapshot runs
    manifest() and repo_state() first (project:679-681, the same at
    acf0133) and exits 2. The rows are added, but their status reads
    "Changed on purpose: doctor ends with exit 2 in snapshot", not
    "Escalated".
  2. QA-19: "and otherwise" makes dirty exclusive with the drift findings,
    as in acf0133's first-match health_status; OQ-20 now says "that is not
    dirty ... in acf0133's order" so the two texts agree.
  3. QA-21: the zero-count thread anchors bb91a49 project:1192 (not 1193),
    and the acf0133 part prints both dirty and ignored as None.

Attachments (appended by the lead): alignment-stack-architect-overview.md
(SA-1 to SA-18) and alignment-qa-lead-overview.md (QA-1 to QA-21).

Lead rulings (D-A to D-Z) follow in the next comment; the two review reports after that.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Lead rulings on the alignment reviews (binding for #11 and #12)

Lead rulings on the alignment reviews (lane openRepoProject-2, 2026-10-08)

Cross-change rulings. Both proposals apply them identically.

D-A Failed status probe on the merge-target checkout: change 1's R1 governs. A failed, timed-out or deadline-cut status probe sets the row to inspection-error directly, on the merge-target branch too, with that code's repair finding of severity error. The overview follows; its OQ-19/OQ-20 drift findings apply only to a checkout the ladder classifies protected-default. (clean: R1 stays; overview: SA-1, QA-1 fix.)

D-B Git 2.36 scope: change 1's R6 is narrowed. The version check runs only when a Git repository is about to be inspected; a directory with no .git keeps present: false. clean and overview refuse with git-too-old or git-unavailable, exit 2, before any probe; under --json they print {"error", "code"}. status, doctor and update never refuse: doctor reports an old or unusable Git as an error check row and keeps its exit semantics for error rows; status marks rows it cannot inspect inspection-error; update --apply --component tools|workflow does not require Git. Change 1 therefore MODIFIES project-command "Inspect and diagnose" (minimal text for the doctor check row and the status row rule) and keeps "Explicit maintenance" untouched; its ADDED project-command requirement carries the shared evidence model, the 5 s child budget for status/doctor/update, no invocation deadline or row cap for them, inspection-error without exit changes, and 15 s kept for non-Git children. The overview adds an 11th ADDED requirement "Overview exits by completeness and severity" carrying exits 0/1/2/130, SIGINT (terminate and reap, Cancelled. on stderr, no result document, 130 wins over 1), and its own Git refusal before any root is listed. (clean: SA-2, QA-5, SA-5; overview: SA-2, QA-13.)

D-C --apply --json: accepted for --all-safe and --action remove only; prints exactly one stdout document, the plan envelope or the extended error object when the run stops before the apply phase, otherwise the apply result record; human plan, prompt and progress on stderr. With --action push or --action delete-branch it stays refused invalid-arguments, exit 2. Single-target remove: flags unchanged, --apply --json now accepted. (clean: SA-3, QA-2, QA-10.)

D-D push and remote-gone: push refuses a remote-gone branch (its configured upstream was deleted; it must be reviewed before it is republished) with refusal reason remote-gone, exit 2. push and delete-branch refuse with inspection-incomplete, inspect-cap or deadline-exceeded, exit 2, when their re-inspection is incomplete. project-clean "Clean can explicitly push safe feature branches" becomes MODIFIED with exactly those two additions. (clean: QA-7.)

D-E Bare repositories: refused in every clean mode with target-not-repository-root, exit 2 (OQ-15), recorded as a new baseline change replacing BA:1255-1256 (QA-3). Overview: a bare repository's row has repository.root: null and no clean suggestion (QA-18).

D-F Exit codes: a read-only preview or report whose plan carries inspect-cap, inspection-incomplete or deadline-exceeded exits 1; one carrying only target-cap exits 0; every resolve refusal and every refusal under --apply exits 2 (QA-1). SIGTERM and SIGHUP: in the apply phase as SIGINT, taking the top row of the exit table as 143 and 129, the first signal received setting the status; before the apply phase exit 143 and 129 with zero mutation (QA-9, SA-11).

D-G Runner: Git children run through a new bounded runner, not probe(): Popen(start_new_session=True) per child, environment scrubbed, stdout read as bytes and streamed so a probe stops at its record bound; probe() stays for non-Git children; abandonable filesystem calls run on daemon threads, never a concurrent.futures pool, never preexec_fn (SA-1, SA-8 clean). The overview owns the four-way scheduler, the in-flight registry terminated together on SIGINT or deadline, and the daemon filesystem workers (SA-8 overview).

D-H OQ-22 is change 1's decision (no doctor health section; doctor changes only through the shared evidence). Change 2 records only that acf0133's unmerged project-doctor-repository-health capability is superseded by project-overview; change 1 cites change 2 for that supersession (SA-12, QA-7 overview).

D-I On a protected-default checkout the dirty, diverged, unpushed and remote-ahead findings carry suggested_command: null, overriding the attention table for that checkout only and never setting the row's suggested_command; stated as a deliberate departure from DI:635-636 and DI:650-651, because project clean offers no action for the merge-target checkout (SA-6, QA-6 overview).

D-J Repository gate: target-cap does NOT withhold the --all-safe suggestion; the batch preview is complete and lists every target, and the user removes some explicitly first (QA-17 over SA-3 overview). The gate withholds on inspection-incomplete and inspect-cap only, computed from the overview's own evidence; a plan cut by the batch's own deadline is not predicted. Record the DI:675-686 clarification under Corrections.

D-K Section layout, both proposals: house order; "Dependencies and Sequencing" as ### at the end of Impact; "Decisions Taken by This Proposal" and "Corrections to the Packet" as ## after Out of Scope and before "Questions Resolved by the Alignment Review"; title case as change 1; Status line notes the two extra sections.

D-L Cross-citations between the two proposals are by change name, section title and reading label (R1, OQ-23), never by line number, because both files are being edited in parallel.

Every other MISMATCH, DRIFT and GAP in the four reports is accepted as the reviewer worded it unless it conflicts with a ruling above, in which case the ruling wins.

Amendments after lane openRepoProject-3's fidelity read of PR #12 (2026-10-08, later)

D-M Binding after archive (lane 3 M1): no requirement may depend on "change 1's budgets/ladder/gates" by prose reference, because after archive only canonical headers survive. Change 1's ADDED project-command requirement "Repository inspection requires Git 2.36 and shares one evidence model" names overview among its readers, alongside clean, status, doctor and update, and carries the probe directory rule, the environment scrub with GIT_OPTIONAL_LOCKS=0, NUL parsing, the combined probe and its bounds, the version check and the per-child budget; the overview's requirements cite that canonical header by name wherever they rely on it, and the overview's own 60 s deadline is stated in its own requirement (project-command keeps "no invocation deadline or row cap" for status, doctor and update).

D-N Baseline change (lane 3 M4): at a040790 a failed git status in the repository root raises Refused (project:326-328), ending clean, status and doctor with exit 2; under the shared model it is a row-level inspection-error. Change 1 lists it under R1 as a baseline behavior change with a parity test; the overview inherits it.

D-J amended (lane 3 L2): the overview's repository gate withholds --all-safe when the repository has any unprobed row (classification null from the 512-row cap or the deadline) as well as on inspection-incomplete and inspect-cap; target-cap still does not withhold. C14 is not a packet defect and is not recorded under Corrections; QA-17's sentence suffices.

D-B relabelled: OV:231-234, DI:1156-1160 and BA:1241-1245 are consistent with each other (exit 2, the same two codes, code added per DI:1086-1089 and BA:978-980); D-B is a deliberate departure from the packet's doctor-refusal rule, not a correction of an inconsistency, and change 1 labels it so.

D-I relabelled: the passages D-I departs from are DI:704, DI:645 and DI:650-651; DI:635-636 fixes only the code vocabulary and DI:626-630 already puts a dirty finding on a protected-default row.

C1 completed: 80fdef3 is also missing from DI:33-35 and OV:176-178; HO:365-366 and HO:377-380 (PR #7 "open") go in both proposals' Corrections. C8 completed: HO:210 (the Resolution record) also says "additive superset", so change 1's R7 departs from the Resolution record as well as BA:949-953.

D-O Overview signals (lane 3 L1): SIGTERM and SIGHUP get the SIGINT treatment in project overview, exits 143 and 129, so no Git child is left running under start_new_session=True.

D-P Withheld suggestion reason (lane 3 L3): when the overview withholds --all-safe or any clean suggestion for a repository, the finding carries a reason code naming why (the gate that withheld it), so a repository over 128 rows says why it only gets the read-only command.

D-Q Measurement (lane 3 M3): OQ-4 is worded in both proposals as: the spec deltas mark the caps provisional, and the governance tasks.md carries the warm and cold-cache measurement (DI:179-180, 189-190, 227-228; OV:314-319) before the Speckit handoff.

C13 completed (lane 3 L4): also DI:1338-1347 and DI:1402-1408 in the overview's scenarios. L5: the overview's decisions preamble must call OQ-1-3, 20-24, 28 and 29 lane additions, as change 1 does, not the packet's consolidated decisions.

Amendments after lane openRepoProject-3's fidelity read of PR #11 (2026-10-08, later still)

D-R Fail closed on unknown state (lane 3 H1): under the shared probes a failed or timed-out status probe leaves dirty null. update --apply refuses whenever the root's or any child's dirty is not exactly false, as push already does (project:541); scenario: a leg's status probe times out at 5 s and the owner tool is never invoked. project-command "Explicit maintenance" becomes MODIFIED with that one sentence and scenario, so project-command is 2 MODIFIED + 1 ADDED. project-review-safety "Updates preserve estate and owner safeguards" (:51-55) is thereby preserved, not modified.

D-S Doctor and status on unknown state (lane 3 M1): today a failed root or leg status ends status, doctor and the update report with exit 2 (project:327-328, :995-1000); under D-B they report instead. That is a baseline behavior change, listed under R1. Doctor renders a null dirty (and any null inspection field) as an error check row, never "ok" (project-command spec :24, "Missing or malformed state SHALL be visible"); this goes in the MODIFIED "Inspect and diagnose". D-B's phrase "without exit changes" is withdrawn.

D-T Merge-target resolution (lane 3 M2): the delta names both origin/ strips, on the manifest tracking_branch (DI:576; project:383 removeprefix) and on the origin/HEAD symref, with a scenario for tracking_branch: origin/develop resolving to refs/heads/develop and never silently falling back. QA-8's accepted text is amended accordingly; BA:169-177 is a packet defect lane 3 is fixing.

D-U target-cap trigger (lane 3 M3): target-cap refuses when more than 16 rows pass every gate before the two index gates, with no index probe run (BA:96-101, 673-675, 1004); never "more than 16 eligible rows".

D-V Report-mode cap (lane 3 M4, packet-owner decision, accepted): mode: "report" caps worktree rows at 256 by the same fit rule (7 + W + 16 children; 256 fits at 41.85 s); apply modes stay at 128 rows and 16 targets; the overview's suggestion for a repository over 256 rows carries D-P's reason code.

D-W Deadline scope (lane 3 L3, packet-owner decision, accepted): the 60 s deadline bounds inspection and the batch's removal children only; push and delete-branch children via execute stay unbounded as today. C5 is withdrawn as a packet correction: the packet says "probe" and only probe() children have a timeout; the proposal's "each Git child" was the slip (QA-4's fix stays, not under Corrections).

D-X Signals before apply (lane 3 L2): with start_new_session=True the pre-apply SIGTERM and SIGHUP handling terminates and reaps probe children as SIGINT does; after SIGHUP printing may fail with EIO, so the result is printed on a best-effort basis and "always printed" is not claimed. Same for the overview under D-O.

D-Y Untracked-file defect (lane 3 L1): unreachable at a040790 (under showUntrackedFiles=no the ignored probe fails and every clean worktree is inspection-error); word it as a requirement of the new probe, not a live bug.

D-Z Decisions labelling (lane 3 on C19): "Decisions Taken by This Proposal" distinguishes (a) packet open decisions taken, each citing the packet text that leaves it open, and (b) departures from packet decisions, each citing the packet decision departed from: OQ-23 (BA:1241-1245 scope) and OQ-24 (BA:949-953 with HO:210) are departures; OQ-5, 9, 25 are packet decisions the proposals adopt, not open questions. Both proposals.

D-Q completed (lane 3 M5): the measurement runs on a Linux filesystem path, never /mnt/c.

OPEN FOR BRETT (lane 3 M6): a merged worktree whose remote branch was deleted classifies remote-gone, because the ladder tests remote_present before merged (project:442 before :457). With GitHub head-branch auto-delete and fetch.prune that is the usual state of a merged branch, and D-D refuses the old workaround (push, then remove), so under the MVP such worktrees are never eligible for --all-safe. Lane 3 puts the question to Brett with the recommendation that a local ancestry proof outranks remote-gone for worktree rows (the MVP never deletes the branch). Until he rules, both proposals keep the packet's ladder and say so under Open Questions.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Alignment review report: stack architect (read-only, at babd1d5)

Alignment review: STACK ARCHITECT, add-project-overview

Tree: .lane-worktrees/openRepoProject-2/add-project-overview at babd1d5 (da33d92 + 1).
Sibling read: add-project-clean-all-safe proposal.md at fed64d4 (cited "C1:N").
Overview proposal cited "P:N". Packet cited DI/BA/SY/OV/HO at da33d92.
PR #2 commits read with git show acf0133|80fdef3 -- project (origin/cleanup at bb91a49).

Counts: 4 MISMATCH, 14 DRIFT.

Clean dimensions (one line each)

  • PRS header: ### Requirement: YAML decoding errors are structured refusals exists verbatim at
    openspec/specs/project-review-safety/spec.md:78, and the quoted text matches :80-82.
  • ADDED headers: the ten proposed headers live in a new capability and match no header under
    openspec/specs/ (grep of every ### Requirement:); no collision.
  • project-command, project-clean, project-clean-review-safety: untouched here; C1:206-289 modifies them.
  • openspec/config.yaml holds only schema: spec-driven; it states no rules, so nothing to violate.
  • Protocol form: Lane: is line 1; the proposal is pure ASCII; no host-absolute path; no tasks.md
    implementation list exists; exactly one Speckit feature (004) is named (P:294-297).
  • Caps 32/4,096/128/512, 4-way concurrency and the 5 s/60 s/2 s budgets match DI:173-174, DI:429-467,
    OV:35 and SY:49; the 31 MVP scenarios count is right (DI:1175-1446).
  • acf0133/80fdef3 summary (P:134-143) is accurate on recursion: attach_repository_health recurses only
    into children that pass nested_snapshot (full family-member snapshots), so legs are skipped;
    health statuses are a first-match chain; one check row per snapshot feeds --strict.

Findings

SA-1 (MISMATCH)

  • Finding: OQ-20 and the third packet correction keep a merge-target checkout with a failed status probe
    protected-default and claim clean classifies alike, but change 1's R1 makes that row
    inspection-error directly, so overview and clean would disagree on the same row.
  • Source: C1:416-422 (R1: "a failed or timed-out status probe sets the row to inspection-error
    directly ... one more baseline behavior change"); project:418-426.
  • Proposal reference: "Absorbing ..." OQ-20, P:172-179 ("The classification stays
    protected-default, so overview and clean still classify alike"); "Corrections to the packet",
    P:381-387.
  • Fix: replace P:176-179 from "and an inspection-error repair finding" with: "A failed, timed-out or
    deadline-cut status probe on that checkout follows change 1's R1: the row is classified
    inspection-error directly, with that classifier's repair finding of severity error, exactly as
    project clean classifies it." Replace P:383-387 with: "Change 1's R1 sets such a row to
    inspection-error directly, so DI:255-262, DI:675-678, BA:643-644 and BA:908-910 hold once change 1
    lands; the overview follows that classification and its repository gate." Drop the "inspection-error"
    half of the OQ-20 absorption-table row (P:154) to "Subsumed by change 1's R1".

SA-2 (MISMATCH)

  • Finding: The proposal says change 1 owns the Git 2.36 floor, but change 1 binds it only for clean,
    status, doctor and update, and none of the ten overview requirements requires the overview's own
    version check, so no spec text makes project overview refuse old Git.
  • Source: C1:278-282, C1:397-398 (OQ-23 scope "clean, status, doctor and update"); DI:313-326, DI:1074.
  • Proposal reference: "Dependencies and sequencing", P:95-96; Capabilities list, P:228-247.
  • Fix: extend requirement 8 at P:242-243 to: "Overview prints a versioned JSON envelope: SHALL run
    change 1's Git version check before any root is listed, refuse with git-too-old or git-unavailable
    and exit 2, and otherwise print one schema_version: 1 envelope; a --json exit 2 prints
    {"error", "code"}." and add to P:95: "this change applies that check to project overview."

SA-3 (MISMATCH)

  • Finding: The repository gate withholds --all-safe "exactly when" the batch would refuse as
    inspection-incomplete or inspect-cap, but the batch also refuses a complete plan with target-cap
    when more than 16 rows pass the gates, which the overview can compute from the four per-worktree gates
    it already applies.
  • Source: BA:1004 (target-cap: "more than 16 rows pass every gate before contains-submodule");
    C1:122-123; DI:675-686 (packet gate omits it).
  • Proposal reference: "Dependencies and sequencing", P:102-107 and P:111-115; requirement 7, P:240-241.
  • Fix: P:112-114 to: "it withholds --all-safe when change 1's batch would refuse that repository's
    plan as inspection-incomplete, inspect-cap or target-cap, each computed from the overview's own
    evidence; a plan cut by the batch's own deadline cannot be predicted and stays advisory." Add
    target-cap to the list at P:105-106, and record it under "Corrections to the packet" as a gap in
    DI:675-686.

SA-4 (MISMATCH)

  • Finding: "Standard library only" is false: the overview reads manifests through manifest(), which
    imports PyYAML, the repository's one third-party dependency.
  • Source: project:37-41, project:274-282; requirements.txt:2 (PyYAML>=6.0,<7); README.md:18-19;
    .github/workflows/tests.yml:17.
  • Proposal reference: Impact, P:284.
  • Fix: P:284 to: "No new dependency: manifest reads use manifest() and so the existing PyYAML
    requirement; without PyYAML each manifest row carries a manifest-invalid error and the run exits 1,
    every other path uses the standard library." Add a scenario for the missing-PyYAML row.

SA-5 (DRIFT)

  • Finding: Overview exit 2 needs a main() change the proposal does not name: baseline main catches
    only Refused/OSError and prints {"error"}, while the overview must add code
    (refused, os-error, internal-error) and turn any other exception outside the collector into
    exit 2; change 1 adds code only for its two Git refusals, so the shared handler must stay unchanged
    for status/doctor to keep project-command untouched.
  • Source: project:995-1003; DI:1083-1092; C1:433-437 ("gains code for these two refusals only").
  • Proposal reference: requirement 8, P:243; Impact, P:281-283.
  • Fix: add to P:283: "The code field for refused, os-error and internal-error, and exit 2 for an
    exception outside the collector, apply to project overview only; other subcommands keep
    main()'s current handling apart from change 1's two Git codes."

SA-6 (DRIFT)

  • Finding: OQ-20's "suggest no command" for diverged/unpushed on the merge-target checkout departs
    from the attention table, which gives both codes the read-only project clean <root> suggestion, but
    it is not stated as a departure, and its reason cites --apply refusals that do not apply to a
    read-only suggestion; it also breaks DI's rule that classifier finding codes equal the row
    classification.
  • Source: DI:635-636, DI:650-651, DI:655; project:539-540, :579-580 (the --apply --action push and
    delete-branch paths only).
  • Proposal reference: OQ-20, P:179-181.
  • Fix: P:179-181 to: "These findings reuse the codes diverged, unpushed and remote-ahead on a row
    whose classification stays protected-default, a deliberate departure from DI:635-636, and, departing
    from DI:650-651, suggest no command: project clean reports that checkout only as
    protected-default and offers no action for it (project:421-423, :539-540, :579-580)."

SA-7 (DRIFT)

  • Finding: The ladder does not test the merge-target branch first; it tests presence
    (stale-worktree) first and the merge-target branch second, before cleanliness.
  • Source: project:418-426.
  • Proposal reference: "Corrections to the packet", P:383-384.
  • Fix: "The ladder tests the merge-target branch after presence and before cleanliness
    (project:418-426)" (wording as C1:416-417 has it).

SA-8 (DRIFT)

  • Finding: The proposal says change 1 owns process-group termination, but change 1 probes serially
    (probe_concurrency 1); the four-way cross-repository scheduler, the registry of in-flight children
    to terminate together on SIGINT or deadline, and the filesystem worker threads belong to this change.
    On Python 3.10 a ThreadPoolExecutor worker is joined at interpreter exit, so an abandoned stuck
    worker would hold exit beyond the deadline.
  • Source: C1:116-118 (serial probing); SY:49 (overview 4, batch 1); DI:465-485.
  • Proposal reference: "Dependencies and sequencing", P:89-94; Impact, P:281-282.
  • Fix: append to P:94: "Change 1 supplies the single-child mechanism; this change owns running up to four
    at once, terminating every in-flight child together, and the filesystem worker tasks, which run on
    daemon threads so an abandoned call cannot hold process exit beyond what DI:480-485 allows."

SA-9 (DRIFT)

  • Finding: The human $'...' form with \uXXXX escapes does not round-trip in macOS's stock
    /bin/bash 3.2 (bash added \u in $'...' in 4.2), and CI runs macos-latest; DI only discusses
    the C locale.
  • Source: DI:910-925; .github/workflows/tests.yml:9.
  • Proposal reference: Decisions, "Suggestion display string", P:362-364.
  • Fix: add: "The pasteable $'...' form assumes bash 4.2 or newer, or zsh; tests assert the rendered
    string, not a shell round trip on macOS's bash 3.2."

SA-10 (DRIFT)

  • Finding: CI does not run python3 -m unittest ...; tests.yml:18 runs python -m unittest discover -s tests -v (README.md:187 uses python3).
  • Source: .github/workflows/tests.yml:18; README.md:186-187.
  • Proposal reference: Impact, P:292-293.
  • Fix: "Tests run with python3 -m unittest discover -s tests -v (README.md:187), the command CI runs
    as python -m ... (.github/workflows/tests.yml:18)."

SA-11 (DRIFT)

  • Finding: The cited exit-1 scenario is a wrong-kind manifest (kind: other), which PRS:78-82 does not
    cover; the conflict with PRS comes from the collector row that maps every Refused from manifest(),
    an unreadable manifest included, to manifest-invalid.
  • Source: DI:1279-1286; DI:530; PRS:80-82.
  • Proposal reference: Modified Capabilities, P:265-267; "Corrections to the packet", P:393-395.
  • Fix: P:393-395 to: "DI:530 maps every Refused from manifest() to a manifest-invalid row error with
    exit 1 (DI:1279-1286 shows the wrong-kind case); for an invalid encoding PRS:78-82 requires exit 2, and
    the MODIFIED requirement resolves it." Cite DI:530 alongside DI:528-531 at P:267.

SA-12 (DRIFT)

  • Finding: OQ-22 is decided by both changes, and neither proposal's ownership split assigns it.
  • Source: C1:395-396 (OQ-22 decided), C1:411-412 ("Left to add-project-overview" omits OQ-22).
  • Proposal reference: OQ-22, P:188-191; Decisions preamble, P:337-338.
  • Fix: P:337-338 to add: "OQ-22 is decided in both changes alike; this change owns its wording because
    it supersedes acf0133's capability." Ask change 1 to cite this one.

SA-13 (DRIFT)

  • Finding: OQ-7 drops the packet's condition: a single repository over about 355 rows misses the
    deadline only at the 150 ms margin rate; at 100 ms, 512 rows fit.
  • Source: DI:219-223, DI:1473-1476; OV:328-331.
  • Proposal reference: Decisions, OQ-7, P:352-353.
  • Fix: "A repository with more than about 355 worktree rows ends at the deadline, visibly incomplete, if
    children cost the 150 ms margin rate; OQ-4's measurement settles it."

SA-14 (DRIFT)

  • Finding: The quoted decision-record sentence is not at OV:186, which is only the link; OV:180-183
    paraphrases it.
  • Source: OV:180-186.
  • Proposal reference: "Absorbing ...", P:128-130.
  • Fix: "Its decision record (PR Retire merged local branches during cleanup #2 comment 6035824335, linked at OV:186; paraphrased at OV:180-183)".

SA-15 (DRIFT)

  • Finding: The prefer-triad precedent is paraphrased wrong: it dropped its standalone capability because
    the archived reason for standalone capabilities no longer applied once the specs were canonical, not
    because it changed an existing requirement.
  • Source: openspec/changes/prefer-triad-in-project-new/proposal.md:321-326.
  • Proposal reference: New Capabilities, P:251-253.
  • Fix: "The prefer-triad proposal dropped a standalone capability because the old reason for one, specs
    not yet archived, no longer applied (its proposal.md, lines 321-326); a whole new subcommand is a new
    contract, as project-clean is for clean."

SA-16 (DRIFT)

  • Finding: OQ-19's "dirty-default under the overview's code" reads as if the finding code were
    dirty-default, which clashes with "add no -default code" (P:180).
  • Source: DI:626-630; acf0133 health_status.
  • Proposal reference: OQ-19, P:169-171.
  • Fix: "kept. A dirty checkout on the merge target stays protected-default and gains one dirty
    preserve finding; that finding replaces acf0133's dirty-default."

SA-17 (DRIFT)

  • Finding: The unavailable summary is complete only for Refused: doctor_repository_health catches
    Refused alone, so an OSError from repo_state (an unreadable worktree path) escapes and ends
    doctor with exit 2.
  • Source: acf0133 doctor_repository_health (except Refused); project:339, project:995-1000.
  • Proposal reference: "Absorbing ...", P:141-142.
  • Fix: "Any Refused from cleanup_report, a missing default branch included, makes health
    unavailable, a warning, and doctor continues; an OSError still ends doctor with exit 2."

SA-18 (DRIFT)

  • Finding: The sibling proposals place and title-case their shared sections differently, against the
    house example's order.
  • Source: C1:323 ("Dependencies and Sequencing", after Impact), C1:364, C1:446;
    prefer-triad proposal.md:20-487 section order.
  • Proposal reference: P:83, P:332, P:370.
  • Fix: rename to "Dependencies and Sequencing", "Decisions Taken by This Proposal" and "Corrections to
    the Packet", and move "Dependencies and Sequencing" after "Impact" as change 1 has it.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Alignment review report: QA lead (read-only, at babd1d5)

Alignment review, QA lead: add-project-overview

Tree: /workspace/projects/.lane-worktrees/openRepoProject-2/add-project-overview at babd1d5
(da33d92 + proposal). Read-only. Change 1 read at fed64d4
(add-project-clean-all-safe/proposal.md, cited "C1P:N"). acf0133 and 80fdef3 read
with git show <sha> -- project; PR #2 decision record read with gh pr view 2 --comments.
Citations: DI, OV, SY, BA, HO as in the proposal; P:N is proposal.md line N.

Totals: 9 MISMATCH, 12 GAP.

Dimension summaries

  1. Header accuracy: CLEAN. ### Requirement: YAML decoding errors are structured refusals
    is verbatim at PRS:78 and its quoted text matches PRS:80-82. None of the ten ADDED headers
    exists anywhere under either lane worktree (grep). PRS has six requirements (:9 :21 :32
    :51 :67 :78); P:257-276 modifies one and names the other five untouched. None missing.
  2. Values: every number matches the packet: caps 32/4,096/128/512 (DI:108,118,157,173;
    OV:35), record bounds 64/4,096/8 (DI:410-418, DI:729), concurrency 4 (DI:431), serial
    fallback 32/128 (DI:1468), 60 s, 5 s per child and per root listing, 2 s TERM-to-KILL
    (DI:453-467), exits 0/1/2/130 with 130 over 1 (DI:1070-1096), ~355 rows (DI:1474),
    schema_version 1, merge_target {name, source, sha}, identity {root, common_dir, dev, ino},
    the four categories and the severities P quotes. Two semantic mismatches: QA-4 (when the
    entry cap applies) and QA-16 (the 10 s reserve is change 1's only).
  3. Coverage: see QA-2, QA-3, QA-10 to QA-15, QA-17, QA-18. The 31-scenario count
    (P:289) is right (DI:1185-1446: 6+7+1+6+3+3+2+3). Both HO "Current state" follow-ups
    (HO:35-39) are carried: absorption (P:126-191) and paired retirement (P:320-323).
  4. Acceptance: QA-5, QA-9, QA-19.
  5. Cross-change: QA-1, QA-7, QA-8, QA-16, QA-17, QA-18. The MODIFIED carve-out keeps
    PRS:84-87 and both sentences for every other command; no other PRS scenario touched.
    No collision with the prefer-triad delta beyond the misquoted rationale in QA-8: that
    delta changes only new and keeps status/doctor output unchanged (its spec:335-337).

MISMATCH

QA-1. Finding: The proposal keeps a merge-target checkout whose status probe failed as
protected-default and says overview and clean "still classify alike", but change 1's R1
classifies that row inspection-error directly, so the two would not classify alike.

  • Requirement source: C1P:416-422 (R1) and C1P:217-220 (MODIFIED project-clean :25,
    "probe-failed rows are inspection-error directly"); BA:641-644; DI:255-262; DI:1233-1237
    ("Probe timeout" expects inspection-error); project:421-426.
  • Proposal reference: Absorbing, OQ-20, P:176-179; Corrections, P:381-387; ADDED req 10,
    P:246-247; table row inspection-error-default, P:154.
  • Fix: Replace the OQ-20 sentence at P:176-179 with: "A checkout whose status probe failed,
    timed out or was cut by the deadline is inspection-error by change 1's ladder (its R1),
    on the merge-target branch too, and carries that code's repair finding of severity
    error; the drift findings below apply only to a checkout classified protected-default."
    Replace the Corrections bullet with: "DI:255-262 stands; change 1's R1 extends it to the
    merge-target branch." Req 10: "a merge-target checkout classified protected-default
    SHALL keep that classification and gain the OQ-19 and OQ-20 findings."
  • Severity: MISMATCH
    QA-2. Finding: The absorption row "Every non-default row is a warning" names only two
    downgrades, while the overview also makes merged-current and remote-ahead info and
    raises inspection-error to error.
  • Requirement source: acf0133 health_status, final return ("warning", ...); DI:640,
    DI:654-657.
  • Proposal reference: absorption table, P:150.
  • Fix: "Changed on purpose: merged-removable, pushed-unmerged, merged-current and
    remote-ahead are info; inspection-error is error; the other classifications stay
    warning (DI:638-659)."
  • Severity: MISMATCH
    QA-3. Finding: The table lists remote-ahead-default and inspection-error-default as
    gaps "closed by OQ-20" without recording that OQ-20 lowers the first from warning to info
    and raises the second from warning to error.
  • Requirement source: acf0133 and 80fdef3 health_status (both return "warning");
    P:174-177.
  • Proposal reference: absorption table, P:152 and P:154.
  • Fix: Split P:152 into "diverged-, unpushed-default | diverged, unpushed, preserve,
    warning (OQ-20) | Subsumed" and "remote-ahead-default | remote-ahead, informational,
    info (OQ-20) | Changed on purpose: warning to info". P:154: "inspection-error-default |
    inspection-error, repair, error (change 1's R1) | Escalated: warning to error".
  • Severity: MISMATCH
    QA-4. Finding: The proposal says all four caps apply after canonical sorting, but the
    4,096-entry cap cuts each root's listing in directory order before any sorting.
  • Requirement source: DI:117-121, DI:158-161, DI:169.
  • Proposal reference: What Changes, "Every bound is reported", P:50-52.
  • Fix: "The 32-root, 128-candidate and 512-worktree-row caps apply after canonical sorting;
    the 4,096-entry cap cuts a root's listing in directory order and reports omitted with
    exactness unknown."
  • Severity: MISMATCH
    QA-5. Finding: The suggestion bullet says --all-safe follows "change 1's batch gates" and
    otherwise suggests project clean <root>. But the overview applies only four of the six
    gates, and many codes and rows carry no suggestion.
  • Requirement source: DI:661-673, DI:688-702; SY:301-306; BA:152-160 (index gates last);
    DI:638-659 ("none" rows); DI:853-854 (bare root); DI:862-864 (non-UTF-8 root).
  • Proposal reference: What Changes, "Suggestions never carry permission", P:67-71.
  • Fix: "project clean <root> --all-safe only for a merged-removable worktree that
    passes change 1's four per-worktree gates (main-worktree, unsupported-path-bytes,
    registration-mismatch, locked-worktree) in a repository change 1 would not refuse as
    inspection-incomplete or inspect-cap; otherwise the read-only project clean <root>
    where the attention table names it, and no suggestion for a code the table marks
    none, a null repository.root or a root that is not valid UTF-8. The batch may still
    exclude a suggested worktree through its index gates."
  • Severity: MISMATCH
    QA-6. Finding: OQ-20 gives diverged and unpushed "no command", but the attention table
    fixes project clean <root> per code. OQ-19's dirty finding on the same checkout is left
    unstated, so one code would carry two suggestion rules.
  • Requirement source: DI:645, DI:650-651, DI:802-806.
  • Proposal reference: OQ-19 P:169-171; OQ-20 P:179-181.
  • Fix: Add to OQ-20: "On a checkout classified protected-default, the dirty,
    diverged, unpushed and remote-ahead findings carry suggested_command: null,
    overriding the attention table for that checkout only, and never set the row's
    suggested_command."
  • Severity: MISMATCH
    QA-7. Finding: Both changes claim OQ-22, the doctor health section. Change 1 decides it,
    and its list of decisions left to the overview excludes OQ-22.
  • Requirement source: C1P:395-396, C1P:411-412.
  • Proposal reference: OQ-22, P:188-191; P:336.
  • Fix: P:188-191: "OQ-22 is change 1's decision (no doctor health section). This change
    records only that acf0133's unmerged project-doctor-repository-health capability is
    superseded by project-overview." P:336: "OQ-19 to OQ-21 are in the absorption section."
  • Severity: MISMATCH
    QA-8. Finding: The proposal gives the wrong reason for prefer-triad dropping its
    standalone capability. That change did not drop it for modifying an existing requirement:
    it dropped it because the archived reason for standalone capabilities no longer applies.
  • Requirement source: openspec/changes/prefer-triad-in-project-new/proposal.md:322-326.
  • Proposal reference: Capabilities, P:251-253.
  • Fix: "The prefer-triad proposal dropped its standalone capability because the archived
    reason for standalone capabilities no longer applies (its proposal.md:322-326). This
    change still creates one because overview is a whole subcommand with its own contract,
    as clean has project-clean."
  • Severity: MISMATCH
    QA-9. Finding: ADDED req 8 says every --json exit 2 prints {"error", "code"}, but an
    argument error prints argparse usage and no JSON.
  • Requirement source: DI:1086-1090; SY:51.
  • Proposal reference: Capabilities, req 8, P:242-243.
  • Fix: "...; a --json exit 2 other than an argument error prints {"error", "code"} with
    code git-too-old, git-unavailable, refused, os-error or internal-error, and an
    argument error prints argparse's usage on standard error and no JSON."
  • Severity: MISMATCH

GAP

QA-10. Finding: The table maps acf0133's "unavailable" state only to no-merge-target. But
unavailable came from any cleanup_report refusal, including a directory with no Git
checkout, a refused manifest and a failed top-level status.

  • Requirement source: acf0133 doctor_repository_health (except Refused);
    project:397-403 (repo_state, manifest, default branch); project:327-328; DI:284-287,
    DI:530, DI:535.
  • Proposal reference: absorption prose P:141-142; table P:155.
  • Fix: Add rows: "Unavailable, no Git checkout | row with null repository/git, no
    finding | Changed on purpose: no warning"; "Unavailable, manifest refused |
    manifest-invalid row error, exit 1 | Escalated"; "Unavailable, status failed |
    probe-failed row error, inspection-error | Escalated".
  • Severity: GAP
    QA-11. Finding: 80fdef3 also raises inspection-error-default when only ignored_files is
    null. Under the combined probe that state means the stream stopped early on a dirty
    checkout, which the overview reports as dirty, and the proposal does not record the
    change.
  • Requirement source: 80fdef3 health_status (dirty is None or ignored_files is None);
    DI:414-417.
  • Proposal reference: absorption table P:154; OQ-20 P:176-177.
  • Fix: Add a row: "inspection-error-default on a null ignored_files alone | dirty
    finding when the stream stopped before any ignored record (DI:414-417) | Changed on
    purpose".
  • Severity: GAP
    QA-12. Finding: The recursion row says "Deliberately not carried", but a family member
    that is an immediate entry of a configured root gets its own row and probes.
  • Requirement source: acf0133 attach_repository_health (recurses only into
    nested_snapshot children); DI:287-290; DI:1440-1441.
  • Proposal reference: absorption table, P:157.
  • Fix: "Changed on purpose: no traversal of members or legs; a member that is an immediate
    entry of a configured root is its own row (DI:287-290)."
  • Severity: GAP
    QA-13. Finding: Neither What Changes nor any ADDED requirement carries exits 2 and 130,
    SIGINT handling or the Git version refusal before any root is listed, although OQ-25
    decides them and three MVP scenarios test them.
  • Requirement source: DI:313-326, DI:1070-1098; scenarios DI:1243-1248, DI:1270-1275.
  • Proposal reference: What Changes P:36-81; Capabilities P:228-247; OQ-25 P:365.
  • Fix: Add an 11th ADDED requirement, Overview exits by completeness and severity:
    "SHALL exit 0, 1, 2 or 130 as DI:1070-1075 defines; SHALL refuse Git older than 2.36 with
    git-too-old, and a missing or unusable git with git-unavailable, with exit 2 before
    listing any root; on SIGINT SHALL terminate and reap every child, print Cancelled. to
    standard error, print no result document and exit 130, which wins over 1." Add the same
    as a What Changes bullet.
  • Severity: GAP
    QA-14. Finding: No requirement or bullet carries path encoding: exact JSON paths,
    path_valid_utf8, \xHH escaping, the human $'...' form, or unsupported-path-bytes
    withholding suggestions. Two MVP scenarios depend on it.
  • Requirement source: DI:888-925; scenarios DI:1392-1408.
  • Proposal reference: What Changes P:72-74; req 8 P:242-243; display decision P:362-364.
  • Fix: Add to req 8: "SHALL emit every path exactly when valid UTF-8 and escaped with
    path_valid_utf8: false otherwise, SHALL print paths with control, bidirectional or
    format characters in the $'...' form, and SHALL give a non-UTF-8 path an
    unsupported-path-bytes finding and no clean suggestion."
  • Severity: GAP
    QA-15. Finding: Probe accounting (probes: {estimated, performed} with the overview's own
    estimate formula) and deterministic two-phase scheduling are missing from What Changes
    and req 3. The "Bounded concurrency" scenario asserts the JSON matches a one-child run.
  • Requirement source: DI:440-449, DI:501-511; scenarios DI:1193-1201, DI:1249-1254.
  • Proposal reference: What Changes P:50-54; req 3 P:232-233.
  • Fix: Req 3 add: "SHALL schedule in two canonical phases so that the JSON, apart from
    timestamps and budget.probe_concurrency, does not depend on concurrency or completion
    order, and SHALL report probes: {estimated, performed} as DI:503-511 defines."
  • Severity: GAP
    QA-16. Finding: The proposal assigns the 60 s budget to change 1 without saying that
    change 1's deadline carries a 10 s reconciliation reserve and a 5 s removal floor, which
    the overview does not have.
  • Requirement source: C1P:116-118; SY:49 ("the batch adds reconciliation_reserve_seconds
    10 and removal_floor_seconds 5"); DI:183-184, DI:453-454, DI:730.
  • Proposal reference: Dependencies P:92; OQ-9 P:356-358.
  • Fix: Add to OQ-9: "The overview's deadline is the full 60 s, with no reconciliation
    reserve and no removal floor; budget holds only probe_timeout_seconds,
    invocation_timeout_seconds and probe_concurrency."
  • Severity: GAP
    QA-17. Finding: The repository gate names only inspection-incomplete and inspect-cap.
    It does not say whether a repository whose apply change 1 refuses with target-cap
    (more than 16 gate-passing rows) keeps its --all-safe suggestion.
  • Requirement source: BA:100, BA:1004; SY:203-204, SY:271-273; C1P:122-123.
  • Proposal reference: Dependencies, Consequences, P:111-115.
  • Fix: Add: "A repository whose plan change 1 blocks with target-cap keeps the --all-safe
    suggestion: its preview is complete and lists every target, and the user removes some
    explicitly first (BA:100)."
  • Severity: GAP
    QA-18. Finding: Change 1 refuses bare repositories (OQ-15), but the proposal never says how
    the overview reports one.
  • Requirement source: C1P:390-392; DI:238-239, DI:751, DI:853-854; SY:46.
  • Proposal reference: "Rows are repositories", P:46-49.
  • Fix: Add: "A bare repository's row has repository.root: null and gets no clean
    suggestion (DI:238-239, DI:853-854), consistent with change 1's refusal of bare
    repositories (its OQ-15)."
  • Severity: GAP
    QA-19. Finding: Three bullets cannot be tested as written: the default-branch bullet, the
    "reuses the clean report's field names" clause and the --attention clause.
  • Requirement source: DI:709-714, DI:722-819.
  • Proposal reference: P:75-77; P:72-74; P:65-66.
  • Fix: P:75-77: "A checkout classified protected-default gains a dirty preserve warning
    when dirty, and otherwise diverged or unpushed (preserve, warning) or remote-ahead
    (informational, info) from its ahead and behind counts, each with no suggested command
    (OQ-19, OQ-20)." P:72-74: "...one schema_version: 1 document with exactly the envelope,
    row, worktree, finding and summary fields and types of DI:724-819." P:65-66:
    "--attention shows every scan error, every error row and every row with a repair,
    preserve or housekeeping finding, hides informational findings within those rows, and
    changes neither the JSON, the summary nor the exit."
  • Severity: GAP
    QA-20. Finding: Corrections omit the stale HO:377-380 claim that PR Design packet: project overview and project clean --all-safe (design only) #7 "is open for
    review", which change 1 corrects, even though the proposal cites HO:379-380.
  • Requirement source: C1P:452-453; HO:377-380.
  • Proposal reference: Corrections, "Stale origin/main", P:375-376; P:131.
  • Fix: Add: "HO:365-366 and HO:377-380 describe PR Design packet: project overview and project clean --all-safe (design only) #7 as open; it merged as da33d92."
  • Severity: GAP
    QA-21. Finding: The proposal says the overview answers the PR Retire merged local branches during cleanup #2 thread "doctor rendering
    unknown inspection state as zero counts", but that thread anchors bb91a49 project:1193.
    Its zero counts are the disposable and blocking path counts from cache commit 1789ad9;
    only the ignored value is acf0133's.
  • Requirement source: PR Retire merged local branches during cleanup #2 review thread at project:1193 (gh pr view 2 --comments).
  • Proposal reference: P:159-162.
  • Fix: "...answers the acf0133 part of that thread (ignored rendered as None); its
    disposable and blocking counts belong to the cache-disposal extension."
  • Severity: GAP

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T23:50:36.738339Z 6204234 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 62042347f6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +181 to +184
SHALL emit every path, parsed as [E] parses it, exactly when valid
UTF-8, else escaped with `path_valid_utf8: false`, SHALL print a path
with control, bidirectional or format characters or undecodable bytes
in `$'...'` form, and SHALL give a non-UTF-8 path an

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add encoding flags for every serialized path

When a nested path—notably an ignored sample, repository.common_dir, or a finding's checkout.path—contains non-UTF-8 bytes, the adopted DI:724-819 schema provides no adjacent path_valid_utf8 field for several of those values. The row-level flag only aggregates path, repository.root, and repository.common_dir, so it cannot identify which nested value was escaped, and it says nothing about ignored samples or finding checkouts. As written, implementations must either violate this SHALL or emit ambiguous strings such as a literal \xff versus an escaped byte; extend each path-bearing object/value with an encoding indicator or narrow the requirement explicitly.

Useful? React with 👍 / 👎.

Comment on lines +425 to +428
or `unsupported-path-bytes`; a read-only suggestion for a repository over
change 1's plain-report row cap (256) names `inspect-cap`, since that
report would be incomplete. A repository of 129 to 256 rows gets the plain
read-only suggestion, with no gate on findings whose table suggestion is

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Mark the 129–256-row fallback with inspect-cap

For a repository with 129–256 registered worktrees, the batch's 128-row limit still withholds the originally applicable --all-safe suggestion with inspect-cap, so the immediately preceding definition requires suggestion_gate to name that limiting gate. Saying the replacement read-only command has no gate loses the reason the safer form was selected and contradicts lines 419–423; use inspect-cap whenever the batch row cap causes this fallback, independently of whether the plain report itself remains complete.

Useful? React with 👍 / 👎.

brettheap and others added 3 commits October 9, 2026 00:11
VALID verdicts applied to proposal.md (now 12 ADDED requirements):
- V1 (AE-1): every applicable default-branch finding, not a first match;
  no upstream gives unpublished, a gone upstream remote-gone (req 10,
  OQ-19, OQ-20, absorption table); supersedes QA-19's first match.
- V2 (AE-2): gitfile main checkouts, unsupported-layout and
  main-worktree-missing; "reached first" is canonical order (req 2).
- V3 (PA-2): requirement 12, the readable human report.
- V4 (PA-3): fixed remedies per suggestion_gate code; suggestion_gate_rows
  tells the two inspect-cap bands apart (req 7).
- V5 (AE-4), amended per change 1 council V5: target-cap is a limiting
  gate, "limited to 16 per run; re-run to drain the backlog".
- V6 (SA-3, AE-5): determinism scoped to uncut runs; rank barrier stated.
- V7 (AE-3): every filesystem call bounded; manifest over 1 MiB invalid.
- V8 (SA-4): streamed ref listing; OQ-4 cold-root and large-ref terms;
  README WSL2 note.
- V9 (SA identity): [E]'s registration rule; canonical-first bind mount.
- V10 (PA-4): all-roots-absent message; README single-project and fetch.
- V11 (PA-1): interim remote-gone wording; review-only by design.
- V12 (SA-2): runner child-handle interface stated in Dependencies.
Also D-S narrowed, D-AB, D-AE ([R], [P], TERM then KILL), D-AF and lane
3's LOW items; "Council Verdicts" table added; alignment rows merged.

NOTED constraints in the new clarifications.md:
- N1 (SA-1) the scheduler's selectors control loop and signal handling.
- N2 (SA-4) cancel flag for abandoned listing workers.
- N3 (AE-2) deriving repository.root for gitfile checkouts and missing
  main worktrees.
- N4 (V1) computing the default-branch finding set without new probes.

Lane: openRepoProject-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
origin/main is d7f6b0e (PR #8, feature 002), with 94 tests. Every
project:N and README citation stays pinned at da33d92; at d7f6b0e the
cited clean and repo_state code (manifest() onward) sits exactly 141
lines lower and README.md:187 is :275. Feature 004's specify and plan
re-pin citations against the main of that day (Dependencies and
Sequencing; Impact).

Lane: openRepoProject-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Council resolution, add-project-overview @083fcd0

Verdict commit 083fcd0 on 6204234; then merge of origin/main (d7f6b0e,
PR #8) as 3ac3e48, and a8cef41 recording PR #8's merge and the citation
pin. Branch head a8cef41, pushed. proposal.md 759 lines (753 at
083fcd0); clarifications.md 129 lines, new. Capability project-overview
now has 12 ADDED requirements; project-review-safety keeps its one
MODIFIED requirement.

Concern Severity Verdict Section changed
PA-1 remote-gone advice leads nowhere HIGH VALID, V11 (interim wording only; ratification timing is Brett's) Open Questions; Impact (README, review-only line)
PA-2 no human-output requirement HIGH VALID, V3 What Changes; Capabilities (requirement 12)
PA-3 gate codes without remedies MEDIUM VALID, V4 What Changes; Capabilities (requirement 7); Decisions (departures, suggestion_gate)
PA-4 no roots, stale evidence, one project MEDIUM VALID, V10 (freshness through V3) Capabilities (requirements 1, 12); Impact (README)
SA-1 scheduler control loop HIGH NOTED, N1 clarifications.md
SA-2 runner must multiplex MEDIUM-HIGH VALID, V12; constraint routed to change 1 as X1 Dependencies and Sequencing
SA-3 determinism too broad MEDIUM-HIGH VALID, V6 (one item with AE-5) Capabilities (requirement 3); Decisions (departures)
SA-4 unbounded costs MEDIUM VALID, V8 (bounds); NOTED, N2 (workers) Capabilities (requirement 3); Decisions (OQ-4); Impact (README); clarifications.md
SA identity residual LOW VALID, V9 Capabilities (requirement 2)
AE-1 default branch reads healthy HIGH VALID, V1 (supersedes QA-19's first match); NOTED, N4 What Changes; Capabilities (requirement 10); Absorbing (OQ-19, OQ-20, table); Decisions (departures); clarifications.md
AE-2 gitfile repositories, missing main worktree MEDIUM-HIGH VALID, V2; NOTED, N3; change 1 part routed as X2 What Changes; Capabilities (requirement 2); Dependencies; Decisions (departures); clarifications.md
AE-3 unbounded filesystem calls MEDIUM VALID, V7 What Changes; Capabilities (requirements 3, 11)
AE-4 predictable target-cap refusal MEDIUM-LOW VALID, V5 amended per change 1 council V5 Capabilities (requirement 7); Dependencies; Decisions (departures)
AE-5 determinism versus cuts LOW VALID, V6 (with SA-3) Capabilities (requirement 3)

Carried items applied in 083fcd0:

Item Section changed
D-S narrowed (only not-established nulls are errors) Rules This Change Keeps ("Unknown is never healthy")
D-AB (packet revision wording; citations stay at da33d92) Corrections preamble
D-AE ([R] Clean resolves its target Git-first, [P] Clean reports every path exactly or excludes it; TERM then KILL) Capabilities (lead-in, requirements 3, 5, 8); Decisions (OQ-9, display string)
D-AF (generic readers of [E]) Capabilities (lead-in)
LOW: non-UTF-8 scenarios Linux only Impact (tests)
LOW: D-Z labels (OQ-23, OQ-24 departures; OQ-28 packet open decision) Decisions (preamble)
LOW: C1 quotes OV:163 and HO:200 "has since advanced to" Corrections (stale baseline sentences)
LOW: C6 names DI:263, DI:607-609 (and DI:1387-1388) Corrections (failed status probe entry)
Coordinator: PR #8 merged, d7f6b0e, 94 tests, 141-line shift, re-pin Dependencies; Impact (a8cef41)

NOTED (in clarifications.md):

  • N1 (SA-1) scheduler control loop: selectors loop, self-pipe, wakeup fd,
    pthread_sigmask at spawn, stderr drained; SIGTERM test; SIGKILL residual.
  • N2 (SA-4) cancel flag between entries for abandoned listing workers.
  • N3 (AE-2) deriving repository.root for gitfile checkouts and a missing
    main worktree; fixture facts (no core.worktree under
    --separate-git-dir; a relative one in a submodule).
  • N4 (V1) default-branch finding set from evidence already held, fixed
    order, no new probe; reproduction of the no-upstream case.

DISMISSED: none. PA-1's "do not ratify before Brett rules" is recorded for
Brett in Open Questions, not decided.

Notes for the lead:

  • Citation corrected: the verdict's DI:166-170 (exactness table) is
    DI:165-169 at da33d92; the proposal cites DI:165-169.
  • Completions not worded by the verdicts: the two new layout findings are
    repair, severity warning; V4's row count is the finding field
    suggestion_gate_rows (null unless inspect-cap).
  • Not applied, awaiting change 1's text: its council's unstarted-branch
    gate (requirement 7 still names [G]'s four gates; V5's zero-commit message
    stands) and its core.fsmonitor=false pin, which defeats the packet's
    fsmonitor-held fixtures (DI:1233-1237, DI:1249-1254) for feature 004.
  • adv2/roots/nou now has an upstream configured ("ahead 2"), so AE-1 was
    reproduced in a fresh fixture instead (empty %(upstream), 2 unpushed).

Lead verdicts follow in the next comment; the three council reports after that.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Lead council verdicts, add-project-overview

Council verdicts, add-project-overview (lead, lane openRepoProject-2, 2026-10-08)

Reports: council-product-advocate-overview.md (PA-1..4), council-systems-architect-overview.md (SA-1..4 plus the identity residual), council-adversary-engineer-overview.md (AE-1..5). Cross-examination: the architect judged identity grouping sound, the adversary's fixtures (separate-git-dir, submodule) show gitfile repositories break it, so AE-2 wins; PA-1's "do not ratify before Brett rules" is Brett's decision, only its interim wording is applied; SA-1's control loop is design-level and goes to clarifications.md; AE-5 and SA-3 are one item.

VALID (proposal.md changes)
V1 (AE-1, HIGH) On a protected-default checkout the overview emits every applicable finding, not a first match: dirty plus one of diverged, unpushed, remote-ahead; and two new cases, both preserve, warning, suggested_command: null (D-I): no upstream configured reuses unpublished with message "merge-target branch has no upstream; local commits are unverified"; upstream gone reuses remote-gone. Requirement 10, OQ-19/OQ-20 and the absorption table change (rows dirty-default, plus "no upstream" and "gone" labelled Changed on purpose); scenarios: default branch pushed without -u then two local commits shown by --attention; dirty default branch ahead by 3 gives both dirty and unpushed. This supersedes the earlier first-match reading of QA-19.
V2 (AE-2, MEDIUM-HIGH) Requirement 2 gains: when the first registry record's path equals common_dir the main checkout is a gitfile checkout; repository.root is the realpath of core.worktree, else the --show-toplevel of a candidate that is that checkout, else null with an unsupported-layout repair finding and no suggestion; that record is never a status-probe row; a nonexistent main-worktree path gives repository.root: null with a main-worktree-missing repair finding and the repository-wide probes run in the candidate; "reached first" means canonical candidate order. Scenarios for separate-git-dir, a submodule entry and a missing main worktree. Change 1 is being asked to support gitfile main checkouts through core.worktree and to refuse submodule checkouts with a listed baseline change (see cross-change below); the overview mirrors whatever change 1's Git-first requirement states, citing it by header.
V3 (PA-2, HIGH) Add requirement 12 "Overview renders a readable human report": adopts the DI:83-96 shape; one header line per row (name, absolute path); one line per shown finding (category, code, message, plus the worktree path for a worktree finding); one next line carrying the row's suggested command followed by "(withheld: )" or "(limited: )" when suggestion_gate is non-null; an Incomplete: line per scan error; always the summary line, even under --attention with zero rows shown ("nothing needs attention" plus the counts) and stating that findings reflect local refs as of the last fetch; a one-line "Scanning N roots..." notice on stderr only when stderr is a TTY. Scenarios: empty --attention run; a gated suggestion.
V4 (PA-3, MEDIUM) Requirement 7: one suggestion_gate code set, each with a fixed remedy carried in the finding message and the human "(withheld|limited: ...)" text: inspection-incomplete "repair the inspection-error rows first"; inspect-cap carries the row count and distinguishes the two bands in the message, "N rows exceed the batch's 128-row cap; remove explicitly" and "N rows exceed the 256-row report cap; the report would be incomplete"; scan-limit and deadline-exceeded "re-run with --root "; the JSON finding carries the row count so a consumer can tell the bands apart without counting rows. One code is kept because D-P's values are change 1's codes.
V5 (AE-4, MEDIUM-LOW; amends D-J) target-cap is a limiting gate: with more than 16 gate-passing merged-removable rows the --all-safe suggestion stays and suggestion_gate: target-cap is set, message naming the 16-target limit and that the preview is complete; scenario "17 eligible rows". The message for a clean zero-commit worktree at the target's tip says it counts as merged-removable under change 1's ladder.
V6 (SA-3 with AE-5, MEDIUM-HIGH) Requirement 3's determinism clause is scoped to "a run in which no child, task or root listing reaches its budget and the deadline does not expire"; the barrier is stated: a repository's rank is fixed, and its phase 2 may start, only after every lower-ranked candidate's identity probe has completed or failed (speculative phase-1 dispatch stays legal); a cut run reports each cut unit with omitted and DI:166-170's exactness; scenario: concurrency 1 and 4 on one fixture give byte-identical JSON less timestamps and probe_concurrency.
V7 (AE-3, MEDIUM) Requirement 3: every filesystem call the overview makes, including root canonicalisation and dedupe, marker and holder checks and manifest reads, runs in a bounded daemon task with min(5, deadline - now); a manifest larger than 1 MiB is manifest-invalid; requirement 11: the main thread never blocks in an unbounded filesystem call; scenarios "root on a hung mount" and "repository.root on a hung mount" (injected slow call where FUSE is unavailable).
V8 (SA-4, MEDIUM, bounds part) Requirement 3: the ref listing is parsed as it streams, keeping heads, origin/HEAD and the remote refs named as upstreams; OQ-4/D-Q wording adds the cold time of one 4,096-directory root against the 5 s root bound and for-each-ref on one large-ref repository; Impact README notes that roots on a Windows drive mounted into WSL2 can truncate on every run.
V9 (SA identity residual) Requirement 2 cites [E]'s registration rule (relative values resolved, realpaths compared, BA:230-232) by change 1's header, and states that where a bind mount gives two root spellings for one (dev, ino) the canonical-first one wins.
V10 (PA-4, MEDIUM) Requirement 1: when every root is absent the human output says so, naming --root and PROJECTS_DIR; Impact README bullet adds how to check one project (project overview --root <dir>, replacing PR #2's doctor health) and that git fetch refreshes merge evidence.
V11 (PA-1, HIGH, interim wording only) Open Questions: until Brett rules, a remote-gone finding's message states whether the worktree's branch tip is already an ancestor of the merge target when the overview's evidence establishes it, spawning no extra probe; Impact README says such worktrees are not yet removable by project clean and the suggested project clean <root> only reviews them; an Impact line says the remote-gone suggestion is review-only by design. PA's recommendation not to ratify before the ruling is recorded for Brett, not applied.
V12 (SA-2, dependency statement) Dependencies and Sequencing states the interface the overview needs from change 1's runner: a child handle (start, readable fds, terminate_group with the 2 s grace, reap) usable one-wide and four-wide, and pure incremental byte parsers for status, registry and ref listings; the constraint itself goes to change 1's clarifications.

NOTED (clarifications.md)
N1 (SA-1) Scheduler control loop: one main-thread selectors loop over every child's stdout and stderr; filesystem workers post completions through a queue plus a self-pipe the loop watches; each selector timeout is the nearest of child budgets, task waits and the deadline; signal handlers only record the first signal and wake the loop (signal.set_wakeup_fd) or raise a BaseException subclass; termination in one finally; spawn and register under pthread_sigmask(SIG_BLOCK); stderr drained continuously, 200 chars kept; test: one hung child and one large-output child at concurrency 4 then SIGTERM, expect exit 143, no document, killpg(pgid, 0) raising ProcessLookupError for every child; SIGKILL of project can orphan read-only children.
N2 (SA-4, workers) Listing workers check a cancel flag between entries so an abandoned root listing stops competing with the Git phase.
N3 (AE-2 design) How repository.root is derived for gitfile checkouts (core.worktree read, candidate toplevel match) and how the repository-wide probes run in a candidate when the main worktree is missing.
N4 (V1 design) The finding set on a protected-default checkout is computed from the row's upstream, ahead and behind fields and the dirty flag, in a fixed order, with no new probe.

DISMISSED: none. PA-1's ratification timing is Brett's.

Also carried from lane 3's delta read and the lead's later rulings: D-S narrowed (doctor error rows only for not-established nulls; the overview's inherited rule reads the same), D-AB (packet revision wording), D-AE (cite "Clean resolves its target Git-first" and "Clean reports every path exactly or excludes it" beside [E], [L], [G]; TERM-then-KILL stated in requirement 3), the change 2 LOW items (Linux-only non-UTF-8 scenarios skipped on macOS; D-Z labels for OQ-23, OQ-24 departures and OQ-28 packet open decision; C1 quotes OV:163 and HO:200 as "has since advanced to"; C6 entry names DI:263 and DI:607-609).

CROSS-CHANGE, routed to change 1's council fix round (appended to lead-rulings-alignment.md):
X1 (SA-2) Change 1's design constraint: the bounded runner is a child handle (start, readable fds, terminate_group() with the 2 s grace, reap()), the serial path a one-wide driver of it, and the status, registry and ref parsers pure incremental byte parsers; goes to change 1's clarifications.md, with one sentence in its Impact.
X2 (AE-2) Change 1's Git-first resolution supports a gitfile main checkout: when the first registry record's path equals common_dir, the main worktree is the realpath of core.worktree, and a command root equal to it resolves; a submodule checkout (first record under .git/modules) is refused with target-not-repository-root and listed as a baseline behavior change (at a040790 clean handles both with exit 0); scenarios for both.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Council report: product-advocate (read-only, at 6204234)

Council: Product Advocate on add-project-overview (at 6204234)

Reviewer: product advocate, read-only. I read the proposal as it stands, the lead's rulings D-A to D-Z,
change 1's proposal, the packet's discovery document and project. I re-argue no ruling.

Dimensions that hold

  • Problem clarity: holds. The Why (Why, lines 28-41) names a real pain: you have many checkouts and
    worktrees, status, doctor and clean each look at one project, and today you match doctor against
    clean by hand.
  • Scope: holds. 32/128/512 caps, a 60 s deadline, no remote queries and no family traversal are a
    sensible local MVP, marked provisional until OQ-4's measurement. Out of Scope lists every deferred
    extension and gives each its own proposal (OQ-27).
  • OQ-22 (doctor): holds, with one gap noted in concern 4. PR Retire merged local branches during cleanup #2 never merged, so a doctor user loses
    nothing they had. The absorption table (Absorbing) maps every acf0133/80fdef3 element to the overview,
    and --root <project> examines the root itself (DI:117), so the single-project health check survives.

Concerns, ranked

1. HIGH: The commonest merged worktree gets a "preserve" warning and a suggestion that leads nowhere

  • Concern: under the packet's ladder, a merged worktree whose remote branch was auto-deleted shows
    remote-gone (preserve, warning). It suggests project clean <root>, and that command can neither remove
    the worktree nor push its branch.
  • Evidence: Open Questions. Attention table DI:649 (remote-gone → project clean <root>). Single
    remove needs merged-removable (project:569). D-D makes push refuse remote-gone. Change 1's R9 shows
    that at a040790 the same worktree classifies unpublished, so this change swaps one wrong label for
    another. The proposal never says what the user should do in the meantime.
  • Impact: HIGH. With GitHub's auto-delete and fetch.prune, this is the usual end state of finished
    work. That is exactly the "safe housekeeping" the overview exists to surface. Instead the user sees
    a column of preserve warnings telling them to keep work that is already merged. Any one of them makes --strict
    exit 1, and --attention shows every such row. The only remedy is raw git worktree remove,
    which the packet's "evidence is not permission" stance tries to steer users away from. The headline value
    of the overview mostly depends on Brett's ruling.
  • Suggestion: do not ratify this change before Brett rules on the open question. If it must go ahead
    first, add to Open Questions: "Until Brett rules, a remote-gone finding's message SHALL state whether
    the worktree's branch tip is an ancestor of the merge target, when the overview's evidence already
    establishes that; it SHALL spawn no extra probe for it. The README SHALL say that such worktrees are not
    yet removable by project clean, and that the suggested project clean <root> only reviews them." Also
    add an Impact line saying the remote-gone suggestion is review-only by design.

2. HIGH: No requirement covers the human output

  • Concern: the 11 requirements specify JSON, exits and path escaping. No requirement says what a person
    sees.
  • Evidence: the requirements list (Capabilities, New) has no rendering requirement apart from $'...'
    quoting (requirement 8). The row layout (name, path, category lines, next line, the Incomplete: line,
    the summary line) exists only in DI:83-96, which the packet itself calls "illustrative" (DI:18-19, DI:83).
    Several things are undefined:
    • the human form of suggestion_gate;
    • how an error row and a scan error are labelled (DI:705 only says they "display in the repair category");
    • how worktree detail is expanded (DI:79-80: "only when it explains a finding");
    • what --attention prints when nothing needs attention;
    • any sign of life during a run of up to 60 s (the only stderr text specified is Cancelled.).
  • Impact: HIGH. The human view is the product for the person in the Why. Left unspecified, Speckit will
    invent it, and tests will assert JSON only. A user may then wait in silence for up to a minute, see a
    gated finding with no reason given, or see an empty screen under --attention with no sign the run
    completed.
  • Suggestion: add requirement 12: "Overview renders a readable human report". It SHALL adopt the
    DI:83-96 shape, and it SHALL:
    • print one header line per row (name, then the absolute path);
    • print one line per shown finding (category, code, message), plus the worktree path when the finding is a
      worktree's;
    • print one next line carrying the row's suggested_command, followed by (withheld: <reason>)
      whenever suggestion_gate is non-null;
    • print an Incomplete: line per scan error;
    • always end with the summary line, even under --attention with zero rows shown ("nothing needs
      attention" plus the counts);
    • write a one-line Scanning N roots... notice to stderr only when stderr is a TTY. Add scenarios for an
      empty --attention run and a gated suggestion.

3. MEDIUM: suggestion_gate codes tell the user why, but not what to do

  • Concern: the codes are refusal-code jargon. Worse, the same code means two different things.
  • Evidence: Decisions (departures), suggestion_gate. inspect-cap marks both a withheld --all-safe
    (more than 128 rows) and a read-only suggestion whose report would be incomplete (more than 256 rows). The
    codes scan-limit and deadline-exceeded (unprobed rows) give no remedy. Requirement 7 says only that
    the gate is "named".
  • Impact: MEDIUM. A user whose large repository loses --all-safe cannot tell whether to narrow
    --root, re-run, or fix something. A JSON consumer cannot tell the two inspect-cap cases apart without
    counting rows.
  • Suggestion: in requirement 7, add a fixed remedy for each gate code, carried in the finding message
    and the human (withheld: ...) text:
    • inspection-incomplete → "repair the inspection-error rows first";
    • inspect-cap → "N worktree rows exceed the batch's 128; remove explicitly", or for the read-only case
      "the report would be incomplete over 256 rows";
    • scan-limit / deadline-exceeded → "re-run with --root <repository parent>". Either give the two
      inspect-cap uses distinct codes, or state outright that they share one.

4. MEDIUM: Scenarios a real user meets that the proposal leaves unaddressed

  • Concern: three everyday situations have no defined user outcome.
  • Evidence and impact:
    • First run with no roots. A missing default root is absent with no error (DI:110-111), so a user
      with no ~/projects gets "0 projects", complete, exit 0, and no hint. That reads as "all healthy".
      Users of a ~/src or ~/code layout hit this on their first try.
    • Stale evidence. The overview never fetches. tracking_freshness is the constant "local refs only;
      no fetch" (DI:961), and the human output may not show it at all. merged-removable, remote-ahead and
      remote-gone are only as fresh as the last fetch, yet the user is never told this, or how to refresh.
    • Single-project use after OQ-22. A doctor user who wants default-branch drift for one project must
      know that project overview --root <project> works. Neither the README scope in Impact nor doctor
      points there.
  • Suggestion: in requirement 1, add: "When every root is absent, the human output SHALL say so, naming
    --root and PROJECTS_DIR." In requirement 12 (concern 2), add: "the summary line SHALL state that
    findings reflect local refs as of the last fetch." In the README bullet in Impact, add: "how to check one
    project (project overview --root <dir>), replacing PR Retire merged local branches during cleanup #2's doctor health, and that a git fetch
    refreshes merge evidence."

Dependency on change 1 (dimension 4)

The sequencing is clear and correct. Change 1 is ratified first, feature 004 is created after 003 merges,
and the gates cite canonical headers. The value at risk is not sequencing. It is the open remote-gone
question (concern 1), which both changes inherit and which only this change puts in front of the user as
advice.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Council report: systems-architect (read-only, at 6204234)

Council review: add-project-overview, Systems Architect

Tree 6204234, sibling 0ed2f59. Read: proposal, rulings D-A to D-Z (binding),
DI discovery/caps/identity/probe/collector, BA:203-232, project, change 1.

Concerns, ranked

1. HIGH: the scheduler's control loop is unspecified, and the obvious designs deadlock, overrun or leak

Concern: the proposal names the parts but not the control loop. In single-file
Python each part has a failure mode that only the loop design prevents.

Evidence: Impact ("four-way scheduler with its in-flight child registry and
daemon filesystem workers"); requirement 11; DI "Deadline and timeouts" (each
root and row task "is waited for with min(5, deadline - now)"); DI "Collector
boundary" (catches Exception); D-G.

Impact: HIGH. (a) If the main thread blocks on one wait (a 5 s filesystem task, or one
child's stream), the other children are neither read nor timed. Their pipes
fill at 64 KiB, git status blocks on write, and the 5 s and 60 s bounds stop
holding.
(b) A SIGTERM or SIGHUP handler that raises an Exception subclass is caught
by the collector and becomes an internal-error row, so the run continues.
(c) A handler that walks the registry between Popen() and registration
misses that child, which then outlives project under start_new_session.
(d) stderr is wanted only for 200 characters, but it must be drained the whole
time or it blocks the child the same way.

Suggestion: fix the loop as a council constraint in clarifications.md.

  • One main-thread selectors loop over every child's stdout and stderr.
    Filesystem workers post completions to a queue plus a self-pipe the loop
    watches. Each selector timeout is the nearest of the child budgets, the task
    waits and the deadline.
  • Handlers only record the first signal and wake the loop through
    signal.set_wakeup_fd, or raise a BaseException subclass. Termination
    runs in one finally.
  • Spawn and register under pthread_sigmask(SIG_BLOCK); drain stderr, keep 200 chars.
  • Test: one hung child and one large-output child at concurrency 4, then
    SIGTERM. Expect exit 143, no document, and os.killpg(pgid, 0) raising
    ProcessLookupError for every child.
  • Note that SIGKILL of project can orphan read-only, untimed children.

2. MEDIUM-HIGH: change 1 will build its runner serial-first, and the overview needs one it can multiplex

Concern: feature 003 ships the bounded runner for strictly serial clean
(BA:427-458). A blocking run_bounded(argv) -> result API cannot run four
children inside one event loop.

Evidence: Dependencies ("This change owns running up to four such children at
once"); change 1 Impact (streamed Popen runner); D-G's split of ownership.
OQ-28 already makes the ladder pure. The parsers and the runner need the same
treatment.

Impact: MEDIUM-HIGH. 003 freezes the API through its use in clean, status,
doctor and update. 004 then either forks the runner (two termination paths and
two environment scrubs) or refactors code it does not own, while PR #8 and 003
are touching the same file.

Suggestion: a council constraint on change 1's design: the runner is a child
handle (start, readable fds, terminate_group() with the 2 s grace, reap()),
the serial path a one-wide driver of it, and the status, registry and ref
parsers pure incremental byte parsers.

3. MEDIUM-HIGH: "JSON independent of concurrency" is too broad, and where it should hold its precondition is missing

Concern: requirement 3 claims the JSON (less timestamps and
probe_concurrency) does not depend on concurrency or completion order. That
is false whenever a time bound fires, and the barrier that makes it true
otherwise is not stated.

Evidence: requirement 3. DI "Scheduling": rank is the position of "the first
candidate that reached it", and phase 2 starts once "every repository ranked
before it" has finished phase 1. DI "Ordering": a root cut at 5 s "depends on
timing". OQ-6's serial fallback. Identity probes "may overlap".

Impact: MEDIUM-HIGH.

  • Under a deadline cut, four-wide and serial runs probe different rows.
  • Even with no timeouts, the set of repositories ranked before R is unknown
    until every lower-ranked candidate's identity probe has returned. Ranking by
    arrival, or starting phase 2 on a partial prefix, makes the 512-row selection
    depend on timing.

Suggestion:

  • Scope the clause to "a run in which no child, task or root listing reaches
    its budget and the deadline does not expire".
  • State the barrier: R's rank is fixed, and its phase 2 may start, only after
    every lower-ranked candidate's identity probe has completed or failed.
    Speculative phase-1 dispatch stays legal.
  • Scenario: concurrency 1 and 4 on one fixture give byte-identical JSON,
    less timestamps and probe_concurrency.

4. MEDIUM: Git work is bounded, but three costs are not

Concern: the arithmetic covers Git children, but not abandoned workers that are
still running, the size of the ref listing, or cold listing time.

Evidence: DI "Caps" (listing about 6 s, warm, estimated); DI "Deadline" (a root
unfinished at 5 s is truncated and abandoned); DI "Repository-wide probes"
item 3 (for-each-ref over all of refs/heads and refs/remotes, with no record
bound, unlike status); D-Q (Linux path only).

Impact: MEDIUM.

  • A root cut at 5 s is usually slow, not stuck. Its daemon thread keeps
    calling scandir across up to 4,096 directories, competing for I/O and the
    GIL with the timed Git phase.
  • A repository with tens of thousands of remote refs gives a for-each-ref of
    several MB, parsed in Python and memoized across up to 128 repositories. It
    is the only term with no record cap. Memory for the 512 streamed rows (4,096
    records each, 8 samples kept) is trivial.
  • Roots on /mnt/c (9p, roughly 5-10 ms per directory read) will truncate and
    exit 1 on every run. That is visible, but undocumented.

Suggestion:

  • Workers check a cancel flag between entries; parse the ref listing as it
    streams, keeping heads, origin/HEAD and remote refs named as upstreams.
  • The OQ-4 task measures cold time per 4,096-directory root against the 5 s
    root bound (not only the 32-root total), plus for-each-ref on one large-ref
    repository.
  • The README notes that roots on Windows drives in WSL2 can truncate.

Dimensions judged solid

  • Identity grouping is sound. It uses {root, common_dir, dev, ino}, a memo
    keyed by common_dir's (dev, ino), and roots deduplicated by realpath and
    inode (case-insensitive macOS included). [E]'s registration rule (BA:230-232:
    relative values resolved, realpaths compared) covers symlinks and
    worktree.useRelativePaths. DI's wording omits that rule, so requirement 2
    should cite it through [E]. LOW residual: a bind mount gives two root
    spellings for one (dev, ino); say that the canonical-first one wins.
  • suggestion_gate is implementable if 128 and 256 are module constants that
    change 1's plan builder also reads. D-J's limit is right.
  • schema_version per envelope is fine; shared sub-objects from one
    serializer. The pure ladder is the right seam (cleanup_report reads only
    row fields, apart from the calls change 1 removes).
  • main() scoping and coexistence with status/doctor: sound (no snapshot
    or discover). Stack: Python 3.10, threading, selectors, PyYAML suffice;
    Git 2.36 via [E]; the bash 3.2 caveat is confined to display.
  • Worst-case fit: 257 serial-equivalent children at 150 ms (38.6 s) plus a
    5 s-bounded listing fits 60 s four-wide; OQ-7's limit is disclosed.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Council report: adversary-engineer (read-only, at 6204234)

Council: Adversary Engineer, add-project-overview

Tree: .lane-worktrees/openRepoProject-2/add-project-overview at 6204234; sibling at 0ed2f59.
Fixtures: scratchpad/adv2/ (Git 2.43.0, baseline project from this tree). Read-only; nothing edited.

Attack 1 mostly fails, and that is worth saying: every suggestion is a preview (--all-safe without
--apply). Change 1 recomputes, revalidates and confirms its own fresh plan. So stale or partial overview
evidence cannot by itself cause a removal. The real damage paths are false health, which leads to
a destructive act outside project, and suggestions that lead to certain refusals. The five concerns
are ranked below.

1. HIGH: the default-branch checkout reads healthy with unpushed commits when its upstream is unset or gone, and dirty masks drift

Concern. OQ-20 derives diverged, unpushed and remote-ahead only from ahead/behind counts and as a
first match after dirty. A merge-target branch with no upstream, or with a gone upstream, therefore gets
no finding. Neither does a dirty one with unpushed commits beyond dirty.

Evidence. In the Absorbing section (OQ-20), the drift findings come "from its ahead and behind counts", "or else" chained, "that is not dirty".
For refs/heads/*, %(upstream:track,nobracket) (DI:338-345) is empty when no upstream is set and gone when the upstream
was pruned, so ahead and behind are null. Fixture adv2/roots/nou is a clone whose main was pushed with
git push origin main (no -u, the common case) and then got two more local commits. The ref listing prints
refs/heads/main|6110e75|||| and git rev-list --count origin/main..main = 2. Baseline project clean . --json
gives main protected-default ahead=None upstream=None. Under OQ-20 the row has no finding: status: ok, exit 0,
and the row is hidden by --attention. acf0133's health_status has the same hole (it returns ok at
line 37 of the diff), so the absorption carries the hole over and does not close it. The proposal's own rule, "Unknown is never healthy" (Rules This
Change Keeps), is broken. A feature branch in the same state is unpublished or remote-gone (preserve, warning).
Only the merge target escapes. The first-match chain is also an artifact of acf0133 having one health_status slot.
The overview has findings[] and does not need it.

Impact (HIGH). The overview's stated purpose is "which of my local projects needs attention?" (DI:16-18). Take a
user retiring a workstation or pruning old clones who runs project overview --attention and deletes every clone
that is not listed: the unpushed commits on main are lost. A second case: the dirty-only display on a dirty main
that is also 3 ahead. The user is told only "dirty", discards the changes with git reset --hard @{u} to clear it,
and loses the 3 commits the overview knew about but did not show.

Suggestion. In OQ-20 and requirement 10, emit every applicable finding, not the first match: dirty plus one
of diverged, unpushed or remote-ahead. Add two cases on a protected-default checkout, preserve and warning,
with suggested_command: null (D-I):

  • no upstream configured: reuse unpublished, with the message "merge-target branch has no upstream; local commits
    are unverified";
  • upstream gone: reuse remote-gone.

Add scenarios: "default branch pushed without -u, two local commits → preserve warning, shown by --attention"
and "dirty default branch ahead by 3 → both dirty and unpushed". Update the absorption table row
"dirty-default" and add one for the no-upstream and gone cases, labelled "Changed on purpose".

2. MEDIUM-HIGH: gitfile repositories (--separate-git-dir, submodules) and missing main worktrees break identity, rows and suggestions

Concern. The proposal and packet take the main worktree to be "the first registry record" (DI:236-239; BA:210-215, 858).
For a repository whose .git is a gitfile, Git 2.43 prints the git directory as that record, not the checkout.
repository.root is then wrong or depends on candidate order, the real checkout is never a row, and every
suggestion is refused.

Evidence.

  • Fixture adv2/roots/sep (git init --separate-git-dir=adv2/store/sep.git) plus linked worktree roots/sep-feat:
    • worktree list --porcelain first record: worktree .../store/sep.git;
    • rev-parse --show-toplevel in roots/sep gives .../roots/sep;
    • git -C .../store/sep.git status gives fatal: this operation must be run in a work tree (rc 128).
  • Fixture adv2/roots/super/sub (a submodule): first record .../super/.git/modules/sub.
  • Consequences under the proposal:
    • (a) The real checkout roots/sep, with ?? new.txt, is never a worktree row, so its dirty state is never reported.
    • (b) The registry's first row gets a failed status probe, so it is inspection-error per D-A: a permanent repair
      error with exit 1 on every run that the user cannot fix.
    • (c) DI:236-239 sets root from --show-toplevel when the main checkout is reached, but from the first registry
      record when "a linked worktree is reached first". repository.root is roots/sep or store/sep.git depending on
      whether a sibling named, say, a-feat sorts first. If "first" means first in time, it also depends on concurrency,
      which contradicts requirement 3's determinism.
    • (d) Either root is refused by change 1's Git-first resolution: "toplevel must be the main worktree, the first
      registry record" (BA:858) gives target-not-repository-root. Every project clean <root> suggestion is a
      guaranteed wrong refusal.
  • Baseline project clean adv2/roots/sep --json at this tree exits 0 (store/sep.git protected-default, sep-feat unpublished). This is a regression, inherited from change 1, that neither proposal lists under baseline changes.
  • The same failure follows when a root entry is a linked worktree whose main worktree is deleted or on an unmounted
    drive. root names a nonexistent path, the ref-listing and merged-set probes run git -C <repository.root>
    (DI:384-388) and fail, so every present linked worktree is unclassified, and the suggestion names a missing directory.

Impact (MEDIUM-HIGH). Permanent false error rows (exit 1 forever, so --strict and cron use become noise), a hidden
dirty checkout, and suggested commands that always refuse, for any repository with a submodule-style or
separate git directory, or for a root that is itself a superproject (its submodule entries are candidates by the
.git-file marker).

Suggestion. Add to requirement 2, coordinated with change 1's [E] requirement: "When the first registry record's
path equals common_dir, the repository has a gitfile main checkout; repository.root SHALL be the realpath of
core.worktree, or the --show-toplevel of a candidate that is that checkout, and otherwise null with an
unsupported-layout repair finding and no suggestion. It SHALL NOT be a status-probe row." Define "reached first" as
canonical candidate order. Make a nonexistent main-worktree path give repository.root: null with a
main-worktree-missing finding, and run the repository-wide probes in the candidate. Add scenarios for
--separate-git-dir, a submodule entry and a missing main worktree. Change 1 must list the regression or support it.

3. MEDIUM: filesystem calls outside the bounded workers can hang the run past the deadline and past SIGINT

Concern. Requirement 3 promises a 60 s bound, and requirement 11 promises SIGINT handling. But only root listing and
per-row lstat/registration reads are bounded worker tasks (DI:468-480; Impact "daemon filesystem workers").
Several other filesystem calls run synchronously in the collector:

  • root canonicalisation (realpath plus the (st_dev, st_ino) dedupe, DI:100-104, which happens before any root task);
  • the family.yaml holder stat;
  • manifest() at repository.root (DI:519).

Evidence.

  • manifest() (project:274-281) does is_file() and then reads and parses the whole file with no size bound.
  • repository.root comes from the registry and may lie outside every root, for example on an sshfs or NFS mount.
    "Hung filesystem call" (DI:1238) tests only an external worktree.
  • A main thread blocked in an uninterruptible kernel call runs no Python signal handler, so Cancelled., the reaping
    of up to four in-flight Git children and exit 130 never happen, and the children keep running in their own sessions.
  • A project.yaml symlinked to a multi-GB file is read and YAML-parsed in full.

Impact (MEDIUM). --root /mnt/nas/projects with a sleeping NAS, or one repository whose main checkout is on such a
mount, hangs the whole overview with no deadline and no working Ctrl-C. That defeats DI:476's "one unresponsive mount
cannot hold every other root". No data is lost, but the promises of requirements 3 and 11 are false as written.

Suggestion. Requirement 3: "Every filesystem call the overview makes, including root canonicalisation and dedupe, marker and holder
checks, and manifest reads, SHALL run in a bounded daemon task with min(5, deadline - now); a manifest larger than
1 MiB SHALL be manifest-invalid." Add scenarios "root on a hung mount" and "repository.root on a hung mount" (with
an injected slow call where FUSE is unavailable). Requirement 11: the main thread SHALL never block in an unbounded
filesystem call.

4. MEDIUM-LOW: D-J leaves a suggestion whose --apply refuses deterministically, and the overview already knows it will

Concern. In a repository with more than 16 merged-removable rows that pass the four gates, the overview suggests
--all-safe with suggestion_gate: null. Change 1 refuses that plan with target-cap and runs no index probe
(change 1 What Changes, "Bounded work"; BA:96-101, 1004).

Evidence. The batch's pre-index gates are main-worktree, path bytes, registration, locked, classification and
not-requested. Under --all-safe that set is exactly what the overview evaluates (requirement 7), so the overview
can compute the count the batch compares against 16. D-J's reason is "the preview is complete and lists every target".
That is true, but the suggested command can never be applied. The user is steered into up to N single-target
--action remove --apply runs, each a separate confirmation with less batch context.

Impact (MEDIUM-LOW). A wrong refusal that the overview could predict, plus a nudge toward many single
removals. In this user's lane-heavy estate, more than 16 merged lane worktrees is realistic. A related point:
merged-removable includes a clean, freshly created lane worktree at the target's tip with zero commits. The overview's
current protects only its own working directory, so an idle live lane is suggested too. That is change 1's ladder,
but the overview should say so in its message.

Suggestion. Keep D-J's "does not withhold", but have suggestion_gate name target-cap as a limiting gate
(D-P already allows "withheld or limited"). Add a scenario: "17 eligible rows → --all-safe suggested, suggestion_gate: target-cap, message names the 16-target limit." If the lead holds D-J as is, record the predictable refusal under
Decisions (departures).

5. LOW: requirement 3's unconditional determinism contradicts the deadline and per-root cuts

Concern. Requirement 3 says the JSON "does not depend on concurrency or completion order" apart from timestamps
and probe_concurrency. Yet DI:160-164 and DI:497-500 say that what a deadline-cut or 5 s-cut run contains depends on timing.

Impact (LOW). The requirement as written cannot be met under any cut, so a Speckit test asserting it will be flaky, or it
will be implemented by delaying output.

Suggestion. Reword: "for a run that completes with no timeout or deadline cut, the JSON SHALL ...; a cut run
SHALL report each cut unit with omitted and the exactness of DI:166-170." Add the "reached first means canonical order"
definition from concern 2.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

brettheap and others added 2 commits October 9, 2026 00:36
…erview

Brings in PR #13 (7a9134b), which archived prefer-triad-in-project-new
and merged its requirements into openspec/specs/project-command.

Lane: openRepoProject-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Applies lane openRepoProject-3's final delta read of PR #12 at a8cef41
(N-1 to N-6 and the two LOW items) and the lead's rulings P6-1 to P6-6:

- N-1: unpublished on the merge-target checkout only where the ref
  listing holds a remote copy of the merge target; no remote is ordinary
  work (What Changes, Rules, requirement 10, OQ-20 and its table row).
- N-2: requirement 3 states both scheduling conditions, the identity-probe
  barrier and the DI:446-448 rank condition, "earlier in canonical order".
- N-3: requirement 7's messages name the batch's row cap and target limit
  and take the numbers from change 1's limits at run time.
- N-4: requirement 3 states the overview's own per-child budget,
  min(5 s, deadline - now).
- N-5 and P6-5: unstarted-branch mirrored where head equals the
  merge-target SHA (finding kept, read-only suggestion, gate code set);
  the zero-commit sentence dropped.
- N-6 and P6-6: unsupported-layout is severity error;
  main-worktree-missing stays a warning.
- P6-1 (reap within the 2 s grace or abandon as probe-timeout), P6-2
  (fixed remedies for every gate code), P6-3 (withheld versus limited),
  P6-4 (limits gains batch_row_cap, report_row_cap, target_limit).
- LOW: "change 1's codes, with target-cap carrying its deferral meaning";
  the 1 MiB manifest bound is cited from change 1's evidence model.

Also records PR #13 (7a9134b) in Dependencies and Impact: the canonical
project-command at 7a9134b is the base change 1 modifies.

Lane: openRepoProject-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 9, 2026
V12 (AE-4) after merging origin/main at 7a9134b (e21b24d):

- Dependencies and Sequencing: PR #8 merged at d7f6b0e (141 lines in
  project, tests 43 to 94) and PR #13's archive of
  prefer-triad-in-project-new merged at 7a9134b; "archive in either
  order" and "whichever lands second" replaced by those facts.
- Citations stay pinned at da33d92: at 7a9134b lines 285-1007 of
  project sit 141 lower (probe and execute unmoved), the cited test
  lines 383 lower, README citations up to 88 lower; feature 003
  re-pins at its specify and plan.
- Capabilities, project-command: all ten requirements at 7a9134b
  accounted for. "Inspect and diagnose" and "Explicit maintenance"
  (MODIFIED) are verbatim and unchanged, 22 lines lower; "Delegate
  project creation", "Distribution and compatibility" and the six
  requirements the archive added are listed untouched, verbatim.
- Impact: 94 existing tests; 002 merged by PR #8.
- Why: the defects still hold at 7a9134b. Corrections C1: main is no
  longer da33d92.
- Lead ruling (lane 3's final read of #12): the 1 MiB cap on the
  manifest read that resolves a merge target lives in the shared
  evidence model (What Changes; project-command ADDED; Git-first; a
  test). P6-1 confirmed already present (reap waits the 2 s grace,
  then abandons the child as probe-timeout).

Lane: openRepoProject-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- specs/project-overview/spec.md: Purpose, then 12 ADDED requirements,
  headers exactly as proposal.md's Capabilities, with 59 scenarios (the
  packet's 31 MVP scenarios plus the council's, the rulings' and this
  phase's additions). Change 1 is cited by canonical header only.
- specs/project-review-safety/spec.md: MODIFIED "YAML decoding errors are
  structured refusals", both canonical sentences and the existing
  scenario kept, plus the overview carve-out and its scenario.
- design.md: decisions D1 to D4 answer clarifications N1 to N4; D5 to D11
  the proposal's decisions; D12 the reconciliation list with
  add-project-clean-all-safe and the fsmonitor fixture rewrite; D13 the
  test seams and scenario map.
- tasks.md: governance boxes 1.1 to 1.5 done and 1.6 (ratification) open,
  the OQ-4 measurement and the post-phase-6 reconciliation, and the
  Speckit handoff reserving feature 004-project-overview.

Verification at this commit:
  openspec validate add-project-overview --strict
    Change 'add-project-overview' is valid
  openspec validate --all --strict
    Totals: 6 passed, 0 failed (6 items)
  openspec status --change add-project-overview
    Progress: 4/4 artifacts complete
  python3 -m unittest discover -s tests -v
    Ran 94 tests ... OK

Lane: openRepoProject-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Phase 6 landed at 5094e4e: spec deltas (project-overview 12 ADDED, 59 scenarios; project-review-safety 1 MODIFIED, 2 scenarios), design.md (D1-D12, D12 is the reconciliation list against add-project-clean-all-safe), governance tasks.md with the single Speckit handoff 004-project-overview. Checks: validate --strict valid; validate --all --strict 6 passed, 0 failed; status 4/4; 94 tests OK. Remaining before READY: reconciliation with change 1's final delta text, then independent re-verification.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

…c33d

Executes design.md D12's reconciliation list against change 1's deltas and
design at 0b3c33d under the lead's amended V2 and rulings R-1 to R-9:
- [E]: the overview applies [E]'s per-child rule, min(5 s, work remaining),
  under its own 60 + 2 + 2 = 64 s arithmetic (clean's is 50 + 10 + 4), the
  version check staying before any root is listed; the manifest read never
  exceeds 1 MiB and a manifest whose st_size exceeds it is manifest-invalid
  unread (R-4, R-5).
- [L]: requirement 6 and its scenario quote the merged remote-gone
  recommendation exactly (R-6).
- [G]: the unstarted-branch gate reads the creation reflog in every case
  (bounded filesystem read, at most 64 KiB, in the filesystem budget);
  reflog-unavailable for a missing, empty or expired reflog, with its own
  remedy; a fast-forward-merged branch at the target's tip passes; one new
  scenario (60) (V2 amended, R-1).
- limits: batch_row_cap, report_row_cap and target_limit come from the
  shared constants, never from a clean plan (R-7).
- [R]: the submodule-first test applies to every repository; a submodule
  checkout is the unsupported-layout error with no suggestion (R-2).
- [P]: unsupported-path-bytes covers the root and common_dir (R-3); escaping
  names Unicode categories Cc, Cf, Zl and Zp, with \UXXXXXXXX above U+FFFF.
- D12 pruned: no item stays open.
Codex findings: P2 on PR #11 (format characters outside [P]'s list printed raw; R-8) and P2 on PR #12 (nested path values without a validity flag; R-9: {path, path_valid_utf8} samples, root_valid_utf8, common_dir_valid_utf8, flags on checkout and error paths).

Lane: openRepoProject-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Head 996a181: reconciled with add-project-clean-all-safe at 0b3c33d (PR #11). Checks: validate --strict valid; validate --all --strict 6 passed, 0 failed; status 4/4; 94 tests OK; the MODIFIED project-review-safety requirement keeps its canonical scenario byte-identical; 60 scenarios in project-overview. Codex's nested-path finding is resolved (a validity flag beside every serialized path; ignored_samples entries are objects); the 129-256 inspect-cap finding was already covered by the two-bands scenario.

@codex review

… PR #17, 004 is change 1's)

003-parent-obstacle-wording is lane openRepoProject-1's Speckit feature
(PR #17), so change 1 add-project-clean-all-safe becomes
004-project-clean-all-safe and this change becomes 005-project-overview,
after 002-triad-first-project-new. The Speckit handoff section of tasks.md
gains a numbering sentence; the bare feature-number references in
proposal.md, design.md and tasks.md shift with the identifiers.

Lane: openRepoProject-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Head 704eaa9: numbering only. Lane 1's PR #17 holds Speckit feature 003, so change 1's handoff becomes 004-project-clean-all-safe and this change's becomes 005-project-overview (handoff section and every shorthand mention). No content change; validate --all --strict 7 passed, 0 failed. The pre-handoff task 2.1 (OQ-4 measurement) is being executed now; its numbers will be posted here.

brettheap added a commit that referenced this pull request Oct 9, 2026
…nly)

Lane 1's PR #17 took Speckit feature number 003, so add-project-clean-all-safe
renumbered its handoff to feature 004 (PR #11 head cab78d8) and
add-project-overview to feature 005 (PR #12 head 704eaa9); no content changed,
and the packet keeps 8973762 and 4495ae7 as the content shas it was read
against. The packet's three "feature 004" references were the overview's fixtures
and now read feature 005.

Design record only; packet validator passes.

Lane: openRepoProject-3
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Brett Heap ruled to lane openRepoProject-2 on 2026-10-09: "yes, local
ancestry proof outranks remote-gone, apply it". Requirement 6 and its
scenario "A merged worktree whose upstream was deleted" now mirror change
1's [L]: a worktree whose upstream was deleted and whose tip the merged set
shows to be an ancestor of the merge target is merged-removable (or
merged-current) with that class's finding and the gated --all-safe
suggestion; only an unmerged one is remote-gone, with the read-only
suggestion. The interim "until the open question is ruled" text is gone
from the spec, proposal Capabilities item 6, Impact and design D12/Open
Questions; the departures bullet quotes the ruling and records that it
supersedes R-6; proposal Open Questions has none open; task 2.2 and D12
record this commit. The default-branch remote-gone finding (requirement 10,
design D4) reads the checkout's own upstream and is untouched. The
project-review-safety delta is untouched.

Lane: openRepoProject-2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Head cc43860: Brett Heap's ruling to this lane, "yes, local ancestry proof outranks remote-gone, apply it" (2026-10-09), applied. Requirement 6 and its scenario mirror change 1's ladder at b772195 (a merged worktree whose upstream was deleted is merged-removable with the --all-safe suggestion; only an unmerged one is remote-gone); the interim text is gone from every place; the departures bullet records that the ruling supersedes R-6; the default-branch remote-gone finding (requirement 10) is untouched. Checks: validate --strict valid; validate --all --strict 7 passed, 0 failed; status 4/4; 61 scenarios; the project-review-safety delta untouched. A cross-change check of the two ruling commits is running; the OQ-4 measurement (task 2.1) is still running.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

brettheap and others added 3 commits October 9, 2026 14:10
…ersession

Lane: openRepoProject-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Lane: openRepoProject-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Lane: openRepoProject-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Head 74acb47 (6c28227: requirement 6 qualified to a worktree that reaches the remote-gone rung, so the earlier rungs still come first; the PA-1 council row records the supersession; Dependencies names origin/main f401e06; 894b429: the proposal names the one ancestry exception to the ladder's order; 74acb47: merge of origin/main f401e06, lane 1's feature 003 implementation, no conflicts, the change directory unchanged). Checks at 74acb47: validate --strict valid; validate --all --strict 7 passed, 0 failed; status 4/4; 96 tests OK; 61 scenarios; the project-review-safety delta untouched. Content sha for the packet record: 894b429.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Task 2.1, the OQ-4 measurement for the overview, executed in py-bench (Ryzen AI MAX+ 395, WSL2, ext4 for the real projects folder, Git 2.43.0; the host was loaded throughout, so every figure is pessimistic; cold cache by posix_fadvise eviction plus a first-touch projection because drop_caches is not permitted; no Windows drive mounted). Against the bounds: one 4,096-directory root lists in 0.36 s warm (0.80 s max), projected 2.6 s truly cold, against 5 s; for-each-ref at 1,000 branches 247 ms warm / 939 ms cold loose, 152 / 200 ms packed; at 10,000 refs 1.3 to 1.7 s warm, packed cold 1.34 s, loose cold 8.65 s (over the 5 s per-child bound: probe-timeout, incomplete, never unsafe); per child at four at once the identity probe 9 to 21 ms and the status probe 124 ms warm / 147 ms cold at 10k index entries, 704 / 733 ms at 100k (4.7 times the 150 ms margin rate, under 5 s; 512 such rows would need about 90 s and hit the deadline). The caps' worst case (10k files, 1,000 loose-ref branches, 1.5 margin, 32-root listing) is 48.3 s of 60 s, so 128 candidates and 512 rows stand; 256 candidates fails with loose refs (65.6 s); 1,024 rows fails both ways. The real projects folder at the caps: 725 Git commands, 4.4 to 6.3 s at four at once, no command over 5 s. Survey: 213 repositories, 421 worktree rows, 37 rows eligible for --all-safe (17 ungated, 20 limited by target-cap in one repository; 4 of the 37 are the rows Brett Heap's ruling moved from remote-gone to merged-removable; 2 unmerged remote-gone rows remain); every other gate 0. Two findings: this workstation's default root has 219 candidates, over the 128 cap, so a default-root overview here is incomplete with 91 omitted (by design; a usability note for the feature); and Git 2.43 lacks GIT_NO_LAZY_FETCH, so a read-only probe in a partial clone could fetch from the network: ruling R-23 pins protocol.allow=never on every Git child in both changes. The full report (419 lines, raw JSON and scripts) is in the lane's session scratchpad (oq4-overview/).

…(R-23)

Task 2.1 is ticked with the 2026-10-09 measurement in py-bench: the caps stand
as measured (worst case 48.3 s of the 60 s deadline), the default root here
holds 219 candidates so a default-root run is incomplete by design, and Git
2.43's missing GIT_NO_LAZY_FETCH gives R-23: every Git child runs with
-c protocol.allow=never beside the existing pins, so a lazy fetch in a partial
clone fails locally. The proposal (OQ-4, OQ-5, OQ-7, requirement 3,
Dependencies, later rulings), the requirement 3 delta and design D13 and Risks
carry it; the caps are no longer marked provisional.

Lane: openRepoProject-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Head 1cc936e: task 2.1 ticked with the OQ-4 measurement (the caps stand as measured; "provisional until measured" removed everywhere), and ruling R-23 applied: every Git child runs with -c protocol.allow=never beside the existing pins, because Git 2.43 has no GIT_NO_LAZY_FETCH; verified on a blob:none partial clone (the lazy fetch fails with "transport 'file' not allowed" and the object store is unchanged). Checks: validate --strict valid; validate --all --strict 7 passed, 0 failed; status 4/4; 61 scenarios; the project-review-safety delta untouched. Remaining for this PR: none from lane 2; change 1's matching pin and its task 2.1 tick are in flight on PR #11.

protocol.allow is only the default policy: a per-protocol allow=always in a
config file or GIT_ALLOW_PROTOCOL in the caller's environment would still
allow a lazy fetch. Beside -c protocol.allow=never the overview now states
the six per-protocol allow=never pins (requirement 3, D13's Pins bullet and
counting-wrapper assertion, the proposal's requirement 3 summary, Dependencies
[E] bullet and Decisions OQ-4, task 2.1) and that GIT_ALLOW_PROTOCOL is among
the seventeen names [E]'s scrub removes, carried by citation. R-25 joins the
later-rulings list; the accepted residual (a remote-helper protocol of another
name with its own allow=always in the repository's config) is recorded in
design Risks.

Lane: openRepoProject-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

Head a8f710d (ruling R-25): protocol.allow is only the default policy, so every Git child also pins protocol.file/ssh/git/http/https/ext.allow=never, and GIT_ALLOW_PROTOCOL is among the seventeen names [E]'s scrub removes; the accepted residual (a remote-helper protocol of another name with its own allow=always in the repository's config) is recorded in Risks. Checks: validate --strict valid; validate --all --strict 7 passed, 0 failed; 61 scenarios; the project-review-safety delta untouched. This is change 2's final content from lane 2 before ratification.

brettheap and others added 3 commits October 9, 2026 18:46
Brett Heap ratified add-project-overview on 2026-10-09, in his words to
lane openRepoProject-2: "ratify, merge #11 and run the runbook". The
change lands by squash-merge of PR #12 after PR #11, with the Speckit
handoff 005-project-overview to follow after feature 004 merges.

proposal.md: the Status line now records the ratification in place of
"awaiting ratification". tasks.md: 1.6 is ticked with the same words.

openspec validate add-project-overview --strict: Change
'add-project-overview' is valid.
openspec validate --all --strict: Totals: 7 passed, 0 failed (7 items).

Lane: openRepoProject-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Lane: openRepoProject-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Lane: openRepoProject-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@sonarqubecloud

sonarqubecloud Bot commented Oct 9, 2026

Copy link
Copy Markdown

@brettheap
brettheap merged commit 961c405 into main Oct 9, 2026
10 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openRepoProject-2

LANDED: squash as 961c405 on Brett Heap's word "ratify, merge #11 and run the runbook".

brettheap added a commit that referenced this pull request Oct 11, 2026
…R-25

Both proposals' cap measurements landed: the overview's caps stand as
measured (128 candidates, 512 rows; worst case 48.3 s of 60 s) and
clean's as measured too (128 rows, 256 report rows, 16 targets; the
worst 128-row run ends at 24.3 s of the 64 s bound); D-Q's "caps
provisional until measured" closes. The measurement found that Git 2.43
lacks GIT_NO_LAZY_FETCH, so ruling R-23 pins -c protocol.allow=never on
every Git child of clean, status, doctor, update and the overview; R-22
adds the reappearing-upstream revalidation scenario. The three wording
items lane 3 raised on the ruling commits landed (81ec2cb, 894b429), the
five wording items of verification 6 are applied, and the records cite
the final texts (change 1 at content 251978d, head df75ef6; change 2 at
head c563f16). Brett Heap ratified both proposals on 2026-10-09
("ratify, merge #11 and run the runbook"); every departure the packet
held open to his ratification is recorded as ratified with the merges,
0050f3e (#11) and 961c405 (#12) on main.

Design record only; packet validator passes.

Lane: openRepoProject-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 20, 2026
…esign packet (design record only) (#16)

Design documents only: revision 1 of the five-document packet under
ideation/brainstorm/ keeps the design record accurate against the two
ratified OpenSpec changes, add-project-clean-all-safe (PR #11, 0050f3e)
and add-project-overview (PR #12, 961c405). It records:
- the factual corrections and mechanism errata that their reviews found;
- the decisions and council rulings they took;
- what landed after them.

It also points at the pending drafts #26, #27 and #29, and bounds a run
with a removal in flight as change 1 does: 64 s, plus at most 300 s, so
364 s.

No code, tests, OpenSpec change or Speckit artifacts. Squash-merged on
Brett Heap's word ("go ahead and merge PR #16"). Governing issue #6,
which stays open.

Lane: openRepoProject-3
Co-Authored-By: Claude Opus 5.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.

1 participant