/harness-core:decision-logfrom harness-core
Maintains an append-only decision log with indexed entries and YAML metadata that survives context resets. Records decisions, rejections, and corrections for retrieval across sessions.
Ships in harness-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A fresh session inherits what was written down and nothing else. The log carries a decision across that boundary, so it is written for the cold read: someone who was not there, searching months later, with no memory to fill the gaps. What that reader needs above all is to tell, from a scan, which entry holds what they came for.
## 2026-08-07 Dropped the write-through cache
```yaml
type: decision
status: closed
tags: [architecture]
source: docs/backlog.md
```
Four keys, always present: type — one of decision (a choice made), amendment (a frozen scope changed, from workorder), rejection (a human turning an artifact down, from sensory-gate), correction (a human correcting the work), closeout (a task finished and reported, from honest-closeout). A value nothing produces is a value the format check spends its strictness guarding for no one. status — open if this entry leaves something for a later entry to close (a gate awaiting disposition, a decision flagged for revisit), closed if the entry is self-contained. Set once, at write time, like every other part of the entry — an entry that later gets closed is closed by a new entry pointing back at this one with a WikiLink (§4), never by editing this block. tags — free-form labels for grouping and filtering, [] if none apply. source — path from the project root to where the full detail lives, or the bare word none.
A gate or a closeout entry carries extra keys beyond these four (§5) — same idea as Obsidian properties, where tags/aliases/cssclasses are the defaults and anything else you add is still a property.
This block is what makes an entry parseable by machine and skimmable by human. Write it at the time — it is the one part of an entry that cannot be reconstructed afterwards.type/status/tags/source) so a decision that later graduates into its own note file needs no field rework, just the --- delimiters swapped in. See CASES.md if you're deciding whether to split this file into one-note-per-decision instead — that trade is real, and not the one this format makes.A log that nothing points at is read by whoever already knew it was there. What makes it reach a session that has no memory of this one is a line in the project's always-loaded file — AGENTS.md, CLAUDE.md, or the equivalent file required by the agent harness:
## Decision log
`docs/decisions.md` — the decisions, rejections, and corrections made on this project,
newest last. Read it before starting work here.
Install that line the first time this project gets a log, and the read side runs itself from then on: every session loads the pointer, and the pointer names the file and the moment to open it. Where a project already carries such a section, add to it rather than starting a second one.
source key. When no home exists yet, create it in this same turn — a decision whose only home is one log entry is a decision the next search will not surface.correction the moment a human corrects the work — a stop, a diagnosis you were handed, a call you got wrong and were told so. The entry names what changed and who supplied it, because this is the source the closeout's account of human input is built from, and it cannot be reconstructed later from a session's memory of itself.An entry that resolves, supersedes, or explains another one names it with a WikiLink instead of a loose description — [[docs/decisions.md#2026-08-01 Picked the read-through cache]] for another file, [[#2026-08-01 Picked the read-through cache]] for a heading in this same file. Always the relative path from the project root plus the .md extension, never a bare note name: this file is read with zero dependencies (nothing here requires an app installed to be readable), so a link has to stay resolvable by a plain grep for the target heading text, not only by a vault index. Obsidian, if installed, additionally renders it clickable and updates it automatically when the target file is renamed; without Obsidian, [[x]] still reads as "the entry titled x has the detail" to a human or an LLM scanning the raw file, and the reader follows it by searching for the heading text — one grep, not a broken promise.
Use it for what plain prose can't carry as a fact: a status: closed decision points at the entry that closed it; a rejection points at the backlog item its surviving need lives in (§3.4); a handoff points at the decision-log entries it's built from rather than restating them (handoff skill, §"Write for the reader, not the writer").
A gate open and its later human disposition carry extra keys beyond the four core ones, because there is more to record than what/where:
## 2026-08-07 Opened review gate
```yaml
type: decision
status: open
tags: [gate]
source: artifacts/order.md
gate: review-01
batch: review-01
files: render.png=sha256-...
```
The status endpoint batch is ready for human review.
## 2026-08-07 Approved review gate
```yaml
type: decision
status: closed
tags: [gate]
source: artifacts/gate/review-01/approved.txt
disposition: review-01
reviewer: Ada
scope: all files in batch
archive: none
```
Ada approved the reviewed batch. Closes [[#2026-08-07 Opened review gate]].
The opening entry is written before review, the disposition entry after the human answer — two entries, not one edited in place, because the log is append-only (§1). A rejected batch uses the existing rejected-archive/<gate-folder>/ path in archive.
A closeout entry needs only the four core keys — source is the path to the report:
## 2026-08-07 Closed demo verification
```yaml
type: closeout
status: closed
tags: []
source: artifacts/closeout.md
```
The task passed its acceptance lines and independent test.
A plain decision, unremarkable in shape:
## 2026-08-06 Dropped the write-through cache, kept the staleness problem
```yaml
type: decision
status: closed
tags: [architecture]
source: docs/backlog.md
```
Write-through cache rejected — complexity the current read volume doesn't
earn. The staleness it was solving is still real and is now an open item in
backlog.md, so it survives the approach that was meant to fix it.
Some entries in a long-running log will predate this format — a plain > Type: decision | Target: docs/backlog.md index line, or gate lines shaped > Gate: ... | Batch: ... | Files: ... and > Gate disposition: ... | Reviewer: ... | Scope: ... | Archive: .... Append-only means those entries stay exactly as written (§1): don't rewrite them into frontmatter to make the file look consistent. A log with old-format entries above and new-format entries below is the expected shape of a log that's been running since before this convention existed, not a defect. verify_closeout.py reads both forms in the same pass.
The log holds when all four are true, checked over the whole file after appending rather than over the entry just written:
## heading is followed, within a few lines, by either a fenced yaml code block whose first key is type with one of the five values, or (in an entry old enough to predate this convention, §6) a line matching ^> Type: (decision|amendment|rejection|correction|closeout) \| Target: — greppable either waysource (or legacy Target) other than none resolves to something that exists on disk — greppableFour logs that were kept faithfully and still failed the cold read, or nearly took a wrong turn in the name of tidiness: CASES.md.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub 3xachris/3xa-harness --plugin harness-core5 skills in this plugin
/handoffWrite one snapshot of the current state, organized by what the next reader needs rather than by what this session did, so a person or session with zero memory of the work can read it once and keep going — every open thread's status, every already-spent asset and how to start it, every cross-thread dependency, every unresolved debt, each answered or marked none. Use when a session is ending, a task is moving to another person or agent, a long break is coming, or a fresh session needs to inherit in-flight work without whoever was here to fill the gaps./honest-closeoutClose a task with a report a reviewer can trust — every acceptance line answered with evidence or a recorded blocking reason, human corrections credited to whoever made them, refuted hypotheses kept, background processes proven stopped, and the chat message copied verbatim from the report. Use when reporting work as finished, writing a completion report, summarising what a session achieved, or handing a result to whoever reviews it./sensory-gateHand images, audio, video, or any artifact only a human eye or ear can judge to a human, in one batch, and hold there until an identified reviewer records the approved batch scope — rejections made by dragging a file into a rejects folder. Use when producing renders, generated art, TTS or voice output, edited video, or anything whose acceptance rests on "does this look or sound right"./workorderFreeze a task's scope into a written order before building, then run it to done in one pass — build, self-verify, self-fix, re-verify — closing with a passing result or a two-strike failure trail. Use when a task spans more than a few steps, when scope is drifting mid-build, when a request is too vague to start from, or when handing work to a subagent.Other plugins' skills for the same job