Give the planning agent a tool that runs a factory-wide coherence check (cross-block balance), so it can audit the whole factory instead of reasoning one block at a time.
Should surface:
- under-supplied goods: a block produces less than the total demand of its consumers (e.g. steel @ 2/s feeding consumers needing 9/s total)
- dangling byproducts across blocks (hard mode: nothing consumes them — must be routed or stored)
- imports with no producing block
Output should feed the reviseBlock cards: "these N blocks are under-supplied → here's the resize plan".
Reuse: the existing coherence page logic (src/routes/coherence.tsx) + the solver. Expose as a read-only agent tool in agent-tools.ts. Top-priority partner to the reviseBlock rate-resize work.
Give the planning agent a tool that runs a factory-wide coherence check (cross-block balance), so it can audit the whole factory instead of reasoning one block at a time.
Should surface:
Output should feed the reviseBlock cards: "these N blocks are under-supplied → here's the resize plan".
Reuse: the existing coherence page logic (src/routes/coherence.tsx) + the solver. Expose as a read-only agent tool in agent-tools.ts. Top-priority partner to the reviseBlock rate-resize work.