PocketBrain Release Orchestrator
Execute the canonical remote release sequence and stop promotion when rollback triggers fire.
Workflow
- •Determine deployment intent and flags.
- •Decide whether the run needs
--with-worker,--skip-pull, or--allow-stash. - •Default to safe path: precheck, sync, deploy with
--skip-pull, then verify.
- •Run release gate prerequisites.
- •Read
references/release-gate.md. - •Run
npm run vps:precheck:remote. - •Run
npm run vps:sync:remote.
- •Run deploy command.
- •Run
npm run vps:deploy:remote -- --skip-pullunless explicitly directed otherwise. - •Append
--with-workeronly when asked. - •Use
--allow-stashonly for intentional drift recovery.
- •Verify deploy output and health.
- •Run
npm run vps:verify:remote. - •Collect remote SHA, remote repo cleanliness,
:8080/ready, and:8788/readyresults from command output. - •Run optional smoke contract check when base URL is provided:
npm run vps:smoke:public -- --base-url <url> [--bearer <token>].
- •Evaluate rollback policy.
- •Read
references/rollback-triggers.md. - •Stop promotion and recommend rollback path if any trigger fires.
- •Report healthy release only when triggers are clear and readiness checks pass.
Reporting
Return:
- •Command outcomes in execution order.
- •Verification summary (SHA, readiness status, migration signal).
- •Rollback-trigger evaluation.
- •Clear next action.
Safety
- •Never print secret values or token contents.
- •Never skip precheck and verify steps for production releases.
- •Never run destructive git commands to force remote state.