Safeguard Work-Order Agent Ecosystem
Reproduce
REPRODUCE — Work-Order Agent Ecosystem
Agent logic is deterministic (seed 42). The verified run uses **external live services**: a separate PostgreSQL server and a separate Go gRPC service, both via Docker Compose.
Setup
cd delivery-package/work-order-agents
npm install
docker compose up -d --build # PostgreSQL 16 (host :5433) + Go gRPC (:50051)
Reproduce all verification numbers (external live stack)
# PowerShell
$env:DATABASE_URL="postgres://forge:forge@127.0.0.1:5433/workorders"
$env:DISPATCH_GRPC_URL="127.0.0.1:50051"
node verify.mjs
# bash
DATABASE_URL=postgres://forge:forge@127.0.0.1:5433/workorders \
DISPATCH_GRPC_URL=127.0.0.1:50051 node verify.mjs
Expected: Verification PASS: 23/23 checks passed (100%). mode=external-postgres+external-grpc. The suite restarts the wo_postgres and wo_dispatch containers to prove reconnect + durability, so Docker must be running and the container names must match (PG_CONTAINER, DISPATCH_CONTAINER; defaults wo_postgres/wo_dispatch).
Self-contained fallback (no Docker)
node verify.mjs # in-process PGlite + in-process Node gRPC (21 checks)
Headline metrics (verification-report.json#/syntheticBenchmark)
| Metric | Expected |
|---|---|
classificationAccuracy | 0.9887 |
priorityAccuracy | 0.9642 |
regionRoutingAccuracy | 1 |
exceptionRecall | 1 |
exceptionPrecision | 0.9736 |
falseAutoActionRate | 0 |
autoActionRate | 0.6217 |
These are synthetic-corpus metrics. They are not an official benchmark and have not been independently reproduced or externally validated.
Run the live service against the external stack
DATABASE_URL=postgres://forge:forge@127.0.0.1:5433/workorders \
DISPATCH_GRPC_URL=127.0.0.1:50051 node server.mjs
curl -s localhost:8080/healthz
curl -s -X POST localhost:8080/work-orders -H "content-type: application/json" \
-d "{\"id\":\"WO-1\",\"rawText\":\"rooftop chiller is down, emergency, location N2\",\"location\":\"N2\"}"
curl -s localhost:8080/work-orders/WO-1
Re-run the Proof Layer + integrity check (repo root, external services up)
DATABASE_URL=postgres://forge:forge@127.0.0.1:5433/workorders \
DISPATCH_GRPC_URL=127.0.0.1:50051 \
node tools/forge-proof.mjs --outcome delivery-package/work-order-agents \
--verify "node verify.mjs" --report verification-report.json
node tools/forge-proof-verify.mjs --outcome delivery-package/work-order-agents
Tear down
docker compose down -v