feat(board): add mgw:board sync — reconcile all board items with current .mgw/ state#97
Closed
snipcodeit wants to merge 1 commit intomilestone-1from
Closed
feat(board): add mgw:board sync — reconcile all board items with current .mgw/ state#97snipcodeit wants to merge 1 commit intomilestone-1from
snipcodeit wants to merge 1 commit intomilestone-1from
Conversation
Implements `mgw:board sync` — iterates all .mgw/active/*.json state files, fetches current board items in a single GraphQL bulk query, adds missing issues to the board, and updates Status/AI Agent State/Phase/Milestone fields to match local state. Prints a reconciliation diff table showing per-issue changes. Closes #82 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This was referenced Mar 1, 2026
snipcodeit
pushed a commit
that referenced
this pull request
Mar 1, 2026
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.
Summary
mgw:board syncas a fifth subcommand tomgw:board, enabling full board reconciliation after context resets or drift.mgw/active/*.jsonstate files, fetches board items in a single GraphQL bulk query, adds missing issues, and updates Status/AI Agent State/Phase/Milestone fields to match local stateboard-sync.mdConsumers tableCloses #82
Milestone Context
Changes
.claude/commands/mgw/board.mdargument-hintanddescriptionfrontmatter to includesync<objective>block — now lists 5 subcommands withsyncdescribedparse_and_validatestep: addedsyncto usage message andcasestatement<step name="subcommand_sync">process block with full reconciliation implementation:node(id: $BOARD_NODE_ID)<success_criteria>.claude/commands/mgw/workflows/board-sync.mdboard.md (sync)row to the Consumers table documenting the bulk reconciliation patternTest Plan
/mgw:board syncwith no board configured → "No board configured" error/mgw:board syncwith empty.mgw/active/→ "Nothing to sync" clean exit/mgw:board syncwith active issues and a configured board → reconciliation table printedaddProjectV2ItemByIdpipeline_stagediffers from board Status valuephase:*label on the issueproject.jsonmilestone title lookupmgw:boardusage message now includessyncin the subcommand listboard-sync.mdConsumers table includes theboard.md (sync)row