phax 0.40.0
Changes since 0.39.0: v0.39.0...v0.40.0.
Highlights
- Code repository: a plan's process in one repository, its code in another — A plan's ground is the code it reads, in whichever repository that code lives.
- Finding ids and fates — No finding is dropped: phax names it, the operator or a machine settles it through a phax command, and Git remembers how.
Upgrading
- The pull request description's code review findings list is replaced by a Review findings section of every finding by fate: open and deferred named, fixed and dismissed counted.
- With
publish.autoon,phax finding fix,dismissanddefernow push and comment on the run's existing pull request,fixonly while GitHub reports it open, and their--jsonanswers gainpullRequest. Exit 1 now also covers a pull request not updated. phax finding postis new. It posts the comments of settled findings without recording a fate again.code-reviewandcompliance-reviewmove to 0.40.0 shapes whose findings carry anid. An@lbdremy/phax-schemasbefore 0.40.0 refuses them, so upgrade the package. The package reads the 0.32.0 shapes with each idUnknown.- The review sessions answer new formats,
code-review-answerandcompliance-review-answer. phax gives each finding its id and keeps the answer ascode-review.jsonorcompliance-review.json. phax finding list --jsonprints the newfinding-listdocument. See Review findings.phax finding fix,dismissanddeferrecord fates asfinding-fate-record-manifestrecords onphax/records/v1, keyed<runId>/finding/<id>/<NN>, whichphax records listdoes not show. An@lbdremy/phax-schemasbefore 0.40.0 cannot read them, andparseRecordManifestrefuses them: read them withparseFindingFateRecordManifest.finding-list'shistorynow holds fate records.- Fixing commits carry
Finding:trailers besideShort-Name. plan-approval-recordmoves to a new shape with a requiredcodekey:nullwithout a code link,{ root, baseline }with one. An@lbdremy/phax-schemasbefore 0.40.0 cannot read new plan approval records, so upgrade the package.- Records written earlier are read as
code: nulland never rewritten. - Declaring a code link makes plans approved before it
missing-record, so re-approve them. See Process and code in two repositories. - No step is needed in a repository that declares no code link.
What's new
Code repository: a plan's process in one repository, its code in another
A plan's ground is the code it reads, in whichever repository that code lives.
-
A process repository names the directory where its code repository is checked out, and phax judges its plans against that code.
phax.json code (process repository, project layer only)Now:
Before
-
Running phax validate in a process repository says when its code root is missing, is not a git repository or is not ignored.
phax validate (link refusals)Now:
-
Every plan approval record states which code commit its plan was approved against, or null when the project has no code link.
docs/plans/approvals/<plan>.jsonNow:
Before
-
An approved plan in a linked project shows the short code commit it was approved against beside its baseline.
plan frontmatter approved stampNow:
Before
-
Running phax plans status in a process repository reports a plan stale when the code files it reads have changed since its approval.
phax plans statusNow:
Before
-
A run from the code repository refuses a plan that is unapproved or stale against the code, and at review it tells the operator to complete the plan in the process repository.
phax run --plan ../docs/plans/<plan>.md (from the code repository)Now:
Before
-
A pull request opened from a linked run names neither the plan nor the spec it came from.
pull request body footer (code repository)Now:
Before
-
Running phax plans lint in a process repository checks the plan's files against the checked-out code instead of the process repository.
phax plans lint (process repository)Now:
Before
Finding ids and fates
No finding is dropped: phax names it, the operator or a machine settles it through a phax command, and Git remembers how.
-
Each code-review finding now carries a stable
idsuch asF3that commits, records and people can point at.code-review.jsonNow:
Before
-
Each compliance finding now carries a stable
idsuch asC2, numbered across phases in document order.compliance-review.jsonNow:
Before
-
Running
phax finding list <run>shows every finding of a run with its id and fate, so you can pick the ids to fix, dismiss or defer.phax finding listNow:
-
The knowledge index and scripts read a run's findings and their full fate history as one versioned JSON document.
phax finding list --jsonNow:
-
After changing files for a finding,
phax finding fix <run> F2 -- <paths>commits exactly those paths with the finding trailers and records the finding as fixed, with no trailer typed by hand.phax finding fixNow:
Before
-
An operator can mark one or more findings dismissed with a required reason, stamped with their name and the time.
phax finding dismissNow:
-
An operator can hand a finding to later work by naming the brief, spec or NEXT_STEPS.md that takes it over.
phax finding deferNow:
-
Each fate of a finding is a record on the records branch, so the history of every finding can be rebuilt from Git alone.
phax/records/v1 <runId>/finding/<id>/<NN>/record.jsonNow:
Fixes
- fix(findings): finding fix posts nothing on a merged or closed pull request (29f745f)
Other
- feat(github): ask a pull request's state through the GitHub port (a6a85a2)