Phaseline public checker

With Node.js 22 or later, extract the archive and run from its directory:

  node phase.mjs init inquiry
  node phase.mjs analyze inquiry/proposed.phase inquiry/observer.phase inquiry/histories.json
  node inquiry-check.mjs
  node phase.mjs compare draft-issued.phase draft-proposed.phase
  node phase.mjs decide course-proposed.phase course-records.json
  node phase.mjs compare plans-issued.phase plans-proposed.phase
  node phase.mjs decide plans-proposed.phase plans-records.json
  node phase.mjs check plans-issued.phase plans-proposed.phase
  node phase.mjs init records retention
  node phase.mjs retain records/issued.phase records/regime.json records/proposed.phase
  node phase.mjs challenge records/proposed.phase records/regime.json records/trace.json
  node retention-check.mjs
  node contract-check.mjs

Compare lists changed outcomes and an input that exposes each one.
Decide reports which actions can proceed with the supplied records and who
can supply missing evidence. Edit the .phase files to try your own rules.

These are the public modules used by the browser lesson. The commands read
local files. They do not need a VERIFY account, network access or npm install.
A successful comparison can return "review" or "preserved"; inspect the JSON
status. In CI, use "check" to exit 0 for preservation and 2 for review.
Protect the issued file in your release system. Invalid input produces an error and exits with a nonzero status.

Syntax and supported bounds: https://phaseline.dev/shared
Experiments, source packages and scope: https://phaseline.dev/evidence

Cross-regime handoff, trust inputs and runnable terminal example: https://phaseline.dev/install.html#carry
Run node carry-check.mjs to replay signed and missing evidence, budget and stale-codebook controls.
