Skip to main content
Skill reflection 4 min read Updated

total-recall

Maintain an append-only TSV decision trail and audit its evidence against the transcript. Use when explicitly requesting a persistent audit trail for autonomous work, multi-phase migrations, or risky refactors.

npx skills add MAHDTech/agent-skills --skill total-recall
View source

Total Recall

Invocation: Start only when the user explicitly requests this workflow.

Record a permanent, human-reviewable memory trail of what was decided, why, and on what evidence during autonomous or long-running work.

When an agent works unattended, across multiple phases, or makes irreversible technical choices, a human reviewer needs to reconstruct what happened without reading thousands of lines of transcript or re-running the entire workflow. Maintain a single canonical decision trail so the work is auditable, reproducible, and verifiable.

The Log Format

A single TSV (Tab-Separated Values) file with one row per decision or checkpoint:

  • ts: ISO8601 UTC timestamp (YYYY-MM-DDTHH:MM:SSZ).
  • phase: The current lifecycle phase or work stream (e.g. discovery, harness, refactor, verification).
  • decision: What was chosen or executed, expressed in a single line.
  • why: The plain-language rationale. State the direct reason or constraint without buzzwords or robotic jargon.
  • evidence: A concrete pointer that verifies the claim (e.g. commit SHA, PR number, file:line, test output path, screenshot artifact). Never multi-line prose.
  • result: The concrete outcome or verified state (e.g. tests green, reverted, pixel-diff 0, INCONCLUSIVE, open).

Start a clean decision log by copying the header from resources/manual/decision-log-template.tsv.

Example Decision Log

tsphasedecisionwhyevidenceresult
2026-05-24T09:02:00ZframeCounted work first, about 100 components and 75 hoursNeeded scope bounds before starting autonomous runcommit 3a9f1c2Identified 5 blockers before starting
2026-05-24T09:40:00ZharnessCaptured baseline screenshots before modifying stylesEnsure visual regression harness catches deviationsscripts/snapshot.sh, baseline/Saved 120 reference snapshots
2026-05-24T11:15:00ZwidgetMigrated component styles to tailwind utilitiesKeep changes surgical and behavior identicalcommit 7c21e0a, pixel-diff 0Visual diff 0, tests pass
2026-05-24T12:30:00ZwidgetDiscarded subagent output due to empty visual diffsVerified source files directly rather than trusting summaryworktree resetReverted and added strict validation

Logging a Row

Write entries in plain, direct language as if briefing a colleague. Name the concrete change, command, or file instead of abstract summaries.

Using the Helper Script

Use the helper script at resources/manual/log.sh, relative to this skill’s directory, to guarantee well-formed TSV entries and guard against formula injection:

<skill-dir>/resources/manual/log.sh <logfile> <phase> <decision> <why> <evidence> <result>

The script automatically:

  1. Stamps each row with an ISO8601 UTC timestamp.
  2. Initializes headers on first use if the log file does not exist.
  3. Strips internal tab and newline characters.
  4. Prefixes cells starting with =, +, -, or @ with a single quote (') to prevent spreadsheet formula injection.

What to Log

  • Major technical forks: Choices between architectural approaches or trade-offs.
  • Milestone checkpoints: Completion of discrete units with their associated test verification.
  • Pivots and rollbacks: Any approach abandoned or reverted, along with the triggering evidence.
  • Blockers and anomalies: Unresolved issues or unexpected environment behaviors surfaced.
  • Loop iterations: In autonomous loops, log one row per iteration summary.

Do not log trivial, self-evident edits (e.g. fixing a typo, running a standard linter).

Where the Log Lives

  • Working artifact (default): Keep the file at decisions.tsv in the repository root or .audit/<task-slug>.tsv for parallel tasks. Keep it local and uncommitted for routine work.
  • Committed record: Commit the log when working on large cross-system migrations, high-risk refactors, or when human reviewers explicitly require a persistent audit trail.

Core Rules

  1. One row, one decision: Every row must represent a single, focused checkpoint fitting entirely on one line.
  2. Append-only integrity: Never edit or delete existing rows. If a prior decision is reversed or found flawed, append a new row recording the pivot and rationale.
  3. Concrete evidence pointers: Evidence must point to a reproducible artifact, commit SHA, file line, or test run.

Transcript Audit

Before finishing a run, verify that the log reflects ground truth by auditing it against the conversation transcript:

  1. Verify actions: Confirm every logged decision corresponds to an actual command or file modification.
  2. Verify evidence: Check that listed commits, test outputs, or files actually exist and prove the claimed result.
  3. Check for missing pivots: If an approach was attempted, failed, and abandoned during the run, ensure that pivot is recorded.
  4. Flag noise: For a trivial or redundant row, append a row that marks it as noise and names the row’s timestamp. Leave the original row in place.

Cross-Model Review

For high-stakes tasks where subagent execution is available, spawn a subagent on an alternative model family to provide fresh-eyes review:

  1. Pass the decision log and execution summary to the reviewing subagent.
  2. Have the reviewer flag:
    • Weak, missing, or unverifiable evidence pointers.
    • Skipped verification steps or unverified assertions.
    • High-risk choices or subtle scope creep.
  3. Conclude the final summary with an Attention section citing findings from the reviewer.

Reviewing the Trail

  • In the terminal: Render formatted TSV tables using column:

    column -s$'\t' -t decisions.tsv | less -S
  • On GitHub / Web: GitHub natively renders committed TSV files as interactive, sortable tables.