Repository navigation
Default Subagents to Frontier and Refuse Untiered Explore and Plan - #4283
Conversation
A session launched on the maintainer-only tier passed that tier to every dispatch that named no model. The agent-safety installer now sets the default subagent model to the default tier's model, owned through a stamp record so a host's own value is never overwritten. The model-tier guard refuses a no-model dispatch of the built-in types that default does not reach. AGENTS.md states the new default and when a session above the tier its work calls for dispatches the execution, and backlog-burndown says an away run gains nothing from a session on the maintainer-only tier. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The installer reads the default and maintainer-only tiers through the tier guard's own reader, so the two never read one mapping two ways. The guard drops checks the validated mapping makes unreachable. Requirement 10 names the no-model refusal, and the verify line counts only the default subagent model key. Co-Authored-By: Claude Opus 5.5 <[email protected]>
An empty or null CLAUDE_CODE_SUBAGENT_MODEL sets no default, so the installer treats it as absent and fills it rather than reporting it as the host's own model. The mapping note's new sentence is split to the prose length cap. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 45 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
🟡 Changes recommended
Active critical defects leave the report incorrectly succeeding when the subagent model is missing or outdated and allow malformed agent-type mappings to bypass the safety guard.
3 open issues
What changed in this PR
This PR makes frontier the default Claude Code subagent tier and prevents untiered Explore and Plan dispatches from inheriting a maintainer-only session model. It updates the host-safety installer and guard, model-tier validation, tests, documentation, and generated fleet guidance. The review identified issues involving stale report verdicts, malformed deployed mappings, an incomplete diagnostic, and unexplained typing suppressions.
Changes:
- Configure and stamp
CLAUDE_CODE_SUBAGENT_MODELfrom the default tier while preserving host-owned values and force-switch behavior. - Reject untiered built-in agent dispatches that bypass the configured default.
- Extend model-tier validation, host-safety documentation, tests, fleet guidance, generated Skills, and source digests.
| File | Description |
|---|---|
| tests/test_spec_validate.py | Adds tests for validating optional inheriting agent types. |
| spec/validate.py | Validates the shape, uniqueness, and non-empty values of inheritingAgentTypes. |
| spec/model-tiers.json | Defines the default model tier and the inheriting Explore and Plan agent types. |
| host-setup/agent-safety/README.md | Documents the expanded host-safety requirement for default models and untiered dispatches. |
| host-setup/agent-safety/claude/test_model_tier_guard.py | Tests refusal of untiered inheriting agent dispatches and tier messaging. |
| host-setup/agent-safety/claude/test_install.py | Tests default-model installation, ownership tracking, reporting, and force handling. |
| host-setup/agent-safety/claude/README.md | Documents the default subagent model setting, ownership rules, and guard behavior. |
| host-setup/agent-safety/claude/model-tier-guard.py | Loads inheriting agent types and refuses unsupported untiered dispatches. |
| host-setup/agent-safety/claude/install.py | Installs, records, reports, and preserves the configured default subagent model. |
| AGENTS.md | Updates model-tier, delegation, and away-mode guidance. |
| .github/skills/local-strict-review/SKILL.md | Regenerates the carried Model Tiers guidance. |
| .github/skills/decision-triage/SKILL.md | Regenerates the carried Model Tiers guidance. |
| .github/skills/backlog-burndown/SKILL.md | Adds away-mode guidance and regenerates Model Tiers content. |
| .claude-plugin/fleet-skills/skills/local-strict-review/SKILL.md | Updates the generated Claude Skill distribution for local strict review. |
| .claude-plugin/fleet-skills/skills/decision-triage/SKILL.md | Updates the generated Claude Skill distribution for decision triage. |
| .claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md | Updates the generated Claude Skill distribution for backlog burndown. |
| .claude-plugin/fleet-skills/.source-digests/local-strict-review | Updates the generated source digest for local strict review. |
| .claude-plugin/fleet-skills/.source-digests/decision-triage | Updates the generated source digest for decision triage. |
| .claude-plugin/fleet-skills/.source-digests/backlog-burndown | Updates the generated source digest for backlog burndown. |
| .agents/skills/local-strict-review/SKILL.md | Updates the authored local strict review guidance. |
| .agents/skills/decision-triage/SKILL.md | Updates the authored decision triage guidance. |
| .agents/skills/backlog-burndown/SKILL.md | Adds authored away-mode guidance and updates model-tier content. |
Review effort: Lite
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4283 +/- ##
===========================================
- Coverage 79.21% 78.89% -0.32%
===========================================
Files 42 42
Lines 15502 15582 +80
===========================================
+ Hits 12280 12294 +14
- Misses 3222 3288 +66
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
|
/review |
Action not completed
|
…red-Path Edges (#4290) ## Summary Promotes `develop` to `main`. It carries these changes: - [#4283](#4283) defaults subagents to the `frontier` tier and refuses an untiered `Explore` or `Plan` dispatch. - **Installer default.** The Claude Code safety kit sets the default subagent model to the model of the default tier, records it in its stamp, and leaves a host's own value alone. - **Guard refusal.** The tier guard denies a no-model dispatch of an agent type that inherits the session's model. - [#4287](#4287) drops the unreachable end-of-refill signal from the `backlog-burndown` lean orchestrator. - [#4286](#4286) closes latent edges in the retired-path checks. The remaining edges are filed as #4285. - [#4288](#4288) reports downstream copies when a whole tree declaration is dropped. Closes #4278 Closes #4273 Closes #4272 🤖 Generated with [Claude Code](https://claude.com/claude-code)


Summary
A session launched on the maintainer-only tier passed that tier to every dispatch that named no model. This makes the kit set a default, refuses the dispatches that default cannot reach, and states the rule.
host-setup/agent-safety/claude/install.pysetsenv.CLAUDE_CODE_SUBAGENT_MODELin the Claude Code settings file to the model of the tierdefaultTiernames inspec/model-tiers.json, read through the tier guard's own reader. The stamp records the value the kit wrote (subagentModel). An absent value is written. A value equal to the default is current. The recorded value, with the default since changed, is updated. Any other value is the host's own, left and noted, naming the maintainer-only tier where it is that one. The kit never setsCLAUDE_CODE_SUBAGENT_MODEL_FORCE, and where the host sets it, it reports that and changes nothing.--report, which the bootstrap--agent-statusstep runs, reads each state. The installer has no removal path.model-tier-guard.pydenies anAgentcall naming no model whosesubagent_typeis listed under the tool's newinheritingAgentTypes(Explore,Plan), matched without regard to case. The deny text lists each tier and its model, the default marked and the maintainer-only tier left out.FLEET_ALLOW_HIGHEST=1still allows everything. A mapping without the key lists no type.spec/validate.pychecks the key's shape.AGENTS.md"Model Tiers" (thehighestbullet and the orchestrating-seat bullet), a new "Delegation" bullet and brief-template line, and a newbacklog-burndown"Away Mode" bullet. The include regions carrying "Model Tiers" are regenerated byscripts/build_dist.py.ExploreandPlantypes, and a fork). The host-safety spec's requirement 10 states the default and the refusal.Verification
The full local gate set in
OPERATIONS.mdpassed: ruff check and format, mypy, the unittest suite with coverage, the audit helpers,workflow_reuse.py --selftest, every agent-safety self-test and suite,build_dist.py --check,canonical_review.py status,repo_gate.py, the prose gate,jqover the JSON, andspec/validate.py.scripts/docker_lint.pypassed all its linters.Local review
Three recorded
local-strict-reviewpasses at thefrontiertier. The first two rounds' findings were fixed: the installer reads the mapping through the guard'sload_tiers, the guard drops checks the validated mapping makes unreachable, requirement 10 names the no-model refusal, the verify line counts only the default-model key, an empty or null value is treated as absent, and the mapping note's long sentence is split. The edit budget is spent, so theseintroducedfindings went to this pull request's review loop, which gives each its outcome below:introduced,host-setup/agent-safety/claude/install.py, ownership of the default subagent model rests on the stamp'ssubagentModelrecord. A failed stamp write, or a run of an installer from before this change (which rewrites the stamp without the key), leaves the kit's own value unrecorded. At the nextdefaultTiermodel change that value reads as the host's own, the install leaves it, and--reportprints a Note naming the mismatch rather than a STALE verdict. Outcome: declined. The stamp is the record the design names, and a value equal to the default with no record cannot be told apart from a host's own coincident value, which the kit must never overwrite. The mismatch stays visible in every--reportand--agent-status.introduced,AGENTS.md"Model Tiers"highestbullet, the decided text says the kit refuses a no-modelExploreorPlandispatch and that a no-model dispatch runs at the kit's default, without naming the launch allowance or a host's own value or force switch. Outcome: declined as out of scope here. The text is the decided rule wording this pull request carries, and a wording change of substance belongs to the dispatching session.🤖 Generated with Claude Code