A job can reach `shipped` via autoship PATCH, the `ship` operator action, or a terminal lease release, but the run-level `result` was left at whatever the factory last reported (e.g. `review`), so the dashboard showed a shipped job with a non-terminal run result. - Add markLatestRunShipped(): on any transition to `shipped`, set the latest run result to `shipped` (+ endedAt if unset). Idempotent, best-effort. - Wire it into patchJobFenced (ungated; budget accrual stays flag-gated) and the `ship` operator action. - Document the testing->shipped paths (factory autoship vs `ship` operator action) and the run-mirroring in docs/GIGAFACTORY/FLEET_CONTROL_PLANE.md. Tests: +2 (patchJobFenced->shipped and operator ship both set run.result=shipped). Fleet suite 180 pass; tsc clean. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| package.json | ||
| POSTAL_SMTP_SETUP.md | ||
| tsconfig.json | ||
| vitest.config.ts | ||