Prescribe: Parts Bin Lookup

For each broken role in a diagnosis, find candidate algorithms from the Parts Bin.

Theory

Input

A diagnosis document (output of Diagnose) identifying broken or missing roles.

Process

  1. Read the diagnosis. Extract the list of broken roles and their assessments.
  2. Consult the Parts Bin. Read the parts bin grid. For each broken role, find the row (data type) and column (stage) that matches. Identify candidate algorithms in that cell.
  3. Evaluate candidates. For each candidate: does it address the specific failure mode described in the diagnosis? Is it implementable within the system’s constraints? Flag candidates that require architectural changes vs. those that can be added incrementally.
  4. Sketch the implementation. For each viable candidate, write a 3–5 line description of how it would integrate with the existing system. Reference specific modules or files from the diagnosis.
  5. Write P (Plan). soap/P.md — one section per broken role. Each section: role, failure mode (from soap/A.md), candidate algorithm, implementation sketch, expected outcome.

Output

soap/P.md: one section per broken role, each with candidate algorithm and implementation sketch.

Contract