Skip to content

100x is a skill by a former Cursor engineer that turns prompts into formally verified, production-ready code

Add 100x-solo, the whole run in one chat with no other model

Dead Internetb1a60093862b
diff --git a/README.md b/README.md
index b07230b..b455d8a 100644
--- a/README.md
+++ b/README.md
@@ -364,6 +364,7 @@ The installer only makes shortcuts (symbolic links), a few small files and their
| `/100x-mockup` | Build | A fast first look in about 15 minutes. Only the key moment works. No review, and it says so (UNREVIEWED). |
| `/100x-overnight` | Build | For when you're leaving. Runs one idea or several, for a set time, and nudges the agent if it stalls. |
| `/100x-wrapup` | Build | For deadlines. Makes the main path work and hides the rest. |
+| `/100x-solo` | Build | The whole run in one chat, with no subagents, no helpers and no second model. It judges its own work in writing, from another chair, and the report says nobody else looked. |
| `/100x-judge` | Review | Reviews something already built. Builds nothing new. |
| `/100x-grind` | Review | Review, fix, review again until a judge says ready to ship. Stops if three reviews in a row find nothing better, at 15 rounds, or when time runs out. |
| `/100x-status` | A run | Where the run is, in six lines or fewer. |
diff --git a/docs/cli.md b/docs/cli.md
index 97a9fde..cfafd8d 100644
--- a/docs/cli.md
+++ b/docs/cli.md
@@ -27,6 +27,7 @@ Back to the [README](../README.md).
| `review-verify` | Say which model the app really ran for a helper, from the app's own log, and exit 1 when it is not the model you asked for. |
| `helper` | Start a helper (a judge, a bake-off arm, a child) on a Cursor model through the Cursor SDK, the only way a helper starts in Cursor. `helper models` lists the account's models with their parameters, `helper login` signs this machine in, and `helper run` prints the model asked for and the model the SDK reports, exit 3 when they differ. |
| `eval` | Two evals from plain files. `eval triggers` stages and scores a routing test: does a model that reads only the skill names and descriptions pick the right skill. `eval bakeoff` runs a blind skill-off against skill-on comparison and says "ahead" only when an exact sign test and a control check allow it. `eval bakeoff score` and `gallery` exit 2 when they withhold the verdict, so a shell chain stops. |
+| `solo` | For a `100x-solo` run: write the challenge file of a stage from its template, and check that every challenge the run owes passes. Starts no model. |
| `triage` | Check that every finding has a decision and a reason. A passing triage closes the judge round. |
| `report` | Rebuild the report from the run facts. |
| `finish` | Validate and close a run, write the report, register it. |
diff --git a/docs/contributing.md b/docs/contributing.md
index cafd544..482c45b 100644
--- a/docs/contributing.md
+++ b/docs/contributing.md
@@ -4,16 +4,16 @@ Back to the [README](../README.md).
## Inside the skills
-`skills/100x/` holds the router and the pipeline. `SKILL.md` is the router, `references/` holds the stage guides and the two helpers every run shares, `must-not-break.md` and `watchdog.md`, and `assets/` holds runnable test templates. Each other mode is a folder next to it with its own `SKILL.md`: `100x-mockup`, `100x-wrapup`, `100x-overnight`, `100x-report`, `100x-setup`, `100x-continue`, `100x-judge`, `100x-grind`, `100x-status`, `100x-adhd` and `100x-bakeoff`. They read what they share with `100x ref <name>`. You never open these. The agent does.
+`skills/100x/` holds the router and the pipeline. `SKILL.md` is the router, `references/` holds the stage guides and the two helpers every run shares, `must-not-break.md` and `watchdog.md`, and `assets/` holds runnable test templates. Each other mode is a folder next to it with its own `SKILL.md`: `100x-mockup`, `100x-wrapup`, `100x-overnight`, `100x-report`, `100x-setup`, `100x-continue`, `100x-judge`, `100x-grind`, `100x-solo`, `100x-status`, `100x-adhd` and `100x-bakeoff`. They read what they share with `100x ref <name>`. You never open these. The agent does.
-Every skill follows the [Agent Skills specification](https://agentskills.io/specification), the `SKILL.md` format that Claude Code, Codex, Cursor and the `skills` tool load: a `SKILL.md` with `name` and `description`, then `license`, `compatibility` and `metadata`, with the long guides in `references/` and the runnable files in `assets/`. The license, the compatibility sentence and the metadata come from `package.json`: `node scripts/stamp-skills.mjs` writes them into the twelve files, and `100x validate` fails when one disagrees.
+Every skill follows the [Agent Skills specification](https://agentskills.io/specification), the `SKILL.md` format that Claude Code, Codex, Cursor and the `skills` tool load: a `SKILL.md` with `name` and `description`, then `license`, `compatibility` and `metadata`, with the long guides in `references/` and the runnable files in `assets/`. The license, the compatibility sentence and the metadata come from `package.json`: `node scripts/stamp-skills.mjs` writes them into the thirteen files, and `100x validate` fails when one disagrees.
## Verify the repository
```bash
npm test # every test, including the ones that drive a real browser and seeded defects the matrix must catch
npm run test:fast # the same without the browser tests: run it after every change, and npm test before you commit
100x validate --prose # skill structure, the Agent Skills spec rules, links, command names, prose lint
-npm run validate:spec # the same twelve skills through `skills-ref`, the specification's own validator
+npm run validate:spec # the same thirteen skills through `skills-ref`, the specification's own validator
100x doctor --deep # the install on this machine, including a real browser launch
```
diff --git a/docs/design.md b/docs/design.md
index 9985b1d..26b4053 100644
--- a/docs/design.md
+++ b/docs/design.md
@@ -26,7 +26,7 @@ The MVP is done when all eight hold, each checked against the real artifact.
## Shape
- One CLI at `~/.100x/bin/100x` does the mechanical work (config, logs, screenshots, briefs, gallery, watchdog checks).
-- One skill, `100x`, is the router and the pipeline. Each other mode is a skill of its own next to it: `100x-mockup`, `100x-wrapup`, `100x-overnight`, `100x-report`, `100x-setup`, `100x-continue`, `100x-judge`, `100x-grind`, `100x-status`, `100x-adhd`, `100x-bakeoff`. The owner picks a mode by calling it, and no word in a brief picks one. The two helpers every run shares, must-not-break and the watchdog, are in `skills/100x/references/`, and the runnable test templates are in `skills/100x/assets/`. (The first build had one skill and read trigger words, and a brief that mentioned a status page could start the wrong mode. See `docs/decisions.tsv`.)
+- One skill, `100x`, is the router and the pipeline. Each other mode is a skill of its own next to it: `100x-mockup`, `100x-wrapup`, `100x-overnight`, `100x-report`, `100x-setup`, `100x-continue`, `100x-judge`, `100x-grind`, `100x-solo`, `100x-status`, `100x-adhd`, `100x-bakeoff`. The owner picks a mode by calling it, and no word in a brief picks one. The two helpers every run shares, must-not-break and the watchdog, are in `skills/100x/references/`, and the runnable test templates are in `skills/100x/assets/`. (The first build had one skill and read trigger words, and a brief that mentioned a status page could start the wrong mode. See `docs/decisions.tsv`.)
- Every skill is a folder that stands alone and follows the Agent Skills specification (agentskills.io). `npx skills add --skill <name>` installs one skill by itself, so a skill never names a file outside its own folder: it names another skill by its name, and prints a shared guide with `100x ref <name>`. `name`, `description`, `license`, `compatibility` and `metadata` are the only front matter. The license, compatibility and metadata come from `package.json` through `node scripts/stamp-skills.mjs`, and `100x validate` checks all of it.
- One companion skill, `unslop-text`, lives in its own repository. A pinned copy ships in `vendor/` (see `companions.json`), the install links it, and `100x text` runs it. No submodules.
- State lives in files. Global in `~/.100x`, per project in `<project>/.100x`.
@@ -71,7 +71,7 @@ Decisions columns. `ts phase decision why evidence result`, tab separated, appen
## CLI
-`100x init|install|config|clock|log|status|run|shots|port|prompt|ref|verify|brief|review-call|review-run|review-verify|helper|triage|eval|report|finish|registry|morning|night|watchdog|upstream|browsers|text|doctor|validate`. Run `100x help` for flags.
+`100x init|install|config|clock|log|status|run|shots|port|prompt|ref|verify|brief|review-call|review-run|review-verify|helper|solo|triage|eval|report|finish|registry|morning|night|watchdog|upstream|browsers|text|doctor|validate`. Run `100x help` for flags.
## Guardrails
diff --git a/docs/install.md b/docs/install.md
index 387e7f4..aaa1a47 100644
--- a/docs/install.md
+++ b/docs/install.md
@@ -19,7 +19,7 @@ The installer makes symlinks, a few small files and the folders for them, and no
- `~/.100x/` with the CLI link in `bin/`, `repo` (where this checkout lives), `config.json`, `profile.md` and a record of what it made (`install.json`).
- `~/.local/bin/100x`, so `100x` works in any shell that has that folder on its PATH.
-- One link for each skill in `~/.agents/skills`: `100x` and its modes `100x-mockup`, `100x-wrapup`, `100x-overnight`, `100x-report`, `100x-setup`, `100x-continue`, `100x-judge`, `100x-grind`, `100x-status`, `100x-adhd` and `100x-bakeoff`. Claude Code, Codex, OpenCode and Cursor read their own skills folders instead. When one is on your machine the installer says so at the end and prints the command that links the skills there too (`--also claude,codex,opencode,cursor`).
+- One link for each skill in `~/.agents/skills`: `100x` and its modes `100x-mockup`, `100x-wrapup`, `100x-overnight`, `100x-report`, `100x-setup`, `100x-continue`, `100x-judge`, `100x-grind`, `100x-solo`, `100x-status`, `100x-adhd` and `100x-bakeoff`. Claude Code, Codex, OpenCode and Cursor read their own skills folders instead. When one is on your machine the installer says so at the end and prints the command that links the skills there too (`--also claude,codex,opencode,cursor`).
- One more link, for the helper skill `unslop-text`. It points at the pinned copy in `vendor/`, and the run uses it as `100x text`. A link you made to your own copy is kept unless you pass `--force`. Pass `--unslop-text <dir>` to link a checkout, or `--no-unslop` to skip it. An older install that linked `unslop-design` loses that link the next time you run the installer, and gets back the one you had made before.
Run it again any time. It reports `unchanged` for what is already right. It never replaces a real folder or file, and it replaces a link that points elsewhere only with `--force`. A `git pull` in this repo updates the install because everything is a link.
@@ -48,7 +48,7 @@ A `git pull` in this repo updates the install, because the junctions and launche
[skills.sh](https://skills.sh) is a directory of skills and a command line tool, `skills`, that copies them into the apps you use. There is nothing to submit: a repo is listed once people install it with that tool.
```bash
-npx skills add DeadInternetStudios/100x-engineer-skill --skill '*' -g # all twelve skills, copied into your global skills folder (-g, or `100x install` does not see them)
+npx skills add DeadInternetStudios/100x-engineer-skill --skill '*' -g # all thirteen skills, copied into your global skills folder (-g, or `100x install` does not see them)
npx skills add DeadInternetStudios/100x-engineer-skill --list # what is in the repo, installing nothing
npx skills update -g # bring the copies up to date
```
diff --git a/docs/using.md b/docs/using.md
index 5db7bfd..50df9b1 100644
--- a/docs/using.md
+++ b/docs/using.md
@@ -7,6 +7,7 @@ More on a normal run, a night away and the report page. Back to the [README](../
```text
/100x an idle game about running a lighthouse. phone first.
/100x-mockup a tip splitter with big buttons
+/100x-solo a habit tracker with streaks
/100x-overnight 3 versions of a farming game, for 8 hours, max 3 subagents
/100x-report
/100x-status
@@ -14,6 +15,8 @@ More on a normal run, a night away and the report page. Back to the [README](../
A normal run takes hours, not minutes. Every polish pass and every round of judging is another model at work, and that is where the time goes. `/100x-mockup` is the fast way: about fifteen minutes, and no judge looks at it. `100x helper run` writes each helper's tokens to `.100x/helpers.jsonl`, and `100x status` adds them up and says when a helper reported none. A helper started another way is not counted. The caps are time (`for 10 hours`), polish passes (`polish.passes`), parallel helpers (`max 3 subagents`) and, when you set it, tokens (`budget.tokens`). Past those, the limit is your app's own, so set it before a long run.
+For a run where nobody else may touch the work, call `/100x-solo`. It is the same pipeline in one chat: no subagents, no helpers, no second model. Every look another model would give, the model in this chat gives its own work instead, in writing and from another chair. It writes down what could be wrong before it checks, names the command or screenshot that shows each one, and looks again when it finds nothing. `100x finish` refuses a solo run with a missing challenge, a round or loop without its list, or any helper in the log. It is weaker than a second model, because a model cannot see all of its own blind spots, so the report and the card say "solo run, no other model looked". `100x solo check` lists what a run still owes.
+
For a night, call `/100x-overnight`. One brief runs unattended in this thread. Several briefs run as children, at most as many at once as `max N subagents` allows, 1 by default. The rest queue.
To make it work for a set time, say so: "work for 10 hours", "work for 2 days", "until 6am". The run then uses all of it. `100x finish` refuses until the work time is over, and the time goes to rounds of testing and polish, each with one question and a before and after, and a judge in every round. The watchdog nudges the thread if it stops early. `100x clock stop "<reason>"` is the only way out, and the report shows it.
diff --git a/evals/triggers.json b/evals/triggers.json
index 65494b4..dd697fc 100644
--- a/evals/triggers.json
+++ b/evals/triggers.json
@@ -123,6 +123,14 @@
{"id": "tune-109", "set": "tune", "text": "write an a/b test plan for the signup button", "expect": null, "near": "100x-bakeoff"},
{"id": "tune-110", "set": "tune", "text": "benchmark my api endpoints against the old version", "expect": null, "near": "100x-bakeoff"},
{"id": "tune-111", "set": "tune", "text": "compare these two charts and tell me which one is clearer", "expect": null, "near": "100x-bakeoff"},
+ {"id": "tune-112", "set": "tune", "text": "/100x-solo a habit tracker with streaks", "expect": "100x-solo"},
+ {"id": "tune-113", "set": "tune", "text": "build me a tiny idle game about running a lighthouse, but do all of it yourself in this chat. no subagents, no second model", "expect": "100x-solo"},
+ {"id": "tune-114", "set": "tune", "text": "run the whole 100x pipeline solo, never delegate anything", "expect": "100x-solo"},
+ {"id": "tune-115", "set": "tune", "text": "I want no helpers on this one. you build it and you do every review yourself", "expect": "100x-solo"},
+ {"id": "tune-116", "set": "tune", "text": "have a different model look at what you built, I want a fresh pair of eyes", "expect": "100x-judge", "near": "100x-solo"},
+ {"id": "tune-117", "set": "tune", "text": "run the overnight build with one child for each of these three ideas", "expect": "100x-overnight", "near": "100x-solo"},
+ {"id": "tune-118", "set": "tune", "text": "100x a solo piano practice app", "expect": "100x", "near": "100x-solo"},
+ {"id": "tune-119", "set": "tune", "text": "keep judging and fixing with a fresh judge each round until one says ship it", "expect": "100x-grind", "near": "100x-solo"},
{"id": "hold-001", "set": "holdout", "text": "build this idea into a polished, tested prototype with a report", "expect": "100x", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."},
{"id": "hold-002", "set": "holdout", "text": "turn my concept into a full build with review and a final report", "expect": "100x", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."},
{"id": "hold-003", "set": "holdout", "text": "I need the normal full build with testing and a report", "expect": "100x", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."},
@@ -195,6 +203,11 @@
{"id": "hold-070", "set": "holdout", "text": "run a bakeoff between 100x and non-100x on the same brief and have a blind judge compare each pair", "expect": "100x-bakeoff", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."},
{"id": "hold-071", "set": "holdout", "text": "test if 100x makes better prototypes than the same agent without it, same briefs, blind judge comparison", "expect": "100x-bakeoff", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."},
{"id": "hold-072", "set": "holdout", "text": "show me what finished prototypes we have, ranked in a gallery", "expect": "100x-report", "near": "100x-bakeoff", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."},
- {"id": "hold-073", "set": "holdout", "text": "give me a quick mockup of the idea, just the wow moment working, no judges", "expect": "100x-mockup", "near": "100x-bakeoff", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."}
+ {"id": "hold-073", "set": "holdout", "text": "give me a quick mockup of the idea, just the wow moment working, no judges", "expect": "100x-mockup", "near": "100x-bakeoff", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."},
+ {"id": "hold-074", "set": "holdout", "text": "just build the whole dashboard for me, prototype to polish, and have it reviewed internally. i want a single model doing everything, no subagents or second model.", "expect": "100x-solo", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."},
+ {"id": "hold-075", "set": "holdout", "text": "can you make a complete prototype from this brief, with tests and polish, all by one model with no helpers?", "expect": "100x-solo", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."},
+ {"id": "hold-076", "set": "holdout", "text": "build it end to end yourself, no subagents, no second reviewer. just one model handling the build and reviews.", "expect": "100x-solo", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."},
+ {"id": "hold-077", "set": "holdout", "text": "build a quick mockup of this idea in about 15 minutes, no judges needed", "expect": "100x-mockup", "near": "100x-solo", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."},
+ {"id": "hold-078", "set": "holdout", "text": "i need the main path working and the rest hidden because the deadline is close", "expect": "100x-wrapup", "near": "100x-solo", "writer": "muse-glimmer:latest, a local model run through ollama. It saw one line of purpose per skill and no description."}
]
}
diff --git a/lib/commands/helper.mjs b/lib/commands/helper.mjs
index f5ed20a..1313f89 100644
--- a/lib/commands/helper.mjs
+++ b/lib/commands/helper.mjs
@@ -7,6 +7,7 @@ import { chooseModel, describeModel, modelWords, refuseOutsideLock, requireSdk,
import { globalDir } from '../paths.mjs';
import { findProjectRoot } from '../paths.mjs';
import { writeReceipt } from '../receipt.mjs';
+import { refuseWhenSolo } from '../solo.mjs';
import { recordHelper, refuseWhenSpent, spendLine } from '../spend.mjs';
import { install } from './browsers.mjs';
@@ -87,6 +88,9 @@ function taskText(values) {
}
async function run(values) {
+ // A solo run never hands work to another model, in the folder the command runs from or the folder the helper would work in.
+ refuseWhenSolo(findProjectRoot(process.cwd()), 'a helper');
+ refuseWhenSolo(findProjectRoot(path.resolve(values.cwd ?? process.cwd())), 'a helper');
if (!values.model) throw new CliError('--model <id> is required. `100x helper models` lists the ids this account can use.');
const task = taskText(values);
if (!task.trim()) throw new CliError('The task is empty.');
diff --git a/lib/commands/index.mjs b/lib/commands/index.mjs
index 5c3e99d..1feac38 100644
--- a/lib/commands/index.mjs
+++ b/lib/commands/index.mjs
@@ -21,6 +21,7 @@ import reviewRun from './review-run.mjs';
import reviewVerify from './review-verify.mjs';
import run from './run.mjs';
import shots from './shots.mjs';
+import solo from './solo.mjs';
import status from './status.mjs';
import text from './text.mjs';
import triage from './triage.mjs';
@@ -29,12 +30,12 @@ import validate from './validate.mjs';
import verify from './verify.mjs';
import watchdog from './watchdog.mjs';
-export const commands = [init, install, config, clock, log, status, run, shots, port, prompt, ref, verify, brief, reviewCall, reviewRun, reviewVerify, helper, triage, report, finish, registry, morning, night, watchdog, upstream, browsers, text, evalCommand, doctor, validate];
+export const commands = [init, install, config, clock, log, status, run, shots, port, prompt, ref, verify, brief, reviewCall, reviewRun, reviewVerify, helper, solo, triage, report, finish, registry, morning, night, watchdog, upstream, browsers, text, evalCommand, doctor, validate];
export const commandNames = commands.map((command) => command.name);
// The headings and the order of `100x help`. A test fails when a command is missing here or listed twice.
export const helpGroups = [
['During a run', ['init', 'prompt', 'status', 'log', 'run', 'clock', 'port', 'shots', 'text', 'ref', 'verify', 'report', 'finish']],
- ['Judging', ['brief', 'review-call', 'review-run', 'review-verify', 'helper', 'triage', 'eval']],
+ ['Judging', ['brief', 'review-call', 'review-run', 'review-verify', 'helper', 'solo', 'triage', 'eval']],
['Nights and mornings', ['night', 'watchdog', 'morning', 'registry']],
['Setup and health', ['install', 'config', 'browsers', 'doctor', 'validate', 'upstream']],
];
diff --git a/lib/commands/morning.mjs b/lib/commands/morning.mjs
index f76f1ef..a6579db 100644
--- a/lib/commands/morning.mjs
+++ b/lib/commands/morning.mjs
@@ -46,7 +46,7 @@ function ranking(entries, label, all, building = 0) {
const lines = [`Report. ${lede(entries, label)}`, ...(why ? [why] : [])];
entries.forEach((e, i) => {
const m = e.matrix;
- const title = e.mode === 'mockup' ? `${e.title} (mockup)` : e.title;
+ const title = ['mockup', 'solo'].includes(e.mode) ? `${e.title} (${e.mode})` : e.title;
const word = decision(e).padEnd(4);
const rank = String(i + 1).padStart(2, '0');
// The sentence that says what the run is comes first, even when the moment repeats it. A name alone tells the owner nothing.
@@ -68,7 +68,7 @@ function ranking(entries, label, all, building = 0) {
...reasons.map((reason, n) => `${n === 0 ? ' why ' : ' '}${n < first.length ? `${n + 1}) ` : ''}${reason}`),
` moment ${e.moment}`,
` run cd ${e.path} && ${e.runCmd}${e.url ? ` (${e.url})` : ''}`,
- ` checks ${mustNotBreakLine(e)}. ${e.review.status === 'reviewed' ? `review ${e.review.model} ${e.review.flags ?? 0} flagged ${e.review.fixed ?? 0} fixed` : e.mode === 'mockup' ? 'a mockup, no judge by design' : 'UNREVIEWED'}. ${m ? `screen sizes ${m.totals.broken} broken ${m.totals.weak} weak` : 'screen sizes not run'}`,
+ ` checks ${mustNotBreakLine(e)}. ${e.review.status === 'reviewed' ? `review ${e.review.model}${e.review.solo ? ' (solo, its own judge)' : ''} ${e.review.flags ?? 0} flagged ${e.review.fixed ?? 0} fixed` : e.mode === 'mockup' ? 'a mockup, no judge by design' : 'UNREVIEWED'}. ${m ? `screen sizes ${m.totals.broken} broken ${m.totals.weak} weak` : 'screen sizes not run'}`,
);
});
return lines.join('\n');
diff --git a/lib/commands/night.mjs b/lib/commands/night.mjs
index acbb7ca..afc4e2c 100644
--- a/lib/commands/night.mjs
+++ b/lib/commands/night.mjs
@@ -4,6 +4,8 @@ import { parseArgs } from 'node:util';
import { load } from '../config.mjs';
import { CliError } from '../errors.mjs';
import { blockProject, describeNight, endNight, nextProject, nightStatus, recordStart, splitBriefs, startNight } from '../night.mjs';
+import { findProjectRoot } from '../paths.mjs';
+import { refuseWhenSolo } from '../solo.mjs';
const usage = `
100x night start --until <when> --brief "<text>" [--brief "<text>" ...] [--mockup "<text>" ...] [--file <briefs>] [--parallel N] [--fill] [--base <dir>]
@@ -33,6 +35,8 @@ export default {
});
const [action, ...rest] = positionals;
const out = (data, text) => console.log(values.json ? JSON.stringify(data, null, 2) : text);
+ // A night hands each brief to a child. A solo run hands nothing to anyone, so it cannot plan or feed one from its own folder.
+ if (action === 'start' || action === 'next') refuseWhenSolo(findProjectRoot(process.cwd()), 'a child for a night');
if (action === 'start') {
if (!values.until) throw new CliError('Say when you wake up with --until, for example --until 07:00.');
const briefs = [...(values.brief ?? []), ...(values.file ? splitBriefs(fs.readFileSync(values.file, 'utf8')) : [])];
diff --git a/lib/commands/registry.mjs b/lib/commands/registry.mjs
index 93badb7..5e234ce 100644
--- a/lib/commands/registry.mjs
+++ b/lib/commands/registry.mjs
@@ -31,7 +31,7 @@ export default {
if (values.json) return console.log(JSON.stringify(entries, null, 2));
if (!entries.length) return console.log('no finished runs');
// The date and the word the gallery shows come first. The id is only for `registry remove`, so it goes last.
- for (const e of entries) console.log(`${when(e.finishedAt).padEnd(16)} ${decision(e).padEnd(4)} ${e.mode === 'mockup' ? `${e.title} (mockup)` : e.title} ${e.path} ${e.id}`);
+ for (const e of entries) console.log(`${when(e.finishedAt).padEnd(16)} ${decision(e).padEnd(4)} ${['mockup', 'solo'].includes(e.mode) ? `${e.title} (${e.mode})` : e.title} ${e.path} ${e.id}`);
} else throw new CliError(`unknown registry command "${sub}".`);
return undefined;
},
diff --git a/lib/commands/review-call.mjs b/lib/commands/review-call.mjs
index af1e7c2..7217f7e 100644
--- a/lib/commands/review-call.mjs
+++ b/lib/commands/review-call.mjs
@@ -8,6 +8,29 @@ import { LENSES } from '../rounds.mjs';
const selfReviewLine = (call) => `The judge is the model that builds${call.model ? ` (${call.model})` : ''}, so its look is a self-review and shares the builder's blind spots. Call 100x-setup and give the judge another model, or say in the review note that it was a self-review`;
const fallbackLine = (call) => `fallback ${call.fallbackTarget.model} if the first call cannot start${call.fallbackSameAsBuilder ? '. It is the model that builds, so its look is a self-review. Say so in the review note' : ''}`;
+// A solo run starts nothing. The lines say which files to read and write, and the steps a loop judge follows when it is you.
+function soloLines(call) {
+ if (call.loop) {
+ console.log(`Solo loop ${call.loop.name}. No judge starts: you judge it yourself, in another chair. Deadline ${call.deadlineMinutes} minutes.`);
+ console.log(`ask ${call.brief}`);
+ console.log(`findings ${call.findings} (you write this file, then answers.md)`);
+ for (const step of call.steps) console.log(step);
+ return;
+ }
+ if (call.noRoom) {
+ console.log(`No room for a round. ${call.minutesLeft} min are left on the clock and a round needs at least ${MIN_JUDGE_MINUTES}. Stop the rounds. Say why the review was skipped with \`100x run set review '{"status":"unreviewed","note":"no time left for a round: ${call.minutesLeft} min on the clock"}'\`, then run \`100x finish\`. It warns about this and does not fail.`);
+ return;
+ }
+ if (call.round.done) {
+ console.log(`All rounds are done, ${call.round.held} of ${call.round.total} held. Run \`100x finish\`.`);
+ return;
+ }
+ console.log(`Solo round ${call.round.slot} of ${call.round.total}, ${LENSES[call.round.lens]}${call.round.open ? ', open' : ''}. No judge starts: you judge it yourself. Deadline ${call.deadlineMinutes} minutes.`);
+ console.log(`brief ${call.brief}`);
+ console.log(`findings ${call.findings} (you write this file)`);
+ console.log('Commit first. Read the brief in full and take the seat it names. Write the suspicions before you run anything, test them, then write the findings and the Ready to ship line. Only then write triage.md, fix, commit and run `100x triage`. `100x ref solo` has the whole procedure.');
+}
+
const usage = `
100x review-call [--json] [--loop <name>]
@@ -23,6 +46,8 @@ the judge keeps working, so the agent waits as the app allows and stops at deadl
when a clock is running. With fewer than 15 minutes left on the clock the output says there is no room for a judge (noRoom in --json).
When review is off in config the output says so and the run must be marked unreviewed with that reason.
When the judge is the model that builds, the output says so and --json carries selfReview: true. Its look is a self-review, and the review note says that.
+In a solo run (run.json says mode solo) no judge starts, whatever the settings say. The output names the brief and the findings file, and with --loop it
+prints the steps for judging the loop yourself. --json carries solo: true and via self.
`;
export default {
@@ -34,6 +59,7 @@ export default {
const root = requireRoot();
const call = reviewCall(root, load().effective, { loop: values.loop ?? null });
if (values.json) return console.log(JSON.stringify(call, null, 2));
+ if (call.solo) return soloLines(call);
if (!call.enabled) {
console.log('Review is off in config. Run `100x run set review \'{"status":"unreviewed","note":"review is off in config"}\'`.');
return undefined;
diff --git a/lib/commands/run.mjs b/lib/commands/run.mjs
index c4475b2..e7ab578 100644
--- a/lib/commands/run.mjs
+++ b/lib/commands/run.mjs
@@ -1,6 +1,7 @@
import { CliError } from '../errors.mjs';
import { readRun, requireRoot, writeRun } from '../project.mjs';
import { canonicalKey, parseValue, pushPath, RUN_KEYS, setPath, unsetPath } from '../runfile.mjs';
+import { refuseModeChange } from '../solo.mjs';
const usage = `
100x run show [--json]
@@ -13,6 +14,7 @@ A value is read as JSON when it parses (3, true, {"a":1}, ["x"]) and as plain te
\`100x run set verdict ship\` and \`100x run set polishPasses 3\` both work. A key that holds text keeps its text as typed.
\`push\` appends to a list and makes it when missing. Pushing a second must-not-break check turns a single one into a list of two.
A dotted key reaches inside objects and lists, for example review.status or mustNotBreak.0.status.
+Once a run is solo (\`100x run set mode solo\`) the flag stays: only the owner takes it off, by editing run.json by hand.
Keys: ${RUN_KEYS.join(', ')}.
Examples
100x run set verdict ship
@@ -38,6 +40,7 @@ export default {
const [key, ...words] = rest;
if (!key) throw new CliError(`Usage: 100x run ${sub} <key>${sub === 'unset' ? '' : ' <value>'}`);
const run = readRun(root) ?? {};
+ refuseModeChange(root, canonicalKey(key), sub === 'unset' ? null : words.join(' '));
if (sub === 'unset') {
if (!unsetPath(run, key)) return console.log(`${canonicalKey(key)} was not set`);
writeRun(root, run);
diff --git a/lib/commands/solo.mjs b/lib/commands/solo.mjs
new file mode 100644
index 0000000..cc6a12e
--- /dev/null
+++ b/lib/commands/solo.mjs
@@ -0,0 +1,71 @@
+import fs from 'node:fs';
+import path from 'node:path';
+import { parseArgs } from 'node:util';
+import { CliError } from '../errors.mjs';
+import { readRun, requireRoot } from '../project.mjs';
+import { challengeFile, challengeStatus, neededChallenges } from '../solo-check.mjs';
+import { CHALLENGES, CHALLENGE_NAMES, QUESTION, challengeTemplate, isSolo } from '../solo.mjs';
+
+const usage = `
+100x solo [check] [--json]
+100x solo new <${CHALLENGE_NAMES.join('|')}>
+
+Helps a solo run (run.json says mode solo, set with \`100x run set mode solo\`): the whole pipeline done by one model, which attacks its own work in
+writing at each stage, because no second model looks. The commands never start a model.
+check Says which challenge files the run owes, and what is wrong with each one. It is the same check \`100x finish\` makes. Exit code 1 when any is wrong or missing.
+new Writes .100x/solo/<name>.md: the seat to sit in, what to read, the questions to start from, and the form of a suspicion. It refuses to overwrite a file.
+The challenges: ${CHALLENGE_NAMES.map((name) => `${name} (${CHALLENGES[name].stage})`).join('; ')}.
+The procedure and the rules of a challenge are in \`100x ref solo\`.
+`;
+
+function requireSolo(root) {
+ readRun(root);
+ if (!isSolo(root)) throw new CliError('This is not a solo run. The 100x-solo skill starts one: for a new run, after `100x init` it runs `100x run set mode solo`. A run that began another way keeps its way. A normal run judges with another model.');
+}
+
+function check(root, json) {
+ const run = readRun(root) ?? {};
+ const status = challengeStatus(root, run);
+ const owed = new Set(neededChallenges(root, run));
+ if (json) {
+ console.log(JSON.stringify({ challenges: status.map(({ name, file, exists, problems }) => ({ name, file, exists, problems, ok: problems.length === 0 })), notOwed: CHALLENGE_NAMES.filter((name) => !owed.has(name)) }, null, 2));
+ } else {
+ for (const { name, file, problems } of status) {
+ console.log(`${name.padEnd(11)} ${problems.length ? 'NOT YET' : 'ok'} ${file}`);
+ for (const problem of problems) console.log(` ${problem}`);
+ }
+ for (const name of CHALLENGE_NAMES.filter((n) => !owed.has(n))) console.log(`${name.padEnd(11)} not owed yet. ${CHALLENGES[name].stage}`);
+ const passing = status.filter(({ problems }) => problems.length === 0).length;
+ console.log(`${passing} of ${status.length} owed challenges pass. Rounds and loops are checked by \`100x finish\`.`);
+ }
+ if (status.some(({ problems }) => problems.length)) process.exitCode = 1;
+}
+
+function write(root, name) {
+ if (!CHALLENGE_NAMES.includes(name ?? '')) throw new CliError(`100x solo new takes ${CHALLENGE_NAMES.join(', ')}. Got "${name ?? ''}".`);
+ const file = challengeFile(root, name);
+ if (fs.existsSync(file)) throw new CliError(`${path.relative(root, file)} already exists. Open it and add to it. A second look from another seat goes under "## Recheck". Nothing was overwritten.`);
+ fs.mkdirSync(path.dirname(file), { recursive: true });
+ fs.writeFileSync(file, challengeTemplate(name));
+ console.log(`Wrote ${path.relative(root, file)}. ${CHALLENGES[name].stage}.`);
+ console.log(`Seat: ${CHALLENGES[name].seat}.`);
+ console.log(`Read only: ${CHALLENGES[name].read}.`);
+ console.log(QUESTION);
+ console.log('Write the suspicions before you run anything, then test each one and fill in its proof and result. Run `100x solo check` when done.');
+}
+
+export default {
+ name: 'solo',
+ summary: 'Check and start the challenge files of a solo run.',
+ usage,
+ async run(argv) {
+ const { values, positionals } = parseArgs({ args: argv, allowPositionals: true, options: { json: { type: 'boolean' } } });
+ const root = requireRoot();
+ requireSolo(root);
+ const [action = 'check', name, ...extra] = positionals;
+ if (extra.length || (action !== 'new' && name)) throw new CliError('Usage: 100x solo [check] [--json] or 100x solo new <name>. Run `100x solo --help`.');
+ if (action === 'check') return check(root, values.json);
+ if (action === 'new') return write(root, name);
+ throw new CliError(`100x solo takes check or new. Got "${action}". Run \`100x solo --help\`.`);
+ },
+};
diff --git a/lib/finish.mjs b/lib/finish.mjs
index 018ceb9..2a0fa15 100644
--- a/lib/finish.mjs
+++ b/lib/finish.mjs
@@ -15,6 +15,7 @@ import { buildReport, buildReportHtml, chatSummary } from './report.mjs';
import { checkTriage, judgeRoom, pointsAtSomething, reviewCall } from './review.mjs';
import { REPO_ROOT } from './paths.mjs';
import { LENSES, closeRound, lensFor, nextSlot, pendingEntry, plannedFor, plannedRounds, roundStatus, roundsSummary } from './rounds.mjs';
+import { lateClock, soloProblems } from './solo-check.mjs';
import { whyNotReady } from './why-not.mjs';
export const VERDICTS = ['ship', 'fine', 'dud'];
@@ -169,6 +170,9 @@ export function validateRun(root, { now = new Date() } = {}) {
need(run.review && REVIEW_STATUS.includes(run.review.status), 'review.status must be reviewed or unreviewed');
// A mockup is judged by nobody, by design, so it is the one run that may say UNREVIEWED without trying a judge first.
const mockup = run.mode === 'mockup';
+ // A solo run is judged by the model that built it, in writing, and starts no other model. Its own checks come first.
+ const solo = run.mode === 'solo';
+ if (solo) errors.push(...soloProblems(root, run));
if (mockup) errors.push(...checkMockup(root, run, passes));
else {
// The pipeline's promise is a number of judged polish passes. A run that did fewer is not the run the verdict describes.
@@ -193,12 +197,16 @@ export function validateRun(root, { now = new Date() } = {}) {
if (!(error instanceof CliError)) throw error;
}
const tried = runRows(root).some((row) => row.phase === 'review');
- if (call.enabled && call.configured && !tried && !mockup && !call.noRoom) errors.push(`review.status is unreviewed, but a judge is set up (via ${call.via}) and no review attempt is logged. Run stage 6: \`100x review-call\`, start the judge, log it. UNREVIEWED is for a judge that failed to start, with the failure in the note. Nothing limits how many agents you may start for the judge.`);
+ // A dud variant ends with no review, as the variants guide says, and that holds in a solo run too.
+ const owesRound = solo && run.verdict !== 'dud';
+ if (owesRound && !call.noRoom) errors.push('review.status is unreviewed, but a solo run judges itself, so no judge can fail to start. Run stage 6 yourself: `100x brief`, `100x review-call`, and the round procedure in `100x ref solo`. UNREVIEWED is for a clock with no room for a round, and the note says so');
+ else if (owesRound && lateClock(root)) errors.push(`review.status is unreviewed, but ${lateClock(root)}`);
+ else if (!solo && call.enabled && call.configured && !tried && !mockup && !call.noRoom) errors.push(`review.status is unreviewed, but a judge is set up (via ${call.via}) and no review attempt is logged. Run stage 6: \`100x review-call\`, start the judge, log it. UNREVIEWED is for a judge that failed to start, with the failure in the note. Nothing limits how many agents you may start for the judge.`);
}
if (run.review?.status === 'reviewed') {
need(present(run.review.model), 'a reviewed run needs review.model');
need(runRows(root).some((row) => row.phase === 'review'), 'a reviewed run has no review row in the decision log. Log the judge start with `100x log review "<what the judge looks at>" "<why>" "<where it runs>"`, as stage 6 says');
- if (sameAsBuilder(root, run.review)) warnings.push(`the judge (${run.review.model}) is the same model as the builder in your settings, so it shares the builder's blind spots. The report and the final message say so`);
+ if (!solo && sameAsBuilder(root, run.review)) warnings.push(`the judge (${run.review.model}) is the same model as the builder in your settings, so it shares the builder's blind spots. The report and the final message say so`);
for (const error of checkTriage(root).errors) errors.push(`review. ${error}`);
const rounds = checkRounds(root, now);
errors.push(...rounds.errors.map((error) => `review. ${error}`));
@@ -209,7 +217,7 @@ export function validateRun(root, { now = new Date() } = {}) {
// the judge's findings and the builder's answers, or one model grades its own work and drifts.
{
const config = load({ cwd: root }).effective;
- if (config.review.enabled) {
+ if (config.review.enabled || solo) {
const passes = passNames(root);
const rounds = runRows(root).filter((row) => row.phase === 'round').length;
const loops = [...passes, ...Array.from({ length: rounds }, (_, i) => `round-${i + 1}`)];
@@ -222,7 +230,9 @@ export function validateRun(root, { now = new Date() } = {}) {
for (const name of loops) {
const files = ['ask.md', 'judge.md', 'answers.md'].map((file) => stateFile(root, 'loops', name, file));
if (!files.every((file) => fs.existsSync(file) && fs.statSync(file).size > 0)) {
- errors.push(`loop ${name} has no judge. Write .100x/loops/${name}/ask.md, start the judge with \`100x review-call --loop ${name}\`, answer every finding in answers.md. A loop the builder grades itself does not count.`);
+ errors.push(solo
+ ? `loop ${name} has no challenge. Write .100x/loops/${name}/ask.md, run \`100x review-call --loop ${name}\` for the steps, write judge.md in another chair, then answer every finding in answers.md.`
+ : `loop ${name} has no judge. Write .100x/loops/${name}/ask.md, start the judge with \`100x review-call --loop ${name}\`, answer every finding in answers.md. A loop the builder grades itself does not count.`);
} else {
const judged = fs.readFileSync(files[1], 'utf8');
if (!/^Judged by:/im.test(judged) || !/^Drifting: (yes|no)$/im.test(judged) || !/^Better: (yes|no)$/im.test(judged)) {
@@ -304,7 +314,8 @@ export function finishRun(root) {
const started = startedAt(root);
const matrix = finalMatrix(root);
const { asks } = readAsks(root);
- const review = run.review.status === 'reviewed' ? { ...withTriageCounts(root, run.review), ...(sameAsBuilder(root, run.review) ? { sameAsBuilder: true } : {}) } : run.review;
+ const solo = run.mode === 'solo';
+ const review = run.review.status === 'reviewed' ? { ...withTriageCounts(root, run.review), ...(solo || sameAsBuilder(root, run.review) ? { sameAsBuilder: true } : {}), ...(solo ? { solo: true } : {}) } : run.review;
const finishedAt = new Date().toISOString();
const entry = {
...run,
diff --git a/lib/init.mjs b/lib/init.mjs
index 220880b..900fc1f 100644
--- a/lib/init.mjs
+++ b/lib/init.mjs
@@ -98,7 +98,7 @@ export function detect(root) {
// its start rows already mark where each run began, and so does config.json.
const RUN_FILES = ['project.md', PROMPT_MARKER, 'STATE.md', 'run.json', 'finished.json', 'REPORT.md', 'REPORT.html', 'clock.json', 'watchdog.json'];
// audit is there for runs made before 100x dropped the page audit, so an old run is still put aside whole.
-const RUN_FOLDERS = ['shots', 'audit', 'review', 'loops', 'must-not-break'];
+const RUN_FOLDERS = ['shots', 'audit', 'review', 'loops', 'must-not-break', 'solo'];
function readState(root, name) {
try {
diff --git a/lib/look-first.mjs b/lib/look-first.mjs
index eb4d86c..ba25294 100644
--- a/lib/look-first.mjs
+++ b/lib/look-first.mjs
@@ -43,7 +43,7 @@ export const lookTone = (run, matrix, checks) => (foundTrouble(alertsOf(run, mat
export function trustLine(entry) {
entry = modern(entry) ?? {};
const found = alertsOf(entry, entry.matrix, mustNotBreakList(entry));
- const said = [...(entry.mode === 'mockup' ? ['A mockup, nobody judged it'] : []), ...found.map((item) => item.text), ...(entry.review?.sameAsBuilder ? ['The judge was the model that built it'] : [])];
+ const said = [...(entry.mode === 'mockup' ? ['A mockup, nobody judged it'] : []), ...found.map((item) => item.text), ...(entry.review?.sameAsBuilder ? [entry.review.solo ? 'A solo run: the model that built it judged it and no other model looked' : 'The judge was the model that built it'] : [])];
if (!said.length) return { tone: 'ok', held: false, text: 'A judge looked at it, and the checks pass.' };
return { tone: foundTrouble(found) ? 'bad' : 'warn', held: found.length > 0, text: `${said.join('. ')}.` };
}
diff --git a/lib/report.mjs b/lib/report.mjs
index 403e41c..c64fe62 100644
--- a/lib/report.mjs
+++ b/lib/report.mjs
@@ -13,7 +13,7 @@ import { modern } from './runfile.mjs';
import { plural, sayWhat, verdictSay } from './text.mjs';
// A judge that is the model that built the run shares its blind spots, and the report says so.
-const reviewer = (review) => `${review.model}${review.sameAsBuilder ? ', the same model that built it' : ''}`;
+const reviewer = (review) => `${review.model}${review.solo ? ', the same model that built it. A solo run, so no other model looked' : review.sameAsBuilder ? ', the same model that built it' : ''}`;
const reviewCounts = (review) => `${review.flags ?? 0} flagged, ${review.fixed ?? 0} fixed${review.rejected ? `, ${review.rejected} rejected` : ''}${review.deferred ? `, ${review.deferred} deferred` : ''}`;
// A line ends without a period unless it is a full sentence, so a value written as a sentence loses its last one here.
const bare = (text) => String(text ?? '').trim().replace(/\.$/, '');
diff --git a/lib/review-run.mjs b/lib/review-run.mjs
index 0dd9440..cfed449 100644
--- a/lib/review-run.mjs
+++ b/lib/review-run.mjs
@@ -3,6 +3,7 @@ import path from 'node:path';
import { checkCommand, helperTarget } from './delegate.mjs';
import { CliError } from './errors.mjs';
import { briefFile, findingsFile, loopAskFile, loopFindingsFile, loopTask, reviewDir, reviewTask, checkLoopName } from './review.mjs';
+import { refuseWhenSolo } from './solo.mjs';
import { killTree, openLog, processStart as startOf, spawnShell } from './proc.mjs';
import { plannedRounds, roundStatus } from './rounds.mjs';
@@ -71,6 +72,7 @@ export function reviewStatus(root, now = Date.now()) {
}
export function startReview(root, config, { fallback = false, loop = null } = {}) {
+ refuseWhenSolo(root, 'a judge command');
const command = config.review.command;
if (!command) throw new CliError('No judge command is set. Set one in the global config, `100x config set review.command "<command>" --global`, or use your agent app\'s own subagent tool. The 100x-setup skill shows the commands.');
if (reviewStatus(root).state === 'running') throw new CliError('A judge is already running. Check it with `100x review-run --status`, or end it with `100x review-run --stop`.');
diff --git a/lib/review.mjs b/lib/review.mjs
index b2490b3..fd48e83 100644
--- a/lib/review.mjs
+++ b/lib/review.mjs
@@ -12,6 +12,7 @@ import { promptStyle, writtenSection } from './prompt.mjs';
import { modern } from './runfile.mjs';
import { LENSES, briefFile, findingsFile, lensFor, plannedRounds, reviewDir, roundDir, roundStatus, triageFile, readState } from './rounds.mjs';
import { CliError } from './errors.mjs';
+import { BRIEF_INTRO, CLEAN_LOOK, EARLIER_SOLO, briefRules, briefSeat, isSolo, loopSteps } from './solo.mjs';
import { plural } from './text.mjs';
export const SEVERITIES = ['blocker', 'major', 'minor', 'nit'];
@@ -237,11 +238,16 @@ export function buildBrief(root, { config, round, now = new Date() }) {
const total = config.review.rounds;
const plan = round ?? { slot: 1, total, lens: lensFor(1, total) };
const earlier = readState(root).entries;
+ // A solo run has no other model, so the brief is written for the builder in another chair. The checks and the file formats stay the same.
+ const solo = isSolo(root);
const lines = [`# Review brief. ${title}`, `Round ${plan.slot} of ${plan.total}. Lens: ${LENSES[plan.lens]}.`, ''];
lines.push(
- 'Another AI model built this and thinks it is good. Its owner is about to decide whether to publish it and put their name on it, for the people it is meant for. Your question: is this ready to ship? Be brutal. Do not soften, balance or praise to be polite. Shipping may mean a paid product, a free tool, an open-source or MIT-licensed project or a skill other people install. Never count the lack of a price, payments, a business model or a sales route against it unless the asks name one. Every flaw you miss comes back as a bug report, a bad review or a lost user. If you would not use it or recommend it to the person it is for, say that first. You see differently from the model that built it. Use that.',
+ solo
+ ? BRIEF_INTRO
+ : 'Another AI model built this and thinks it is good. Its owner is about to decide whether to publish it and put their name on it, for the people it is meant for. Your question: is this ready to ship? Be brutal. Do not soften, balance or praise to be polite. Shipping may mean a paid product, a free tool, an open-source or MIT-licensed project or a skill other people install. Never count the lack of a price, payments, a business model or a sales route against it unless the asks name one. Every flaw you miss comes back as a bug report, a bad review or a lost user. If you would not use it or recommend it to the person it is for, say that first. You see differently from the model that built it. Use that.',
'',
+ ...(solo ? [briefSeat(plan.lens, Array.from({ length: plan.slot - 1 }, (_, i) => lensFor(i + 1, plan.total)).filter((lens) => lens === plan.lens).length), ''] : []),
'## This round',
'',
plan.lens === 'ship'
@@ -252,7 +258,7 @@ export function buildBrief(root, { config, round, now = new Date() }) {
'',
'- Run it. Reading code is not a review.',
'- When the product has a screen, judge with your eyes. Open the contact sheet, then the single full-size screenshots: the smallest phone, the landscape phone and the widest desktop. Never judge a screen from its code, and never from counts alone. If you cannot see images, say so as your first finding with severity blocker.',
- `- Write only ${findingsFile(root)}, plus screenshots under ${reviewDir(root)}. Do not edit source, install packages, commit, deploy or push.`,
+ ...(solo ? briefRules(findingsFile(root), reviewDir(root)) : [`- Write only ${findingsFile(root)}, plus screenshots under ${reviewDir(root)}. Do not edit source, install packages, commit, deploy or push.`]),
'- Never play sound on this machine. Keep audio muted in every browser you drive.',
'- Run at most one dev server, with the command below. Stop it when you finish.',
'- Do not start subagents.',
@@ -295,9 +301,10 @@ export function buildBrief(root, { config, round, now = new Date() }) {
lines.push('## What was done', '');
const tags = stageTags(root);
if (tags.length) lines.push(`Stage tags. ${tags.join(', ')}`);
- const commits = recentCommits(root, 25);
+ // The commits and the decision notes are the builder's reasons, and a self-judge that reads them first believes them.
+ const commits = solo ? '' : recentCommits(root, 25);
if (commits) lines.push('Recent commits.', '```', commits, '```');
- const rows = runRows(root).slice(-30);
+ const rows = solo ? [] : runRows(root).slice(-30);
if (rows.length) lines.push('Last decisions (phase, decision, result).', ...rows.map((row) => `- ${row.phase}. ${clip(row.decision, 220)} (${clip(row.result, 60)})`));
const found = matrices(root);
if (found.length) {
@@ -315,11 +322,14 @@ export function buildBrief(root, { config, round, now = new Date() }) {
lines.push('- Playwright, a browser and any command the project already has.', '');
if (earlier.length) {
- lines.push('## Earlier rounds', '', 'You are the next judge in a back and forth. Another judge already looked, and the builder answered each finding. Do not trust the answers. Check them.', '');
+ lines.push('## Earlier rounds', '', solo ? EARLIER_SOLO : 'You are the next judge in a back and forth. Another judge already looked, and the builder answered each finding. Do not trust the answers. Check them.', '');
lines.push(...earlierRounds(root));
const lastRound = earlier.at(-1);
const since = lastRound.briefHead ? commitsAfter(root, lastRound.briefHead) : commitsSince(root, lastRound.briefedAt ?? lastRound.closedAt);
- lines.push(since ? `Commits since the last round was briefed. These are the builder's fixes.\n\`\`\`\n${since}\n\`\`\`` : 'No commits since the last round was briefed.', '');
+ // A self-judge checks a fix by running the product. The builder's commit messages are the reasons it is trying to get away from.
+ const count = since ? since.split('\n').filter(Boolean).length : 0;
+ if (solo) lines.push(count ? `${plural(count, 'commit')} since the last round was briefed, the builder's fixes. Check each accepted finding by running the product, not by reading what a commit says.` : 'No commits since the last round was briefed.', '');
+ else lines.push(since ? `Commits since the last round was briefed. These are the builder's fixes.\n\`\`\`\n${since}\n\`\`\`` : 'No commits since the last round was briefed.', '');
lines.push(
'- For every accepted finding, run the product and check the fix holds. Do not read the commit message and stop there. Write one line each under "## Earlier findings check", as "Round 1 F3 - fixed, <what you saw>" ("fixed", "not fixed" or "regressed").',
'- A rejected finding whose reason is weak is a new finding titled "Reopened: ...". A rejection that cites evidence you can reproduce stays closed.',
@@ -327,7 +337,7 @@ export function buildBrief(root, { config, round, now = new Date() }) {
'',
);
}
- lines.push(RUBRICS[plan.lens], FORMAT(root));
+ lines.push(RUBRICS[plan.lens], FORMAT(root), ...(solo ? [CLEAN_LOOK, ''] : []));
const profile = path.join(globalDir(), 'profile.md');
if (fs.existsSync(profile)) lines.push('## What the owner cares about', '', demote(clip(fs.readFileSync(profile, 'utf8').trim(), 8000), 2), '');
@@ -377,7 +387,22 @@ export const reviewTask = (root, plan) => [
// via says how to start the judge. command means `100x review-run`, harness means the agent app's own subagent tool with
// delegateTask, none means no judge is chosen yet.
+// A solo run has no judge to start. The call says where the files are and that the builder judges them itself, so it ignores
+// review.enabled: that setting turns off a second model, and a solo run never had one.
+function soloCall(root, config, { loop, now }) {
+ const base = { enabled: true, solo: true, via: 'self', configured: true, selfReview: true };
+ if (loop) {
+ const info = checkLoopName(root, loop);
+ return { ...base, brief: info.ask, findings: info.findings, deadlineMinutes: LOOP_MINUTES, loop: info, steps: loopSteps({ name: loop, ask: info.ask, findings: info.findings, answers: info.answers, minutes: LOOP_MINUTES }) };
+ }
+ const total = plannedRounds(root, config.review);
+ const status = roundStatus(root, total);
+ const room = judgeRoom(root, config, now);
+ return { ...base, brief: briefFile(root), findings: findingsFile(root), deadlineMinutes: room.minutes, ...(room.noRoom ? { noRoom: true, minutesLeft: room.left } : {}), round: { slot: status.slot, total, lens: status.lens, held: status.entries.length, open: status.inProgress, done: status.done } };
+}
+
export function reviewCall(root, config, { loop = null, now = new Date() } = {}) {
+ if (isSolo(root)) return soloCall(root, config, { loop, now });
const review = config.review;
if (!review.enabled) return { enabled: false };
// A target outside the owner's limits is refused here whether the judge starts through a command or through an app's subagent tool.
diff --git a/lib/runfile.mjs b/lib/runfile.mjs
index 8e9623d..ef7dd7a 100644
--- a/lib/runfile.mjs
+++ b/lib/runfile.mjs
@@ -75,7 +75,7 @@ function check(keys, value) {
const [key] = keys;
if (key === 'verdict' && !VERDICT_WORDS.includes(value)) throw new CliError(`verdict must be one of ${VERDICT_WORDS.join(', ')}.`);
if (key === 'polishPasses' && !(Number.isInteger(value) && value >= 0)) throw new CliError('polishPasses must be a whole number, for example 3.');
- if (key === 'mode' && value !== 'mockup') throw new CliError('mode can only be mockup. A normal run has no mode.');
+ if (key === 'mode' && !['mockup', 'solo'].includes(value)) throw new CliError('mode can only be mockup or solo. A normal run has no mode.');
if (SENTENCE_LISTS.has(key) && !Array.isArray(value)) throw new CliError(listWords(key));
if (key === 'features' && !isFeatureList(value)) throw new CliError(listWords(key));
}
diff --git a/lib/skill-meta.mjs b/lib/skill-meta.mjs
index b20e810..9223974 100644
--- a/lib/skill-meta.mjs
+++ b/lib/skill-meta.mjs
@@ -3,7 +3,7 @@ import path from 'node:path';
import { parseSkillFrontmatter } from './skill-spec.mjs';
// What every SKILL.md of this repo says about itself beyond its name and description. It comes from package.json and one sentence here, so a release
-// edits one file and `node scripts/stamp-skills.mjs` carries it to the twelve skills. `100x validate` fails when a skill drifts from it.
+// edits one file and `node scripts/stamp-skills.mjs` carries it to every skill. `100x validate` fails when a skill drifts from it.
export const COMPATIBILITY = 'Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs.';
export const repositoryUrl = (pkg) => String(pkg.repository?.url ?? pkg.repository ?? '').replace(/^git\+/, '').replace(/\.git$/, '');
diff --git a/lib/solo-check.mjs b/lib/solo-check.mjs
new file mode 100644
index 0000000..d64b2db
--- /dev/null
+++ b/lib/solo-check.mjs
@@ -0,0 +1,95 @@
+import fs from 'node:fs';
+import path from 'node:path';
+import { clockSpan } from './clock.mjs';
+import { passNames, runRows, startedAt, stateFile } from './project.mjs';
+import { verifyOn } from './prompt.mjs';
+import { loopFindingsFile, parseFindings } from './review.mjs';
+import { findingsFile, readState, roundDir } from './rounds.mjs';
+import { CHALLENGES, CHALLENGE_NAMES, LOOP_SUSPICIONS, ROUND_SUSPICIONS, challengeProblems, loopFindingCount, loopProblems, readChallenge, roundProblems, soloProof, suspicionProblems } from './solo.mjs';
+import { helperRunsSince } from './spend.mjs';
+import { plural } from './text.mjs';
+import { readLedger } from './verify.mjs';
+
+export const challengeFile = (root, name) => stateFile(root, 'solo', `${name}.md`);
+const read = (file) => (fs.existsSync(file) ? fs.readFileSync(file, 'utf8') : null);
+
+// A challenge is owed for a stage the run really went through. The plan and the build always happen. Core leaves a log row, depth leaves
+// features in run.json, and the properties are attacked once the ledger has rows.
+export function neededChallenges(root, run) {
+ const rows = runRows(root);
+ return CHALLENGE_NAMES.filter((name) => {
+ // A skipped core (core.enabled false, or a big change with a clear spec) is logged as a skip, and a skip scored nothing to attack.
+ // A dud variant ends early, with no depth, no must-not-break test and no review, so it owes no build challenge either.
+ if (name === 'build') return run?.verdict !== 'dud';
+ if (name === 'core') return rows.some((row) => row.phase === 'core' && !/\bskip(?:ped|s|ping)?\b/i.test(`${row.decision} ${row.result}`));
+ if (name === 'depth') return Array.isArray(run?.features) && run.features.length > 0;
+ if (name === 'properties') return verifyOn(root) && readLedger(root).length > 0;
+ return true;
+ });
+}
+
+// One entry for each challenge that is owed, with what is wrong with it. An empty list of problems is a challenge that passes.
+export function challengeStatus(root, run) {
+ return neededChallenges(root, run).map((name) => {
+ const text = read(challengeFile(root, name));
+ const problems = text === null
+ ? [`is missing. ${CHALLENGES[name].stage}. \`100x solo new ${name}\` writes the file to fill in`]
+ : challengeProblems(text, CHALLENGES[name], soloProof);
+ return { name, file: `.100x/solo/${name}.md`, exists: text !== null, problems };
+ });
+}
+
+// The files of the stage 6 rounds: each archived round, and the open one when it is not the same file as the last archived.
+function roundFiles(root) {
+ const entries = readState(root).entries;
+ const files = entries.map((entry) => ({ label: `round ${entry.slot}`, file: path.join(roundDir(root, entry.slot), 'findings.md') })).filter(({ file }) => fs.existsSync(file));
+ const open = read(findingsFile(root));
+ if (open !== null && open !== read(files.at(-1)?.file ?? '')) files.push({ label: 'the open round', file: findingsFile(root) });
+ return files;
+}
+
+// Everything `100x finish` asks of a solo run beyond a normal one. Nobody else started, each stage was attacked in writing, and every
+// round and loop holds the suspicions that were written before the checks.
+export function soloProblems(root, run) {
+ const errors = [];
+ const helpers = helperRunsSince(root, Date.parse(startedAt(root)) - 60000);
+ if (helpers) errors.push(`solo. run.json says mode solo, but .100x/helpers.jsonl holds ${plural(helpers, 'helper run')}. A solo run starts no other model. A run that used one is not a solo run, and only the owner says whether to take the flag off, by editing .100x/run.json by hand`);
+ if (fs.existsSync(stateFile(root, 'review', 'run.json'))) errors.push('solo. a judge command was started with `100x review-run` (.100x/review/run.json). A solo run starts no other model');
+ for (const status of challengeStatus(root, run)) for (const problem of status.problems) errors.push(`solo. ${status.file} ${problem}`);
+ let lastSeat = null;
+ for (const { label, file } of roundFiles(root)) {
+ const text = read(file);
+ const { problems, broken } = suspicionProblems(text, { min: ROUND_SUSPICIONS }, soloProof);
+ for (const problem of problems) errors.push(`solo. ${label}, findings.md ${problem}`);
+ const found = parseFindings(text).findings.length;
+ for (const problem of roundProblems(text, found)) errors.push(`solo. ${label}, findings.md ${problem}`);
+ // Two rounds in a row sit in two chairs. A seat copied from the round before is the same look again.
+ const seat = readChallenge(text).seat?.toLowerCase() ?? null;
+ if (seat && seat === lastSeat) errors.push(`solo. ${label}, findings.md has the same seat as the round before. Sit somewhere else, the brief names the seat`);
+ lastSeat = seat;
+ if (broken > found) errors.push(`solo. ${label}, findings.md has ${plural(broken, 'broken suspicion')} and ${plural(found, 'finding')}. A suspicion that came out broken is a finding, with a severity`);
+ }
+ const loops = [...passNames(root), ...Array.from({ length: runRows(root).filter((row) => row.phase === 'round').length }, (_, i) => `round-${i + 1}`)];
+ for (const name of loops) {
+ const text = read(loopFindingsFile(root, name));
+ if (text === null) continue;
+ const { problems, broken } = suspicionProblems(text, { min: LOOP_SUSPICIONS }, soloProof);
+ for (const problem of problems) errors.push(`solo. loop ${name}, judge.md ${problem}`);
+ const found = loopFindingCount(text);
+ for (const problem of loopProblems(text, found)) errors.push(`solo. loop ${name}, judge.md ${problem}`);
+ if (broken > found) errors.push(`solo. loop ${name}, judge.md has ${plural(broken, 'broken suspicion')} and ${plural(found, 'finding')}. A suspicion that came out broken is a finding, a line that starts with its severity (blocker, major, minor or nit)`);
+ }
+ return errors;
+}
+
+const CLOCK_GRACE_MINUTES = 30;
+
+// A solo run may finish UNREVIEWED only when the clock left no room for a round. The clock that says so is the owner's, set when
+// the run began. One set at the end of the run, to a few minutes, would say it every time.
+export function lateClock(root) {
+ const span = clockSpan(root);
+ const began = Date.parse(startedAt(root));
+ if (!span || Number.isNaN(began) || Math.abs(span.setAt - began) <= CLOCK_GRACE_MINUTES * 60000) return null;
+ const when = (ms) => new Date(ms).toISOString();
+ return `the clock was set at ${when(span.setAt)} and the run began at ${when(began)}. A clock that is not the one the run began with cannot say there was no room for a round. Run stage 6 yourself: \`100x brief\`, \`100x review-call\`, and the round procedure in \`100x ref solo\``;
+}
diff --git a/lib/solo.mjs b/lib/solo.mjs
new file mode 100644
index 0000000..db6fa76
--- /dev/null
+++ b/lib/solo.mjs
@@ -0,0 +1,331 @@
+import { CliError } from './errors.mjs';
+import { readRun } from './project.mjs';
+
+// A solo run is the whole 100x pipeline done by one model in one chat. No helper, judge or child ever starts. Every second look that a
+// normal run gets from another model is this model attacking its own work, in writing, with proof from running it. run.json says
+// `mode: solo`, the commands that would start another model refuse, and `100x finish` checks the challenge files in .100x/solo.
+export function isSolo(root) {
+ if (!root) return false;
+ try {
+ return readRun(root)?.mode === 'solo';
+ } catch {
+ // A damaged run.json is reported by the command that needs it, in its own words. A guard is never the first thing to fail on it.
+ return false;
+ }
+}
+
+export function refuseWhenSolo(root, what) {
+ if (!isSolo(root)) return;
+ throw new CliError(`This is a solo run (run.json says mode solo), so no other model starts: ${what}. The model in this chat builds and judges, and \`100x ref solo\` says how it challenges its own work. Only the owner can decide that this run is not solo, by editing .100x/run.json by hand.`);
+}
+
+// The flag is one way for the life of a run. An agent that could take it off could start a helper and put it back.
+export function refuseModeChange(root, key, value) {
+ const unquoted = typeof value === 'string' ? value.trim().replace(/^(["'])(.*)\1$/, '$2') : value;
+ if (!/^mode(\.|$)/.test(key) || !isSolo(root) || (key === 'mode' && unquoted === 'solo')) return;
+ throw new CliError('This is a solo run, and the solo flag stays for the life of the run. Taking it off is the owner\'s call, made by editing .100x/run.json by hand. Nothing in a solo run may start another model.');
+}
+
+// The challenge files of a run, one per stage. `when` names what makes one required, and `min` is how many suspicions it holds at least.
+export const CHALLENGES = {
+ plan: {
+ min: 5,
+ stage: 'Stage 0, after the prompt check, before any code',
+ seat: 'the owner reading project.md cold on day two, who wanted something else',
+ read: 'project.md and the brief, word for word. Not your reasons for the plan',
+ questions: [
+ 'Does every ask trace to words in the brief, and is there a word in the brief that no ask covers?',
+ 'Which ask would I close on weak evidence, and what would strong evidence be?',
+ 'Which line under Properties or Rules is a claim that can be false? Write the case that would break it.',
+ 'What is the riskiest assumption, really? Does the Core slice test it, or something easier?',
+ 'What did I assume instead of asking, and which assumption is expensive to undo?',
+ 'What would make the owner drop this on day two? What is the best alternative, and why would anyone pick this?',
+ ],
+ },
+ core: {
+ min: 5,
+ stage: 'Stage 1, after the Core score, before the verdict stands',
+ seat: 'the owner opening the slice cold, with one minute',
+ read: 'the running slice and its screenshots. Not the core log row or your notes',
+ questions: [
+ 'Did the slice test the riskiest assumption, or an easier one?',
+ 'Score it again with the tests in `100x ref core`, from the screenshots alone. What did you see for each, and would a stranger score higher or lower?',
+ 'Would I send this screenshot to a friend, or am I flattered by how hard it was to make?',
+ 'Pivot or go on: what evidence says go on, and what would a pivot look like?',
+ 'What is the weakest second of the moment, and what makes it feel cheap?',
+ 'Does it start from the project\'s own command on a fresh clone?',
+ ],
+ },
+ build: {
+ min: 5,
+ stage: 'Stage 2, when the asks are closed, before polish',
+ seat: 'a stranger on a fresh clone who owes the builder nothing',
+ read: 'the running product, the README and the Asks list. Not STATE.md and not your commit messages',
+ questions: [
+ 'From a fresh clone, do the install and run commands work exactly as written?',
+ 'Which ask did I close on evidence I did not run again just now? Run it again.',
+ 'What breaks with empty, huge, hostile, double submitted or offline input?',
+ 'What did I leave as a stub, a TODO or a hard coded value that a user will hit?',
+ 'What does the first screen show with no data, with one item and with a thousand?',
+ 'Where does an error reach the user, and what does it say? What is the first line in the console?',
+ ],
+ },
+ depth: {
+ min: 5,
+ stage: 'Stage 3, after the predicted features are built, before polish',
+ seat: 'the owner who asked for none of the extra features and will notice every one',
+ read: 'run.json features, their cut hints and the predicted follow ups in project.md',
+ questions: [
+ 'Does each feature cut cleanly? Run the cut for each one, then run the moment.',
+ 'Is each one a prediction of what the owner will ask for, or something I wanted to build?',
+ 'Does any feature make the moment worse, slower or busier?',
+ 'Did any feature leak into the core flow, the data or the first screen?',
+ 'Which feature would the owner delete first?',
+ ],
+ },
+ properties: {
+ min: 5,
+ stage: 'Stage 5, once the ledger has rows, before the first review round',
+ seat: 'an adversary who holds the specification and is paid for every counterexample',
+ read: 'verify/ledger.tsv, the code each row covers and `100x ref properties`. Not the comments in the models',
+ questions: [
+ 'For each row, write an input or a sequence of steps that breaks the sentence, and run it against the real code.',
+ 'What five things must always be true about this logic that no row states? Think of conservation, order, doing it twice, bounds and who may do it.',
+ 'What does each model leave out? Widen one bound or add the missing case, and run it again.',
+ 'Which rows hold only at the smallest size? Say so in the level, and say what is not covered.',
+ 'Did each red run fail for the seeded defect, and not for a typo?',
+ 'Which covered code changed since its row last ran?',
+ ],
+ },
+};
+export const CHALLENGE_NAMES = Object.keys(CHALLENGES);
+export const RECHECK_MIN = 3;
+export const ROUND_SUSPICIONS = 8;
+export const LOOP_SUSPICIONS = 5;
+
+export const QUESTION = 'Let\'s analyze this. Is it correct? Is it good? Be brutal. Assume it is not, and find out why.';
+
+// The seat a round takes by its lens. A look from the builder's own chair finds what the builder already believes, so each look
+// starts by sitting somewhere else.
+export const SEATS = {
+ code: ['a staff engineer who is paged when this breaks and did not write it', 'a tester paid for every bug, who starts with the inputs nobody expected'],
+ product: ['a stranger on a phone with ten seconds to spare, who owes the maker nothing', 'a first time user on the slowest phone, who cannot ask anyone and will not read a manual'],
+ ship: ['a person deciding whether to put their name on this, who knows the best alternative', 'a competitor reading it to find the reason not to pick it'],
+};
+// `nth` counts the earlier rounds of the same lens, so the second code round sits in the second code seat.
+export const seatFor = (lens, nth = 0) => SEATS[lens][Math.max(0, nth) % SEATS[lens].length];
+
+// The chairs of the loops, one for each pass or round in turn.
+export const LOOP_SEATS = [
+ 'a stranger on a phone who did not build this and owes its maker nothing',
+ 'a user on the slowest phone who cannot ask anyone and will not read a manual',
+ 'a skeptic who has used the best alternative for years and wants a reason to stay',
+];
+const loopSeat = (name) => LOOP_SEATS[(Number(/(\d+)$/.exec(name)?.[1] ?? 1) - 1) % LOOP_SEATS.length];
+
+export function challengeTemplate(name) {
+ const c = CHALLENGES[name];
+ return `# Challenge: ${name}
+Seat: ${c.seat}
+
+${QUESTION}
+
+Read only: ${c.read}. Do not reread STATE.md, your decision notes or your own earlier answers until you reach Fixes. They are why you cannot see the flaws.
+
+Questions to start from. Add your own.
+${c.questions.map((question) => `- ${question}`).join('\n')}
+
+Write the suspicions before you run anything, at least ${c.min}. One list item each, in this form, and no list item for the form itself:
+S1 <a sentence that could be false>. Proof: <the command in backticks and its output, a screenshot path you opened, a file or a commit>. Result: holds | broken
+
+## Suspicions
+
+## Recheck
+Seat: <a different person than above, for example a user on the slowest phone>
+(Only when nothing broke above: at least ${RECHECK_MIN} more list items from that seat, with harder inputs, in the same form but numbered R1, R2 and so on.)
+
+## Fixes
+(One list item for each broken suspicion: what changed, the commit, and what you ran again to see it hold.)
+
+Verdict: open
+(holds: nothing broke, and the recheck is done. fixed: every broken one is fixed and run again.)
+`;
+}
+
+// What a proof may point at. The normal run's test lets a bare digit through, and a self-review is the place where that matters:
+// a number is what you write when nothing was run. A command in backticks, a file or a commit is what a reader can go and check.
+const PROOF = /`(?=[^`]*[a-z])(?:[^`]*[\s\/.][^`]*|[^`]{3,})`|\b(?=[0-9a-f]*[a-f])(?=[0-9a-f]*\d)[0-9a-f]{7,40}\b|(?:[\[email protected]]+\/)+[\w@-]+\.[a-z][a-z0-9]{1,5}\b|\.100x\/[\w@./-]+|\b[\w-]{2,}\.[a-z][a-z0-9]{1,5}\b/i;
+export const soloProof = (text) => PROOF.test(text);
+
+// A list item is one line, plus the lines that continue it until a blank line, a heading or the next item.
+const LIST_ITEM = /^\s*(?:[-*]|\d+[.)])\s+(\S.*)$/;
+const HEADING = /^(#{1,4})\s+(.*)$/;
+const SECTIONS = ['suspicions', 'recheck', 'fixes'];
+// A finding line starts with a severity word, in the shapes the repository already uses: `major: x`, `F1 [major] x`, `[major] x`, `## F1 [major] x`.
+const FINDING_LINE = /^\s*(?:#{1,4}\s+)?(?:(?:[-*]|\d+[.)])\s+)?\**(?:F\d+\s+)?\[?(blocker|major|minor|nit)\b/i;
+
+export function readChallenge(text) {
+ const out = { seat: null, recheckSeat: null, verdict: null, suspicions: [], recheck: [], fixes: [] };
+ let section = null;
+ let item = null;
+ const flush = () => {
+ if (item && section) out[section].push(item.join(' '));
+ item = null;
+ };
+ for (const line of String(text).split('\n')) {
+ const heading = HEADING.exec(line);
+ if (heading) {
+ flush();
+ const word = heading[2].trim().toLowerCase().split(/\W+/)[0];
+ section = SECTIONS.includes(word) ? word : null;
+ continue;
+ }
+ const seat = /^\**Seat:\**\s*(.*)$/i.exec(line);
+ if (seat) {
+ flush();
+ const said = seat[1].replace(/\*+$/, '').trim();
+ if (section === 'recheck') out.recheckSeat ??= said;
+ else if (section === null) out.seat ??= said;
+ continue;
+ }
+ // A finding written under the suspicions ends the list. It is not a suspicion without an id.
+ if (FINDING_LINE.test(line) && !(item && /^\s{2,}\S/.test(line)) && (section === 'suspicions' || section === 'recheck')) {
+ flush();
+ section = null;
+ continue;
+ }
+ const verdict = /^\**Verdict:\**\s*\**([a-z]+)/i.exec(line);
+ if (verdict) {
+ flush();
+ out.verdict = verdict[1].toLowerCase();
+ continue;
+ }
+ if (!section) continue;
+ const listed = LIST_ITEM.exec(line);
+ if (listed) {
+ flush();
+ item = [listed[1].trim()];
+ } else if (item && line.trim()) item.push(line.trim());
+ else flush();
+ }
+ flush();
+ return out;
+}
+
+const proofOf = (text) => /\bproof:\s*(.*?)(?=\s*\bresult:|$)/i.exec(text)?.[1]?.trim() ?? '';
+const resultOf = (text) => /\bresult:\s*\**(holds|broken)\b/i.exec(text)?.[1]?.toLowerCase() ?? null;
+const clip = (text) => (text.length > 60 ? `${text.slice(0, 59)}…` : text);
+
+// Every suspicion has to name what was run or seen and say how it came out. `checkable` is the test the triage uses for a reason.
+const idOf = (text) => /^\**(S\d+|R\d+)\b/i.exec(text)?.[1]?.toUpperCase() ?? null;
+
+export function itemProblems(items, checkable, label = 'suspicion', prefix = 'S') {
+ const problems = [];
+ const seen = new Set();
+ items.forEach((text, index) => {
+ const where = `${label} ${index + 1} ("${clip(text)}")`;
+ const id = idOf(text);
+ if (!id || !id.startsWith(prefix)) problems.push(`${where} has no id. Start it with ${prefix}1, ${prefix}2 and so on, so a fix can name it`);
+ else if (seen.has(id)) problems.push(`${where} reuses the id ${id}`);
+ seen.add(id);
+ if (!checkable(proofOf(text))) problems.push(`${where} has no proof. After "Proof:" name a command in backticks, a file path or a commit. A bare number is not proof`);
+ if (!resultOf(text)) problems.push(`${where} says no result. End it with "Result: holds" or "Result: broken"`);
+ });
+ return problems;
+}
+
+export const brokenCount = (items) => items.filter((text) => resultOf(text) === 'broken').length;
+const brokenIds = (items) => items.filter((text) => resultOf(text) === 'broken').map(idOf).filter(Boolean);
+
+// A finding in a loop's judge.md is a line that starts with a severity word. The loop has no findings list of its own.
+export const loopFindingCount = (text) => String(text).split('\n').filter((line) => FINDING_LINE.test(line)).length;
+
+// A challenge file passes when it holds enough suspicions with proof, a clean look was looked at again from another seat, and every
+// break was fixed and run again. A break that nobody fixed, or a verdict left open, does not pass.
+export function challengeProblems(text, { min }, checkable) {
+ const c = readChallenge(text);
+ const problems = [];
+ const placeholder = (seat) => !seat || seat.startsWith('<');
+ if (placeholder(c.seat)) problems.push('has no "Seat:" line before the first heading. Say who you were for this look');
+ if (c.suspicions.length < min) problems.push(`holds ${c.suspicions.length} suspicions under "## Suspicions" and needs at least ${min}`);
+ problems.push(...itemProblems(c.suspicions, checkable));
+ const all = [...c.suspicions, ...c.recheck];
+ const broken = brokenCount(all);
+ if (!c.verdict || c.verdict === 'open') problems.push('has no verdict yet. Close it with "Verdict: holds" or "Verdict: fixed"');
+ else if (!['holds', 'fixed'].includes(c.verdict)) problems.push(`has the verdict "${c.verdict}". It is holds or fixed`);
+ else if (broken > 0 && c.verdict === 'holds') problems.push(`has ${broken} broken suspicion${broken === 1 ? '' : 's'} and the verdict holds. Fix them, run them again and say "Verdict: fixed"`);
+ else if (broken === 0 && c.verdict === 'fixed') problems.push('says fixed, and no suspicion is broken');
+ if (broken > 0) {
+ if (c.fixes.length === 0) problems.push(`has ${broken} broken suspicion${broken === 1 ? '' : 's'} and no list item under "## Fixes"`);
+ for (const [index, fix] of c.fixes.entries()) if (!checkable(fix)) problems.push(`fix ${index + 1} ("${clip(fix)}") names no commit, path or command. Say what changed and what you ran again`);
+ for (const id of brokenIds(all)) if (!c.fixes.some((fix) => new RegExp(`^\\**${id}\\b`, 'i').test(fix))) problems.push(`${id} came out broken and no fix starts with it. Start its item under "## Fixes" with ${id}`);
+ } else if (c.suspicions.length >= min) {
+ // The list comes first. A recheck is owed once there is a list that found nothing.
+ if (c.recheck.length < RECHECK_MIN) problems.push(`found nothing, so it was looked at again from another seat. "## Recheck" needs at least ${RECHECK_MIN} list items and has ${c.recheck.length}`);
+ if (placeholder(c.recheckSeat)) problems.push('has no "Seat:" line under "## Recheck". A second look from the same chair finds the same things');
+ else if (c.seat && c.recheckSeat.toLowerCase() === c.seat.toLowerCase()) problems.push('has the same seat in "## Recheck" as above. Look again from another one');
+ }
+ // The recheck holds its own items however the look came out, so a break found there is held to the same rules.
+ if (c.recheck.length > 0) problems.push(...itemProblems(c.recheck, checkable, 'recheck item', 'R'));
+ return problems;
+}
+
+// What a round or a loop file has to hold, which is the brief's own format plus a list of suspicions written first.
+export function suspicionProblems(text, { min }, checkable) {
+ const items = readChallenge(text).suspicions;
+ const problems = [];
+ if (items.length < min) problems.push(`holds ${items.length} suspicions under "## Suspicions" and needs at least ${min}, written before the checks`);
+ problems.push(...itemProblems(items, checkable));
+ return { problems, broken: brokenCount(items) };
+}
+
+// A round's findings.md also says who judged and, when it found nothing, that it looked again.
+export function roundProblems(text, findings) {
+ const c = readChallenge(text);
+ const problems = [];
+ if (!c.seat || c.seat.startsWith('<')) problems.push('has no "Seat:" line before the first heading. Say who you were for this round, as the brief asks');
+ if (findings === 0 && !/^\s*\**Rechecked:\**\s*\S/im.test(text)) problems.push('has no findings and no "Rechecked:" line. A look that finds nothing is looked at again from another seat, and the line says what that second look found');
+ return problems;
+}
+
+// A loop's judge.md names the chair it was judged from, and a loop that found nothing says what the second look found.
+export function loopProblems(text, findings) {
+ const problems = [];
+ const seat = /^\s*\**Seat:\**\s*(\S.*)$/im.exec(text)?.[1];
+ if (!seat || seat.startsWith('<')) problems.push('has no "Seat:" line. Write the chair from step 2 on the line after "Judged by:"');
+ if (findings === 0 && !/^\s*\**Rechecked:\**\s*\S/im.test(text)) problems.push('has no findings and no "Rechecked:" line. A look that finds nothing is looked at again from another seat, and the line says what that second look found');
+ return problems;
+}
+
+// What the brief and the loop task say in a solo run. The judge's own brief is written for another model, so a solo run swaps the
+// parts that assume one.
+export const BRIEF_INTRO = 'You built this, and now you judge it. This is a solo run: no other model looks and no helper starts, so nobody catches what you miss. Its owner is about to decide whether to publish it and put their name on it, for the people it is meant for. Your question: is it correct, is it good, is it ready to ship? Be brutal. Do not soften, balance or praise to be polite. Shipping may mean a paid product, a free tool, an open-source or MIT-licensed project or a skill other people install. Never count the lack of a price, payments, a business model or a sales route against it unless the asks name one. Every flaw you miss comes back as a bug report, a bad review or a lost user. If you would not use it or recommend it to the person it is for, say that first. You know why every choice was made, and that is the bias. Judge only what the files and the running product show, never what you remember intending.';
+
+export const briefSeat = (lens, nth) => `Your seat this round: ${seatFor(lens, nth)}. Say it on the first line of findings.md, as "Seat: ...". Until the findings are written you are that person and did not build this.`;
+
+export const briefRules = (findings, dir) => [
+ `- Write ${findings} first, complete, before you change anything. Fixes come after triage, never during the look. Screenshots go under ${dir}. Do not commit, deploy or push while you judge.`,
+ '- Do not read STATE.md, your earlier answers or commit messages to decide that something is fine. They are context, not proof. Run it and look.',
+ `- Before you run anything, write at least ${ROUND_SUSPICIONS} suspicions under "## Suspicions" at the top of findings.md. One list item each, a sentence that could be false, in the form "S1 <suspicion>. Proof: <the command in backticks and its output, a screenshot path you opened, a file or a commit>. Result: holds | broken". Fill in Proof and Result as you test. Every suspicion that comes out broken is also a finding below, one finding for each, that names its id. Not a single one may stay without proof.`,
+ '- Reject nothing in your head. A flaw you wave off without writing it down is the flaw you will ship.',
+];
+
+export const EARLIER_SOLO = 'You judged this in an earlier round, then answered your own findings. Do not trust those answers. Check them.';
+
+export const CLEAN_LOOK = 'A look that finds nothing is suspect. Say what you tried and what each try would have shown if the work were broken. Then look again from the seat of a different person with harder inputs, and write one line that starts with "Rechecked:" and says what that second look found. Only then may the file stand with no findings.';
+
+export function loopSteps({ name, ask, findings, answers, minutes }) {
+ return [
+ `Loop ${name}. Solo: you did this work and you judge it. Nobody else looks. ${QUESTION}`,
+ '1. Commit what you have, so the work you judge cannot change while you judge it.',
+ `2. Sit in this chair: ${loopSeat(name)}. Do not reread STATE.md, your decision notes or your earlier answers. They are why you cannot see the flaws.`,
+ `3. Open ${ask} for the paths of the before and after screenshots and the run command, and read nothing more of it yet. When the product has a screen, open the before and after contact sheets, then the single full-size screenshots: the smallest phone, the landscape phone and the widest desktop. Write one line per screen into ${findings} under "## First look", of what a stranger sees in ten seconds. Counts are not looking. If you cannot see images, write that as the first finding with the severity blocker, and write "Better: no".`,
+ `4. Now read the rest of the ask: what this loop tried to do. Choose how it must be judged and say it on the first line of ${findings}: "Judged by: looking" for work a user sees or feels, "running" for flows and behavior, "numbers" for math, speed and data, "words" for text. A loop can need two. Pick the way that is hardest on the work, not the way that is easiest for you. On the second line write "Seat: " and the chair from step 2.`,
+ `5. Write at least ${LOOP_SUSPICIONS} suspicions under "## Suspicions", each a sentence that could be false, in the form "S1 <suspicion>. Proof: <the command in backticks and its output, a screenshot path you opened, a file or a commit>. Result: holds | broken". Then test them: run the product with the command in the ask, do the main flow, look at every state you reach, use your own inputs and recompute any number another way.`,
+ '6. Under a "## Findings" heading below the suspicions, write the findings, short, one line each that starts with a severity word (blocker, major, minor, nit) and says what you saw, not what you remember. Every broken suspicion is a finding of its own, named by its id.',
+ '7. End the file with exactly these two lines: "Drifting: yes" or "Drifting: no", then "Better: yes" or "Better: no". Drifting means the work is moving away from the moment or into a bad idea, even when each change looks fine.',
+ `8. ${CLEAN_LOOK}`,
+ `9. Only now write ${answers}: for each finding, fixed (say where) or rejected with evidence. To reject one, first write the best case that it is right, then the command or screenshot that beats it.`,
+ `10. You have ${minutes} minutes. Never play sound. Start no other agent. When done, say the Judged by line, the finding counts, the Drifting and Better lines.`,
+ ];
+}
diff --git a/lib/spend.mjs b/lib/spend.mjs
index c9b4331..afb8291 100644
--- a/lib/spend.mjs
+++ b/lib/spend.mjs
@@ -41,6 +41,9 @@ export function spent(root) {
};
}
+// The helpers started since `sinceMs`. A row with no readable time counts, so a damaged line never hides a helper.
+export const helperRunsSince = (root, sinceMs) => rows(root).filter((row) => !Number.isFinite(Date.parse(row.at)) || Date.parse(row.at) >= sinceMs).length;
+
export const budgetOf = (root) => load({ cwd: root }).effective.budget.tokens;
const count = (tokens) => (tokens >= 1e6 ? `${(tokens / 1e6).toFixed(1)}M` : tokens.toLocaleString('en-US'));
diff --git a/lib/watchdog.mjs b/lib/watchdog.mjs
index 38b6233..2518241 100644
--- a/lib/watchdog.mjs
+++ b/lib/watchdog.mjs
@@ -9,7 +9,7 @@ export function tickPrompt(root) {
'If you are working or waiting on a tool right now, ignore this message and carry on. Do not reply to it.',
`If your last turn ended and the run is not finished, run \`100x status\` in ${root} and follow the first line that fits.`,
`- Run FINISHED. Delete this scheduled task with your app's own tool, using the id in ${recordFile(root)}, run \`100x watchdog clear\`, and reply with the run summary once.`,
- '- A judge or helper you started has not reported back. Look once: a loop judge is done when its judge.md ends with the Drifting and Better lines, a stage 6 judge is done when .100x/review/findings.md ends with a Verdict section that has a Ready to ship line, and a night child is done when `100x night status` says it ended. Done: carry on with its result. Still running: do nothing, say nothing and end this turn, because its end wakes you. Never start a second one for the same loop.',
+ '- A judge or helper you started has not reported back. Look once: a loop judge is done when its judge.md ends with the Drifting and Better lines, a stage 6 judge is done when .100x/review/findings.md ends with a Verdict section that has a Ready to ship line, and a night child is done when `100x night status` says it ended. Done: carry on with its result. Still running: do nothing, say nothing and end this turn, because its end wakes you. Never start a second one for the same loop. A solo run starts none, so this line never applies to it.',
'- Run NOT FINISHED. Read .100x/STATE.md and do what Next says. Nobody is awake. Do not ask the owner anything. Decide, log the decision with `100x log`, and keep going until `100x finish` succeeds.',
'- The Clock line says to use all the time and work is left. Saying the run is done is wrong. `100x finish` refuses until the work time is over. Start the next round from references/fill.md of the 100x skill.',
'- Your last turn failed or was interrupted. Log one line saying what went wrong, then continue from STATE.md.',
diff --git a/skills/100x-continue/SKILL.md b/skills/100x-continue/SKILL.md
index 62ef6a7..452764e 100644
--- a/skills/100x-continue/SKILL.md
+++ b/skills/100x-continue/SKILL.md
@@ -23,6 +23,6 @@ Done when the run is back at work from its last true state, or you told the owne
- `100x status` says FINISHED: say so in one line with the verdict and point to `100x-report`. Start no work. When the owner added an ask, treat it as a new brief and run `100x init --fresh` first.
- NOT FINISHED: go on.
3. Do not run `100x init` or `100x log --start`. They would begin a second run. Log one row: `100x log resume "continuing at <stage>" "<why it stopped, or that the owner said continue>" "<the Stage line of STATE.md, as written>"`.
-4. Read the modifiers and the mode in `project.md`. A night run (`Mode: overnight`) or a fill clock: follow the `100x-overnight` skill, and arm the watchdog again when `.100x/watchdog.json` is missing. A mockup (`run.json` says mode mockup) keeps the `100x-mockup` skill and skips step 5, because a mockup never updates `STATE.md`, so its `Next:` line is still the one `100x init` wrote. Look at what the folder holds (`index.html`, screenshots, `MOCKUP.md`), go on at the first step of that skill the folder does not show as done, keep its 15 minute clock (`100x clock`) and start no judge. A grind (`Grind: yes`) keeps the `100x-grind` skill: when `100x config print` shows `review.grind` off, turn it on again, and go on at step 4 of that skill. A wrap up (`WRAPUP.md`, tag `100x/wrapup`) keeps the `100x-wrapup` skill.
+4. Read the modifiers and the mode in `project.md`. A night run (`Mode: overnight`) or a fill clock: follow the `100x-overnight` skill, and arm the watchdog again when `.100x/watchdog.json` is missing. A mockup (`run.json` says mode mockup) keeps the `100x-mockup` skill and skips step 5, because a mockup never updates `STATE.md`, so its `Next:` line is still the one `100x init` wrote. Look at what the folder holds (`index.html`, screenshots, `MOCKUP.md`), go on at the first step of that skill the folder does not show as done, keep its 15 minute clock (`100x clock`) and start no judge. A grind (`Grind: yes`) keeps the `100x-grind` skill: when `100x config print` shows `review.grind` off, turn it on again, and go on at step 4 of that skill. A wrap up (`WRAPUP.md`, tag `100x/wrapup`) keeps the `100x-wrapup` skill. A solo run (`run.json` says mode solo) keeps the `100x-solo` skill: start no helper, go on at `Next:` in `STATE.md`, and let `100x solo check` say which challenge files are still owed.
5. Go on at `Next:` in `STATE.md`. When the code disagrees with it (uncommitted changes, a half made file), finish or undo that one step first, then make `STATE.md` true again.
6. Reply in at most three lines: where the run stood (the stage in plain words, from `100x ref words`), what you do now, the time left when a clock runs. Then keep working.
diff --git a/skills/100x-grind/SKILL.md b/skills/100x-grind/SKILL.md
index 038b803..055f1fe 100644
--- a/skills/100x-grind/SKILL.md
+++ b/skills/100x-grind/SKILL.md
@@ -19,7 +19,7 @@ Done when `100x triage` said Green light and `100x finish` accepted the run. Or
## Steps
-1. Read the message and `100x status`.
+1. Read the message and `100x status`. A solo run (`run.json` says mode solo) cannot grind, because the green light has to come from a fresh judge and this model cannot be one. Say so in one line and stop.
- A brief: this is a normal build with the grind on. Follow the `100x` skill from Stage 0. Its step 6 turns the grind on once the folder exists.
- No brief and a run in this folder: grind it. A run still before stage 6 goes through the `100x-continue` skill first. A run that already finished is ground anyway and finished again at the end, which replaces its report and its row.
- No brief and no run: one line asking for the brief. Create nothing.
diff --git a/skills/100x-judge/SKILL.md b/skills/100x-judge/SKILL.md
index de4a6d9..5897406 100644
--- a/skills/100x-judge/SKILL.md
+++ b/skills/100x-judge/SKILL.md
@@ -15,6 +15,8 @@ Judge rounds on what is already built. Nothing new builds.
The model that built a prototype shares its own blind spots. A second model that runs the thing and reads it with fresh eyes catches what the builder explained away. It is asked one question, "is this ready to ship, be brutal", in rounds. The judge looks, you fix, a fresh judge looks again and checks your fixes. `review.rounds` sets how many, 5 by default. Round by round the lens moves from the code and how it behaves, to the UI and UX, and the last round is the ship test over everything. A clean round skips the rest of its lens. It is the only second agent a run starts by default. No setting about helpers or counts limits it, and only `review.enabled false` turns it off. Never skip it because you expect a limit. Try to start it. The `100x-grind` skill is this skill with no round count: the rounds go on until a judge says yes.
+In a solo run (`run.json` says mode solo) no second model starts, so skip steps 5 and 6, the check of the model that ran, and the section "When the call fails": nothing can fail to start and nothing falls back. `100x review-call` says so, and the rounds are written challenges by this model: follow `100x ref solo` for them, the log rows of steps 4 and 10 included, worded there as a self-review. `review.model` is this chat's own model, never one a check names.
+
Done when `100x triage` says all rounds are done, every accepted finding is fixed and re-checked, and the run is marked reviewed, or it is UNREVIEWED with the reason.
The same judge also sits in every loop, not only here. Each polish pass and each fill round asks a fresh judge the brutal question through `100x review-call --loop <name>`, with the ask at `.100x/loops/<name>/ask.md` and the answers at `answers.md`. The polish and fill references say when. Start and wait for a loop judge exactly as in steps 5 and 6 below, with the loop's 20 minute deadline. A loop judge adapts to its loop: it judges what a user sees with its eyes on the single screenshots and never from code, runs flows end to end, and tests numbers with its own inputs. Its first line says how it judged.
diff --git a/skills/100x-overnight/SKILL.md b/skills/100x-overnight/SKILL.md
index 7583b37..a5a31db 100644
--- a/skills/100x-overnight/SKILL.md
+++ b/skills/100x-overnight/SKILL.md
@@ -33,6 +33,8 @@ Done when every brief has a finished run or a stated block, the watchdog is dele
## What the children do
+A child is another model, so a child never runs solo. An owner who wants no helpers calls `100x-solo` with a length of work instead, as one brief in one chat.
+
Each child runs the `100x` pipeline on its own folder, with the wake time as its deadline. At 20 percent of the time left it stops the remaining stages and runs the `100x-wrapup` skill, so every prototype ends working rather than half built. A child for a `--mockup` brief calls `100x-mockup` instead, with its own 15 minute clock, no judge and no wrap up. A retried mockup starts its mockup again, because a mockup never updates `STATE.md`, so there is nothing to resume from. `100x night next` writes all of this into the child's task.
## Safe while nobody watches
diff --git a/skills/100x-solo/SKILL.md b/skills/100x-solo/SKILL.md
new file mode 100644
index 0000000..6b60d04
--- /dev/null
+++ b/skills/100x-solo/SKILL.md
@@ -0,0 +1,59 @@
+---
+name: 100x-solo
+description: "Use for /100x-solo, or when the owner wants a whole 100x run done by this one model in this one chat, with no subagents, no helpers and no second model: 'solo', 'do it all yourself', 'never delegate'. Same pipeline as 100x. It judges its own work in writing at every step, as a stranger would, and says in the report and the final message that nobody else looked."
+license: MIT
+compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
+metadata:
+ author: "DeadInternetStudios"
+ version: "0.1.0"
+ repository: "https://github.com/DeadInternetStudios/100x-engineer-skill"
+---
+
+# Solo
+
+One model, one chat, no helpers. The full 100x run, where each second look that a normal run gets from another model is this model attacking its own work, in writing, with proof from running it, again and again.
+
+This is weaker than a second model, and the run says so. A builder cannot see all of its own blind spots. Solo makes it hard on itself in ways a file can show, and `100x finish` refuses what it can check. `100x ref solo` has the rules and the whole procedure. Read it before the first challenge.
+
+Done when `100x finish` has accepted the run, every challenge file passes `100x solo check`, every round and loop file holds its suspicions, and the final message says that no other model looked.
+
+## What changes from `100x`
+
+- **No one else starts.** No subagent, helper, child or judge, for any reason. Where any guide says to start a judge, a backup judge, a fallback or a child, a challenge takes that step instead. Not the Task tool, `100x helper`, `100x review-run`, `100x night`, `claude -p`, `codex exec`, `cursor-agent` or a browser subagent. Tools are fine. Handing work to another model is not. The first three refuse in a solo run, `100x run unset mode` refuses too (the flag is one way), and `100x finish` refuses a run that started one.
+- **The same pipeline.** Stages 0 to 8 of the `100x` skill with its stage guides: the prompt, the one thing that must not break, the screens, the report, and the invariants. "No rule, no guess" stays fully on: a `NO RULE` answer from `100x verify cover` still starts the verification procedure, each property is shown to fail before it is trusted, and the ledger is attacked in the `properties` challenge and in every code round.
+- **Challenges in place of judges.** Where the pipeline asks a judge, you challenge your own work, in another chair, in a file. `100x ref solo` says where and how.
+- **This model judges.** The model in this chat builds and judges, whatever `builder`, `review` and `fallback` say in the settings. Never ask to switch, and never wait for another model.
+- **The owner's number phrases** work: `5 rounds of judging`, `for 10 hours`, `3 versions` (one after the other, never at once, each sibling folder its own solo run with `100x run set mode solo` right after its `100x init`, and a dud ending as the variants guide says) and `no verification`. `max N subagents` is dropped, and the first line says so.
+
+## The question
+
+Every challenge starts with it. Ask it of the work as if someone else had made it, and ask it of the running product and the files, never of your memory of making it.
+
+> Let's analyze this. Is it correct? Is it good? Be brutal. Assume it is not, and find out why.
+
+## Steps
+
+1. Stage 0 steps 1 to 4 of the `100x` skill. Solo starts a new run: an unfinished run in this folder that began another way keeps its way, so say that in one line and point to `100x-continue`. After `100x init` run `100x run set mode solo` at once, so a status check, a continue and the CLI know from the first minute. Settle the owner's rules (`100x ref rules`) with this reading: a rule against subagents is what this mode keeps.
+2. Step 5, the prompt, and `100x prompt check`. Then the `plan` challenge: `100x solo new plan`, fill it in, and fix `project.md` where it found holes before anything is built.
+3. Step 6 and 7. Write `Mode: solo` under Modifiers in `project.md`, and drop `max N subagents`. Step 8, the pre-flight: the line about the model is this one, "Solo: no helpers. I judge my own work and the report says so." Leave out the builder model comparison and the doctor `judge` warning: a solo run is a self-review by design. `100x-setup` stays a "call X" line. The 12 line limit still holds.
+4. Stages 1 to 3 as the guides say. At the end of core, build and depth, before the stage's commit and tag: `100x solo new core`, `build` or `depth`, fill it in, fix what broke, `100x solo check`. Core only when a core ran and was not skipped, depth only when features were built.
+5. Stage 4. Each pass ends with a loop challenge: write `ask.md`, run `100x review-call --loop pass-N`, which starts nothing and prints the steps, write `judge.md` and then `answers.md`.
+6. Stage 5. The red run as the guide says, then `100x solo new properties` when the ledger has rows, and the property attack in `100x ref solo`.
+7. Stage 6. The rounds of the `100x-judge` skill, with these changes: `100x brief` and `100x review-call` as usual, and no judge starts. Each round is a round challenge: take the seat the brief names, write the suspicions first, then `findings.md`, then triage, fix and `100x triage`. After the first round `100x run set review '{"status":"reviewed","model":"<this model, as your app names it>"}'`.
+8. With a fill clock, arm the watchdog as `100x ref watchdog` says: it is a message into this thread, not another model. Each round of `100x ref fill` ends with a loop challenge, the Skeptic lens and the last stretch are round challenges, and wherever the guide says run the judge you run one. Stage 7 and stage 8 as the guides say, and `100x solo check` before `100x finish`.
+
+A challenge you write after the fact to satisfy the check is worth nothing. Write the suspicions before you run anything, and the findings before you fix anything.
+
+## Reply
+
+The output of `100x finish` is the final message. Add one line of your own: "Solo run: no other model looked at this. The judging was this model checking itself." Point to `100x-report`. End there.
+
+## Rules
+
+- No other model, ever, for any reason. When something needs a second opinion, say so in the final message and leave it to the owner.
+- The challenge files are the evidence. A look that left no file did not happen.
+- Never write that another model looked, name a judge you did not run, or let a note suggest it.
+- Findings before fixes. Triage before changes. Never edit `findings.md` after triage to drop a finding you dislike.
+- A short clock shortens the run through the owner's number phrases or through wrap up, never by skipping a look.
+- `100x-grind` does not apply: it needs a fresh judge to say yes, and this model cannot be one.
+- A solo run fills the window faster than a normal one. Keep `STATE.md` true after every stage and every challenge, and read the files back from disk.
diff --git a/skills/100x/SKILL.md b/skills/100x/SKILL.md
index ec69c7a..765118c 100644
--- a/skills/100x/SKILL.md
+++ b/skills/100x/SKILL.md
@@ -1,6 +1,6 @@
---
name: 100x
-description: "Use when the owner types 100x, with or without a brief, or asks for a prototype worth keeping. Runs one thread from brief to a finished, reviewed, screenshot-proven prototype with a report. A message that starts with 100x is a brief to build, even when the brief holds the name of a mode below as a word, as in '100x a status page'. Number phrases in the brief set the run: 3 versions, for 10 hours, 5 rounds of judging, max 5 subagents. The other modes are skills of their own: 100x-mockup, 100x-wrapup, 100x-overnight, 100x-report, 100x-setup, 100x-continue, 100x-judge, 100x-grind, 100x-status, 100x-adhd, 100x-bakeoff. Spends effort on visuals, features and the one thing that matters."
+description: "Use when the owner types 100x, with or without a brief, or asks for a prototype worth keeping. Runs one thread from brief to a finished, reviewed, screenshot-proven prototype with a report. A message that starts with 100x is a brief to build, even when the brief holds the name of a mode below as a word, as in '100x a status page'. Number phrases in the brief set the run: 3 versions, for 10 hours, 5 rounds of judging, max 5 subagents. The other modes are skills of their own: 100x-mockup, 100x-wrapup, 100x-overnight, 100x-report, 100x-setup, 100x-continue, 100x-judge, 100x-grind, 100x-solo, 100x-status, 100x-adhd, 100x-bakeoff. Spends effort on visuals, features and the one thing that matters."
license: MIT
compatibility: "Needs the 100x command line tool on PATH (Node 22 or newer, and git) and the other skills of the 100x suite that this one names. Install the tool as the repository README says. Browser checks use Playwright, which `100x browsers` installs."
metadata:
@@ -45,6 +45,7 @@ Each mode is its own skill, and the owner picks it by calling it. A word inside
| `100x-continue` | pick up the unfinished run in this folder |
| `100x-judge` | judge rounds on what is built. Nothing new builds |
| `100x-grind` | judge, fix and judge again until a judge says ready to ship. A brief builds first. It stops early after three ship tests in a row that bring nothing better, at 15 rounds, or when the clock has no room |
+| `100x-solo` | the whole run in this one chat: no subagents, no helpers, no second model. It judges its own work in writing, from another chair, and says so in the report and the final message |
| `100x-status` | where we are at, answered short |
| `100x-adhd` | a short back and forth, one question at a time. It answers questions about the project and shapes a loose idea into a brief. Nothing builds until you say go |
| `100x-bakeoff` | tests the skill itself, blind: the same agent with and without 100x on the same briefs. Reports "ahead" or "not shown". Builds no prototype |
@@ -127,15 +128,16 @@ At the end of every stage, update `.100x/STATE.md` (`Stage:`, `Next:`, `Open ris
- **Money and secrets.** No paid service the project does not already have keys for. No secrets in the repo.
- **No rule, no guess.** On by default, and the planner always does it. The prompt has a `Properties` section, and before you build or change code that carries logic you run `100x verify cover <file>`. Only the owner's words `no verification`, `100x config set verify.enabled false` (`--local` or `--global`) and `100x-mockup` turn it off. A `NO RULE` answer starts the verification procedure in `references/properties.md`: extract the six properties (state, transitions, preconditions, postconditions, invariants, liveness), check them, show each one fail, record them with `100x verify add`. Code with nothing to state gets `100x verify waive` and a reason. With two or more blocks, add a system model that calls their real functions and record it as one more row. The ledger is `verify/ledger.tsv`, kept in git with the code, and `100x finish` refuses a property that is stale, broken or never failed.
- **Claims.** Mark each as measured, inferred or guess in the evidence column of the log. The report states measured things as facts.
-- **A judge in every loop.** Every polish pass and every fill round ends by asking a fresh judge, a different model, the brutal question. Write `.100x/loops/<name>/ask.md`, start it with `100x review-call --loop <name>`, answer every finding in `answers.md` before the next loop. One model grading its own loop loses direction. `100x finish` refuses a loop with no judge.
-- **In Cursor every helper starts through the SDK, at a 300k window and never in MAX mode.** A judge, a bake-off arm and a child start with `100x helper run` (or `100x review-run`), always with `--context 300k`. Never the Task tool, never `cursor-agent`. `references/apps.md` says why and how.- **The judge always runs.** Stage 6 starts it with `100x review-call`, by your app's subagent tool or by a command. No setting about helpers or counts limits it. Outside `100x-mockup`, only `review.enabled false` turns it off. Never finish UNREVIEWED because you expect to be limited. Try to start it. UNREVIEWED is for a start that failed, with the failure in the note, and `100x finish` refuses it when no attempt is logged.
+- **A judge in every loop.** Every polish pass and every fill round ends by asking a fresh judge, a different model, the brutal question. Write `.100x/loops/<name>/ask.md`, start it with `100x review-call --loop <name>`, answer every finding in `answers.md` before the next loop. One model grading its own loop loses direction. `100x finish` refuses a loop with no judge. `100x-solo` has no other model, so there each loop ends with a written challenge by this model (`100x ref solo`), and `100x finish` checks its file.
+- **In Cursor every helper starts through the SDK, at a 300k window and never in MAX mode.** A judge, a bake-off arm and a child start with `100x helper run` (or `100x review-run`), always with `--context 300k`. Never the Task tool, never `cursor-agent`. `references/apps.md` says why and how.
+- **The judge always runs.** In `100x-solo` no judge starts, and stage 6 is a round challenge by this model. Everywhere else stage 6 starts it with `100x review-call`, by your app's subagent tool or by a command. No setting about helpers or counts limits it. Outside `100x-mockup`, only `review.enabled false` turns it off. Never finish UNREVIEWED because you expect to be limited. Try to start it. UNREVIEWED is for a start that failed, with the failure in the note, and `100x finish` refuses it when no attempt is logged.
- **Children.** At most `subagents.atOnce` helpers run at the same time, 1 by default, the owner's `max N subagents` phrase aside. The cap is about the same time, never a total: judges run one at a time, so the cap never blocks a judge. The cap counts children only, not judges and not this thread, so where a session limit applies set `subagents.atOnce` and `helper.ceiling` low enough to leave room for them: neither counts live sessions, they limit how many children a night or a run asks for. Apart from judges, a child starts only from `100x-overnight` or for parallel versions, and only up to the cap; the rest queue. Start one with your app's subagent tool (in Cursor `100x helper run`) and pass the `target` that `100x config target overnight` prints. An empty target means the child uses this thread's model, except where `helper.only` is set: then `100x config target overnight` and `100x night next` print the locked selection, never an empty target. An app with no subagent tool runs without them.
- **Failure.** Say what failed in the log row, continue from the best truthful state. Three failed attempts at one thing means simplify it and move on. A needs-work verdict is a legitimate result.
- **Companion skills.** `unslop-text` (copy) ships with 100x, and the install links it. Run it as `100x text ...`, never as `node <skill folder>/scripts/unslop.mjs`: the command runs the pinned copy. Read the skill's own file once before first use, and where it says `node <skill folder>/scripts/unslop.mjs` or `unslop`, run `100x text` with the same arguments. `boneworks` makes game assets when it is installed.
## Where things are
-The other modes are the skills in the table above, next to this one. Helpers: `references/must-not-break.md` (stage 5, with `references/kinds.md` for each kind in detail and `references/shots.md` for the screen runs), `references/properties.md` (the verification procedure and the ledger, for stage 5 and for any code no rule covers), `references/watchdog.md` (unattended runs and fill clocks), `references/plans.md` (Claude plan setups), `references/unattended.md` (deciding without the owner), `references/apps.md` (how each agent app differs), `references/open.md` (steps 5, 6 and 8 of Stage 0 in full), `references/looks.md` (the named looks the core and the variants pick from) and `references/mobile-web.md` (read before the first screen when the target is a phone, a touch screen or a game). The judge of stage 6 is the `100x-judge` skill. The other skills of the suite read these guides with `100x ref <name>`, such as `100x ref apps`, so a skill installed on its own still finds them.
+The other modes are the skills in the table above, next to this one. Helpers: `references/must-not-break.md` (stage 5, with `references/kinds.md` for each kind in detail and `references/shots.md` for the screen runs), `references/properties.md` (the verification procedure and the ledger, for stage 5 and for any code no rule covers), `references/watchdog.md` (unattended runs and fill clocks), `references/plans.md` (Claude plan setups), `references/unattended.md` (deciding without the owner), `references/apps.md` (how each agent app differs), `references/open.md` (steps 5, 6 and 8 of Stage 0 in full), `references/looks.md` (the named looks the core and the variants pick from) and `references/mobile-web.md` (read before the first screen when the target is a phone, a touch screen or a game). `references/solo.md` (how `100x-solo` judges its own work, with no second model). The judge of stage 6 is the `100x-judge` skill. The other skills of the suite read these guides with `100x ref <name>`, such as `100x ref apps`, so a skill installed on its own still finds them.
`references/decisions.md` for how to write rows. `references/principles.md` for the working principles behind the stance. `100x help` lists every command and `100x help <command>` lists its flags.
diff --git a/skills/100x/references/fill.md b/skills/100x/references/fill.md
index f8c521c..70f883e 100644
--- a/skills/100x/references/fill.md
+++ b/skills/100x/references/fill.md
@@ -18,7 +18,7 @@ One lens, 45 to 90 minutes.
2. Measure before. A screenshot, a test run or a number.
3. Change one kind of thing.
4. Measure after. Better, so commit and `git tag -f 100x/best`. The same or worse, so go back to `100x/best` and log "tried, no gain".
-5. Judge. Every round gets a fresh judge, brutal, before the next round starts. N is the number of `round` rows so far, plus one. Write `.100x/loops/round-N/ask.md` (the lens, the moment, the Rules, Scope and Do not lines from `.100x/project.md` when it has them, how to run it and the main flow when it has a screen, the before and after numbers or screenshots, what changed), run `100x review-call --loop round-N`, wait the way `references/apps.md` says, read `judge.md`. Fix blockers and majors now, answer every finding in `answers.md`. `Drifting: yes` sends you back to `100x/best` first.
+5. Judge. Every round gets a fresh judge, brutal, before the next round starts (in a solo run, the written loop challenge of `100x ref solo`). N is the number of `round` rows so far, plus one. Write `.100x/loops/round-N/ask.md` (the lens, the moment, the Rules, Scope and Do not lines from `.100x/project.md` when it has them, how to run it and the main flow when it has a screen, the before and after numbers or screenshots, what changed), run `100x review-call --loop round-N`, wait the way `references/apps.md` says, read `judge.md`. Fix blockers and majors now, answer every finding in `answers.md`. `Drifting: yes` sends you back to `100x/best` first.
6. `100x log round "<lens>" "<what changed, or why nothing>" "<before and after>"`. Update `STATE.md` `Next:` with the next lens.
A lens that finds nothing is logged with what was checked, then the next lens starts. Finding nothing is never a reason to stop.
diff --git a/skills/100x/references/finish.md b/skills/100x/references/finish.md
index e30370a..fe0ca88 100644
--- a/skills/100x/references/finish.md
+++ b/skills/100x/references/finish.md
@@ -48,7 +48,7 @@ Set each fact with `100x run`, never by editing the file.
- `hero` is the screenshot that sells the moment. A phone portrait of the signature moment is usually right. Pick it from the final shots and look at it.
- `tryFirst` is two to four steps that reach the moment fast, written for someone who has never seen it.
- An unreviewed run uses `100x run set review '{"status":"unreviewed","note":"<reason>"}'`. Reviewed counts come from the triage files, so leave them out.
-- A mockup also sets `100x run set mode mockup`. Then `100x finish` accepts UNREVIEWED without a judge attempt and needs no must-not-break check. No other run sets `mode`.
+- A mockup also sets `100x run set mode mockup`. Then `100x finish` accepts UNREVIEWED without a judge attempt and needs no must-not-break check. A solo run sets `100x run set mode solo` and no other mode. `100x finish` then checks the challenge files in `.100x/solo` (`100x solo check` runs the same check), the suspicions in every round and loop file, that no helper or judge command started, and marks the review as a self-review. `review.model` is the model of this chat. No other run sets `mode`.
- `ship` is optional. `100x run set ship '{"preview":"https://...","note":""}'`.
## 3. Close
diff --git a/skills/100x/references/polish.md b/skills/100x/references/polish.md
index a21fd37..9366987 100644
--- a/skills/100x/references/polish.md
+++ b/skills/100x/references/polish.md
@@ -2,7 +2,7 @@
Three passes on the look, each with measured before and after, then the stage ends. Heavy testing waits until after pass 3.
-Done when pass 3 is committed and tagged `100x/polish-3`, every pass has a log row with counts, the last `100x shots` run is at 0 broken, and every pass was judged by another model and answered. `polish.passes` changes the number (`100x config set polish.passes N --local`). `polish.dudPasses` applies after a needs-work verdict.
+Done when pass 3 is committed and tagged `100x/polish-3`, every pass has a log row with counts, the last `100x shots` run is at 0 broken, and every pass was judged by another model and answered (a solo run is judged by a written challenge of its own model, see `100x ref solo`). `polish.passes` changes the number (`100x config set polish.passes N --local`). `polish.dudPasses` applies after a needs-work verdict.
## The loop for each pass
@@ -12,8 +12,8 @@ Done when pass 3 is committed and tagged `100x/polish-3`, every pass has a log r
4. Shoot again with `100x shots <url> --label pass-N --matrix standard` and the same `--steps`. Open both contact sheets side by side. If the page got plainer, put the character back.
5. Log. `100x log polish "pass N <theme>. <what changed>" "<why>" "shots broken 3 to 0, weak 11 to 4, from `100x shots` before and after" keep`.
6. Commit and tag `100x/polish-N`.
-7. Judge. A pass you grade yourself does not count. Write `.100x/loops/pass-N/ask.md`: the pass theme, the moment, the Rules, Scope and Do not lines from `.100x/project.md` when it has them, how to run it (command and address), the main flow to walk through, the before and after contact sheets (`.100x/shots/pass-N-before/contact-sheet.png` and `.100x/shots/pass-N/contact-sheet.png`), and what you changed. The judge judges with its eyes, so the ask must let it run the app and see the single screenshots, not only the counts. Then `100x review-call --loop pass-N`. With a judge chosen it prints how to start it, as steps 5 and 6 of the `100x-judge` skill explain. With none chosen it says so: take the `none` bullet of step 5 in the `100x-judge` skill and log the choice. It is a different model, it gets 20 minutes, and it is asked to be brutal. Wait the way `references/apps.md` says, then read `.100x/loops/pass-N/judge.md`.
-8. Answer. Fix every blocker and major now. In `.100x/loops/pass-N/answers.md` write one line per finding: fixed in which commit, or why it stays, with evidence. Commit the fixes. `Drifting: yes` means the next pass starts with that fix, before its own theme. A judge that says it cannot see images did not judge a visual pass: start the backup judge instead, and log it.
+7. Judge. A pass you grade yourself does not count, except in a solo run, where the written loop challenge of `100x ref solo` is the judge. Write `.100x/loops/pass-N/ask.md`: the pass theme, the moment, the Rules, Scope and Do not lines from `.100x/project.md` when it has them, how to run it (command and address), the main flow to walk through, the before and after contact sheets (`.100x/shots/pass-N-before/contact-sheet.png` and `.100x/shots/pass-N/contact-sheet.png`), and what you changed. The judge judges with its eyes, so the ask must let it run the app and see the single screenshots, not only the counts. Then `100x review-call --loop pass-N`. With a judge chosen it prints how to start it, as steps 5 and 6 of the `100x-judge` skill explain. With none chosen it says so: take the `none` bullet of step 5 in the `100x-judge` skill and log the choice. It is a different model, it gets 20 minutes, and it is asked to be brutal. Wait the way `references/apps.md` says, then read `.100x/loops/pass-N/judge.md`.
+8. Answer. Fix every blocker and major now. In `.100x/loops/pass-N/answers.md` write one line per finding: fixed in which commit, or why it stays, with evidence. Commit the fixes. `Drifting: yes` means the next pass starts with that fix, before its own theme. A judge that says it cannot see images did not judge a visual pass: start the backup judge instead, and log it. In a solo run there is no backup judge (`100x ref solo`): a chat that cannot see images says so, ends the file `Better: no` and does not claim the pass was looked at.
## Fewer passes
diff --git a/skills/100x/references/rules.md b/skills/100x/references/rules.md
index cc1247b..5e76302 100644
--- a/skills/100x/references/rules.md
+++ b/skills/100x/references/rules.md
@@ -16,8 +16,8 @@ Compare them with what this run would do by default: helpers and children (the j
A rule the owner gave in this message beats the files for this run only. It still counts as major when it contradicts them.
-**Owner here.** Ask one short question before step 5, and build nothing until they answer. Name the rule, the file it came from, what the run would do, and your best guess as the answer to confirm. Example: "Your global AGENTS.md says never use subagents, and the judge runs as one. Run the judge as a separate shell command instead, or turn the review off and finish UNREVIEWED?" One question per major difference, one at a time. Write the answer under Rules in `project.md` and as a `decisions.tsv` row. Ask once per project: a later run reads the answer from `project.md`.
+**Owner here.** Ask one short question before step 5, and build nothing until they answer. Name the rule, the file it came from, what the run would do, and your best guess as the answer to confirm. Example: "Your global AGENTS.md says never use subagents, and the judge runs as one. Run the judge as a separate shell command, run the whole thing solo with `100x-solo` (no helper at all, this model judges itself), or turn the review off and finish UNREVIEWED?" One question per major difference, one at a time. Write the answer under Rules in `project.md` and as a `decisions.tsv` row. Ask once per project: a later run reads the answer from `project.md`.
-**Owner away** (`100x-overnight`, a fill clock). Never ask. Take the stricter reading, because a broken rule cannot be undone in the morning. Log a row with evidence `guess`, and put the conflict and what you did in the first lines of the report. Where the stricter reading would stop the run (the judge), find the nearest way that keeps the rule, such as a shell command in place of the app's subagent tool. When none exists, run `100x config set review.enabled false --local`, log the rule as the reason, finish UNREVIEWED and put the reason in `review.note`. `100x finish` refuses UNREVIEWED while a judge is still switched on and no attempt to start it is logged, and it asks for a judge on every polish pass.
+**Owner away** (`100x-overnight`, a fill clock). Never ask. Take the stricter reading, because a broken rule cannot be undone in the morning. Log a row with evidence `guess`, and put the conflict and what you did in the first lines of the report. Where the stricter reading would stop the run (the judge), find the nearest way that keeps the rule, such as a shell command in place of the app's subagent tool. A rule that forbids every other model leaves the solo way: `100x run set mode solo` and `100x ref solo`, and the report says so. When none exists, run `100x config set review.enabled false --local`, log the rule as the reason, finish UNREVIEWED and put the reason in `review.note`. `100x finish` refuses UNREVIEWED while a judge is still switched on and no attempt to start it is logged, and it asks for a judge on every polish pass.
Never edit the owner's rule files, and never weaken a rule to make the run easier.
diff --git a/skills/100x/references/solo.md b/skills/100x/references/solo.md
new file mode 100644
index 0000000..e8ed65d
--- /dev/null
+++ b/skills/100x/references/solo.md
@@ -0,0 +1,128 @@
+# Solo
+
+How one model runs the whole 100x pipeline alone, and judges its own work in writing at every step where a normal run asks another model.
+
+Read it before the first challenge of a solo run. `100x solo new <name>` and `100x review-call` print the parts you need at each step, and this file has the reasons and the whole procedure.
+
+## The honest limit
+
+A second model catches what the builder explains away, because it does not share the builder's reasons. A solo run has none, and no procedure removes a model's own blind spots. Solo does not pretend to. It makes the builder harder on itself in ways a file can show: findings are written before fixes, every claim names something that was run, each look starts in another chair, and a clean result is looked at again. `100x finish` refuses what it can check. The report says the judge was the builder, and the owner reads that before the good news. Never write that another model looked.
+
+The guards and the checks stop what a hurried model does and what a careless run leaves behind. They cannot stop a model set on cheating: the flag, the clock, the ledger, the helper log and the challenge files are all files in `.100x/` that it writes itself, and a proof is checked for its shape, not re-run. What holds a solo run honest is the model keeping to the rules below, and the owner reading the challenge files and the report. For work that matters, have a second model judge the finished run afterwards with `100x-judge`, as a separate run the owner starts.
+
+## The question
+
+Every challenge starts with the same words, and you ask them of the work as if someone else had made it:
+
+> Let's analyze this. Is it correct? Is it good? Be brutal. Assume it is not, and find out why.
+
+Then you do the things below, which is the part that makes the question mean something.
+
+## The rules of a challenge
+
+1. **Commit first.** The thing you judge must not move while you judge it.
+2. **Change chairs.** The `Seat: <who>` line sits right under the title of a challenge file, and on the first line of a round's `findings.md`. Until the findings are written you are that person: someone who did not build this, owes its maker nothing and does not know why anything is the way it is. The seats are in the table below.
+3. **Read what a stranger reads.** The brief file, the ask file, the running product, the screenshots, the ledger. Do not reread `STATE.md`, your decision rows, your commit messages or your earlier answers to decide that something is fine. They are the reasons that blind you. For a screen, write one line per screenshot of what you see in ten seconds, before you read what changed.
+4. **Suspect first, then test.** Write the suspicions before you run anything. Each is a sentence that could be false: "a second tap while the total loads charges twice". Then run something for each one. Add what you stumble on.
+5. **Proof from this look.** Each suspicion ends with `Proof:` (a command in backticks and what it printed, the path of a screenshot you opened, a file path such as `src/app.js` or `shots/review/phone-320.png`, or a commit) and `Result: holds` or `Result: broken`. A number alone is not proof, and neither are words with a slash in them, so put a number next to the command that printed it. "I remember handling that" and "it looks fine" are not proof. Each suspicion starts with an id, `S1`, `S2` and so on, and a recheck item with `R1`, so a fix can name it. A finding line in `findings.md` or `judge.md` starts with its severity word, `blocker`, `major`, `minor` or `nit`, with or without `F1 [major]` in front, and it ends the suspicion list above it. Check a number by a second route: by hand, or in a throwaway script that shares no code with the project.
+6. **Findings before fixes.** Write the whole file first, with severities. Then triage. Then fix. A fix made while judging is a finding nobody saw.
+7. **Answer as the opponent.** To reject a finding, first write the best case that it is right, then the command or screenshot that beats it. When you reject more than a third, read the rejections again.
+8. **A clean look is suspect.** When nothing broke, write what each probe would have shown if the work were broken. Then look again from another seat with harder inputs. A clean result stands only when the recheck is clean too.
+9. **Yes is the hardest word.** Before you write "Ready to ship: yes", try to finish the sentence "I would not ship this because...". When you can finish it with something that reproduces, the answer is no.
+
+| Look | Seat |
+|---|---|
+| plan | the owner reading `project.md` cold on day two, who wanted something else |
+| core | the owner opening the slice cold, with one minute |
+| build | a stranger on a fresh clone who owes the builder nothing |
+| depth | the owner who asked for none of the extra features and will notice every one |
+| properties | an adversary who holds the specification and is paid for every counterexample |
+| a code round | a staff engineer who is paged when this breaks and did not write it, then in the second code round a tester paid for every bug, who starts with the inputs nobody expected |
+| a UI and UX round | a stranger on a phone with ten seconds to spare, who owes the maker nothing, then in the second one a first time user on the slowest phone, who cannot ask anyone and will not read a manual |
+| the ship round | a person deciding whether to put their name on this, who knows the best alternative, or a competitor reading it to find the reason not to pick it |
+| a polish pass or a fill round | one of three chairs by its number: a stranger on a phone, a user on the slowest phone, a skeptic who has used the best alternative for years |
+
+Two looks in a row never use the same seat. A lens has two seats and the position of the round within its lens picks one (the first code round the first seat, the second code round the second), a loop takes its chair by its number, and a recheck always takes a seat other than the first. The brief and `100x review-call --loop` name the seat.
+
+## Where each challenge happens
+
+| Where | A normal run | A solo run |
+|---|---|---|
+| Stage 0, after `100x prompt check` | nobody judges the prompt | the `plan` challenge |
+| Stage 1, Core | the builder scores the slice | the `core` challenge |
+| Stage 2, Build | the builder's quick check | the `build` challenge |
+| Stage 3, Depth | the builder's cut hints | the `depth` challenge |
+| Stage 4, each polish pass | a loop judge | a loop challenge |
+| Stage 5 | the red run, and the ledger | the red run as usual, then the `properties` challenge |
+| Stage 6 | judge rounds: code, UI and UX, ship | the same rounds, each one a round challenge |
+| A fill clock, each round | a loop judge | a loop challenge |
+| A fill clock, the Skeptic lens and the last stretch | one more judge round, and the judge before the finish | a round challenge, with the seat and the brief of its lens |
+| Stage 8 | `100x finish` | `100x finish`, which checks all of this |
+
+## Challenge files
+
+For plan, core, build, depth and properties. `100x solo new <name>` writes `.100x/solo/<name>.md` with the seat, what to read, the questions to start from and the form of a suspicion. It refuses to overwrite. `100x solo check` says which files the run owes and what each one lacks, and `100x finish` makes the same check. Core is owed when a core row was logged and it is not a skip (`core.enabled` false, or a big change with a clear spec, logged as `skipped`), depth when `run.json` lists features, and properties when the ledger has rows.
+
+```text
+# Challenge: build
+Seat: a stranger on a fresh clone who owes the builder nothing
+
+## Suspicions
+- S1 The install line in the README fails on a clean checkout. Proof: `git clone . /tmp/x && cd /tmp/x && npm ci` exited 0 in 41 s. Result: holds
+- S2 Two quick taps on Add make two rows. Proof: `node scripts/double-tap.mjs` printed 2 rows. Result: broken
+(three more, at least five in all)
+
+## Fixes
+- S2 fixed in a1b2c3d, and `node scripts/double-tap.mjs` now prints 1 row.
+
+Verdict: fixed
+```
+
+A file passes when it has at least five suspicions, each with an id, proof that names a command, a file or a commit, and a result, and a verdict that is closed. Every broken suspicion, in the suspicions or in the recheck, needs a list item under `## Fixes` that starts with its id and names a commit, a path or a command, so the fix is tied to the break and says what was run again. Recheck items are numbered `R1`, `R2` and are held to the same rules. When nothing broke the verdict is `holds`, and only after `## Recheck`: its own `Seat:` line, different from the first, and at least three more suspicions in the same form. A recheck that finds a break counts, and the verdict is then `fixed`.
+
+## The property attack
+
+At stage 5 once the ledger has rows, and again in every code round and in the ship round. A property that only the builder tried to break is a claim, so you try as the adversary.
+
+1. For each row, read the code it covers, not the model. Write an input or a sequence of steps that breaks the sentence, and run it against the real function. A hit is a finding, and the row is amended with `100x verify amend` or the code is fixed.
+2. Write five things that must always be true about this logic that no row states: conservation, order, doing it twice, bounds, who may do it. Each one becomes a row with `100x verify add`, or a waiver with `100x verify waive` and the reason.
+3. For each row, read what its model leaves out and how large it is. Widen one bound or add the missing case, and run it again. A pass that holds only at the smallest size has the level `bounded`, and the row says what is not covered.
+4. A property touched by a fix this round gets its red run again, so the check is shown to fail for the seeded defect and not for a typo.
+5. `100x verify status` must say every row holds before the round closes.
+
+## A loop challenge
+
+For a polish pass or a fill round. Write `.100x/loops/<name>/ask.md` as the references say, then `100x review-call --loop <name>`. It starts nothing and prints the ten steps, which are always the same: commit, sit in the chair it names, open the pictures before you read what changed, name how to judge, at least five suspicions, run the flow with your own inputs, findings, `Drifting` and `Better`, the clean-look recheck, and only then `answers.md`.
+
+`judge.md` keeps the loop judge's shape: a first line `Judged by: looking`, `running`, `numbers` or `words`, a second line `Seat: <the chair>`, a `## Suspicions` list, a `## Findings` list with one line for each finding and one of its own for each broken suspicion, a `Rechecked:` line when there are no findings, and the last two lines `Drifting: yes|no` and `Better: yes|no`. `Drifting: yes` or `Better: no` means the next loop starts with the fix. Judge the way that is hardest on the work, not the way that is easiest for you. A visual loop is judged from the single screenshots, never from the source. When this chat cannot see images, the first finding says so as a blocker, the file ends `Better: no`, and no look at the screen is claimed: finish warns about it and the report must say that the screens were not looked at. A broken suspicion in a loop is also a finding, a line that starts with its severity, and `100x finish` counts them.
+
+## A round challenge
+
+Stage 6, up to `review.rounds`: the code and how it behaves, then the UI and UX, then the ship test. The owner's `5 rounds of judging` sets the number.
+
+1. Commit. Stop your own dev server so its port is free.
+2. `100x brief` opens the round and writes the brief for the builder in another chair. `100x review-call` says which round and lens it is, and that nothing starts. `100x log review "solo round <n>, seat <who>" "self-review by design, no other model" "this chat"`.
+3. Read the brief file and nothing else. Take the seat it names. Write `.100x/review/findings.md`: `Seat:` first, then `## Suspicions` with at least eight, written before you run anything, then the findings in the brief's format, then `What is good` and `Verdict` with the line `Ready to ship: yes` or `Ready to ship: no`. Every broken suspicion is also a finding with a severity, one for each, named by its id. Two rounds in a row never carry the same `Seat:` line. In a code round and in the ship round, when the ledger has rows, the property attack above runs in full, all five steps, and what it finds is written as suspicions. The brief leaves out your commits and decision notes on purpose.
+4. A look that finds nothing is suspect. Write what you tried and what each probe would have shown if the work were broken, look again from another seat, and add a line starting with `Rechecked:`.
+5. Only now write `.100x/review/triage.md`, one line for each finding, with a reason that points at something checkable. Fix what you accepted, blockers first, run it again, commit.
+6. `100x triage` closes the round and says what is next. The next brief carries your earlier findings and your answers. Check each accepted finding by running the product, never by reading your commit message.
+7. After the first round: `100x run set review '{"status":"reviewed","model":"<the model of this chat, as your app names it>"}'`. The model is this chat's own, never one from the settings.
+
+`100x-grind` does not apply to a solo run. It needs a fresh judge to say yes, and this model cannot be one.
+
+## What the owner reads
+
+`100x finish` records the run as solo and as judged by the builder. The registry and the morning page list it as `(solo)`. The report says `Review (<model>, the same model that built it. A solo run, so no other model looked)`. The card's trust line says "A solo run: the model that built it judged it and no other model looked", in the amber of a missing second look and never in the green of a cleared run. The final message says it in a line of your own.
+
+## Never
+
+- Start another model for any reason. Not the Task tool, not `100x helper`, not `100x review-run`, not `100x night`, not `claude -p`, `codex exec` or `cursor-agent`, not a browser subagent. The first three refuse in a solo run, and `100x finish` refuses a helper row or a judge command. The rest no file can stop, so it is yours to keep. Where any other guide says to start a judge, a backup judge, a fallback, a helper, a child or a subagent, this file replaces that step with a challenge.
+- Take the solo flag off, or set a clock at the end of the run to make UNREVIEWED look allowed. The flag is one way, and finish refuses a clock that was not set when the run began.
+- Change `findings.md` after triage to remove a finding you do not like.
+- Write "Ready to ship: yes" without having tried to finish "I would not ship this because...".
+- Skip a look to save time. A short clock shortens the run through the owner's number phrases or through wrap up, and `100x finish` refuses a run with a missing round.
+- Name a judge you did not run, or let a note suggest that someone else looked.
+
+## The window
+
+A solo run fills the window faster than a normal one, because no helper holds a share of the work. Keep `STATE.md` true after every stage and every challenge, send long output to files under `.100x/`, and read challenge files back from disk instead of from memory. After a restart `100x solo check` and `100x status` say where the run stands.
diff --git a/skills/100x/references/variants.md b/skills/100x/references/variants.md
index a662024..157cdc6 100644
--- a/skills/100x/references/variants.md
+++ b/skills/100x/references/variants.md
@@ -14,4 +14,6 @@ Done when each variant has finished, or ended in a stated needs-work verdict, an
## Parallel children
+A solo run never uses them: its variants run one after the other, each folder its own solo run (`100x ref solo`).
+
With `variants.parallel` set to `true`, a variant may run as a child through your app's subagent tool (in Cursor `100x helper run`) with role `implementation` and isolation `shared`. The target is what `100x config target overnight` prints, and an empty one means the child uses the thread's model, except where `helper.only` is set, where it is the locked selection. The task names the sibling folder, the brief and the direction, and says to use the 100x skill unattended and to start no subagents. This path is opt in and has not been run end to end. Prefer the sequential order unless the owner asked for parallel.
diff --git a/skills/100x/references/words.md b/skills/100x/references/words.md
index 52f6769..f29c65d 100644
--- a/skills/100x/references/words.md
+++ b/skills/100x/references/words.md
@@ -17,6 +17,8 @@ The owner reads what you write. A setting name, a setting value or an internal s
| judge round | the judge looks, you fix, a fresh judge looks again. The first look is the code, then the UI and UX, the last asks if it is ready to ship |
| grind | the judge looks, you fix, and a fresh judge looks again, for as long as it takes until one says it is ready to ship |
| adhd | a short back and forth, a few lines and one question at a time |
+| solo | the whole run done by the model in this chat alone, with no helpers and no second model. It checks its own work in writing at every step, and says nobody else looked |
+| challenge | the model in this chat attacks its own work from another chair, writes down what could be wrong, tests each one, and fixes what broke |
| loop judge | in every round of work a different model looks, is brutal, and says if the work is drifting into a bad idea. The builder has to answer it before going on |
| round | one pass of testing or polish with one question, such as "what breaks with an empty list?" |
diff --git a/test/solo.test.mjs b/test/solo.test.mjs
new file mode 100644
index 0000000..50e3dbb
--- /dev/null
+++ b/test/solo.test.mjs
@@ -0,0 +1,625 @@
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+import { execFileSync } from 'node:child_process';
+import path from 'node:path';
+import test from 'node:test';
+import { challengeProblems, challengeTemplate, isSolo, loopFindingCount, readChallenge, seatFor, soloProof, CHALLENGES, CHALLENGE_NAMES } from '../lib/solo.mjs';
+import { trustLine } from '../lib/look-first.mjs';
+import { pointsAtSomething } from '../lib/review.mjs';
+import { cli, sandbox, write } from './helpers.mjs';
+import { FINDINGS, makeProject, runJson } from './projects.mjs';
+
+const run = (box, ...args) => cli(args, { cwd: box.project, env: box.env });
+const finish = (box) => run(box, 'finish');
+const dot = (box, ...parts) => path.join(box.project, '.100x', ...parts);
+
+const SEAT = 'a stranger on a fresh clone who owes the builder nothing';
+const items = (count, { broken = 0, prefix = 'S' } = {}) => Array.from({ length: count }, (_, i) => `- ${prefix}${i + 1} claim ${i + 1} could be false. Proof: \`npm test\` printed ${i + 1} passing. Result: ${i < broken ? 'broken' : 'holds'}`).join('\n');
+
+// A challenge file the way a model fills in the template.
+function challenge({ suspicions = 5, broken = 0, recheck = 3, verdict, seat = SEAT, recheckSeat = 'a user on the slowest phone', fixes = true } = {}) {
+ return `# Challenge
+Seat: ${seat}
+
+## Suspicions
+${items(suspicions, { broken })}
+
+## Recheck
+${recheckSeat ? `Seat: ${recheckSeat}\n` : ''}${recheck ? items(recheck, { prefix: 'R' }) : ''}
+
+## Fixes
+${broken && fixes ? '- S1 fixed in a1b2c3d, then `npm test` passed again\n' : ''}
+Verdict: ${verdict ?? (broken ? 'fixed' : 'holds')}
+`;
+}
+
+const SOLO_FINDINGS = `# Findings
+Seat: a staff engineer who is paged when this breaks and did not write it
+
+## Suspicions
+${items(8)}
+
+${FINDINGS.replace('# Findings\n', '').trimStart()}`;
+
+const LOOP_JUDGE = `Judged by: looking at the screenshots
+Seat: a stranger on a phone who did not build this
+
+## Suspicions
+${items(5)}
+
+Rechecked: a user on the slowest phone found no clipped button at 320px
+Drifting: no
+Better: yes
+`;
+// The same file with one broken suspicion and the finding that goes with it, in the shape the printed steps ask for.
+const loopWithFinding = (line) => LOOP_JUDGE.replace('Result: holds', 'Result: broken').replace('\nRechecked', `\n## Findings\n${line}\n\nRechecked`);
+
+const soloRun = (overrides = {}) => runJson({ mode: 'solo', review: { status: 'reviewed', model: 'claude-sonnet-5-5', flags: 2, fixed: 1 }, ...overrides });
+
+// A run that finishes: every owed challenge written, each round and loop holding its suspicions.
+function soloProject(box, { files = ['plan', 'build', 'depth', 'properties'], findings = SOLO_FINDINGS, runFile = soloRun(), loop = LOOP_JUDGE } = {}) {
+ makeProject(box, { run: runFile, findings });
+ for (const name of files) write(dot(box, 'solo', `${name}.md`), challenge());
+ for (let pass = 1; pass <= 3; pass += 1) write(dot(box, 'loops', `pass-${pass}`, 'judge.md'), loop);
+ return box.project;
+}
+
+function bareSolo(box) {
+ run(box, 'init', '--no-git');
+ const set = run(box, 'run', 'set', 'mode', 'solo');
+ assert.equal(set.code, 0, set.err);
+}
+
+test('run set accepts mode solo and says mockup or solo when it is anything else', () => {
+ const box = sandbox();
+ run(box, 'init', '--no-git');
+ const bad = run(box, 'run', 'set', 'mode', 'fast');
+ assert.equal(bad.code, 1);
+ assert.match(bad.err, /mode can only be mockup or solo/);
+ assert.equal(run(box, 'run', 'set', 'mode', 'solo').code, 0);
+ assert.equal(JSON.parse(fs.readFileSync(dot(box, 'run.json'), 'utf8')).mode, 'solo');
+ box.cleanup();
+});
+
+test('the solo flag is one way: a solo run cannot unset it or change it, and setting it again is harmless', () => {
+ const box = sandbox();
+ bareSolo(box);
+ for (const args of [['unset', 'mode'], ['set', 'mode', 'mockup'], ['set', 'mode', 'fast']]) {
+ const result = run(box, 'run', ...args);
+ assert.equal(result.code, 1, args.join(' '));
+ assert.match(result.err, /the solo flag stays for the life of the run/);
+ }
+ assert.equal(run(box, 'run', 'set', 'mode', 'solo').code, 0);
+ assert.equal(JSON.parse(fs.readFileSync(dot(box, 'run.json'), 'utf8')).mode, 'solo');
+ // The owner can still change it by hand, and a normal run is never held to this.
+ const plain = sandbox();
+ run(plain, 'init', '--no-git');
+ assert.equal(run(plain, 'run', 'set', 'mode', 'mockup').code, 0);
+ assert.equal(run(plain, 'run', 'unset', 'mode').code, 0);
+ plain.cleanup();
+ box.cleanup();
+});
+
+test('a damaged run.json does not make the solo guard the command that fails', () => {
+ const box = sandbox();
+ run(box, 'init', '--no-git');
+ fs.writeFileSync(dot(box, 'run.json'), '{bad json');
+ const helper = run(box, 'helper', 'run', '--task', 'x');
+ assert.doesNotMatch(helper.err, /solo/);
+ assert.match(helper.err, /--model/);
+ box.cleanup();
+});
+
+test('in a solo run no command starts another model: a helper, a judge command and a night all refuse', () => {
+ const box = sandbox();
+ bareSolo(box);
+ const helper = run(box, 'helper', 'run', '--model', 'muse-wonder-1.0', '--task', 'judge this');
+ assert.equal(helper.code, 1);
+ assert.match(helper.err, /solo run .* no other model starts: a helper/);
+ const elsewhere = path.join(box.dir, 'elsewhere');
+ fs.mkdirSync(elsewhere);
+ const reached = cli(['helper', 'run', '--model', 'muse-wonder-1.0', '--task', 'judge this', '--cwd', box.project], { cwd: elsewhere, env: box.env });
+ assert.match(reached.err, /solo run/, 'a helper pointed at a solo project from outside it is refused too');
+ const command = run(box, 'review-run');
+ assert.equal(command.code, 1);
+ assert.match(command.err, /solo run .* a judge command/);
+ const night = run(box, 'night', 'start', '--until', '23:59', '--brief', 'an oats app');
+ assert.equal(night.code, 1);
+ assert.match(night.err, /solo run .* a child for a night/);
+ box.cleanup();
+});
+
+test('a normal run is not touched: a helper there does not mention solo, and `100x solo` says what a solo run is', () => {
+ const box = sandbox();
+ run(box, 'init', '--no-git');
+ const helper = run(box, 'helper', 'run', '--model', 'muse-wonder-1.0', '--task', 'judge this');
+ assert.doesNotMatch(helper.err, /solo/);
+ const solo = run(box, 'solo');
+ assert.equal(solo.code, 1);
+ assert.match(solo.err, /This is not a solo run/);
+ box.cleanup();
+});
+
+test('review-call in a solo run starts nothing, ignores review.enabled and says where the files are', () => {
+ const box = sandbox();
+ bareSolo(box);
+ run(box, 'config', 'set', 'review.enabled', 'false', '--local');
+ const json = JSON.parse(run(box, 'review-call', '--json').out);
+ assert.equal(json.solo, true);
+ assert.equal(json.via, 'self');
+ assert.equal(json.enabled, true);
+ assert.equal(json.delegateTask, undefined, 'there is no task for another model');
+ const text = run(box, 'review-call').out;
+ assert.match(text, /^Solo round 1 of \d, the code and how it behaves\. No judge starts: you judge it yourself\./);
+ assert.match(text, /Write the suspicions before you run anything/);
+ assert.doesNotMatch(text, /delegateTask|review-run|subagent tool/);
+ box.cleanup();
+});
+
+test('review-call --loop in a solo run prints the steps of judging a loop yourself, ask file first', () => {
+ const box = sandbox();
+ bareSolo(box);
+ const early = run(box, 'review-call', '--loop', 'pass-1');
+ assert.equal(early.code, 1);
+ assert.match(early.err, /No ask file for loop pass-1/);
+ write(dot(box, 'loops', 'pass-1', 'ask.md'), 'What this loop tried.\n');
+ const out = run(box, 'review-call', '--loop', 'pass-1').out;
+ assert.match(out, /^Solo loop pass-1\. No judge starts/);
+ assert.match(out, /Sit in this chair: a stranger on a phone/);
+ assert.match(out, /at least 5 suspicions/);
+ assert.match(out, /Rechecked:/);
+ assert.match(out, /Only now write .*answers\.md/);
+ const json = JSON.parse(run(box, 'review-call', '--json', '--loop', 'pass-1').out);
+ assert.equal(json.steps.length, 11, 'a heading line and ten steps');
+ box.cleanup();
+});
+
+test('the brief of a solo round is written for the builder in another chair, and keeps the formats the triage reads', () => {
+ const box = sandbox();
+ bareSolo(box);
+ const made = run(box, 'brief');
+ assert.equal(made.code, 0, made.err);
+ const brief = fs.readFileSync(dot(box, 'review', 'brief.md'), 'utf8');
+ assert.match(brief, /You built this, and now you judge it\. This is a solo run/);
+ assert.match(brief, /Your seat this round: a staff engineer who is paged when this breaks/);
+ assert.match(brief, /at least 8 suspicions under "## Suspicions"/);
+ assert.match(brief, /Fixes come after triage, never during the look/);
+ assert.match(brief, /A look that finds nothing is suspect/);
+ assert.match(brief, /## Findings format/);
+ assert.doesNotMatch(brief, /Another AI model built this/);
+ assert.doesNotMatch(brief, /Write only .*findings\.md, plus screenshots/);
+ box.cleanup();
+});
+
+test('a normal brief is unchanged: another model judges, and no seat or suspicions are asked for', () => {
+ const box = sandbox();
+ run(box, 'init', '--no-git');
+ run(box, 'brief');
+ const brief = fs.readFileSync(dot(box, 'review', 'brief.md'), 'utf8');
+ assert.match(brief, /Another AI model built this and thinks it is good/);
+ assert.doesNotMatch(brief, /Suspicions|Your seat this round/);
+ box.cleanup();
+});
+
+test('100x solo new writes the template for a stage, refuses to overwrite it and a name it does not know', () => {
+ const box = sandbox();
+ bareSolo(box);
+ const made = run(box, 'solo', 'new', 'build');
+ assert.equal(made.code, 0, made.err);
+ assert.match(made.out, /Wrote \.100x\/solo\/build\.md\. Stage 2/);
+ assert.match(made.out, /Let's analyze this\. Is it correct\? Is it good\? Be brutal\./);
+ const text = fs.readFileSync(dot(box, 'solo', 'build.md'), 'utf8');
+ assert.equal(text, challengeTemplate('build'));
+ assert.match(text, /^Seat: a stranger on a fresh clone/m);
+ assert.match(text, /Do not reread STATE\.md/);
+ const again = run(box, 'solo', 'new', 'build');
+ assert.equal(again.code, 1);
+ assert.match(again.err, /already exists\. .*Nothing was overwritten/);
+ assert.match(run(box, 'solo', 'new', 'dessert').err, /takes plan, core, build, depth, properties\. Got "dessert"/);
+ box.cleanup();
+});
+
+test('an empty template is not a passing challenge, and every template is a file the check can read', () => {
+ for (const name of CHALLENGE_NAMES) {
+ const problems = challengeProblems(challengeTemplate(name), CHALLENGES[name], pointsAtSomething);
+ assert.ok(problems.some((problem) => /holds 0 suspicions/.test(problem)), `${name} template passes as if it were done`);
+ assert.ok(problems.some((problem) => /no verdict yet/.test(problem)));
+ assert.equal(readChallenge(challengeTemplate(name)).seat, CHALLENGES[name].seat);
+ }
+});
+
+test('a challenge passes with enough suspicions that have proof, a recheck from another seat, and a closed verdict', () => {
+ const spec = { min: 5 };
+ assert.deepEqual(challengeProblems(challenge(), spec, pointsAtSomething), []);
+ assert.ok(challengeProblems(challenge({ suspicions: 4 }), spec, pointsAtSomething).some((p) => /holds 4 suspicions .* at least 5/.test(p)));
+ assert.ok(challengeProblems(challenge({ recheck: 2 }), spec, pointsAtSomething).some((p) => /"## Recheck" needs at least 3 list items and has 2/.test(p)));
+ assert.ok(challengeProblems(challenge({ recheckSeat: SEAT }), spec, pointsAtSomething).some((p) => /same seat in "## Recheck"/.test(p)));
+ assert.ok(challengeProblems(challenge({ recheckSeat: '' }), spec, pointsAtSomething).some((p) => /no "Seat:" line under "## Recheck"/.test(p)));
+ assert.ok(challengeProblems(challenge({ seat: '<who>' }), spec, pointsAtSomething).some((p) => /no "Seat:" line before the first heading/.test(p)));
+ assert.ok(challengeProblems(challenge({ verdict: 'open' }), spec, pointsAtSomething).some((p) => /no verdict yet/.test(p)));
+});
+
+test('a suspicion without proof or a result does not count, and "it looks fine" is not proof', () => {
+ const weak = challenge().replace('Proof: `npm test` printed 1 passing', 'Proof: it looks fine to me').replace(/Result: holds/, 'Result: probably');
+ const problems = challengeProblems(weak, { min: 5 }, pointsAtSomething);
+ assert.ok(problems.some((p) => /suspicion 1 .* has no proof/.test(p)));
+ assert.ok(problems.some((p) => /suspicion 1 .* says no result/.test(p)));
+});
+
+test('a broken suspicion has to be fixed and run again, and a verdict of holds cannot hide it', () => {
+ const spec = { min: 5 };
+ assert.deepEqual(challengeProblems(challenge({ broken: 1, recheck: 0, recheckSeat: '' }), spec, pointsAtSomething), [], 'broken, fixed, run again: nothing more is asked');
+ assert.ok(challengeProblems(challenge({ broken: 2, verdict: 'holds' }), spec, pointsAtSomething).some((p) => /2 broken suspicions and the verdict holds/.test(p)));
+ assert.ok(challengeProblems(challenge({ broken: 1, fixes: false }), spec, pointsAtSomething).some((p) => /no list item under "## Fixes"/.test(p)));
+ assert.ok(challengeProblems(challenge({ verdict: 'fixed' }), spec, pointsAtSomething).some((p) => /says fixed, and no suspicion is broken/.test(p)));
+ const vague = challenge({ broken: 1 }).replace('- S1 fixed in a1b2c3d, then `npm test` passed again', '- made it better');
+ assert.ok(challengeProblems(vague, spec, pointsAtSomething).some((p) => /fix 1 .* names no commit, path or command/.test(p)));
+});
+
+test('a recheck that finds a break counts: the stage is then fixed or it does not pass', () => {
+ const text = challenge({ recheck: 3 }).replace('R2 claim 2 could be false. Proof: `npm test` printed 2 passing. Result: holds', 'R2 claim 2 could be false. Proof: `npm test` printed 2 failing. Result: broken');
+ const problems = challengeProblems(text, { min: 5 }, pointsAtSomething);
+ assert.ok(problems.some((p) => /1 broken suspicion and the verdict holds/.test(p)));
+});
+
+test('100x solo check names what each owed challenge lacks, and passes when they are written', () => {
+ const box = sandbox();
+ soloProject(box, { files: [] });
+ const first = run(box, 'solo');
+ assert.equal(first.code, 1);
+ assert.match(first.out, /plan\s+NOT YET\s+\.100x\/solo\/plan\.md\n\s+is missing\. Stage 0.* `100x solo new plan`/);
+ assert.match(first.out, /build\s+NOT YET/);
+ assert.match(first.out, /depth\s+NOT YET/, 'the run has features, so depth happened');
+ assert.match(first.out, /properties\s+NOT YET/, 'the ledger has a row');
+ assert.match(first.out, /core\s+not owed yet\. Stage 1/, 'no core row was logged');
+ for (const name of ['plan', 'build', 'depth', 'properties']) write(dot(box, 'solo', `${name}.md`), challenge());
+ const done = run(box, 'solo');
+ assert.equal(done.code, 0, done.out);
+ assert.match(done.out, /4 of 4 owed challenges pass\./);
+ const json = JSON.parse(run(box, 'solo', 'check', '--json').out);
+ assert.ok(json.challenges.every((entry) => entry.ok));
+ box.cleanup();
+});
+
+test('a core row in the log makes the core challenge owed', () => {
+ const box = sandbox();
+ soloProject(box);
+ assert.match(run(box, 'solo').out, /core\s+not owed yet/);
+ run(box, 'log', 'core', 'proceed 5 of 6 on the glow', 'the slice', 'shots', 'ship');
+ const out = run(box, 'solo');
+ assert.equal(out.code, 1);
+ assert.match(out.out, /core\s+NOT YET\s+\.100x\/solo\/core\.md\n\s+is missing\. Stage 1/);
+ box.cleanup();
+});
+
+test('finish closes a solo run whose challenges, rounds and loops hold up, and the report says nobody else looked', () => {
+ const box = sandbox();
+ soloProject(box);
+ const done = finish(box);
+ assert.equal(done.code, 0, done.err + done.out);
+ const entry = JSON.parse(fs.readFileSync(dot(box, 'run.json'), 'utf8'));
+ assert.equal(entry.mode, 'solo');
+ assert.equal(entry.review.solo, true);
+ assert.equal(entry.review.sameAsBuilder, true, 'the judge is the builder by definition, whatever the settings say');
+ const report = fs.readFileSync(dot(box, 'REPORT.md'), 'utf8');
+ assert.match(report, /claude-sonnet-5-5, the same model that built it\. A solo run, so no other model looked/);
+ assert.match(done.out, /Review \(claude-sonnet-5-5, the same model that built it\. A solo run, so no other model looked\)/);
+ const trust = trustLine(entry);
+ assert.equal(trust.tone, 'warn', 'the card is not painted as a run a judge cleared');
+ assert.match(trust.text, /A solo run: the model that built it judged it and no other model looked/);
+ assert.doesNotMatch(trust.text, /The judge was the model that built it/);
+ const list = run(box, 'registry', 'list');
+ assert.match(list.out, /Glow \(solo\)/);
+ box.cleanup();
+});
+
+test('finish refuses a solo run with no plan challenge, and says the command that writes it', () => {
+ const box = sandbox();
+ soloProject(box, { files: ['build', 'depth', 'properties'] });
+ const result = finish(box);
+ assert.equal(result.code, 1);
+ assert.match(result.err, /solo\. \.100x\/solo\/plan\.md is missing\. Stage 0.*`100x solo new plan`/);
+ assert.ok(!fs.existsSync(dot(box, 'finished.json')));
+ box.cleanup();
+});
+
+test('finish refuses a solo run that started a helper, whatever the helper did', () => {
+ const box = sandbox();
+ soloProject(box);
+ write(dot(box, 'helpers.jsonl'), `${JSON.stringify({ at: new Date().toISOString(), model: 'muse-wonder-1.0', status: 'finished', seconds: 90, tokens: 1000, agentId: 'a1' })}\n`);
+ const result = finish(box);
+ assert.equal(result.code, 1);
+ assert.match(result.err, /solo\. run\.json says mode solo, but \.100x\/helpers\.jsonl holds 1 helper run\. A solo run starts no other model/);
+ box.cleanup();
+});
+
+test('finish refuses a solo run when a judge command was started', () => {
+ const box = sandbox();
+ soloProject(box);
+ write(dot(box, 'review', 'run.json'), '{"pid":1}\n');
+ const result = finish(box);
+ assert.equal(result.code, 1);
+ assert.match(result.err, /solo\. a judge command was started with `100x review-run`/);
+ box.cleanup();
+});
+
+test('finish refuses a solo round that did not write its suspicions first, and one that lost a broken suspicion', () => {
+ const box = sandbox();
+ soloProject(box, { findings: FINDINGS });
+ const bare = finish(box);
+ assert.equal(bare.code, 1);
+ assert.match(bare.err, /solo\. (the open round|round 1), findings\.md holds 0 suspicions under "## Suspicions" and needs at least 8, written before the checks/);
+ box.cleanup();
+ const lost = sandbox();
+ soloProject(lost, { findings: SOLO_FINDINGS.replace('Proof: `npm test` printed 1 passing. Result: holds', 'Proof: `npm test` printed 1 failing. Result: broken').replace(/## F1 .*\n/, '## Note\n').replace(/## F2 .*\n/, '## Other\n') });
+ const result = finish(lost);
+ assert.equal(result.code, 1);
+ assert.match(result.err, /1 broken suspicion and 0 findings\. A suspicion that came out broken is a finding, with a severity/);
+ lost.cleanup();
+});
+
+test('finish refuses a solo loop whose judge file holds no suspicions, and ignores review.enabled false', () => {
+ const box = sandbox();
+ soloProject(box, { loop: 'Judged by: looking\nDrifting: no\nBetter: yes\n' });
+ run(box, 'config', 'set', 'review.enabled', 'false', '--local');
+ const result = finish(box);
+ assert.equal(result.code, 1);
+ assert.match(result.err, /solo\. loop pass-1, judge\.md holds 0 suspicions under "## Suspicions" and needs at least 5/);
+ box.cleanup();
+});
+
+test('a solo loop that has no files at all says it has no challenge, not that the builder graded itself', () => {
+ const box = sandbox();
+ soloProject(box);
+ fs.rmSync(dot(box, 'loops', 'pass-2', 'answers.md'));
+ const result = finish(box);
+ assert.equal(result.code, 1);
+ assert.match(result.err, /loop pass-2 has no challenge\. Write .*ask\.md, run `100x review-call --loop pass-2` for the steps/);
+ assert.doesNotMatch(result.err, /grades itself/);
+ box.cleanup();
+});
+
+test('a solo run cannot call itself unreviewed because a judge failed to start: no judge can fail', () => {
+ const box = sandbox();
+ soloProject(box, { runFile: soloRun({ review: { status: 'unreviewed', note: 'the judge could not start' } }) });
+ const result = finish(box);
+ assert.equal(result.code, 1);
+ assert.match(result.err, /a solo run judges itself, so no judge can fail to start/);
+ box.cleanup();
+});
+
+test('a solo run with no time left for a round may finish unreviewed, and says so', () => {
+ const box = sandbox();
+ soloProject(box, { runFile: soloRun({ review: { status: 'unreviewed', note: 'no time left for a round: 4 min on the clock' } }) });
+ run(box, 'clock', 'set', '+10m');
+ const result = finish(box);
+ assert.equal(result.code, 0, result.err + result.out);
+ assert.ok(fs.existsSync(dot(box, 'finished.json')));
+ assert.match(result.out, /UNREVIEWED/);
+ box.cleanup();
+});
+
+test('a clock set at the end of the run cannot say there was no room for a round', () => {
+ const box = sandbox();
+ soloProject(box, { runFile: soloRun({ review: { status: 'unreviewed', note: 'no time left for a round: 4 min on the clock' } }) });
+ const began = new Date(Date.now() - 3 * 3600 * 1000).toISOString();
+ write(dot(box, 'decisions.tsv'), `ts\tphase\tdecision\twhy\tevidence\tresult\n${began}\tframe\tthe plan\tthe brief\tproject.md\tok\n`);
+ run(box, 'clock', 'set', '+10m');
+ const result = finish(box);
+ assert.equal(result.code, 1);
+ assert.match(result.err, /review\.status is unreviewed, but the clock was set at .* and the run began at .*cannot say there was no room for a round/);
+ assert.ok(!fs.existsSync(dot(box, 'finished.json')));
+ box.cleanup();
+});
+
+test('a dud variant of a solo run may end with no review: finish raises no solo error for it', () => {
+ const box = sandbox();
+ soloProject(box, { runFile: soloRun({ verdict: 'dud', review: { status: 'unreviewed', note: 'a dud after its pivots, so no review' } }) });
+ const result = finish(box);
+ assert.doesNotMatch(result.err, /a solo run judges itself|review\.status is unreviewed, but/);
+ box.cleanup();
+});
+
+test('a proof is a command, a file or a commit: a bare number is not one', () => {
+ for (const proof of ['1', '12', '1234567', 'it looked fine', '42 passing', 'and/or it worked', 'e.g. it worked', 'a/b testing showed it', '`ok`']) assert.equal(soloProof(proof), false, proof);
+ for (const proof of ['`npm test` printed 12 passing', 'shots/review/phone-320.png', 'a1b2c3d', 'src/app.js line 4', 'README.md', '`ls -la`', '`make`', '.100x/review/findings.md']) assert.equal(soloProof(proof), true, proof);
+});
+
+test('a suspicion needs an id, ids are not reused, and a fix names the suspicion it fixes', () => {
+ const body = (extra) => `# Challenge\nSeat: ${SEAT}\n\n## Suspicions\n${extra}\n\n## Recheck\nSeat: a user on the slowest phone\n${items(3, { prefix: 'R' })}\n\n## Fixes\n`;
+ const five = items(5);
+ const noId = challengeProblems(body(five.replace('- S1 ', '- ')), { min: 5 }, soloProof);
+ assert.ok(noId.some((problem) => /has no id\. Start it with S1/.test(problem)), noId.join('\n'));
+ const twice = challengeProblems(body(five.replace('- S2 ', '- S1 ')), { min: 5 }, soloProof);
+ assert.ok(twice.some((problem) => /reuses the id S1/.test(problem)), twice.join('\n'));
+ // Two broken, one fix that names only the first.
+ const two = `# Challenge\nSeat: ${SEAT}\n\n## Suspicions\n${items(5, { broken: 2 })}\n\n## Fixes\n- S1 fixed in a1b2c3d, then \`npm test\` passed again\n\nVerdict: fixed\n`;
+ const lost = challengeProblems(two, { min: 5 }, soloProof);
+ assert.deepEqual(lost, ['S2 came out broken and no fix starts with it. Start its item under "## Fixes" with S2']);
+ const both = two.replace('- S1 fixed in a1b2c3d, then `npm test` passed again', '- S1 fixed in a1b2c3d, then `npm test` passed again\n- S2 fixed in 9f8e7d6, then `npm test` passed again');
+ assert.deepEqual(challengeProblems(both, { min: 5 }, soloProof), []);
+ // A recheck that breaks is named the same way.
+ const recheckBreak = `# Challenge\nSeat: ${SEAT}\n\n## Suspicions\n${items(5)}\n\n## Recheck\nSeat: a user on the slowest phone\n${items(3, { prefix: 'R', broken: 1 })}\n\n## Fixes\n- fixed it in a1b2c3d, then \`npm test\` passed\n\nVerdict: fixed\n`;
+ assert.deepEqual(challengeProblems(recheckBreak, { min: 5 }, soloProof), ['R1 came out broken and no fix starts with it. Start its item under "## Fixes" with R1']);
+});
+
+test('a skipped core leaves no core challenge owed', () => {
+ const box = sandbox();
+ soloProject(box);
+ run(box, 'log', 'core', 'skipped: a big change with a clear spec', 'core.enabled is not needed here', 'none', 'skipped');
+ assert.match(run(box, 'solo').out, /core\s+not owed yet/);
+ box.cleanup();
+});
+
+test('a round that names no seat, and one that found nothing and did not look again, do not pass', () => {
+ const noSeat = sandbox();
+ soloProject(noSeat, { findings: SOLO_FINDINGS.replace(/^Seat: .*\n/m, '') });
+ const first = finish(noSeat);
+ assert.equal(first.code, 1);
+ assert.match(first.err, /solo\. (the open round|round 1), findings\.md has no "Seat:" line before the first heading/);
+ noSeat.cleanup();
+ const clean = sandbox();
+ const none = SOLO_FINDINGS.replace(/## F1 .*\n/, '## Note\n').replace(/## F2 .*\n/, '## Other\n');
+ soloProject(clean, { findings: none });
+ const second = finish(clean);
+ assert.equal(second.code, 1);
+ assert.match(second.err, /has no findings and no "Rechecked:" line/);
+ clean.cleanup();
+ const looked = sandbox();
+ soloProject(looked, { findings: `${none}\nRechecked: a user on the slowest phone found no clipped button at 320px\n` });
+ assert.doesNotMatch(finish(looked).err, /Rechecked/);
+ looked.cleanup();
+});
+
+test('a loop whose judge file has a broken suspicion and no finding does not pass', () => {
+ const box = sandbox();
+ soloProject(box, { loop: LOOP_JUDGE.replace('Result: holds', 'Result: broken') });
+ const lost = finish(box);
+ assert.equal(lost.code, 1);
+ assert.match(lost.err, /solo\. loop pass-1, judge\.md has 1 broken suspicion and 0 findings/);
+ box.cleanup();
+ // Whatever shape the finding has, it counts and does not become a suspicion without an id.
+ for (const line of ['- major: the buy button is cut off at 320px', '- F1 [major] the buy button is cut off at 320px', '- [major] the buy button is cut off at 320px', 'major, the buy button is cut off at 320px']) {
+ const kept = sandbox();
+ soloProject(kept, { loop: loopWithFinding(line) });
+ const result = finish(kept);
+ assert.doesNotMatch(result.err, /broken suspicion|no id|no proof|says no result/, line);
+ assert.equal(result.code, 0, `${line}\n${result.err}`);
+ kept.cleanup();
+ }
+});
+
+test('the brief of a solo round leaves out the builder\'s commits and decision notes, and two rounds of one lens take two seats', () => {
+ const box = sandbox();
+ soloProject(box);
+ run(box, 'log', 'frame', 'chose a ring buffer because the owner wanted speed', 'the brief', 'project.md', 'ok');
+ const brief = run(box, 'brief').out + fs.readFileSync(dot(box, 'review', 'brief.md'), 'utf8');
+ assert.doesNotMatch(brief, /ring buffer/);
+ assert.doesNotMatch(brief, /Last decisions|Recent commits/);
+ assert.match(brief, /Your seat this round: /);
+ assert.notEqual(seatFor('code', 0), seatFor('code', 1));
+ assert.notEqual(seatFor('product', 0), seatFor('product', 1));
+ box.cleanup();
+});
+
+test('isSolo is false for a folder with no run and for a damaged run file', () => {
+ const box = sandbox();
+ assert.equal(isSolo(null), false);
+ assert.equal(isSolo(box.project), false);
+ run(box, 'init', '--no-git');
+ fs.writeFileSync(dot(box, 'run.json'), '{bad json');
+ assert.equal(isSolo(box.project), false);
+ box.cleanup();
+});
+
+test('the solo flag cannot be reached through a dotted key, and a quoted solo is the same as solo', () => {
+ const box = sandbox();
+ bareSolo(box);
+ for (const args of [['set', 'mode.foo', 'bar'], ['push', 'mode', 'x'], ['unset', 'mode.foo']]) {
+ const result = run(box, 'run', ...args);
+ assert.equal(result.code, 1, args.join(' '));
+ assert.match(result.err, /the solo flag stays for the life of the run/);
+ }
+ assert.equal(run(box, 'run', 'set', 'mode', '"solo"').code, 0);
+ assert.equal(JSON.parse(fs.readFileSync(dot(box, 'run.json'), 'utf8')).mode, 'solo');
+ box.cleanup();
+});
+
+test('a fresh run after a solo run with a helper starts clean: the old challenge files are archived and the old helper is not counted', () => {
+ const box = sandbox();
+ soloProject(box);
+ fs.writeFileSync(dot(box, 'helpers.jsonl'), `${JSON.stringify({ at: new Date(Date.now() - 3 * 86400000).toISOString(), model: 'old', status: 'finished' })}\n`);
+ const fresh = run(box, 'init', '--fresh', '--no-git');
+ assert.equal(fresh.code, 0, fresh.err);
+ assert.ok(!fs.existsSync(dot(box, 'solo')), 'the old challenge files moved with the run');
+ assert.equal(run(box, 'run', 'set', 'mode', 'solo').code, 0);
+ assert.equal(run(box, 'solo', 'new', 'plan').code, 0);
+ box.cleanup();
+});
+
+test('the printed steps of a loop, followed literally, produce a file that finish accepts, with findings in any of the repository shapes', () => {
+ assert.equal(loopFindingCount('## F1 [major] clipped\n- F2 [minor] dim\n- [nit] odd\nmajor: x\n1. blocker y\nS1 major flaw. Proof: `a b`. Result: holds'), 5);
+ const text = readChallenge(`Judged by: looking\nSeat: a stranger\n\n## Suspicions\n${items(5, { broken: 1 })}\n- F1 [major] the button is clipped (S1)\n- minor: dim hint\n\n## Findings\n- nit: spacing\n`);
+ assert.equal(text.suspicions.length, 5, 'a finding written under the suspicions ends the list');
+});
+
+test('a loop that found nothing needs a Rechecked line and a Seat line', () => {
+ const noSeat = sandbox();
+ soloProject(noSeat, { loop: LOOP_JUDGE.replace(/^Seat: .*\n/m, '') });
+ assert.match(finish(noSeat).err, /solo\. loop pass-1, judge\.md has no "Seat:" line/);
+ noSeat.cleanup();
+ const noLook = sandbox();
+ soloProject(noLook, { loop: LOOP_JUDGE.replace(/^Rechecked: .*\n/m, '') });
+ assert.match(finish(noLook).err, /solo\. loop pass-1, judge\.md has no findings and no "Rechecked:" line/);
+ noLook.cleanup();
+});
+
+test('recheck items are held to the rules even when something broke, bold on Seat and Verdict is read, and a fix has to start with the id', () => {
+ const body = (recheck, fixes, verdict = 'fixed') => `# Challenge\n**Seat:** ${SEAT}\n\n## Suspicions\n${items(5, { broken: 1 })}\n\n## Recheck\nSeat: a user on the slowest phone\n${recheck}\n\n## Fixes\n${fixes}\n\n**Verdict: ${verdict}**\n`;
+ const fix = '- S1 fixed in a1b2c3d, then `npm test` passed again';
+ assert.deepEqual(challengeProblems(body(items(3, { prefix: 'R' }), fix), { min: 5 }, soloProof), []);
+ const junk = challengeProblems(body('- an item with no id, no proof and no result\n- S1 reused a suspicion id. Proof: `npm test` printed it. Result: holds', fix), { min: 5 }, soloProof);
+ assert.ok(junk.some((problem) => /recheck item 1 .* has no id/.test(problem)), junk.join('\n'));
+ assert.ok(junk.some((problem) => /recheck item 1 .* has no proof/.test(problem)), junk.join('\n'));
+ const loose = challengeProblems(body(items(3, { prefix: 'R' }), '- Fixed the tap bug (S1) in a1b2c3d, then `npm test` passed'), { min: 5 }, soloProof);
+ assert.deepEqual(loose, ['S1 came out broken and no fix starts with it. Start its item under "## Fixes" with S1']);
+});
+
+test('a skip of the core in any wording owes no core challenge, and a dud variant owes no build challenge', () => {
+ const box = sandbox();
+ soloProject(box);
+ run(box, 'log', 'core', 'Core skipped: core.enabled is false', 'why', 'none', 'ok');
+ assert.match(run(box, 'solo').out, /core\s+not owed yet/);
+ box.cleanup();
+ const dud = sandbox();
+ soloProject(dud, { runFile: soloRun({ verdict: 'dud', review: { status: 'unreviewed', note: 'a dud' } }), files: ['plan'] });
+ assert.match(run(dud, 'solo').out, /build\s+not owed yet/);
+ dud.cleanup();
+});
+
+test('two rounds in a row cannot carry the same seat, and a clock set days before the run is not the run\'s clock', () => {
+ const box = sandbox();
+ soloProject(box, { findings: SOLO_FINDINGS });
+ const first = path.join(dot(box, 'review'), 'round-1');
+ write(path.join(first, 'findings.md'), `${SOLO_FINDINGS}\nAn earlier round.\n`);
+ write(dot(box, 'review', 'rounds.json'), JSON.stringify({ entries: [{ slot: 1, closedAt: new Date().toISOString() }], current: null }));
+ const result = finish(box);
+ assert.match(result.err, /solo\. the open round, findings\.md has the same seat as the round before/);
+ box.cleanup();
+ const old = sandbox();
+ soloProject(old, { runFile: soloRun({ review: { status: 'unreviewed', note: 'no time left for a round' } }) });
+ run(old, 'clock', 'set', '+10m');
+ const clock = JSON.parse(fs.readFileSync(dot(old, 'clock.json'), 'utf8'));
+ clock.setAt = new Date(Date.now() - 48 * 3600 * 1000).toISOString();
+ clock.deadline = new Date(Date.now() + 10 * 60000).toISOString();
+ fs.writeFileSync(dot(old, 'clock.json'), JSON.stringify(clock));
+ assert.match(finish(old).err, /cannot say there was no room for a round/);
+ old.cleanup();
+});
+
+test('the brief of round 2 keeps the builder\'s commit messages out, counts the commits, and names the second seat of the lens', () => {
+ const box = sandbox();
+ const git = (...args) => execFileSync('git', args, { cwd: box.project, env: { ...process.env, ...box.env, GIT_AUTHOR_NAME: 't', GIT_AUTHOR_EMAIL: 't@t', GIT_COMMITTER_NAME: 't', GIT_COMMITTER_EMAIL: 't@t' }, stdio: 'pipe' });
+ fs.mkdirSync(box.project, { recursive: true });
+ git('init', '-q', '.');
+ write(path.join(box.project, 'a.txt'), 'a\n');
+ git('add', '-A');
+ git('commit', '-qm', 'first');
+ assert.equal(run(box, 'init').code, 0);
+ assert.equal(run(box, 'run', 'set', 'mode', 'solo').code, 0);
+ assert.equal(run(box, 'brief').code, 0);
+ const one = fs.readFileSync(dot(box, 'review', 'brief.md'), 'utf8');
+ assert.match(one, /Your seat this round: a staff engineer who is paged/);
+ write(dot(box, 'review', 'findings.md'), `# Findings\nSeat: a staff engineer\n\n## F1 [major] The button is clipped\nWhere: 320px\nEvidence: shots/a.png\nFix: wrap\n\n## Verdict\nReady to ship: no\n`);
+ write(dot(box, 'review', 'triage.md'), 'F1 accept. fixed in the next commit, the row wraps at 320px\n');
+ write(path.join(box.project, 'b.txt'), 'b\n');
+ git('add', '-A');
+ git('commit', '-qm', 'FIX SECRET RATIONALE ring buffer');
+ assert.equal(run(box, 'triage').code, 0);
+ assert.equal(run(box, 'brief').code, 0);
+ const two = fs.readFileSync(dot(box, 'review', 'brief.md'), 'utf8');
+ assert.doesNotMatch(two, /SECRET RATIONALE/);
+ assert.match(two, /1 commit since the last round was briefed/);
+ assert.match(two, /Your seat this round: a tester paid for every bug/);
+ box.cleanup();
+});