Skip to content

Report Downstream Copies When a Whole Tree Declaration Is Dropped - #4288

Merged
ptr727 merged 2 commits into
developfrom
feature/4272-tree-target-pins
Nov 19, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/4272-tree-target-pins

Conversation

@ptr727

@ptr727 ptr727 commented Nov 19, 2026

Copy link
Copy Markdown
Owner

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 Report Downstream Copies When a Whole Tree Declaration Is Dropped #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

ptr727 and others added 2 commits November 19, 2026 10:20
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]>
Copilot AI lite review requested due to automatic review settings November 19, 2026 18:24
@ptr727

ptr727 commented Nov 19, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 3f2817b3a14adef58d93af2031d601d6f4c90800, the content this pull request carries at that commit against develop, and it recorded 2 findings.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.95%. Comparing base (b38e084) to head (3f2817b).
⚠️ Report is 253 commits behind head on develop.

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     
Flag Coverage Δ
python-3.13 78.95% <100.00%> (-2.66%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727
ptr727 merged commit c0cfe26 into develop Nov 19, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/4272-tree-target-pins branch November 19, 2026 18:41
ptr727 added a commit that referenced this pull request Nov 19, 2026
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants