Repository navigation
feat(planning): read plan size bands and inventory threshold from settings - #13796
Conversation
…tings /planning:plan's size bands (trivial 1, small 5, medium 15 files) and its file-inventory threshold (10 files) were fixed numbers. They now resolve through two convention-home keys, plan_size_bands and plan_inventory_min_files, with today's values as defaults, so nothing changes when neither is set. config.md states the rising-order rule the schema cannot check; a new test covers the schema, defaults and skill text. Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
claude-security-review reviewed Security review: PR #13796, head 23df6afNo security issues found. I read every hunk of all 6 changed files in What the PR does: What I checked:
No spend change: no new lane runs, models, schedules or billed resources. critical-findings: 0 |
|
claude-review reviewed Code review: no findingsI read every hunk of all 6 changed files. This is a full review, not blocking-only: the prior-findings file shows no earlier head reviewed. What the change does. What I checked:
Not verified by me. The PR's test results ( No embedded instructions were found in the PR context or prior-findings files. |
No related issue: poteto leftover good-defaults, owner-directed
Summary
Owner, 2026-10-13T01:31:36Z: "not ship with assumptions or assumptions that you can't change, so I think having good defaults makes sense ... everything can be customizable and extensible, at least the things that make sense to change".
/planning:planhard-coded its plan size bands (Trivial 1 file, Small 2-5, Medium 5-15) and its file-inventory threshold (10 or more files). Both now resolve through the plugin's existing convention-home cascade, with today's values as defaults, so behaviour is unchanged when nothing is set.Fix
plan_size_bands: block maptrivial: 1,small: 5,medium: 15. Each value is the largest file count in its band.plan_inventory_min_files:10.<home>/planning.yaml, then personal<home>/planning.local.yaml. Neither key has auserConfigoption.answer_audit_roundsandwayfind_suggest_questions, and the other plan-skill key,plan_stress_test, use this shape with nouserConfig(plugins/planning/reference/config.md, "Convention-home keys"). Theanswer_audit_roundsuserConfiglayer was dropped deliberately (plugins/planning/tests/interview-defenses.test.sh:511).plugin.json, the generated README options table and the settings-token baseline are untouched.schemas/planning.schema.json): integer sub-keys with minimums (trivial ≥ 1, small ≥ 2, medium ≥ 3) and an inventory threshold ≥ 1. The convention-home list in the description now names both keys.setup-applyvalidates each key against the schema alone (lib/setup-apply.mjs:315-333), so it cannot compare values.reference/config.mdtherefore states the rule:plan_size_bandsresolves whole per layer, and a missing sub-key takes its default.trivial<small<medium). A layer that breaks the order is named and dropped, like any invalid value.trivial+1 tosmall, and medium fromsmalltomedium. The defaults still read 2-5 and 5-15. That overlap at 5 already existed and is not changed here.skills/plan/SKILL.mdStep 2 resolves both keys through "Convention-home keys" and reports one line, in the same pattern asplan_stress_test.context/plan-template.mdnow refers to the keys instead of the fixed numbers.docs/contracts/config-cascade/README.mdplanning row is not edited. It lists only the ADR 0064 keys and already leaves out the convention-home keys (plan_stress_test,question_pacing)..changes/planning/feat-planning-tunable-defaults-7c3a91e4.md(minor).Verification
plugins/planning/tests/plan-size-keys.test.sh: PASS=17 FAIL=0. It covers:setup-apply --checkplugins/planning/tests/plan-stress-test.test.sh: PASS=77 FAIL=0.setup-apply.test.sh: the same 4 failures (the$HOME-root and non-git cases) also fail on unmodified main in this environment. This change did not cause them./skill-quality:checkonplan: PASS, 0 errors. All 5 warnings were already present (size, description length, fresh-eyes heuristic).Related
planning/planSKILL.md:188-190 and :205).🤖 Generated with Claude Code