Repository navigation
Conversation
…4283) ## 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. - **Installer default subagent model.** `host-setup/agent-safety/claude/install.py` sets `env.CLAUDE_CODE_SUBAGENT_MODEL` in the Claude Code settings file to the model of the tier `defaultTier` names in `spec/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 sets `CLAUDE_CODE_SUBAGENT_MODEL_FORCE`, and where the host sets it, it reports that and changes nothing. `--report`, which the bootstrap `--agent-status` step runs, reads each state. The installer has no removal path. - **Guard refusal.** `model-tier-guard.py` denies an `Agent` call naming no model whose `subagent_type` is listed under the tool's new `inheritingAgentTypes` (`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=1` still allows everything. A mapping without the key lists no type. `spec/validate.py` checks the key's shape. - **Rule text.** `AGENTS.md` "Model Tiers" (the `highest` bullet and the orchestrating-seat bullet), a new "Delegation" bullet and brief-template line, and a new `backlog-burndown` "Away Mode" bullet. The include regions carrying "Model Tiers" are regenerated by `scripts/build_dist.py`. - **Kit docs.** The kit README describes the setting, its ownership, and what it does not reach (the `Explore` and `Plan` types, and a fork). The host-safety spec's requirement 10 states the default and the refusal. ## Verification The full local gate set in `OPERATIONS.md` passed: 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, `jq` over the JSON, and `spec/validate.py`. `scripts/docker_lint.py` passed all its linters. ## Local review Three recorded `local-strict-review` passes at the `frontier` tier. The first two rounds' findings were fixed: the installer reads the mapping through the guard's `load_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 these `introduced` findings 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's `subagentModel` record. 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 next `defaultTier` model change that value reads as the host's own, the install leaves it, and `--report` prints 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 `--report` and `--agent-status`. - `introduced`, `AGENTS.md` "Model Tiers" `highest` bullet, the decided text says the kit refuses a no-model `Explore` or `Plan` dispatch 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](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…4287) ## Summary - Finding 1 of #4278, fixed by deletion: "The Lean Orchestrator" step 4 no longer says the last owed refill planner returning no group tells the orchestrator that no group can be dispatched. That signal could not fire when the eighth group came from a refill planner and no group stopped or parked. "The Round" step 6 judges, on its own text, whether any group can be dispatched before step 7, and nothing else in the repo points at the deleted sentence. The next sentence now names "The planner's brief" as its subject, since the deletion left "Its" pointing at a group. - Finding 2 (a planner owed with no free slot), declined: it costs at most one `frontier` dispatch that ranks the backlog and returns nothing, and it causes no double claim. - Finding 3 (the eight-group count not excluding a promotion fix), declined: it ends refills one group early, and it causes no double claim. - Both declines rest on the issue's own statement that none of the three causes a double claim, and on the lesson from #4215, #4230 and #4277 that each qualification of this refill text surfaced new edges. The cost is bounded and qualifying the text has not converged. - Generated copies regenerated with `build_dist.py`; `--check` passes. Closes #4278 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
## Summary - `spec/validate.py` refuses a fleet-wide `retire` row under a declared tree (use `accepted`) or under a `repoOwnedTrees` source (drop the row). - The drop error names only `accepted` for a path a tree carries. - A `repos`-scoped gaps row needs a fleet-wide retire row or an audit-visible hub-hosted path. The audit-visible set is one shared helper. - `render_report` admits a disposition row only when every `repos` entry is a string. - `audit.gap_rows` drops a scoped row with an empty `repos` list, with no net lines added to `spec/audit.py` (2983). - The no-ledger fixture is a git repository, so it now reaches the drop check. It also exposed an unbound `div_gaps` when the ledger is absent, now fixed. The shipped ledger passes `spec/validate.py` and the shipped-ledger test unchanged. ## Verification Full `tests/` run: 4524 passed, 12 skipped. ruff format and check clean, mypy clean. Pyright reports only errors on lines this change did not touch. ## Local review One pass, 0 [real], 5 [edge]. The edges are filed as #4285. Closes #4273 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Validation now excludes audit and report entries with empty or invalid repository lists. * Dropped paths carried by a tree must be marked as accepted; other dropped paths may be retired or accepted. * Retirement checks now reject paths that should remain visible in the audit and ensure scoped entries are reportable. * Missing-ledger validation now proceeds without a tracked-files listing error and can report dropped carried files. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Opus 5.5 <[email protected]>
) ## Summary - Pin every `trees` target in `CARRIED_TREE_PINS`, beside `CARRIED_PATH_PINS`. - Add `dropped_tree_errors` to the gate. A declared target needs a pin. A pinned target the manifest dropped needs a fleet-wide `accepted` gaps row recording the decision to leave its downstream copies. `retire` is refused for a tree target, since the audit compares retired rows to downstream file paths only and a directory row would delete nothing. - Scope is the maintainer's "accept-only pins" decision on #4272. `spec/audit.py` is unchanged. ## Verification - A fleet-wide `accepted` gaps row at a directory path passes `gap_scope_errors` and `retired_path_errors` (constructed-fixture test). - Read in `spec/audit.py` and `spec/fidelity_honesty.py`: an accepted row is outside `retired_paths`, and `deletion_candidates` is compared to downstream file paths, so a directory row never matches and `render_report` shows no live gap for it. - `spec/validate.py` passes on the shipped spec with no change to `spec/files.json` or `spec/divergences.json`. ## Review findings (local passes) Pass 1 (3 findings, all latent edges, none reached by a current input) and pass 2 (2 findings, same). Recorded on #4285 rather than fixed here: a stale `accepted` row on a re-declared target goes unflagged; a source-equal tree whose hub files become hub-only paths a directory row does not settle; an invalid declaration also yields a drop error; a target moved to an enclosing path still reads as dropped. Closes #4272 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
There was a problem hiding this comment.
🟡 Changes recommended
A critical fail-open path remains when inheritingAgentTypes contains a non-string entry, allowing Explore or Plan calls to bypass the refusal, and a diagnostic message is also incomplete.
2 open issues
What changed in this PR
Promotes develop to main while tightening subagent model defaults, retired-path validation, dropped-tree tracking, and generated skill documentation.
Changes:
- Sets the Claude Code default subagent model from the configured frontier tier and rejects untiered
ExploreandPlandispatches. - Adds validation for retired paths, dropped tree targets, malformed ledger entries, and empty repository scopes.
- Removes the unreachable backlog refill signal and synchronizes distributed skill content and digests.
| File | Description |
|---|---|
| tests/test_spec_validate.py | Tests model-tier validation, dropped-tree handling, retired paths, and missing-ledger behavior. |
| tests/test_fidelity_honesty.py | Tests graceful handling of malformed disposition repository entries. |
| tests/test_audit_helpers.py | Tests rejection of scoped gap rows with empty repository lists. |
| spec/validate.py | Adds model-tier, dropped-tree, and retired-path validation. |
| spec/model-tiers.json | Declares the frontier default and Claude Code agent types that inherit the session model. |
| spec/fidelity_honesty.py | Filters disposition rows containing non-string repository values. |
| spec/audit.py | Excludes malformed or empty scoped repository lists from audit processing. |
| host-setup/agent-safety/README.md | Documents the default subagent model and untiered dispatch refusal. |
| host-setup/agent-safety/claude/test_model_tier_guard.py | Tests inheriting-agent dispatch decisions and refusal behavior. |
| host-setup/agent-safety/claude/test_install.py | Tests subagent model ownership, defaults, force settings, stamps, and reporting. |
| host-setup/agent-safety/claude/README.md | Documents installer behavior and model-tier handling. |
| host-setup/agent-safety/claude/model-tier-guard.py | Refuses untiered dispatches for configured inheriting agent types. |
| host-setup/agent-safety/claude/install.py | Installs and reports the configured default subagent model. |
| AGENTS.md | Updates model-tier and delegation guidance. |
| .github/skills/local-strict-review/SKILL.md | Regenerates local review guidance with model-tier instructions. |
| .github/skills/decision-triage/SKILL.md | Regenerates decision-triage guidance with model-tier instructions. |
| .github/skills/backlog-burndown/SKILL.md | Updates backlog-burndown guidance and removes the unreachable refill signal. |
| .claude-plugin/fleet-skills/skills/local-strict-review/SKILL.md | Updates the Claude fleet distribution copy of the local review skill. |
| .claude-plugin/fleet-skills/skills/decision-triage/SKILL.md | Updates the Claude fleet distribution copy of the decision-triage skill. |
| .claude-plugin/fleet-skills/skills/backlog-burndown/SKILL.md | Updates the Claude fleet distribution copy of the backlog-burndown skill. |
| .claude-plugin/fleet-skills/.source-digests/local-strict-review | Refreshes the generated local review skill source digest. |
| .claude-plugin/fleet-skills/.source-digests/decision-triage | Refreshes the generated decision-triage skill source digest. |
| .claude-plugin/fleet-skills/.source-digests/backlog-burndown | Refreshes the generated backlog-burndown skill source digest. |
| .agents/skills/local-strict-review/SKILL.md | Updates the authored local review skill guidance. |
| .agents/skills/decision-triage/SKILL.md | Updates the authored decision-triage skill guidance. |
| .agents/skills/backlog-burndown/SKILL.md | Updates authored away-mode guidance and removes the unreachable refill signal. |
Review effort: Lite
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4290 +/- ##
==========================================
- Coverage 79.21% 78.95% -0.26%
==========================================
Files 42 42
Lines 15502 15625 +123
==========================================
+ Hits 12280 12337 +57
- 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
|
## Summary The note for an unset `CLAUDE_CODE_SUBAGENT_MODEL` ended at "the frontier tier's", so install and report output named no model. It now ends "tier's model.", the same wording `foreign_subagent_note` uses. Raised by the promotion review on #4290 as a P2 [real] finding. ## Verification `test_install.py` runs 237 tests, all passing. One `local-strict-review` pass at the `frontier` tier found nothing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
A critical finding remains: the report verdict ignores missing or outdated subagent-model settings, allowing stale configurations to incorrectly return CURRENT instead of failing.
1 open issue
2 resolved since last review
Review effort: Lite


Summary
Promotes
developtomain. It carries these changes:frontiertier and refuses an untieredExploreorPlandispatch.backlog-burndownlean orchestrator.Closes #4278
Closes #4273
Closes #4272
🤖 Generated with Claude Code