Repository navigation
Design packet: project overview and project clean --all-safe (design only) - #7
Merged
Merged
Conversation
Revise the four-document brainstorm packet so every finding in the 2026-09-11 handoff has a written contract and validation scenarios, and append a resolution record to the handoff: - Batch cleanup: narrow safety boundary over Git common-directory, admin registration and device/inode identity; fresh plan on --apply with a plan digest; one mutation seam shared by single-target remove and batch; a monotonic 60 s deadline with a 10 s reconciliation reserve; stage enum, reconciliation record and exit codes; targeted revalidation with probe/operation accounting; caps of 128 worktree rows and 24 targets derived at 150 ms per Git child; additive plan JSON and an apply result record with fixtures; the removal command overrides status.showUntrackedFiles and a hidden-local-state probe guards assume-unchanged and skip-worktree edits. - Project overview: sorted candidate discovery before caps (32 roots, 128 candidates, 512 worktree rows) with four-way cross-repository probing; collector boundary that isolates failing candidates; family holders as one row; merge-target resolution with source and SHA; attention categories; overview JSON envelope with fixture; Git-first clean handoff carrying the canonical repository root as an argv array. - Both: shared probe model (four repository-wide children, one combined status probe per worktree row), NUL-delimited path handling, a baseline behavior changes list for the later proposal, and the moved origin/main (67efa80, OpenSpec archive only; project unchanged). Design only: no code, tests, OpenSpec or Speckit artifacts. Packet validator passes; adversarial review round 1 findings resolved; verification review pending before the PR. Lane: openRepoProject-3 Co-Authored-By: Claude Fable 5.1 <[email protected]>
… documents Fifth overview gate (no --all-safe suggestion while any worktree row is inspection-error), locked-worktree exclusion name, shared and batch-only baseline change groups, the handoff's capture-time state line, and the shared probe-timeout item naming the per-child process group. Lane: openRepoProject-3 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Apply the second review round to the four-document brainstorm packet and
re-align the overview, synthesis and handoff with the feature documents:
- Probe directory rule: worktree-specific probes run in the worktree's own
index (`git -C <worktree path>`), repository-wide probes at the canonical
root; without it the hidden-local-state probe read the main index.
- Caps follow the removal floor: a removal child is spawned only with at
least `removal_floor_seconds` (5 s) of the work deadline left, so the
batch target cap is 16, not 24 (128 worktree rows unchanged); the
overview's listing phase is an estimate counted against the deadline,
with a 5 s bound per root, and the break-even and single-repository
figures move with it.
- Submodules: any gitlink, or an admin `modules` directory, excludes a
worktree as `contains-submodule` from the same bounded `ls-files` probe.
- One path-escaping form in both documents (`\xHH` bytes, `\uXXXX` code
points, lowercase hex); the packet carries no raw bidirectional control
character.
- Merge target: strip `refs/remotes/origin/` from the `origin/HEAD` symref;
manifest revalidation compares against the plan-time value.
- Rewritten scenarios whose expectations the documents' own rules made
impossible ("Repository replaced mid-batch", "Gated merged worktrees");
explicit error-row fields; `{"error", "code"}` exit-2 JSON; `doctor`'s Git
refusal; the overview's fifth gate also withholds `--all-safe` above the
batch row cap.
- Handoff resolution record updated with the round-2 result and the cap
decision; baseline notes record origin/main at ca4c615 (PR #5, OpenSpec
only) and the closure of PR #2 (`cleanup`, retained on origin) with the
follow-ups its decision record names.
Design only: no code, tests, OpenSpec or Speckit artifacts. Packet
validator passes; review rounds 1 and 2 resolved for every high and medium
finding; targeted re-verification recorded in the PR.
Lane: openRepoProject-3
Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Sorry @brettheap, your pull request is larger than the review limit of 150,000 diff characters |
Add PR #7 and governing issue #6 to the handoff's Checks section and state that the completion gate is met: validator PASS, every high finding has a contract and scenario, design-only PR open; no OpenSpec proposal until it is reviewed and merged. Lane: openRepoProject-3 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
This was referenced Oct 8, 2026
Open
OpenSpec: add-project-clean-all-safe (batch worktree cleanup from the maintenance design packet)
#11
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Lane: openRepoProject-3
Claim: #6 (comment)
Design only
This branch contains design documents only. It adds no code, no tests, no
OpenSpec proposal and no Speckit artifacts, and performs no cleanup operation.
It extends the four-document brainstorm packet under
ideation/brainstorm/for the two proposed features (
project overviewandproject clean --all-safe) and resolves the five pre-PR review findings recorded in thehandoff
ideation/brainstorm/next-session-project-maintenance-fix-handoff.md,which remains in the branch as the review trail. Governing issue: #6.
Findings resolved
Safety boundary(identity, narrow guarantee, changes after confirmation, residual window, branch race)Execution model(fresh plan andplan_digest, oneretire_worktreeseam, deadline and reserve, stages, reconciliation, exit codes)Probe accounting and limits; Overview:Discovery scope and ordering,Probe model and deadlineRepository and JSON contractwith plan and apply-result fixtures; Overview:JSON contractwith envelope fixtureCollector boundary and error isolation,Merge target and classification reuse,Attention categories, acceptance scenariosBaseline
Designs target the cleanup contract of
a040790(separate explicitremoveand
delete-branchactions).origin/mainhas since advanced toca4c615:PR #4 archived the completed OpenSpec changes and promoted their specs to
openspec/specs/, and PR #5 added theprefer-triad-in-project-newOpenSpecproposal; the
projectexecutable and its tests are unchanged. Thecleanupbranch (PR #2, closed unmerged on 2026-10-07 and retained on origin at
bb91a49) is cited as extension evidence only; nothing here assumes it, andthe handoff records the follow-ups its decision record names. Each feature
document lists the baseline behavior changes a later proposal must record.
Checks
git diff --check: cleanand medium resolved
medium resolved
all five resolved before this PR; no raw bidirectional control characters
in the packet
🤖 Generated with Claude Code