Prescribe: Parts Bin Lookup
For each broken role in a diagnosis, find candidate algorithms from the Parts Bin.
Theory
- The lookup table: The Parts Bin — row = data type, column = pipeline stage. Each cell holds candidate algorithms. Without this, Prescribe has nothing to consult.
- SOAP note (P): SOAP Notes: Soar — Prescribe adds the Plan section, completing the clinical record.
Input
A diagnosis document (output of Diagnose) identifying broken or missing roles.
Process
- Read the diagnosis. Extract the list of broken roles and their assessments.
- 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.
- 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.
- 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.
- Write P (Plan).
soap/P.md— one section per broken role. Each section: role, failure mode (fromsoap/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
- Precondition: diagnosis document with substantiated role assessments
- Postcondition: every prescribed algorithm exists in the Parts Bin or has a cited source
- Does not: implement the fix (that’s Forge) or evaluate whether the fix is worth doing (that’s the human checkpoint)
- Checkpoint contract: after Prescribe, the human is cross-examined — “does the prescribed algorithm address the root cause identified at the last checkpoint, or just the symptom?” and “is this implementable within the system’s constraints, or does it require architectural changes the maintainers won’t accept?”
- Idempotency: prescribing from the same diagnosis produces the same candidates