Skip to content

fix(drive-local): report runs the acceptance argv, not just prints DoD (#271) - #375

Merged
kjgbot merged 1 commit into
mainfrom
fix/drive-local-package-scope-271
Sep 12, 2026
Merged

kjgbot merged 1 commit into
mainfrom
fix/drive-local-package-scope-271

Conversation

@kjgbot

@kjgbot kjgbot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Closes #271. report now runs runChecks(pkg) (same as verify), so an unattended local drive tick can no longer exit PACKAGE_VERIFIED with an unmet DoD. Scope refusal was already enforced via checkScope in verifiedPackage; this makes the DoD assertion executable rather than decorative.

Test plan

  • New tests: report refuses on unmet DoD (unfixed value.txt); prints PACKAGE_VERIFIED only after argv passes
  • Existing tests updated so in-scope simulations preserve DoD state
  • 10/10 review tests pass locally

Note

Medium Risk
Changes unattended local-drive gating so report can fail where it previously succeeded; behavior is intentional but affects automation exit codes.

Overview
report now enforces Definition of Done the same way as verify, not only by validating the acceptance contract and echoing DoD lines.

Before printing the diff and DoD, report runs runChecks(pkg) and re-runs verifiedPackage(), so an unattended local drive tick cannot exit successfully with PACKAGE_VERIFIED while the working tree still fails the pinned acceptance argv. Successful reports also log PACKAGE_VERIFIED: N check(s), matching the verify path.

Tests cover refusal when src/value.txt stays broken, success only after fixes, and updated fixtures so in-scope “suite effect” simulations do not clobber DoD-required state.

Reviewed by Cursor Bugbot for commit c970fa8. Bugbot is set up for automated code reviews on this repo. Configure here.

#271)

Before: `report` only called verifiedPackage() which validates the acceptance
contract's integrity (checkScope + validateAcceptance argv-shape checks) then
printed the DoD strings verbatim. An unattended tick could exit
"REPORT ... DoD: X" even when the DoD was unmet — the argv was never executed.

After: `report` runs the same runChecks(pkg) path as `verify` (which was
already correct), then re-asserts the package + prints REPORT lines +
PACKAGE_VERIFIED. Scope refusal is unchanged (was already enforced via
checkScope in verifiedPackage). The DoD is now executable in report, not
decorative.

Tests:
- new: report refuses when the acceptance argv fails against the working tree
- new: report prints PACKAGE_VERIFIED only after the argv passes
- existing "reporting after SDK suite effects" tests: updated so the in-scope
  simulation preserves the DoD-required state (writing "broken" back would
  correctly fail post-#271; existing tests exercised scope enforcement, not
  DoD, so the fixture data was tightened to isolate the invariant)
- existing "allowed untracked change" test: now also fixes value.txt so the
  DoD is met alongside the untracked file addition

10/10 review tests pass locally.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Session-Id: efeda5df-9b7c-48d4-b2ce-957f5bef0a82
@coderabbitai

coderabbitai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 8e7744c4-ef15-4fc9-af5f-ce1edd5e2878


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

Comment @coderabbitai help to get the list of available commands.

@kjgbot
kjgbot merged commit 3a7917d into main Sep 12, 2026
4 of 5 checks passed
@kjgbot
kjgbot deleted the fix/drive-local-package-scope-271 branch September 12, 2026 18:37
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.

flows: drive-local verify+report do not enforce package scope; broken implementation reports PACKAGE_VERIFIED

1 participant