Commit 5e6ee19
committed
chore(pm): close-cards.mjs — one named script for the three-step card closure
The three-step closure (comment · label · close) had no named spelling, so a
seat's batch ran as a bash loop and the session's write classifier judged it
act by act — non-deterministically, which is how a 90-card sweep stopped after
one card rather than risk a comment landing without its label write.
`scripts/pm/close-cards.mjs` is that spelling: it re-reads every card live,
applies the skip matrix, drives post-stamped (child process, its documented
flags) and label-write's exported `runLabelWrite`, closes with the reason and
reads the answer back, and STOPS at the first card left half-written, naming it
and which of the three writes landed. Stamping and the four-step label write are
imported, never re-implemented.
`.claude/settings.json` gains the four allow rules that let a seat run it and
its two helpers as typed, from the repo root.
Claude-Session: https://claude.ai/code/session_012GcsUbuqFGBibkEDMRC1eE
Co-authored-by: Claude <noreply@anthropic.com>1 parent fbc12be commit 5e6ee19
4 files changed
Lines changed: 1092 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1307 | 1307 | | |
1308 | 1308 | | |
1309 | 1309 | | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
1310 | 1333 | | |
1311 | 1334 | | |
1312 | 1335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
0 commit comments