Skip to content

feat: dev-only simulate-authorship command#808

Open
svarlamov wants to merge 1 commit intomainfrom
dev/simulate-authorship
Open

feat: dev-only simulate-authorship command#808
svarlamov wants to merge 1 commit intomainfrom
dev/simulate-authorship

Conversation

@svarlamov
Copy link
Copy Markdown
Member

@svarlamov svarlamov commented Mar 26, 2026

Summary

  • Adds git ai simulate-authorship --branch <branch> command for generating test repos with realistic AI authorship notes
  • Gated behind #[cfg(debug_assertions)] — completely stripped from release builds, not in docs or help output
  • Walks commits on a branch, attaches synthetic authorship notes rotating through cursor/windsurf/claude/copilot/codex/amp with proper schema v3 format
  • Supports --base <ref>, --count/-n, --ai-ratio, --seed (deterministic PRNG), and --dry-run

Test plan

  • Debug build compiles and command is available
  • Release build compiles and command is absent (Unknown git-ai command)
  • cargo clippy --all-targets -- -D warnings passes
  • cargo fmt -- --check passes
  • All 1288 unit tests pass
  • Dry-run mode shows expected output
  • Actual run writes valid parseable authorship notes (verified with git notes --ref=ai show)
  • --base, -n, --ai-ratio, --seed flags work correctly
  • CI green

🤖 Generated with Claude Code


Open with Devin

…ation

Adds `git ai simulate-authorship` behind #[cfg(debug_assertions)] so it
is stripped from release builds.  The command walks commits on a branch
and attaches synthetic authorship notes (rotating through cursor,
windsurf, claude, copilot, codex, amp) to simulate realistic git-ai
usage.  Supports --base, --count, --ai-ratio, --seed, and --dry-run
for flexible test repo generation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

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.

1 participant