Mode Registry
Path:
loom-sprint-scaffold/loom/src/dispatcher/core/mode-registry.tsRelative: loom/src/dispatcher/core/mode-registry.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 87Bytes: 3,002Imports: 4Exports: 1
Content Preview
- /**
- * H2.1 — D1-backed mode registry.
- *
- * selectMode(variety_class) picks the mode with highest success rate for that
- * class from the injected RegistryStore. No history → returns highest-capability
- * mode with variety_deficit: true; caller widens budgets by deficit_multiplier
- * (default 1.5×) and logs a structured deficit record.
- */
- import type { VarietyClass, ModeRegistryRow } from "../../types";
- import type { ModeSelection, RegistryStore } from "./types";
- import { createLogger } from