> For AI agents: the complete documentation index is available at https://docs.phax.run/llms.txt, the full documentation bundle is available at https://docs.phax.run/llms-full.txt.

# phax 0.42.0 \{#phax-0420}

Changes since 0.41.0: [v0.41.0...v0.42.0](https://github.com/lbdremy/phax/compare/v0.41.0...v0.42.0).

## Highlights \{#highlights}

- **Test worlds built once** — A copy must be indistinguishable from the world the test would have built itself; only the number of git processes changes.
- **Bounded test spawns** — No test waits on a child longer than the test says, and no child ends without the test saying who ended it.
- **Positioning: verified delegation, one name and two pitches** — Every sentence that says what phax is names verified delegation and claims only what a shipped page or command shows.
- **Plan parser: reading time bounded whatever the Markdown nests** — phax never hands the Markdown parser a plan whose nesting it has not bounded, and it says which line crossed the bound.

## What's new \{#whats-new}

### Test worlds built once \{#test-worlds-built-once}

> A copy must be indistinguishable from the world the test would have built itself; only the number of git processes changes.

- A reader of the change's history sees the suite's time before and after, and every integration file still over 30 s. `the last phase's commit message`

  Now:

  ```text
  Measures (14 cores, vitest 5.1), before -> after:
    suite wall time            235 s -> <after> s
    sum of file times        2,712 s -> <after> s
      integration            2,500 s -> <after> s
      unit                     212 s -> <after> s
  Integration files over 30 s, before -> after:
    recordsStatusBranch        121 s -> <after> s
    heldStopRun                102 s -> <after> s
    stopRecords                 97 s -> <after> s
    ...
  ```

### Bounded test spawns \{#bounded-test-spawns}

> No test waits on a child longer than the test says, and no child ends without the test saying who ended it.

### Positioning: verified delegation, one name and two pitches \{#positioning-verified-delegation-one-name-and-two-pitches}

> Every sentence that says what phax is names verified delegation and claims only what a shipped page or command shows.

- Running `phax --help` now opens with one sentence telling an agent that phax is verified delegation and that it gets back results it can verify. `phax --help`

  Now:

  ```text
  Usage: phax [options] [command]

  phax is verified delegation for AI coding agents: delegate a change to another
  coding agent and get results you can verify.

  Options:
    -V, --version   output the version number
  ```

  :::details Before

  ```text
  Usage: phax [options] [command]

  Drive AI coding agents through isolated, gated phases

  Options:
    -V, --version   output the version number
  ```

  :::

- The README now opens by saying phax is verified delegation and what facts you get back. `README.md`

  Now:

  ```text
  phax is verified delegation for AI coding agents: hand work to Claude Code, OpenAI Codex or Mistral Vibe and get back facts, not claims. Every phase passed your checks, every file is accounted for, every finding has a fate, and the history stays in Git.
  ```

  :::details Before

  ```text
  phax runs a plan through AI coding agents — Claude Code, OpenAI Codex or Mistral Vibe — as a sequence of **gated phases**, and hands you a change you can review.
  ```

  :::

- The npm page for @lbdremy/phax describes phax with the same pitch as the README. `package.json`

  Now:

  ```text
  "description": "phax is verified delegation for AI coding agents: hand work to Claude Code, OpenAI Codex or Mistral Vibe and get back facts, not claims. Every phase passed your checks, every file is accounted for, every finding has a fate, and the history stays in Git."
  ```

  :::details Before

  ```text
  "description": "phax runs a plan through AI coding agents — Claude Code, OpenAI Codex or Mistral Vibe — as a sequence of gated phases, and hands you a change you can review."
  ```

  :::

- The home page keeps its tagline, adds the verified-delegation pitch under it, and shows four cards for author, run, review and keep. `docs.phax.run home page`

  Now:

  ```text
  The golden path, just facts.
  phax is verified delegation for AI coding agents: hand work to Claude Code, OpenAI Codex or Mistral Vibe and get back facts, not claims. Every phase passed your checks, every file is accounted for, every finding has a fate, and the history stays in Git.

  Author  — Specs and plans with a status and an approval, drafted headless from a brief, open questions decided with phax artifact decide, plans linted, estimated and checked for overlap.  → /guide/specs-and-plans
  Run     — Each phase in its own worktree with the agent you pick; nothing moves until your gates pass; every file planned vs. done.  → /guide/run
  Review  — A compliance verdict against the plan, a headless code review whose findings each get a fate, and a pull request that explains itself.  → /guide/review-and-land
  Keep    — Each phase's record on phax/records/v1 and a cost ledger per run.  → /guide/records
  ```

  :::details Before

  ```text
  The golden path, just facts.
  phax runs your plan through AI coding agents one gated phase at a time, and hands you a change already checked against the plan.

  Nothing moves on red · One worktree per phase · Planned vs. done · Your agent
  Checked against the plan · A PR that explains itself · History that outlives the worktrees
  Only the agent guesses · Specs and plans with a status
  ```

  :::

- An agent that reads llms.txt first now gets the one-sentence agent pitch and a link to the page about delegating from an agent. `docs.phax.run/llms.txt`

  Now:

  ```text
  # phax

  > phax is verified delegation for AI coding agents: delegate a change to another coding agent and get results you can verify.

  - [Delegating from an agent](/guide/delegating.md): Delegate a change through phax from a coding agent: the commands to call, --json answers, --json-schema contracts, exit codes and phax --usage.
  - [Installation](/guide/install.md): Install the phax CLI with npm …
  ```

  :::details Before

  ```text
  # phax

  > phax runs a plan through AI coding agents — Claude Code, OpenAI Codex or Mistral Vibe — as a sequence of gated phases, and hands you a change you can review.

  - [Installation](/guide/install.md): Install the phax CLI with npm …
  ```

  :::

- An agent, or the person who builds one, can read on one page what results it can verify, how to delegate a change through phax and how to check what comes back. `docs.phax.run/guide/delegating`

  Now:

  ```text
  # Delegating from an agent

  phax is verified delegation for AI coding agents: delegate a change to another coding agent and get results you can verify.

  - Each phase runs in an isolated Git worktree.
  - Its gate commands must exit 0 before the next phase starts.
  - The files it touched are reconciled with the plan.
  - Run state outlives your context: phax resume picks up where the run stopped.
  - Every command answers JSON with a schema.

  ## Delegate a change
  phax artifact new spec <slug> --headless --brief - --json
  phax artifact new plan <slug> --headless --brief - --spec <spec> --last --json
  phax plans lint <plan> --json
  phax run --plan <plan> --json
  phax review-compliance <short-name> --json
  phax finding list <short-name> --json

  ## Read the answers
  --json on every command · --json-schema for each command's contract · exit codes · phax --usage for the full command tree
  ```

- An agent choosing skills sees that phax-cli is how it delegates a change with verifiable results, when to load it, and what it can verify. `.claude/skills/phax-cli/SKILL.md`

  Now:

  ```text
  description: Verified delegation through the phax CLI — delegate a change to another coding agent and get results you can verify; its concepts, run lifecycle and the init → plan → run → review → publish flow. Use when driving phax, explaining it to a developer, or scripting against it. Defers to `phax --usage` for the exact command/flag contract.

  ## What phax is

  phax is verified delegation for AI coding agents: delegate a change to another coding agent and get results you can verify.

  Each phase runs in an isolated Git worktree, its gate commands must exit 0 before
  the next phase starts, the files it touched are reconciled with the plan, run
  state outlives your context, and every command answers JSON with a schema.
  ```

  :::details Before

  ```text
  description: Operate the phax CLI — its concepts, run lifecycle, and the canonical init → plan → run → review → publish flow. Use when driving phax, explaining it to a developer, or scripting against it. Defers to `phax --usage` for the exact command/flag contract.

  ## What phax is

  A deterministic, local CLI that drives an AI coding agent (Claude Code by
  default; also Mistral Vibe and OpenAI Codex) through isolated, **gated phases**.
  ```

  :::

- The comparison pages now describe phax as verified delegation and keep their titles and side-by-side axes. `docs/comparisons/spec-kit-vs-phax.md`

  Now:

  ```text
  **Spec Kit is a methodology + prompt/template layer, with a workflow engine on
  top, that runs your AI agent _as the worker for each step_. phax is verified
  delegation: it runs your AI agent _inside isolated, mechanically gated phases_
  and hands back facts, not claims.**
  ```

  :::details Before

  ```text
  **Spec Kit is a methodology + prompt/template layer, with a workflow engine on
  top, that runs your AI agent _as the worker for each step_. phax is an
  orchestration engine that runs your AI agent _inside isolated, mechanically
  gated phases_.**
  ```

  :::

### Plan parser: reading time bounded whatever the Markdown nests \{#plan-parser-reading-time-bounded-whatever-the-markdown-nests}

> phax never hands the Markdown parser a plan whose nesting it has not bounded, and it says which line crossed the bound.

- A plan whose blockquotes or lists nest over 32 levels gets one structure error naming the line and the limit, without the long wait. `phax plans lint`

  Now:

  ```text
  $ phax plans lint deep-plan.md
  deep-plan.md: 1 error, 0 warnings
  error    structure    -         line 1: blockquotes and lists nest over 32 levels deep
  $? = 1
  ```

  :::details Before

  ```text
  $ phax plans lint deep-plan.md        # tens of seconds of CPU
  deep-plan.md: 3 errors, 0 warnings
  error    structure    -         missing top-level "# " heading for run title
  error    structure    -         missing "## Required commands" section
  error    structure    -         no phase headings found
  $? = 1
  ```

  :::

- Scripts reading the lint report see the nesting refusal as an ordinary structure finding with no phase. `phax plans lint --json`

  Now:

  ```text
  "findings": [
    { "severity": "error", "check": "structure", "phase": null,
      "message": "line 1: blockquotes and lists nest over 32 levels deep" }
  ]
  ```

  :::details Before

  ```text
  "findings": [
    { "severity": "error", "check": "structure", "phase": null,
      "message": "missing top-level \"# \" heading for run title" },
    …
  ]
  ```

  :::

- phax run refuses a plan nested over 32 levels at once, naming the line, instead of parsing for seconds and falling back to a model extraction. `phax run`

  Now:

  ```text
  $ phax run deep-plan.md
  ✗ deep-plan.md: line 1: blockquotes and lists nest over 32 levels deep — run phax plans lint deep-plan.md
  $? ≠ 0
  ```

  :::details Before

  ```text
  $ phax run deep-plan.md
  warning: Deterministic extraction failed (missing top-level "# " heading for run title); fell back to LLM.
  …
  ```

  :::

- The overview of a plan nested over 32 levels says which line is too deep, not just that the plan does not parse. `phax plans overview`

  Now:

  ```text
  $ phax plans overview deep-plan.md
  deep-plan.md: line 1: blockquotes and lists nest over 32 levels deep — run phax plans lint deep-plan.md
  ```

  :::details Before

  ```text
  $ phax plans overview deep-plan.md
  deep-plan.md: the plan does not parse — run phax plans lint deep-plan.md
  ```

  :::

## Fixes \{#fixes}

- fix(review): F1–F6 of positioning ([2b04b8e](https://github.com/lbdremy/phax/commit/2b04b8e7e6dec50f5d5caa835278d055b1213734))
- fix(review): F1–F6 of plan-parser-nesting-time ([2348316](https://github.com/lbdremy/phax/commit/2348316c44429643eb65841ad6e59f9e8dee3767))
