Read the premises as an appositive, drop findings from the handoff content, list every settled word in the changelog

This commit is contained in:
2026-09-24 22:39:53 +02:00
parent 3ef659c4bb
commit 4bfafc7628
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -9,5 +9,5 @@
- Reviewers share one protocol for verdicts, severities, rounds and declines: `agents/review-protocol.md`.
- Skills and agents cite `CLAUDE.md` by heading; the comment and documentation bar lives there alone.
- Update a main checkout with `git pull --ff-only`, never `--autostash`.
- One word per concept across `CLAUDE.md`, the agents, the skills and `loop-claude`: the README's goals and audience are the premises, the architecture pass has a trigger, the merge gate is the gate, the stability reviewer is a reviewer, `loop-claude` runs cycles and interrupts, and a handoff is the document under `~/code/claude-handoffs/`.
- One word per concept across `CLAUDE.md`, the agents, the skills and `loop-claude`: the README's goals and audience are the premises, the architecture pass has a trigger, the merge gate is the gate, the stability reviewer is a reviewer, `loop-claude` runs cycles and interrupts, a handoff is the document under `~/code/claude-handoffs/`, a chunk is the unit of work, a session is a Claude Code session, and memory is a memory file.
- `settings.json`, the agents and the status line name no machine-specific path; the status line shows reset times in the host's time zone.
+2 -2
View File
@@ -39,7 +39,7 @@ Apply it as a question to any design that routes A through B, or has A reach int
How work proceeds in any repo, unless that repo's `AGENTS.md` says otherwise.
- **`README.md` states the goals and the audience under literal `## Goals` and `## Audience` headings — and until it does, nothing else proceeds.** Two different things, both required, both public: an outside reader judges the project by where it is heading and who it is for. Goals are priority-ordered and specific enough that a design decision can be derived from them; the audience names who depends on this and what they may rely on. These are the premises. The check is those two headings in `README.md`, run at the start of every chunk: the same content in `AGENTS.md`, in `docs/`, or in a decision log does not satisfy it, and neither does an earlier chunk having passed it. A repo missing either, or holding a version too vague to settle a decision, has no premises and gets one chunk that writes them and takes approval **before any planned work**, `todo.md` included. While the premises are missing nothing merges and no work is reported as done: the only output is that chunk, or a statement that the premises are missing. Without them only: a security fix — which passes even where it alters an interface — a bot's dependency bump, and a repair restoring behaviour the repo already claims: a red gate, a failing build, a false doc, where it is the doc that gets corrected unless consumers already rely on what the doc promises. None of them decides direction. Anything else that adds capability, alters an interface, or picks between options is planned work and waits. Once written they stand; a later question they do not settle is the ask rule below, never reopened premises.
- **`todo.md` is the plan, ordered as semver releases** — every item sits under the release that ships it. Where the earliest unreleased release names no items and nothing has shipped toward it, that chunk is planning it: weigh the unscheduled items against the goals, write the order, take approval before any code. A `todo.md` in any other shape gets that shape as the chunk, approval taken.
- **`todo.md` is the plan, ordered as semver releases** — every item sits under the release that ships it. Where the earliest unreleased release names no items and nothing has shipped toward it, that chunk is planning it: weigh the unscheduled items against the goals, write the order, take approval before any code. A `todo.md` in any other shape gets that shape as this chunk, approval taken.
- **A release is the human's, and a finished one stops all work.** The version bump and the publishing credentials are the human's whatever any other rule says; prepare everything around it so the release is one decision. Open every chunk with one line: the last version cut, what is unreleased (`CHANGELOG.md`'s `## Unreleased`, else the log since the last tag), and the release this chunk ships into; a repo that publishes nothing says so once. Where the earliest unreleased release has no items left and work has shipped toward it, that is the terminal state: report what it holds and that it is ready to cut, and stop. A security fix still lands, into the waiting release. Never roll forward into a later release's items, and never plan a new release, while a finished one waits — the bump is the next decision. Under `/loop`, that stop ends the loop.
- **One chunk at a time**, the smallest PR-able unit; split a milestone into sub-items in `todo.md` before starting it. A finding inside the chunk is fixed in the chunk; outside it, it becomes a `todo.md` item under a release.
- **A done item leaves `todo.md`; its release heading stays until the version is cut.** Where the repo publishes something a consumer takes — a package, an image, an API — the line is reworded for that consumer and moves to `CHANGELOG.md` under `## Unreleased`; a CHANGELOG is written for the public, never for the next agent. Everywhere else the line is simply deleted, because git history is already the record.
@@ -56,7 +56,7 @@ How work proceeds in any repo, unless that repo's `AGENTS.md` says otherwise.
## Handoffs
- One document per project: `~/code/claude-handoffs/<project>_<YYYY-MM-DD>.md`, with its supporting files (scripts, probes, saved sessions) under `~/code/claude-handoffs/<project>/<YYYY-MM-DD>/`, dated the day they were written.
- Each document stands alone — projects move in parallel, so never reference another project's handoff. A fact two of them share (a test site, where credentials live) is stated in each, or kept in a memory file and named there.
- Content: only what the repo cannot hold — the chunk's findings, probe results, where credentials live. The plan, what is done and the next step live in `todo.md`; goals, audience and decisions in `README.md`/`AGENTS.md`. A handoff never restates them: the repo's copy travels with the code and this one does not.
- Content: only what the repo cannot hold — probe results, where credentials live. The plan, what is done and the next step live in `todo.md`; goals, audience and decisions in `README.md`/`AGENTS.md`. A handoff never restates them: the repo's copy travels with the code and this one does not.
## Tests
- Write tests first for the behaviour we want, then implement until they pass.
+2 -2
View File
@@ -3,11 +3,11 @@
usage: loop-claude <task>
Run it in a project checkout whose README.md has ## Goals and ## Audience, the premises. Each cycle a
Run it in a project checkout whose README.md has ## Goals and ## Audience (the premises). Each cycle a
worker runs the task; a judge then reads the transcript against the premises. A question only the
human can answer, or a release ready to cut, is an interrupt: `claude --resume` on the terminal. An
unfinished chunk resumes the same session next cycle; a finished one starts a fresh session. Cycles
continue until Ctrl-C or that interrupt.
continue until that interrupt or Ctrl-C.
Exit 1: no task, no premises, claude leaves no transcript, or the worker or the judge fails three
times running. Exit 2: the human is needed and no terminal is attached, or the interrupt ended