trail-decisions
Skill9 starsChanged 3 months agoMITView on GitHub
Candidate: Keep a decision trail (a.k.a. show-your-work) while implementing, so a later reviewer can audit the choices and not just the diff. A TSV appended one row per real decision (what, why, evidence), written in the moment, never reconstructed. Use at the start of any implementation task an agent runs unattended or that a human reviews after stepping away. Consumed by review-gate's choice-audit lens. Experimental and awaiting baseline evaluation.
In this repository19 other files it gives its agents.
- before-afterSkill
- factory-loopSkill
- handoffSkill
- herdr-workstreamsSkill
- performance-proofSkill
- quality-baselineSkill
- resilience-auditSkill
- security-reviewSkill
- signature-reproSkill
- simplifySkill
- software-factorySkill
- test-strengthSkill
- work-intakeSkill
- workstream-reconcileSkill
- xrefSkill
- issue-intakeSkill
- record-a-caseSkill
- review-gateSkill
- solution-gateSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Complete when: every choice meeting the bar has a row, appended when it happened.
- Distinctive: line 42
Complete when: no row was edited or deleted.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Trail decisions
A diff shows what changed. It never shows the choices behind it: the buffer that got doubled, the port derived from a hash, the daemon assumed not to restart. Those choices compile and pass tests and still ship the wrong behavior — the fix looks fine, the decision was bad. The only way to review a choice is to see it stated. This skill makes the writing agent state its choices as it makes them, so the reviewer audits reasoning instead of re-deriving it from code.
It is PAPERCUTS.md for the act of building: a line captured in the moment, append-only, worthless until something else sweeps it. PAPERCUTS is swept by /pulse; this trail is swept by review-gate's choice-audit lens. One difference decides whether it earns its place: a papercut records friction you already felt, so it is self-justifying; a decision row records a choice that did not feel wrong when you made it, so its value is realized only when a second actor questions the consequence. Write the trail anyway. An honest record of what you chose is useful to the next reader even if no lens ever audits it.
1. Open the trail
Resolve the canonical Railly/skills checkout through RAILLY_SKILLS_REPO, ~/Programming/railly/skills, or ~/railly-skills; the canonical resolver is scripts/resolve-source-root.mjs. Start foundry/trails/<repo>/<YYYY-MM-DD>-<branch-or-mission>.tsv there at the start of the task. Never place the trail in the target repo, .agents/skills, .claude/skills, or another installed copy. A trail reconstructed from the finished diff is fiction: it records the choices you can now see were made, not the ones you actually weighed. Use one header row, then one row per decision:
ts phase decision why evidence result- ts — ISO8601, when the decision was made.
- phase — the workstream or slice it belongs to.
- decision — what you chose, one line. If it does not fit on one line the decision is not crisp yet; sharpen it, do not wrap it.
- why — the reason in plain words. The reason is the auditable part; a decision with no stated why is an undeclared choice wearing a row.
- evidence — a pointer that proves it happened: commit SHA,
file:line, PR number, an artifact or trace path. Never a paragraph, never a retelling. - result — the outcome or the predicate you are now betting on ("assumes the daemon does not restart mid-session").
Complete when: the file exists with its header before the first edit lands.
2. Append as you decide
Append a row the moment a choice is made, not in a batch at the end. Log a decision when you: pick one approach over an alternative you considered; make an assumption about runtime, environment, or an external contract; take a symptom fix knowing the root cause is elsewhere; hardcode, cap, or derive a value; or work around something. Skip the mechanical (renames, formatting, obvious plumbing) — a trail that logs everything logs nothing, the signal is the choices a reviewer would want to question.
The bar for a row: would a reviewer who trusted the diff still want to ask "why this and not that?" If yes, it is a row. The buffer-doubling fix that happens to pass is exactly this: it earns a row that says "doubled the buffer to clear the failing case" with the honest why, and that row is what lets the reviewer ask the question the green tests never would.
Complete when: every choice meeting the bar has a row, appended when it happened.
3. Append-only, fix the log not the story
A wrong call gets a new row that supersedes it, never an edit or a delete. The trail is a history, not a final state; the superseding row (with its own why) is itself evidence of how the work moved. If the finished work diverged from what a row claims, the row is wrong and gets superseded — fix the log to match reality, never reword reality to match the log. The one dishonesty this skill cannot survive is a trail groomed to look clean.
Complete when: no row was edited or deleted; every reversal is a superseding row.
4. Self-audit before handing back
Before returning the work, request a reviewer on a different model family than the writer to read .decisions.tsv against the transcript and the diff, and flag decisions that look risky, suboptimal, or unsupported by their stated evidence. On the first Agent schema or capability error, inspect capability once and never retry the identical invalid call. Fall back to a visible Herdr worker, then a sequential isolated pass, then record the audit as unavailable. A sequential self-audit does not satisfy model-family independence.
Complete when: the trail has been read by a different-family auditor and its flagged rows are attached to the handoff, or execution_mode, degraded_from, and the precise independence gap are recorded.
Where this connects
- review-gate consumes the canonical trail path from the task handoff: when the file exists, the choice-audit lens loads it as a first-class review surface and questions each declared decision by its consequence, not by whether the diff looks right. Without a trail that lens has nothing to fire on. This skill is the input that makes it exist.
- Provenance the choice-audit lens will carry: Taelin's MatMul buffer-doubling (a symptom fix that passed and shipped the wrong behavior; only caught by asking what the agent decided) plus four agent-browser misses where a declared-looking decision was the bug — most cleanly #1041, a daemon port derived from a djb2 hash of the session name, fine in the diff, blocked by Hyper-V at runtime (maintainer-confirmed).
Status
Experimental. The honest gap: the trail's value depends on the reviewer questioning it, and that half is measured by review-gate's choice-audit lens, which is itself a candidate awaiting a recorded miss it caught that a mapless review did not. Adopt this skill in a real implementation pipeline, collect two or three genuine trails, then promote the lens on that evidence — not before. Emitting the trail must be triggered by the writing workflow (a goal template line, or a hook), not left to be invoked by memory; a decision log nobody remembers to start is the empty file that proves nothing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

