feat(audit): attribution on --base added rows#177
Conversation
…e 4.1) Project rows to requiredColumns and JSON.stringify for stable keys aligned with computeDelta / diffRows identity; unit tests cover all v1 deltas.
Tag ref-sourced audit deltas with introduced/inherited finding keys; share summary collapse across CLI/MCP/HTTP; retire plan + lift docs.
Add architecture § heading, MCP instructions row, roadmap cross-refs; correct wave doc contract paths.
Tests for inherited/deps attribution and baseline no-attribution; consumer-surface parity (CLI help, rule, skill, MCP, README, changeset); delete completed agent-enrichment-wave plan per docs-governance.
Require parallel Task subagents per pass; add prompt template, JSON finding shape, merge/dedupe rules, and explicit anti-inline-review rule.
🦋 Changeset detectedLatest commit: 9156f6d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (17)
📝 WalkthroughWalkthroughThis PR implements audit delta attribution, enabling ChangesAudit Delta Attribution
Harden-PR Skill Enhancement
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Summary
audit --base <ref>(CLI / MCP / HTTP), eachaddedrow carriesattribution: introduced | inherited— branch-new vs pre-existing at merge base — for all v1 deltas (files,dependencies,deprecated) via stable finding keys inaudit-engine.ts.--summaryaddsadded_introduced/added_inheritedper delta; baseline-prefix audits unchanged (no attribution field).audit-delta-attribution.md, completedagent-enrichment-wave.md); lifts contract toarchitecture.md,glossary.md, androadmap.md; updates agent surfaces (skill, rule, MCP instructions, CLI help, README) and changeset.harden-prskill: mandatory parallelTasksubagents, JSON finding schema, prompt template, merge/dedupe rules.Test plan
bun test src/application/audit-engine.test.ts src/application/audit-worktree.test.tsbun run checkcodemap audit --base HEAD~1 --jsonon a git repo with driftSummary by CodeRabbit
New Features
audit --basecommand, distinguishing whether added items are newly introduced on the branch or inherited from the merge base.added_introducedandadded_inheritedbreakdown counts.Documentation