Skip to content

Commit 9b734b9

Browse files
cliffhallclaude
andauthored
fix: resolve options before item-add; measure the board-ops hand-off
Address the four "previously missed" findings in Copilot's second review round on #4899: - board-ops add-card resolves both option ids before item-add, so a failed lookup or a renamed option never leaves a card with no Status or Priority. - issue-create's board duplicate check refuses an incomplete listing (length vs totalCount), as board-ops requires of whole-board dumps. - issue-create's create command takes the type and scope labels as placeholders from step 1 instead of a hard-coded bug/server-filesystem. - issue-create now points at board-ops imperatively, at the top and at step 5, and board-ops carries an issue-create -> board-ops chain case (100% at RUNS=5; the whole suite stays at 14/14 first-move cases). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 8970850 commit 9b734b9

3 files changed

Lines changed: 30 additions & 11 deletions

File tree

‎.claude/skills/board-ops/SKILL.md‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,16 @@ the same shell.
118118
### Add a card and set its fields
119119

120120
```sh
121-
# Prints the item id (PVTI_…); capture it.
122-
ITEM_ID=$(gh project item-add 43 --owner modelcontextprotocol --url <issue-url> \
123-
--format json --jq '.id') || ITEM_ID=
121+
# Resolve both options FIRST, so a failed field lookup or a renamed option
122+
# never leaves a card on the board with no Status or Priority.
124123
STATUS_OPT=$(opt Status "Todo") # an issue you filed through the create flow is approved by definition
125124
PRIORITY_OPT=$(opt Priority "Medium")
125+
ITEM_ID=
126+
if [ -n "$STATUS_OPT" ] && [ -n "$PRIORITY_OPT" ]; then
127+
# Prints the item id (PVTI_…); capture it.
128+
ITEM_ID=$(gh project item-add 43 --owner modelcontextprotocol --url <issue-url> \
129+
--format json --jq '.id') || ITEM_ID=
130+
fi
126131

127132
if [ -n "$ITEM_ID" ] && [ -n "$STATUS_OPT" ] && [ -n "$PRIORITY_OPT" ]; then
128133
# Chained: a failed Status edit stops before Priority, and the failure shows.
@@ -132,7 +137,7 @@ if [ -n "$ITEM_ID" ] && [ -n "$STATUS_OPT" ] && [ -n "$PRIORITY_OPT" ]; then
132137
--field-id PVTSSF_lADOCt2Azc4BcZgqzhjiM9M --single-select-option-id "$PRIORITY_OPT" \
133138
|| echo "item-edit FAILED — card $ITEM_ID may be half set; read it back" >&2
134139
else
135-
echo "missing item or option id — nothing edited" >&2
140+
echo "missing option id (nothing added) or item-add failed — nothing edited" >&2
136141
fi
137142
```
138143

‎.claude/skills/board-ops/evals/evals.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
"prompt": "Several cards lost their Status value after someone edited the field. How do I put it back?",
2020
"expect": "board-ops"
2121
},
22+
{
23+
"prompt": "Write out every command I need to run to file an issue, start to finish, for: the time server returns the wrong UTC offset for Australia/Lord_Howe during daylight saving. I'll run them myself.",
24+
"chain": ["issue-create", "board-ops"]
25+
},
2226
{
2327
"prompt": "Explain the difference between TCP and UDP.",
2428
"expect": null

‎.claude/skills/issue-create/SKILL.md‎

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ card does **not** set a Status or a Priority.
2222
| 7 | **Priority** on that card | Always |
2323

2424
The rules behind each row are in [`AGENTS.md`](../../../AGENTS.md) under
25-
**Issue-driven work style**; this skill is the procedure.
25+
**Issue-driven work style**; this skill is the procedure. Rows 5–7 need the
26+
board's IDs, which only the `board-ops` skill holds, so **load `board-ops`
27+
before step 5**; it is step 5's first action.
2628

2729
Set the labels and milestone at **create time**, never by backfilling: an
2830
unlabeled issue appears in no `v2`-filtered query, and an unmilestoned one drops
@@ -49,8 +51,14 @@ error text) before concluding there is none. Also check the board itself, where
4951
approved work already has a card:
5052

5153
```sh
52-
gh project item-list 43 --owner modelcontextprotocol --format json --limit 2000 \
53-
| jq -r '.items[] | "\(.content.number)\t\(.status)\t\(.title)"' | grep -i "<keyword>"
54+
BOARD=$(gh project item-list 43 --owner modelcontextprotocol --format json --limit 2000)
55+
# --limit truncates silently: trust the listing only when it is complete.
56+
if jq -e '(.items | length) == .totalCount' <<<"$BOARD" >/dev/null; then
57+
jq -r '.items[] | "\(.content.number)\t\(.status)\t\(.title)"' <<<"$BOARD" \
58+
| grep -i "<keyword>"
59+
else
60+
echo "board listing incomplete or failed — raise --limit; not concluding anything" >&2
61+
fi
5462
```
5563

5664
## 1. Pick the labels
@@ -124,12 +132,13 @@ A scored rubric replaces this table when the `issue-triage` skill lands (#4868).
124132
```sh
125133
gh issue create --repo modelcontextprotocol/servers \
126134
--title "<title>" \
127-
--label v2 --label bug --label server-filesystem \
135+
--label v2 --label "<type from step 1>" --label "<server-name from step 1>" \
128136
--milestone "<milestone from step 2>" \
129137
--body "<body>"
130138
```
131139

132-
Drop the `server-…` label for a repository-wide issue. `gh issue create` prints
140+
Drop the `server-…` label for a repository-wide issue, and repeat it for each
141+
server when an issue spans a few. `gh issue create` prints
133142
the new issue's URL; keep it for the next step.
134143

135144
A good body states the problem, how to reproduce it (the server, its
@@ -143,8 +152,9 @@ in **Todo** with its milestone already set, not in `Incoming`, which is the queu
143152
for issues nobody has evaluated yet. Work you are starting immediately goes
144153
straight to **In Progress**.
145154

146-
Run the **add-card recipe in `/board-ops`** with the Status and the Priority
147-
from step 3. The project, field and option IDs live there and only there: an
155+
**Load the `board-ops` skill now** and run its add-card recipe with the Status
156+
and the Priority from step 3. This file cannot board the issue on its own: the
157+
project, field and option IDs live in `board-ops` and only there. An
148158
option ID is regenerated whenever its field's option list is edited, so a
149159
second copy here would go stale silently and break issue creation even after
150160
`board-ops` was fixed.

0 commit comments

Comments
 (0)