phax 0.43.0
Changes since 0.42.0: v0.42.0...v0.43.0.
Highlights
- Gate step times in the gate attribution — A gate time is a recorded fact read from the record, never a guess, a re-run, or a reason to change a verdict.
- Launcher and release-pipeline fixes: verified first run, forwarded signals, tag-only redeploy, locked Deno build — Only verified, pinned code reaches a user's machine or the release, and the launcher is a transparent doorway to the binary it verified.
- Security High fixes: skeleton records, worktree git, .phax-context, review skill — Nothing the agent under review can write decides what phax executes, where phax writes, what phax publishes, or how the agent's work is reviewed.
- The plan names its gate profile — The profile that gates a run is the one the operator approved in its plan, never the one phax.json happens to list first.
Upgrading
gate-attribution.jsonandchecks-attempt-NN.attribution.jsonmove to a new shape, stamped 0.43.0, with a requiredtimeon the attempt, on every step and on a non-nullprotectedPaths:measuredwithstartedAtanddurationMs, ornot-runfor a skipped acceptance step.phax records explainshows these times under itsgatesline, and--jsonaddsgateAttempts.- Older attributions still read, with their times
unknown, and are never rewritten. - An
@lbdremy/phax-schemasbefore 0.43.0 cannot read the new attributions, so upgrade the package. ItstoLatestGateAttributiongives 0.26.0 to 0.33.0 attributionsunknowntimes. Older ones (pre-schema, 0.17.0 to 0.21.0) come back under their own types with notimekey, since their steps can bepending; phax itself reads them withunknowntimes. - Phase records carry the required
gateProfile, the id of the gate profile that gated the run, andphase-record-manifestis stamped 0.43.0.phax records explainprints it on aprofileline just before thegatesline, and--jsonaddsgateProfile. - Earlier records read as
null, shown as(not recorded)byphax records explain, and are never rewritten.toLatestPhaseRecordManifestlifts them the same way. - An
@lbdremy/phax-schemasbefore 0.43.0 cannot read the new records, so upgrade the package. - A plan's JSON sidecar carries the required
run.gateProfile, the id of the one gate profile in phax.json that verifies the plan's whole run, andplan-documentis stamped 0.43.0. The rendered plan.md declares it in a## Gate profilesection, just before## Required commands. A document without it is refused, namingrun.gateProfile. - An
@lbdremy/phax-schemasbefore 0.43.0 cannot read the new plan documents, so upgrade the package. ItstoLatestPlanDocumentlifts a plan document stamped 0.38.0 or earlier under a type of its own,LiftedPlanDocument, whose run declares no gate profile: it never invents one. - A plan sidecar stamped 0.38.0 or earlier declares no gate profile. It still reads, but
phax artifact approveandphax artifact reopenrefuse it until it is migrated. - Every plan.md declares exactly one gate profile under
## Gate profile, its id written as a code span or a bare word. phax reads it itself and never asks the extraction model.phax plans lintreports a plan with no declaration, or more than one, as astructureerror, and extraction refuses it before any model call, namingphax plans lint.phax plans overview,phax plans estimateandphax plans overlaponly show a plan: they do not read its gate profile, so a plan written before the declaration, archived ones included, still shows. phax-plan.jsoncarries the requiredrun.gateProfile, andphax-planis stamped 0.43.0. A run started by 0.42.0 or earlier recorded none: it is still listed and shown, butphax resumerefuses it. Finish it with the release that started it, or archive it withphax archive <run> --forceand run its plan again. An@lbdremy/phax-schemasbefore 0.43.0 cannot read the new file; itstoLatestPhaxPlanlifts one stamped 0.38.0 or earlier under a type of its own,LiftedPhaxPlan, whose run names no gate profile.- A plan whose extraction fell back to the model is extracted once more, since an extraction cached by an earlier release is a miss.
phax run,phax run --dry-runandphax plans lintuse the gate profile the plan declares, wherever phax.json lists it, never the first one. Revise each live plan to declare one and approve it again.phax runrefuses a declared profile phax.json does not define with exit 2, before any worktree, run branch or run folder exists. See Gate profiles.phax plans linthas a newgate-profilecheck, an error naming the declared profile and every defined one when phax.json does not define it. Thecommandscheck then compares required commands with the declared profile's steps alone. Every lint report's check column is one space wider.plan-lintis stamped 0.43.0, and an@lbdremy/phax-schemasbefore 0.43.0 refuses new lint documents, so upgrade the package. It reads a 0.34.0 lint document as its own shape andtoLatestPlanLintlifts it unchanged.
Run phax artifact migrate-documents --gate-profile <id> once per live plan sidecar stamped 0.38.0 or earlier, naming one of phax.json's gate profiles. It writes the id into the sidecar and renders ## Gate profile into the body, so approve each Approved plan again afterwards. Without the flag such a plan is refused, naming the flag, and an id phax.json does not define is refused with exit 2.
What's new
Gate step times in the gate attribution
A gate time is a recorded fact read from the record, never a guess, a re-run, or a reason to change a verdict.
-
Each gate attempt's attribution now shows when each step started and how long it ran, how long the protected-paths check took, and how long the attempt took.
gate-attribution.json and checks-attempt-NN.attribution.jsonNow:
Before
-
Running
phax records explainon a phase commit shows each gate attempt's steps with how long each took, so you can see where the gate time went.phax records explainNow:
Before
-
Scripts reading
phax records explain --jsonget each gate attempt's steps with their times.phax records explain --jsonNow:
Before
Launcher and release-pipeline fixes: verified first run, forwarded signals, tag-only redeploy, locked Deno build
Only verified, pinned code reaches a user's machine or the release, and the launcher is a transparent doorway to the binary it verified.
-
A first run that is interrupted, raced or fails leaves no binary behind, so the next run downloads and verifies again instead of running an unchecked file.
phax (npm launcher), first runNow:
Before
-
A first run that is redirected too far or off GitHub, or stalls, stops with a message naming the URL, host or timeout instead of looping, crashing or hanging.
phax (npm launcher), download errorsNow:
Before
-
Signalling the launcher stops the phax run it started, and the launcher's exit status is the binary's own code or signal.
phax (npm launcher), signals and exit statusNow:
Before
-
When the cached binary cannot be started, the launcher says why and how to get a fresh download instead of exiting 1 in silence.
phax (npm launcher), binary cannot startNow:
Before
-
During a first run the download sits in a directory of its own, and only a verified, executable binary ever appears at the cache path.
~/.phax/bin/<version>/Now:
Before
-
A redeploy refuses a malformed tag before checking anything out, and always builds the tag itself, never a branch of the same name.
.github/workflows/docs-deploy.ymlNow:
Before
-
Deno builds and checks fail on a dependency the lockfile does not pin, leave pnpm's node_modules alone, and grant install scripts to no unused version.
deno.jsonNow:
Before
-
Building the binaries stops with Deno's lockfile error when deno.lock does not match, instead of embedding a version no lockfile pins.
pnpm deno:build-binariesNow:
Before
Security High fixes: skeleton records, worktree git, .phax-context, review skill
Nothing the agent under review can write decides what phax executes, where phax writes, what phax publishes, or how the agent's work is reviewed.
-
A record written with
records.transcript: falseno longer carries fix-attempt streams, handoff streams, gate and setup logs, or agent error logs.phase record on phax/records/v1, skeleton shapeNow:
Before
-
phax keeps
.phax-contextout of git without touching the worktree's.gitignore, so a phase's diff never shows phax's ignore line..git/info/exclude of the repositoryNow:
Before
-
When an agent rewrites its worktree's
.gitfile, phax stops the phase before running any git command there and shows what changed.phax run / phax resume, gitdir pointer refusalNow:
-
When
.phax-context(or.phax-context/briefs) is a symbolic link or not a directory, phax refuses to use it and names what it found.phax run / phax resume, .phax-context refusalNow:
-
The code review says which review skill it follows, and warns when the run changed the project's review skill, whose base copy it follows instead.
phax review-code <run>Now:
The plan names its gate profile
The profile that gates a run is the one the operator approved in its plan, never the one phax.json happens to list first.
-
A plan states which of the project's gate profiles verifies its run in one section that phax reads, and phase Verification no longer names the profile.
plan.md — the gate-profile declarationNow:
Before
-
The plan's JSON sidecar and its extracted plan carry the declared gate profile as a required run field.
plan sidecar and phax-plan.json — run.gateProfileNow:
Before
-
Running
phax plans lintreports an error when a plan declares no gate profile, or one that phax.json does not define, and checks required commands against the declared profile.phax plans lintNow:
Before
-
Running
phax rungates the run with the profile its plan declares, and refuses before any worktree exists when phax.json does not define that profile.phax runNow:
Before