feat(drift): add --artifacts-dir, and say where the default actually lands (0.1.0-alpha.19) - #49
Conversation
…lands `audit` took `--artifacts-dir`; `drift` only took `--output`, so there was no way to place the report short of naming the exact file. One correction to the diagnosis, and it matters for the workaround: the default does not write into the target repo. It writes into `process.cwd()` — `./docs/audits/artifacts/<project>-<date>/drift-report.md` relative to wherever you are standing. Verified: run from /tmp against packages/vision and the report lands in /tmp, with nothing written to vision at all. That is why lc-classic-starter got littered — the run happened from inside it. The same command from anvil's directory litters anvil instead, which is the worse failure because the artifacts look like they belong there. So the flag alone would not have closed it. The usage text said "Default output: docs/audits/artifacts/..." with no frame, which reads as relative to the repo being scanned. Both the CLI help and the docs now say relative to your current directory, not to the audited repo. `--output` still wins over `--artifacts-dir`, and the audit's own invocation is unaffected because it already passes `--output` explicitly. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 34 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (12)
Comment |
Closes the flag gap you flagged — with one correction to the diagnosis that changes what the fix had to be.
The default doesn't write into the target repo
It writes into
process.cwd(). Verified: run from/tmpagainstpackages/visionand the report lands in/tmp, with nothing written to vision at all.That's why lc-classic-starter got littered — the run happened from inside it. The same command from anvil's directory litters anvil instead, which is the worse failure, because the artifacts then look like they belong there.
So the flag alone wouldn't have closed it. The usage text said
Default output: docs/audits/artifacts/...with no frame, which reads as relative to the repo being scanned. Both the CLI help and the docs now say relative to your current directory — not to the audited repo.What shipped
drift --artifacts-dir <dir>→ writes<dir>/drift-report.md, matchingaudit--outputstill wins over--artifacts-diraudit's own drift invocation is unaffected — it already passes--outputexplicitlyThe
cli-target-contracttest pinnedparseArgs's exact shape, so it's updated and extended with flag coverage.Verify
lint · format:check · release:pin --check · typecheck · 529 pass / 0 fail · verify:self-audit-proof.
🤖 Generated with Claude Code