SpecCriticCapability constructor
- RubricSource? rubrics,
- String verdictTextReader(
- File verdict
- String decisionRunner = kDefaultOverlayRunner,
- String? decisionGridHome,
Creates the spec critic, optionally over a rubric source (D-9 wires the Packaged-AI-Asset loader; absent ⇒ an inline placeholder so the circuit is testable with no real assets).
decisionRunner is the COMPOSING STATION's verb, threaded into every
decision-lookup line this prompt renders (buildCodeRegistry binds it from
overlayArgs['runner']). Absent ⇒ kDefaultOverlayRunner.
decisionGridHome is that station's GRID HOME, from the same binding —
the cwd the verb resolves from, rendered into the lookup. Absent ⇒ the
prompt names NO lookup command and says the index is unavailable, which
is what this critic was observing in the field: told to run a verb that
exits Could not find package in its worktree, the lane fell back to a
local register grep and never saw a sibling register at all.
Implementation
const SpecCriticCapability({
super.rubrics,
super.verdictTextReader,
String decisionRunner = kDefaultOverlayRunner,
String? decisionGridHome,
}) : _decisionRunner = decisionRunner,
_decisionGridHome = decisionGridHome;