phax 0.38.0
Changes since 0.37.0: v0.37.0...v0.38.0.
Highlights
- Revise a Draft artifact
- Plan paths in one canonical form — A plan path is made canonical, or refused, where the plan is decoded, and nowhere else.
Upgrading
phax artifact revisecommits leave revision records. A new record format,revision-record-manifestonphax/records/v1, keyedrevision/<authoringId>/<NN>. An@lbdremy/phax-schemasbefore 0.38.0 cannot read it:parseRecordManifestfails at$schemawith an unknown format, so upgrade the package before reading such records.phax records listshows a new entry kind,revision.- Plan paths have one canonical form. A plan.md's
./src/x.tsis read assrc/x.ts; a path that is empty, absolute, leaves the repository, names a directory or contains a backslash is a lint error andphax runrefuses it. A headless planner's or a sidecar's non-canonical path is refused, naming the spelling to write. - phax-plan, plan-document and phax-plan-extraction move to 0.38.0 shapes. An
@lbdremy/phax-schemasbefore 0.38.0 refuses documents of those shapes, so upgrade the package. The package reads the 0.33.0 shapes as a release and keeps their paths as written. - Run
phax artifact migrate-documentsonce in each repository. Live plan sidecars stamped 0.33.0 are an older shape, and approve, reopen, decide and revise refuse until they are migrated. A sidecar holding a non-canonical path is refused: edit the path to its canonical form in the sidecar and plan.md alike, rerunphax artifact migrate-documents, then re-approve the plan if needed. - A run started by 0.37.0 or earlier cannot be resumed. Finish it with that release, or archive it with
phax archive <run> --forceand run its plan again. - A plan whose extraction fell back to the model is extracted once more, because the extractor version changed.
What's new
Revise a Draft artifact
Plan paths in one canonical form
A plan path is made canonical, or refused, where the plan is decoded, and nowhere else.
-
A plan document, whether a headless planner's answer or a sidecar, is refused when a file list holds a path that is not canonical, and the refusal names the spelling to write instead.
docs/plans/<stamp>-<slug>-plan.json (plan document)Now:
Before
-
Lint reads
./src/x.tsin a plan.md assrc/x.ts, names files by that spelling in its findings, and reports an unplannable path as an error on its phase.phax plans lintNow:
Before
-
Two plans that write the same file under two spellings are reported as overlapping on that file's canonical path.
phax plans overlapNow:
Before
-
A phase that plans
./src/x.tsand changessrc/x.tsis reconciled as having edited a planned file, with no missing or unplanned entry.phax run (phase reconciliation)Now:
Before
-
An older plan sidecar holding a path that is not canonical is refused by name, so the operator can fix the path and re-approve.
phax artifact migrate-documentsNow:
-
A run's phax-plan.json holds only canonical paths and is stamped with the release that introduced the rule.
.phax/runs/<run>/phax-plan.jsonNow:
Before
Fixes
- fix(release-notes): match a run to its plan by the title's slug too (95cf574)