Auditability and traceability are not the same thing
Auditability means that a change can be checked using retained artifacts. Traceability adds a continuous link from task to outcome, while the chain of accountability shows who approved the decision and on what grounds.
A complete Claude transcript is often too noisy and may contain sensitive data. For a team, short curated notes are more useful because they retain relevant evidence and remove unnecessary context.
Task → TASK_SPEC.md → EVIDENCE_LOG.md → diff/commits
→ tests/REVIEW_NOTES.md → PR_DESCRIPTION.md → final decisionPurpose of the main artifacts
| Artifact | What it records |
|---|---|
| TASK_SPEC.md | Goal, boundaries, and acceptance criteria |
| CODEBASE_INVENTORY.md / API_MAP.md | Analysis sources and system context |
| EVIDENCE_LOG.md | Symptom, hypotheses, files, checks, and rationale |
| Git diff and commits | Actual scope and history of changes |
| REVIEW_NOTES.md / QUALITY_GATES.md | Review results and quality checks |
| PR and decision gate | Approval evidence and the final human decision |
Curated AI-assisted notes in a PR
The complete transcript can be kept locally for investigation, but the team should see only a relevant, sanitized summary. Traceability does not justify publishing secrets, PII, or raw production output.
- where Claude helped: discovery, planning, testing, or editing;
- what the human checked or approved before changes were made;
- which checks were actually run and what their result was;
- which residual risk or scope remained outside the change;
- who made the final decision.
Step-by-step review of the change history
- Compare the PR with the original TASK_SPEC and acceptance criteria.
- Review the actual diff and confirm that it stayed within scope.
- Check the commit history and the intelligible order of engineering steps.
- Compare claimed tests with real logs or CI results.
- Confirm that the approval belongs to the responsible role.
- Remove sensitive data from the evidence before sharing it.
git diff origin/main...HEAD
git log --oneline --decorate -5
git show --stat HEADA small diff makes the decision reproducible
An unclear commit such as “fix stuff” weakens the audit trail. Separate commits for the regression test, minimal fix, and updated PR notes make the causal link visible and allow part of the work to be rolled back safely.
If the diff has become too broad, split it or return it to the original task boundary instead of explaining extra code only through an AI-generated summary.
Canonical lesson source · JavaRush
Open JavaRush material