Repository navigation
Fix the open review findings of the sync signal fixture and the tidy move - #307
Merged
DocksDocks merged 5 commits intoDec 2, 2026
Conversation
…ardown closure Step fixture of #304 (findings of #300): the preload and the listener-order entry write the CLI pid record before the entry runs; the supervisor reports a missing record or a failed stop request as a diagnostic and waits within its bound; both teardown paths share the closed flag of the ticket folder; new cases for each fault. Verified: bun x --no-install vitest run cli/test/unit/syncSignals.test.ts
Step tidy of #304 (findings of #302): the scratch activity check reads the entry again after its children; metadata reads run up to 8 at a time with the first failure in scan order; text reads keep a leading BOM; the runner records failures in the exit callback; the log write recovers defects; unused exports become local; the spawned fixtures read the pid record, quote paths, release stubs without signals, and cover more paths. Verified: bun x --no-install vitest run cli/test/unit/tidy.test.ts cli/test/unit/tidyReport.test.ts cli/test/unit/syncConcurrency.test.ts; bun run check:types
Step guidance of #304: tryAcquireKitLock is the production lock and acquireKitLock is test-only; a recorded signal exits before the next git or docker call starts; the source ranges cover releaseKitLock and the new file lengths. Verified: bun x --no-install vitest run cli/test/unit/skillMetadata.test.ts
Step version of #304: the tidy scratch re-check changes which entries an apply removes in a race. Payload, talk bundle, and the version-derived mutation digests are regenerated. Verified: bun run check:generated; bun run golden:mutation; ./docks-kit sync --dry-run; bun run check
Step repairs of #304: - Scratch-child and worktree metadata reads are serial again; the worktree idle verdict uses the newest activity of both scans; apply removes a scratch entry only on a positive idle result. - A rotation error after a successful stat reaches the log failure line. - A regression case for the runner failure window at the inline continuation limit. - Fault-case teardown needs CLI and stub exit evidence; the supervisor reports its shutdown time on its own clock; new cases for a late stub and a missing ticket folder. - Guidance and changelog describe what the scratch recheck detects, both signal outcomes, and the lock poll constant. Verified: bun x --no-install vitest run cli/test/unit/syncSignals.test.ts cli/test/unit/tidy.test.ts cli/test/unit/tidyReport.test.ts cli/test/unit/syncConcurrency.test.ts cli/test/unit/kitLock.test.ts cli/test/unit/scratch.test.ts cli/test/unit/skillMetadata.test.ts; bun run check:types; bun run lint; bun run check
DocksDocks
marked this pull request as ready for review
December 2, 2026 05:14
DocksDocks
deleted the
304-fix-the-open-review-findings-of-the-sync-signal-fixture-and-the-tidy-move
branch
December 2, 2026 05:21
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.
Plan run: #304 Fix the open review findings of the sync signal fixture and the tidy move
Reviewed head:
5bdbef21. Checks: see the pull request.What changed
tidy --applykeeps a scratch entry when the entry itself changes during the activity check (a child created, removed, or renamed). It removes an entry only on a positive idle result, and it keeps a merged worktree when the second activity scan sees newer activity.tidyreads the.gitmarker, the Bun globalpackage.json, and.trashinfowith a leading BOM kept, as before Move tidy to Effect #295. A failed log rotation or append prints itsfailed logline. Four internal types are no longer exported.runBoundedrecords a task failure in the exit callback of the task, so no queued task starts after a failure at the scheduler's inline continuation limit..npmcache exactly.tidy-contextandDESIGN.mdnametryAcquireKitLockas the production lock, describe both signal outcomes, and describe what the scratch recheck detects.Delegated decisions
Reviews
Verification (on
5bdbef21)signals: exit 0, 10 passed.tidy: exit 0, 111 passed, 1 skipped. Red baselines: each case of a code fix failed with its fix removed.scan: exit 1, no match.guidance: as expected.goldens: OK; only the version-derived digests changed.gen,dry,types,ci-tools,smoke: exit 0.red-dry,red-mut: exit 1 withprove-red OK.gate(bun run check): exit 0, 6524 passed, 12 skipped.Limits and failures
Full CIcovers Ubuntu, macOS, and Windows. The signal cases run on Linux and macOS only.bun run checkfailed only in the load-sensitiveompTriggerBackstop.test.tstiming cases while many agents ran; the run on the reviewed head passed.Kept resources
After merge
Checklist
bun run checkpassesCloses #304
Closes #300
Closes #302