Repository navigation
Report Downstream Copies When a Whole Tree Declaration Is Dropped - #4288
Conversation
Pin every tree target the manifest declares in CARRIED_TREE_PINS, and add dropped_tree_errors to the gate. A pinned target the manifest no longer declares needs a fleet-wide accepted gaps row, since the audit reads no directory copy. A retire row is refused for a tree target, because the audit compares retired rows to downstream file paths only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
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.
🟢 Approval recommended
No active review issues remain, and the changes add targeted validation and tests for historical tree targets, dropped declarations, accepted directory rows, and integration with the validation gate.
No open issues 🎉
What changed in this PR
Extends spec validation to track removed whole-tree declarations and require an explicit fleet-wide acceptance decision for downstream directory copies.
Changes:
- Adds historical pins for declared tree targets.
- Validates dropped tree targets and rejects missing or unsupported dispositions.
- Adds focused tests for tree pinning, accepted directory rows, shipped data, and validation-gate integration.
| File | Description |
|---|---|
| tests/test_spec_validate.py | Adds tests covering tree-target pinning, dropped-tree dispositions, accepted directory rows, shipped data, and validation-gate integration. |
| spec/validate.py | Defines historical tree-target pins, validates dropped tree declarations, and wires the new check into the main validation gate. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4288 +/- ##
===========================================
- Coverage 81.60% 78.95% -2.66%
===========================================
Files 26 42 +16
Lines 9070 15625 +6555
===========================================
+ Hits 7402 12337 +4935
- Misses 1668 3288 +1620
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:
|
…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
treestarget inCARRIED_TREE_PINS, besideCARRIED_PATH_PINS.dropped_tree_errorsto the gate. A declared target needs a pin. A pinned target the manifest dropped needs a fleet-wideacceptedgaps row recording the decision to leave its downstream copies.retireis refused for a tree target, since the audit compares retired rows to downstream file paths only and a directory row would delete nothing.spec/audit.pyis unchanged.Verification
acceptedgaps row at a directory path passesgap_scope_errorsandretired_path_errors(constructed-fixture test).spec/audit.pyandspec/fidelity_honesty.py: an accepted row is outsideretired_paths, anddeletion_candidatesis compared to downstream file paths, so a directory row never matches andrender_reportshows no live gap for it.spec/validate.pypasses on the shipped spec with no change tospec/files.jsonorspec/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
acceptedrow 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