Skip to content

Add comprehensive missing attribution test suite#915

Open
jwiegley wants to merge 6 commits intomainfrom
johnw/missing-notes
Open

Add comprehensive missing attribution test suite#915
jwiegley wants to merge 6 commits intomainfrom
johnw/missing-notes

Conversation

@jwiegley
Copy link
Copy Markdown
Collaborator

@jwiegley jwiegley commented Apr 1, 2026

Summary

  • 27 new integration tests covering 18 failure hypotheses (H1-H18) for silent AI attribution loss
  • Exercises JSONL corruption, SHA mismatches, partial checkpoints, binary files, merge commits, INITIAL file corruption, multi-agent conflicts, and forward-compatibility edge cases
  • All tests pass (26 ok, 1 ignored observational)

Test plan

  • cargo test --test integration missing_attribution -- --test-threads=1 passes (26 ok, 1 ignored)
  • cargo fmt -- --check passes
  • cargo clippy --all-targets -- -D warnings passes

🤖 Generated with Claude Code


Open with Devin

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 5 additional findings.

Open in Devin Review

Copy link
Copy Markdown

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@jwiegley jwiegley force-pushed the johnw/missing-notes branch from f315e33 to 4dbbd4b Compare April 1, 2026 20:36
@jwiegley jwiegley changed the base branch from main to johnw/bug-fix April 1, 2026 20:36
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 found 1 new potential issue.

View 10 additional findings in Devin Review.

Open in Devin Review

Base automatically changed from johnw/bug-fix to main April 1, 2026 22:10
devin-ai-integration[bot]

This comment was marked as resolved.

jwiegley and others added 5 commits April 1, 2026 23:35
Document 18 failure hypotheses (H1-H18) covering every identified
scenario where AI attribution can be silently lost: JSONL corruption,
SHA mismatches, partial checkpoints, binary files, merge commits,
INITIAL file corruption, and multi-agent conflicts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 integration tests covering 18 failure hypotheses for silent AI
attribution loss. Tests exercise JSONL corruption, SHA mismatches,
partial checkpoints, binary files, merge commits, INITIAL file
corruption, multi-agent conflicts, and forward-compatibility edge
cases. All tests pass (26 ok, 1 ignored observational).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Three missing_attribution tests (H6d, H7a, H18) intentionally create corrupt
checkpoint data to document failure modes. In daemon mode, the daemon reports
errors when processing these, causing wait_for_daemon_completion_sessions to
panic before the test can check the outcome. Add allow_daemon_errors flag to
TestRepo so these tests can indicate that daemon errors are expected.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jwiegley jwiegley force-pushed the johnw/missing-notes branch from dd94f99 to b274ec6 Compare April 2, 2026 06:38
The allow_daemon_errors flag was only checked in
wait_for_daemon_completion_sessions but not in the structurally
identical wait_for_daemon_completion_count or
wait_for_daemon_total_completion_count. This could cause tests
that set allow_daemon_errors(true) to still panic if their
execution path went through the other wait functions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

3 participants