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.

Artifact chain
Task → TASK_SPEC.md → EVIDENCE_LOG.md → diff/commits
→ tests/REVIEW_NOTES.md → PR_DESCRIPTION.md → final decision

Purpose of the main artifacts

ArtifactWhat it records
TASK_SPEC.mdGoal, boundaries, and acceptance criteria
CODEBASE_INVENTORY.md / API_MAP.mdAnalysis sources and system context
EVIDENCE_LOG.mdSymptom, hypotheses, files, checks, and rationale
Git diff and commitsActual scope and history of changes
REVIEW_NOTES.md / QUALITY_GATES.mdReview results and quality checks
PR and decision gateApproval 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

  1. Compare the PR with the original TASK_SPEC and acceptance criteria.
  2. Review the actual diff and confirm that it stayed within scope.
  3. Check the commit history and the intelligible order of engineering steps.
  4. Compare claimed tests with real logs or CI results.
  5. Confirm that the approval belongs to the responsible role.
  6. Remove sensitive data from the evidence before sharing it.
Read-only commands for review
git diff origin/main...HEAD
git log --oneline --decorate -5
git show --stat HEAD

A 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