Skip to content

♻️ refactor(scripts): move what's left in scripts/ to mise file tasks - #812

Open
codekiln wants to merge 17 commits into
mainfrom
m18-p734-i774-scripts-to-mise
Open

codekiln wants to merge 17 commits into
mainfrom
m18-p734-i774-scripts-to-mise

Conversation

@codekiln

@codekiln codekiln commented Oct 13, 2026 •

Copy link
Copy Markdown
Owner

from AI(claude-code, claude-sonnet-5-5, langstar i774-scripts-to-mise)

Fixes #774

This PR moves the milestone script, its tests and the installer checklist out of scripts/ into mise file tasks, tests/milestone/ and docs/dev/, as you asked in #772 stop printing organization and workspace IDs in integration test output; scripts/install.sh stays because its URL is published.

  • scripts/gh-milestones/prep-next.py → mise-tasks/milestone/prep-next (#MISE description, #USAGE arg "[milestone]"). The gh-milestones-prep-next skill and docs/implementation/649-branch-naming-implementation.md now point at it.
  • test_branch_naming.py and test_leaf_traversal.py → tests/milestone/; new mise run milestone:test runs them. The branch-naming tests load the task with SourceFileLoader, since it has no .py extension.
  • scripts/test-installer.md → docs/dev/testing/installer-tests.md, listed in the testing README.
  • scripts/gh-milestones/README.md folds into the task description and docs/dev/milestone-tasks.md, then is deleted.

mise run check and mise run milestone:test pass.

Decisions for codekiln

  • scripts/install.sh stays where it is: its raw.githubusercontent.com URL is published in the README, docs and devcontainer feature. If you want a mise entry point anyway, a mise-tasks/release/install wrapper can run it in place.

🤖 Generated with Claude Code

prep-next.py becomes `mise run milestone:prep-next`, its tests move to
tests/milestone/ with a `milestone:test` task, the installer checklist moves
to docs/dev/testing/, and the gh-milestones README folds into
docs/dev/milestone-tasks.md. scripts/install.sh stays: its URL is published.

#774 734.x move what's left in scripts/ to mise file tasks
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 21:47
@codekiln codekiln added this to the dev-prefs milestone Oct 13, 2026
@codekiln codekiln added enhancement New feature or request wip Not ready yet: an open PR short of the ready bar, or an issue an open PR closes labels Oct 13, 2026
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Unit Test Results

226 tests  ±0   226 ✅ ±0   3s ⏱️ ±0s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 5d9f114. ± Comparison against base commit 2bf5473.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

SDK Integration Test Results

339 tests  ±0   339 ✅ ±0   16s ⏱️ -2s
 14 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 5d9f114. ± Comparison against base commit 2bf5473.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Integration Test Results

371 tests  ±0   371 ✅ ±0   1m 46s ⏱️ -32s
 15 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 5d9f114. ± Comparison against base commit 2bf5473.

♻️ This comment has been updated with latest results.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The mise usage spec consumes the milestone argument, but the Python entry point still reads only sys.argv.

0 open findings

What changed in this PR

Moves milestone automation and tests from scripts/ into mise tasks while reorganizing related documentation.

Changes:

  • Converts prep-next into a documented mise task.
  • Relocates milestone tests and adds milestone:test.
  • Moves installer and milestone documentation into docs/dev/.
File Description
tests/​milestone/​test_leaf_traversal.py Relocates traversal tests.
tests/​milestone/​test_branch_naming.py Loads the extensionless mise task.
scripts/​gh-milestones/​README.md Removes superseded script documentation.
mise-tasks/​milestone/​test Adds the milestone test runner.
mise-tasks/​milestone/​prep-next Adds mise metadata and updates usage text.
docs/​implementation/​649-branch-naming-implementation.md Updates the task path.
docs/​dev/​testing/​README.md Links installer testing documentation.
docs/​dev/​testing/​installer-tests.md Relocates the installer checklist.
docs/​dev/​README.md Links milestone task documentation.
docs/​dev/​milestone-tasks.md Documents milestone tasks.
.rulesync/​skills/​gh-milestones-prep-next/​SKILL.md Invokes the new mise task.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codekiln codekiln left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from AI(claude-code, claude-sonnet-5-5, langstar i774-scripts-to-mise)

Checked the code: mise run milestone:prep-next --help prints the argument, mise run milestone:test runs both test files and passes (11 and 5 tests), and no reference to scripts/gh-milestones/ remains outside CHANGELOG.md history. Two findings on the body, one inline.

1. The body opens with Fixes #774 instead of the AI header.

  • Quoted: the body's first line, Fixes #774.
  • Cost: the reader cannot tell at the first line that an agent wrote the body.
  • Rule: CLAUDE.md in this repo ("Start every PR description ... with the line ## from AI(<harness>, <model-slug>, <session-name>)").
  • Rewrite: put ## from AI(claude-code, claude-sonnet-5-5, langstar i774-scripts-to-mise) on line 1, then Fixes #774 on line 3.

2. per codekiln's preference on #772 is a bare pointer.

Suggested squash-merge subject (the commit message's last line carries #774 734.x with no title): ♻️ refactor(scripts): move what's left in scripts/ to mise file tasks (#774 move the last scripts to mise file tasks).

Comment thread docs/dev/README.md Resolved
…EADME

#774 734.x move what's left in scripts/ to mise file tasks
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 21:51
@codekiln

Copy link
Copy Markdown
Owner Author

from AI(claude-code, claude-sonnet-5-5, langstar i774-scripts-to-mise)

Answer to Copilot's note that the Python entry point reads only sys.argv: mise passes a task's arguments to the script on argv as well as parsing them for #USAGE. I checked with a throwaway task that prints sys.argv[1:]; mise run x 42 printed ['42']. So mise run milestone:prep-next 42 reaches argparse unchanged.

@codekiln codekiln left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from AI(claude-code, claude-sonnet-5-5, langstar i774-scripts-to-mise)

Two findings, both inline: the opening sentence of the new task doc says the task "moves", and the installer checklist opens with a sentence about itself and a reason for where its script lives. The title, body and earlier rewrites read cleanly alone.

Comment thread docs/dev/milestone-tasks.md Resolved
Comment thread docs/dev/testing/installer-tests.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The relocated tests duplicate key production logic, allowing regressions in the actual milestone task to pass unnoticed.

0 open findings

Previously missed (1)

In code that hasn't changed since last review

Medium severity Tests bypass production branch assembly logic

tests/​milestone/​test_branch_naming.py:28

The branch-format tests still exercise the test-only generate_branch_name implementation rather than the task loaded here. A regression in MilestoneWorkflow.create_worktree's branch assembly can therefore leave milestone:test green. Please assert the branch passed by the real create_worktree, or extract the production branch-name logic into an imported helper and test that.

🧠 Review effort: Balanced

… trim the installer checklist intro

#774 734.x move what's left in scripts/ to mise file tasks
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 21:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The relocation is complete, references are updated, and the new task entry points preserve the existing behavior.

0 open findings

🧠 Review effort: Balanced

@codekiln codekiln left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from AI(claude-code, claude-sonnet-5-5, langstar i774-scripts-to-mise)

One finding on the body and one inline. I ran mise run milestone:test (passes), mise run milestone:prep-next --help (prints the argument), and a throwaway task to confirm mise passes [milestone] through on argv; the old paths remain only in CHANGELOG.md history. The title, commit subjects and the earlier rewrites (picks the next open issue, the installer checklist intro) read cleanly alone.

Body, first sentence. Quoted: "Automation belongs in mise file tasks, not in scripts/, as you asked in [#772 ...]; this PR moves every script there except scripts/install.sh, which stays because its URL is published (see Decisions below)."

Cost: the sentence opens on a policy, in an X, not Y shape, and reaches what the PR does only after a clause about who asked, so the reader holds the policy, the source and the exception before learning the change; "see Decisions below" then sends them down the page for a reason the sentence already gave.

Rule: State the Positive and Get to the point.

Point of the sentence: the PR moves the milestone script, its tests and two documents out of scripts/.

Rewrite: "This PR moves the milestone script, its tests and the installer checklist out of scripts/ into mise file tasks, tests/milestone/ and docs/dev/, as you asked in #772 stop printing organization and workspace IDs in integration test output; scripts/install.sh stays because its URL is published."

Comment thread docs/dev/milestone-tasks.md Resolved
…ut the traversal

#774 734.x move what's left in scripts/ to mise file tasks
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 21:56
@codekiln

Copy link
Copy Markdown
Owner Author

from AI(claude-code, claude-sonnet-5-5, langstar i774-scripts-to-mise)

Answer to the round-4 finding on the body's first sentence: rewritten to say what the PR moves and where, with the #772 link and the reason scripts/install.sh stays.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The relocation is complete, references are updated, and the new mise entry points are executable and consistently wired.

0 open findings

🧠 Review effort: Balanced

@codekiln codekiln left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from AI(claude-code, claude-sonnet-5-5, langstar i774-scripts-to-mise)

Round 5: one finding. The title, body, headings and first sentences read clean. The traversal bullet in docs/dev/milestone-tasks.md describes something the task does not do, checked against mise-tasks/milestone/prep-next; the order of the five bullets matches the code.

Comment thread docs/dev/milestone-tasks.md Resolved
#774 734.x move what's left in scripts/ to mise file tasks
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 13, 2026 22:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the migration of milestone tooling to mise tasks.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 30, 2026 15:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the migration of milestone tooling to mise tasks.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 30, 2026 16:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the migration of milestone tooling to mise tasks.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 30, 2026 16:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the milestone tooling migration.

No open issues 🎉

Review effort: Balanced

@codekiln

Copy link
Copy Markdown
Owner Author

from AI(claude-code, claude-opus-5-5, langstar-label-rules)

AI (codekiln-review): A review round on d1f8d12 found nothing to raise, so it posted no review. It ran mise run milestone:test and mise run milestone:prep-next --help, checked each step in docs/dev/milestone-tasks.md against mise-tasks/milestone/prep-next, checked the body's claims, and found nothing outside CHANGELOG.md that still points at scripts/gh-milestones.

@codekiln codekiln removed the wip Not ready yet: an open PR short of the ready bar, or an issue an open PR closes label Oct 30, 2026
@codekiln
codekiln requested a balanced review from Copilot October 30, 2026 17:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the migration of milestone tooling to mise tasks.

No open issues 🎉

Review effort: Balanced

@codekiln codekiln added the ready-for-review Green CI, no open threads, Copilot settled; ready for codekiln to review and merge label Oct 30, 2026 — with Claude
Copilot AI balanced review requested due to automatic review settings October 30, 2026 19:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block approval of the milestone tooling migration.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 30, 2026 20:07
@codekiln codekiln added wip Not ready yet: an open PR short of the ready bar, or an issue an open PR closes and removed ready-for-review Green CI, no open threads, Copilot settled; ready for codekiln to review and merge labels Oct 30, 2026 — with Claude

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the milestone tooling migration to mise tasks.

No open issues 🎉

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: medium Review after high: bug fixes and features with no open decision wip Not ready yet: an open PR short of the ready bar, or an issue an open PR closes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

734.x move what's left in scripts/ to mise file tasks

2 participants