feat(commit-gate): land board transitions with the work (ADR-0008)#144
Merged
Conversation
A task isn't done until its PR merges, but open-tasks.md is itself versioned, so a board flip only goes live when its own change merges to main. That created a trap with no good side: flips drifted into lagging chore(board) PRs or post-commit edits that depended on cross-session memory, and silently fell off (#138 never marked v2.release.0002-0006 done; #140 needed the separate #141). ADR-0008 makes commit-gate the single board-sync chokepoint, co-locating the flip with the work commit: it is invisible on main until merge, lands atomically when the work does, and an abandoned PR abandons the flip with it -- so the "don't mark done before merge" and "don't lose the board update" rules become the same, self-correcting rule. No task-to-commit inference is introduced; the human still declares the transition via /ca:task. Mechanism: a new pure _taskboardlib.classify_board_diff recognizes a clean done/start/add transition vs an arbitrary board edit; commit-gate Phase 6 retains a classified transition instead of flagging it as scope creep; Phase 7 stages it by explicit path; the raise-new harvest moved to Phase 7 (pre-commit) so a discovered follow-up rides the work commit (contingent default -- a must-survive follow-up is filed as a GitHub issue). A read-only /ca:standup advisory sweep (hooks/boardsync.py reconcile, best-effort) surfaces any merged-but-not-flipped task; the fix still routes through /ca:task. Conflict-hierarchy level: maintainability/reliability (SMARTS, per ADR-0008). Folds into the unreleased 2.6.0 (payload already ahead of tag v2.5.2; no over-bump). All 10 plan tasks shipped test-first; full tech-stack suite green; security review PASS (one LOW hardened). CHANGELOG: commit-gate now lands task-board done/start/add transitions in the same commit as the work (no separate chore(board) PR); /ca:standup gains a read-only drift sweep for any merged-but-not-flipped task. Closes #142 Ref: ADR-0008 Claude-Session: https://claude.ai/code/session_018n3e8e2RWU7hLzzJjEAscb
SUaDtL
added a commit
that referenced
this pull request
Jun 27, 2026
) A task isn't done until its PR merges, but open-tasks.md is itself versioned, so a board flip only goes live when its own change merges to main. That created a trap with no good side: flips drifted into lagging chore(board) PRs or post-commit edits that depended on cross-session memory, and silently fell off (#138 never marked v2.release.0002-0006 done; #140 needed the separate #141). ADR-0008 makes commit-gate the single board-sync chokepoint, co-locating the flip with the work commit: it is invisible on main until merge, lands atomically when the work does, and an abandoned PR abandons the flip with it -- so the "don't mark done before merge" and "don't lose the board update" rules become the same, self-correcting rule. No task-to-commit inference is introduced; the human still declares the transition via /ca:task. Mechanism: a new pure _taskboardlib.classify_board_diff recognizes a clean done/start/add transition vs an arbitrary board edit; commit-gate Phase 6 retains a classified transition instead of flagging it as scope creep; Phase 7 stages it by explicit path; the raise-new harvest moved to Phase 7 (pre-commit) so a discovered follow-up rides the work commit (contingent default -- a must-survive follow-up is filed as a GitHub issue). A read-only /ca:standup advisory sweep (hooks/boardsync.py reconcile, best-effort) surfaces any merged-but-not-flipped task; the fix still routes through /ca:task. Conflict-hierarchy level: maintainability/reliability (SMARTS, per ADR-0008). Folds into the unreleased 2.6.0 (payload already ahead of tag v2.5.2; no over-bump). All 10 plan tasks shipped test-first; full tech-stack suite green; security review PASS (one LOW hardened). CHANGELOG: commit-gate now lands task-board done/start/add transitions in the same commit as the work (no separate chore(board) PR); /ca:standup gains a read-only drift sweep for any merged-but-not-flipped task. Closes #142 Ref: ADR-0008 Claude-Session: https://claude.ai/code/session_018n3e8e2RWU7hLzzJjEAscb Co-authored-by: SUaDtL <SUaDtL@users.noreply.github.com>
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.
What & why
Implements ADR-0008 (accepted) — commit-gate is the single board-sync chokepoint. Resolves the order-of-operations trap behind #142: because
open-tasks.mdis versioned, a board flip only goes live when its own change merges, so flips drifted into laggingchore(board)PRs or post-commit edits that depended on cross-session memory and silently fell off (#138 never markedv2.release.0002-0006done; #140 needed the separate #141).Co-locating the flip with the work commit makes it self-correcting: invisible on
mainuntil merge, atomic when the work lands, and abandoned with the PR if the PR is abandoned. No task→commit inference is introduced — the human still declares the transition via/ca:task.How
_taskboardlib.classify_board_diff— a pure classifier that recognizes a clean done-flip / start-flip / single queued-add vs an arbitrary board edit (tight: state-cell + date only, no description ride-along; single-contiguous-insert for adds).open-tasks.mdedit still flags./ca:standupgains a read-only, best-effort advisory drift sweep (hooks/boardsync.py reconcile) surfacing any merged-but-not-flipped task; the fix still routes through/ca:task(never auto-flipped).commit-gate/SKILL.md,harvest.md,/ca:taskdoc.Verification
test_taskboardlib.py(classifier / id-extract / drift),test_boardsync.py(read-only byte-identical proof), and structuraltest_board_sync.py(registered in tech-stack + CI).hooks/testsdiscover green; plugin-ref graph intact.boardsync.pywrite-free/injection-free. One LOW (unguardedmain()I/O) hardened.standup.mdbefore it bloated the diff.Notes
v2.5.2; no over-bump). CHANGELOG updated.open-tasks.mdwithin the work commit.site/command-doc mirrors fortask.md/standup.md.Closes #142
https://claude.ai/code/session_018n3e8e2RWU7hLzzJjEAscb