Repository navigation
feat(spec): Model and Reasoning routing hints (SPEC-002) - #150
Merged
Merged
Conversation
…odules Work items take optional `- **Model:**` (free-form identifier) and `- **Reasoning:**` (low | medium | high | max) fields, with `Model` and `Reasoning` module metadata-table columns as inheritable defaults. Item fields override the module column, mirroring the `Packages:` pattern. The fields are optional but preferred: templates, aps-rules, the planning skill reference, and the prompts steer authors to fill them in, and no existing plan gains a warning by omission. Surfaces, landed in lockstep across Rust, bash, and PowerShell per D-039: - W023 warns on a `Reasoning` value outside the vocabulary. Placeholder prose is skipped; `Model` is never vocabulary-checked because model identifiers are harness-specific. - `aps next` prints `Model: … | Reasoning: …` when either hint resolves. - `aps export` carries `model` / `reasoning` on modules and work items. test/fixtures/routing/ covers inheritance, item-level override, W023 on both the table column and the item field, and the next/export output; it is registered with the cross-CLI parity harness. Plans: SPEC-002 Complete, decision D-047 in the spec module and index.
joshuaboys
force-pushed
the
work/spec-002
branch
from
September 14, 2026 06:09
40b7161 to
360fa04
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds optional-but-preferred
Model:andReasoning:fields so a plan can saywhich AI model should execute a work item and how hard it should think.
Implements SPEC-002 under decision D-047.
The spec
- **Model:**(free-form identifier, e.g.claude-opus-5)and
- **Reasoning:**(low | medium | high | max, case-insensitive).ModelandReasoningmetadata-table columns as amodule-wide default. An item field overrides the column, mirroring the
existing
Packages:inheritance.Templates,
aps-rules.md, the planning-skill reference, and the promptssteer authors to fill them in.
CLI behaviour
Landed in lockstep across Rust, bash, and PowerShell per D-039.
Reasoningvalue falls outside thevocabulary. Placeholder prose is skipped, and
Modelis nevervocabulary-checked because identifiers are harness-specific.
aps nextadds aModel: … | Reasoning: …line with the effectivevalues, omitted entirely when neither is set.
aps exportcarriesmodelandreasoningon modules and work items,nullwhen unset.Verification
cargo test(197 pass),cargo fmt --check,cargo clippy --locked --all-targets -- -D warningsclean../test/run.shpasses, including a new test overtest/fixtures/routing/covering inheritance, item-level override, W023 on both the table column and
the item field, the
nextoutput, and export../test/cli-parity.shreports bash = Rust = PowerShell across all 11fixtures;
test/ps-parity.ps1passes. Both ran against a fetched pwsh.aps lint plansand markdownlint clean.Design note
Reasoninghas four levels; harnesses mapmaxonto their own top tier(
xhigh,max, and so on). MakingModela validated enum was rejectedbecause a model list rots faster than the spec does.
🤖 Generated with Claude Code