Skip to content

0.1.49: lettered stage ids, such as P32-S7b, in the plan tool - #122

Merged
d6veteran merged 1 commit into
mainfrom
claude/r47-s1-lettered-stages
Dec 2, 2026
Merged

d6veteran merged 1 commit into
mainfrom
claude/r47-s1-lettered-stages

Conversation

@d6veteran

Copy link
Copy Markdown
Contributor

Akira's lane (R47-S1). The plan tool, its contract and its checker accept lettered stage ids, such as P32-S7b, so a stage can be added between two others without renumbering the plan.

  • scripts/plan.py: a stage id is P<n>-S<m> with an optional lowercase letter; ordering is S7 < S7b < S8. Every command that takes or reads an id accepts it, with or without the item prefix. The no-gap rule counts only the numbers; a lettered stage needs its number's stage in the table. Rows keep their file order. A Follows name that does not start like a stage (such as "the world bosses' pull request (#1157)") is read past.
  • skills/plan-artifact/SKILL.md: the Stage, Follows and check rules say the same.
  • tests/plan-cases.py: two cases on a small plan with S7, S7b, S8 and S10, S10c, S10b (find, card, set, rows, ready, check). One older case that wanted "S0, the memo" refused now uses "S0, P1-S", a name that looks like a stage but is none.

bash tests/run.sh: 553 passed, 0 failed. No check added to the hosted run beyond two plan cases (a few seconds).

🤖 Generated with Claude Code

A stage can now be added between two others without renumbering: P<n>-S<m>
may end in one lowercase letter. find, card, set, rows, ready, refresh, page
and check read it, with or without the item prefix. The no-gap rule counts
only the numbers, and a lettered stage needs its number's stage. A Follows
name that does not start like a stage, such as a pull request, is read past.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@d6veteran
d6veteran marked this pull request as ready for review December 2, 2026 00:59
@d6veteran
d6veteran merged commit 11abc63 into main Dec 2, 2026
1 check passed
@d6veteran

Copy link
Copy Markdown
Contributor Author

ck cost for this pull request: $3.47, built by [R47-S1] [Akira Opus medium] Lettered stage ids in plan.py.

[R47-S1] [Akira Opus medium] Lettered stage ids in plan.py cost summary

Lane Model Input Output Cache write Cache read Total
main opus-5-5 72 · $0.00 22k · $0.44 242k · $1.94 4.6M · $0.91 4.8M · $3.29
main sonnet-5-5 2 · $0.00 125 · $0.00 43k · $0.17 43k · $0.00 87k · $0.18
All 74 · $0.00 22k · $0.44 285k · $2.11 4.6M · $0.92 4.9M · $3.47

Prices from https://platform.claude.com/docs/en/about-claude/pricing.md, as of 2026-12-01.
Claude Code wrote no cost record for this session, so background calls are not counted.

@d6veteran

Copy link
Copy Markdown
Contributor Author

Release check, 0.1.49

1. installs.py verify 0.1.49

ok    /Users/wcurran/development/ck: a fresh session loads ck 0.1.49
ok    /Users/wcurran/development/d20mob: a fresh session loads ck 0.1.49
ok    /Users/wcurran/development/hireling: a fresh session loads ck 0.1.49

2. The fix where Will sees it: d20mob, the real plan, with the installed 0.1.49 plan.py (read only)

$ plan.py find R1-P32-S10c
docs/plan/2026-11-29-new-play-in-measure.md	P32-S10c

$ plan.py card docs/plan/2026-11-29-new-play-in-measure.md R1-P32-S10c
R1-P32-S10c is already done
$ plan.py card docs/plan/2026-11-29-new-play-in-measure.md R1-P32-S7b
R1-P32-S7b is already done

$ plan.py rows docs/plan/2026-11-29-new-play-in-measure.md | lettered rows
R1-P32-S13a	P32-S13a	Tracy	Opus medium	build	done	no	Write the leader sheets
R1-P32-S7b	P32-S7b	Travolta	Opus medium	words	done	no	The twenty's words
R1-P32-S10c	P32-S10c	Tracy	Opus medium	build	done	no	Set every creature's armour
R1-P32-S10b	P32-S10b	Robin	Opus medium	check	done	no	Read the twenty's words and the armour

$ plan.py check docs/plan/2026-11-29-new-play-in-measure.md
P32-S11: Follows names S10b, which does not come before it.
P32-S13a: the entry has no Reads.
P32-S10c: the session name "[R1-P32-S10c] [Tracy Opus medium] Set every creature's armour" is 61 characters, 2 over the 59 allowed.
P32-S10b: the session name "[R1-P32-S10b] [Robin Opus medium] Read the twenty's words and the armour" is 72 characters, 13 over the 59 allowed.
The plan has 3,727 words; it must be under 3,500.
words: 3727

Before 0.1.49, find and card printed "no stage R1-P32-S10c", and check refused every lettered Stage cell. Now the lettered stages are found, listed and carded (these stages have since been marked done, so card says so). What check still reports is in the plan itself: S11 sits above S10b, which it follows (Will chose to move the row in the plan), a missing Reads line, two long session names and the word count.

@d6veteran
d6veteran deleted the claude/r47-s1-lettered-stages branch December 2, 2026 06:55
d6veteran added a commit that referenced this pull request Dec 2, 2026
Log it: 0.1.49, lettered stage ids (Akira, #122)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant