Skip to content

Assistant: factory-wide coherence audit tool #11

Description

@ApocDev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: nextGood next implementation step

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions