> 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.44.0 \{#phax-0440}

Changes since 0.43.0: [v0.43.0...v0.44.0](https://github.com/lbdremy/phax/compare/v0.43.0...v0.44.0).

## Highlights \{#highlights}

- **A fixed finding finds its commit again after a rewrite** — A fixed fate names the commit that carries its fix on the branch it landed on, however that commit was rewritten, or it says plainly that it cannot.
- **One phax home, movable by PHAX_HOME, and e2e runs that bring their own** — Everything that is phax's own lives in one home, which PHAX_HOME may move and which is otherwise \~/.phax; nothing that belongs to a provider or to the user ever moves with it.

## Upgrading \{#upgrading}

- **`phax finding list` looks for where each fixed finding's latest fix landed**, on the base branch, then on the run's branch, among commits made since the run started: by its recorded commit, by its `Finding-Run` and `Finding` trailers, then by its patch id. It writes and fetches nothing. The text shows the answer after the fix's commit when it is not the recorded commit on the base branch.

- **`finding-list` is stamped 0.44.0.** Every finding carries a required `landed`: `found`, `ambiguous` or `not-found` for a fixed finding, `null` for every other. The run carries a required `baseBranch`, the branch searched first.

- **An `@lbdremy/phax-schemas` before 0.44.0 refuses the new answer**, so upgrade the package. It reads a 0.40.0 finding list as its own shape, and `toLatestFindingList` lifts it under a type of its own, `LiftedFindingList`: a fixed finding's `landed` and the run's `baseBranch` are `unknown`, never guessed.

- **Fix commits now carry a `Finding-Run: <run id>` trailer** beside `Finding`, so phax can find them again after a rebase or a squash that keeps the messages. Fix commits made before 0.44.0 have none and are not rewritten: they are found by their recorded commit or their patch id.

- **`phax agent setup providers --write` no longer turns a provider on in an existing `~/.phax/providers.json`.** An entry with `"enabled": false` stays off, and the file's own models are kept, retired ids replaced by their successors. Only a first write, with no file yet, enables the installed providers. To turn a provider on, set its `enabled` to `true` by hand.

- **`PHAX_HOME` now moves phax's whole home**: `config.json`, `providers.json`, `model-routing.json`, `telemetry.json`, the telemetry journals and, unless a config layer names `state.root`, the runs. If your shell already exported `PHAX_HOME` for something else, unset it, or phax reads an empty home and runs as a fresh install. A value that is empty, relative or not a directory is refused with exit 2. See [The phax home](https://github.com/lbdremy/phax/blob/v0.44.0/docs/phax-home.md).

- **Codex runs the model routing chose.** The first `openai-gpt` model listed in `providers.json` no longer overrides it for every Codex session. If you relied on that order to pick your Codex model, choose it through routing instead (the phase's model and effort, or `model-routing.json`).

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

### A fixed finding finds its commit again after a rewrite \{#a-fixed-finding-finds-its-commit-again-after-a-rewrite}

> A fixed fate names the commit that carries its fix on the branch it landed on, however that commit was rewritten, or it says plainly that it cannot.

- A fix commit now names its run by id, so phax can find it again after a rebase, an amend or a squash that keeps the messages. `fix commit message`

  Now:

  ```text
  fix(review): F2 of gate-retry

  Short-Name: gate-retry
  Finding-Run: gate-retry-2026-11-18
  Finding: F2
  ```

  :::details Before

  ```text
  fix(review): F2 of gate-retry

  Short-Name: gate-retry
  Finding: F2
  ```

  :::

- Running `phax finding list` shows which base-branch commit carries a fix after its commit was rewritten, or says it cannot find one. `phax finding list`

  Now:

  ```text
  $ phax finding list gate-retry
  gate-retry (review_open) — 3 findings: 3 fixed

  F1  bug      fixed  src/app/retry.ts:41    The retry count is never reset after a pass
                 8c1d2e4 (code, tests)
  F2  concern  fixed  tests/gate.test.ts:12  The gate drops the exit code
                 3fa91c2 (tests) → 8b04d6e on main, by key
  F5  bug      fixed  src/app/gate.ts:40     The retry loses stderr
                 9f8e7d6 (code) → not found on main or phax/gate-retry
  ```

  :::details Before

  ```text
  $ phax finding list gate-retry
  gate-retry (review_open) — 3 findings: 3 fixed

  F1  bug      fixed  src/app/retry.ts:41    The retry count is never reset after a pass
                 8c1d2e4 (code, tests)
  F2  concern  fixed  tests/gate.test.ts:12  The gate drops the exit code
                 3fa91c2 (tests)
  F5  bug      fixed  src/app/gate.ts:40     The retry loses stderr
                 9f8e7d6 (code)
  ```

  :::

- A script reading `phax finding list --json` gets, for each fixed finding, the commit that carries the fix now, how it was found, or that it was not. `finding-list document (phax finding list --json)`

  Now:

  ```text
  "fate": "fixed",
  "history": [ … unchanged … ],
  "landed": { "status": "found", "by": "key", "commit": "8b04d6e…", "branch": "main", "recorded": "3fa91c2…" }

  other values of landed:
  { "status": "found", "by": "recorded" | "patch-id", "commit": "…", "branch": "…", "recorded": "…" }
  { "status": "ambiguous", "commits": ["8b04d6e…", "c11a0f3…"], "branch": "main", "recorded": "3fa91c2…" }
  { "status": "not-found", "branches": ["main", "phax/gate-retry"], "recorded": "9f8e7d6…" }
  null   (open, dismissed, deferred, unrecorded)
  ```

  :::details Before

  ```text
  "fate": "fixed",
  "history": [
    { "fate": "fixed", "commit": "3fa91c2…", "pathClasses": ["tests"], "by": { "kind": "operator", "name": "Ada Lovelace" }, "at": "2026-11-18T10:00:00.000Z" }
  ]
  ```

  :::

- A fixed finding's comment on the pull request names the commit where the fix now lives and the finding's run and id, which stay valid after a merge. `fixed finding's pull request comment`

  Now:

  ```text
  F2 fixed — tests/gate.test.ts:12 — The gate drops the exit code
  Fixed by 8b04d6e on main (tests) · gate-retry-2026-11-18 F2
  ```

  :::details Before

  ```text
  F2 fixed — tests/gate.test.ts:12 — The gate drops the exit code
  Fixed by 3fa91c2 (tests)
  ```

  :::

- Running `phax finding post` on a merged pull request now posts a fixed finding whose commit is found on the base branch, without pushing. `phax finding post`

  Now:

  ```text
  $ phax finding post gate-retry F2
  ✓ F2: 8b04d6e on main (by key)
  ✓ commented F2 on https://github.com/acme/app/pull/41 (nothing pushed: the pull request is merged)

  $ phax finding post gate-retry F5
  ✗ F5 of gate-retry is fixed by 9f8e7d6, found on neither main nor phax/gate-retry: nothing was commented. Record the commit that carries the fix with: phax finding fix gate-retry F5 --commit <sha>
  ```

  :::details Before

  ```text
  $ phax finding post gate-retry F2
  ✗ https://github.com/acme/app/pull/41 is merged: phax pushes nothing to it and posts no fixed comment on it (F2 is fixed); nothing was pushed or commented
  ```

  :::

- Running `phax finding fix --commit` with a fix's old sha records the rewritten commit on the base branch instead of refusing. `phax finding fix --commit`

  Now:

  ```text
  $ phax finding fix gate-retry F2 --commit 3fa91c2 --by operator
  ✓ 3fa91c2 is on neither phax/gate-retry nor main; its rewrite 8b04d6e on main carries gate-retry-2026-11-18 F2 (by key)
  ✓ recorded F2 fixed by 8b04d6e (tests) on phax/records/v1

  $ phax finding fix gate-retry F2 --commit 3fa91c2 --by operator
  ✗ 3fa91c2 is on neither phax/gate-retry nor main, and 2 commits of main carry gate-retry-2026-11-18 F2: 8b04d6e, c11a0f3. Name one with --commit
  ```

  :::details Before

  ```text
  $ phax finding fix gate-retry F2 --commit 3fa91c2 --by operator
  ✗ --commit 3fa91c2 is on neither phax/gate-retry nor main: name a commit of the run branch or of the base branch (publish.baseBranch names it when it is not main)
  ```

  :::

### One phax home, movable by PHAX_HOME, and e2e runs that bring their own \{#one-phax-home-movable-by-phax_home-and-e2e-runs-that-bring-their-own}

> Everything that is phax's own lives in one home, which PHAX_HOME may move and which is otherwise \~/.phax; nothing that belongs to a provider or to the user ever moves with it.

- Setting PHAX_HOME runs phax with a different home holding its own config.json, providers.json, routing, telemetry and runs, while Claude Code, Codex and Vibe keep their sign-ins. `PHAX_HOME`

  Now:

  ```text
  # unset: ~/.phax, unchanged
  $ phax run --plan plan.md

  # set: an absolute path to a directory (created on first write if absent)
  $ export PHAX_HOME=$HOME/.phax-next
  $ phax agent setup providers --write   # writes $HOME/.phax-next/providers.json
  $ phax run --plan plan.md              # routes through $HOME/.phax-next only
  ```

  :::details Before

  ```text
  # phax always reads ~/.phax; the variable is ignored
  $ PHAX_HOME=$HOME/.phax-next phax validate
    global:  /Users/me/.phax/config.json
  ```

  :::

- Operators can see exactly which files a phax home holds, and that a moved home holds all of them and nothing that belongs to a provider. `the phax home`

  Now:

  ```text
  $PHAX_HOME/            # ~/.phax when PHAX_HOME is unset
    config.json          # global config layer
    providers.json       # provider enablement
    model-routing.json   # routing table (absent: built-in table)
    telemetry.json       # telemetry switch
    <daily telemetry journals>
    runs/  worktrees/    # when phax.json names no state.root

  # never here, whatever PHAX_HOME says:
  ~/.claude  ~/.codex  Vibe's home  ~/.claude/skills
  ```

  :::details Before

  ```text
  ~/.phax/
    config.json
    providers.json
    model-routing.json
    telemetry.json
    <daily telemetry journals>
    runs/  worktrees/
  ```

  :::

- Running `phax validate` shows which phax home is in use and whether PHAX_HOME chose it. `phax validate`

  Now:

  ```text
  $ PHAX_HOME=/srv/ci/phax phax validate
  ✓ config is valid (project: acme)
    home:    /srv/ci/phax (PHAX_HOME)
    project: /work/acme/phax.json
    local:   (none)
    global:  /srv/ci/phax/config.json

  $ phax validate
    home:    /Users/me/.phax (default)

  $ phax validate --json
    "home": { "path": "/srv/ci/phax", "from": "PHAX_HOME" }   # "from": "PHAX_HOME" | "default"
  ```

  :::details Before

  ```text
  $ phax validate
  ✓ config is valid (project: acme)
    project: /work/acme/phax.json
    local:   (none)
    global:  /Users/me/.phax/config.json
  ```

  :::

- An empty, relative or non-directory PHAX_HOME stops every phax command before it reads anything, naming the variable and its value. `any phax command with an invalid PHAX_HOME`

  Now:

  ```text
  $ PHAX_HOME='~/phax-ci' phax run --plan plan.md
  ✗ PHAX_HOME must be an absolute path to a directory, got "~/phax-ci"
  $? = 2
  ```

## Also in this release \{#also-in-this-release}

### Small fixes, wave 2 \{#small-fixes-wave-2}

Seven small fixes from `NEXT_STEPS.md` (wave 2), in six phases. Each phase changes its own files, and no phase depends on another phase's code. There is no spec: each phase section says where its fix lives and how it should behave.

## Fixes \{#fixes}

- fix(codex): run the model routing chose, not providers.json's first ([79b0c8a](https://github.com/lbdremy/phax/commit/79b0c8a4db96e75681284a91fdcb9e22c8ced7a5))
