Repository navigation
fix(workboard): run git diff --check at node-ticket import - #56
Merged
Merged
Conversation
#51 and #52 each stayed under the cap and together reached 701 lines on main. The attempt rebuild carries contextTokens in one line. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Both of dev's defect verdicts in the Phase 4 window were a failing `git diff --check` that the session reported done anyway. The host clone now runs it over the imported range before it creates the ticket branch. A failure adds a failed `import check` proof entry and blocks the card with the command and output first, so the re-run session reads them and fixes them with a new commit in the same node worktree. A rework round checks only its own commits: the rework record gains `startCommit`, the branch tip the round started from, so a reviewer's commits or an "Update branch" merge of main never block the session. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A re-run claims the card while it still carries the pending handoff of the failed import, and the handoff sweep fires on that claim. It then imported the old head again: an import-check failure blocked the re-run before its session could fix it, and a generic failure jumped to review mid-start. A pending record older than the card's claim now belongs to the start that replaces it. The rework round's starting tip is checked as a commit id before it reaches host git. The start queue tests move to their own file to keep the handoff tests under the line cap. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In the Phase 4 window, both of
dev's defect verdicts (BUG-57 round 0, KA-8 round 0) came down to the same mechanical check. The card notes require a cleangit diff --check, the imported range failed it, and each session reported done anyway without a failed proof entry. In BUG-57 the operator accepted, so a check Workboard could run itself turned into a disagreement, and agreement no longer measured judgment.Solution
factory/<card>is created or moved, the host clone runsgit diff --check <from> <head>.import checkproof entry and is blocked.WorkboardNodeReworkgains an optionalstartCommit, the PR tip the round started from. A reviewer's commits, or an "Update branch" merge ofmain, therefore never block the session. A rework record from before this change falls back to the host branch head.assertCurrent()runs before recording, so a card that was re-dispatched while its bundle was in transit is left alone.pendingrecord, and the handoff sweep fires on that claim. The sweep then imported the old head again.reviewmid-start. That second case was already broken onmain.handoffCardnow skips apendingrecord older than the card's claim, because that record belongs to the start that replaces it.node-ticket-handoff.start-queue.test.tsto stay under the line cap.store-card-helpers.tsgoes back under the 700-line cap.mainsits at 701 because feat(workboard): measure each run's turn-end context against the smart zone #51 and feat(workboard): queue a node-ticket start on a full slot and stay on the board #52 each stayed under the cap but together crossed it.Impact
startCommitis optional and normalized, so existing records load unchanged and no migration is needed.Evidence
pnpm test <file> --maxWorkers=1:node-ticket-handoff.test.ts24.9 s wall,node-ticket-handoff.start-queue.test.ts13.5 s. The full Workboard suite passes too: 469 tests in 33 files.New and changed tests, each failing on the code before the fix:
reviewat the fixed head.reviewmid-start.review, and the rework record names the reviewer's commit asstartCommit.Other gates:
tsgo:extensionsshows only the unrelatedqa-lab@openclaw/crabbox-providererror that is already onmain.oxlintpasses onextensions/workboard/srcand the contract.Review, in two independent rounds; all five findings are fixed here:
assertCurrent.startCommit.One limit is left as it is: the check compares trees, so a session that merges
mainduring its own round is charged formain's whitespace.🤖 Generated with Claude Code