Ladders

pi-cyberneticsourcetypescript
Path: pi-cybernetic/src/harness/ladders.tsRelative: src/harness/ladders.tsSubproject: pi-cyberneticCategory: cybernetic-core
Lines: 61Bytes: 1,995Imports: 3Exports: 2

Content Preview

  1. /**
  2. * Model escalation ladders — P2 variety expansion.
  3. * A ladder is an ordered list of rungs with strictly increasing internal
  4. * variety V(I). Loop 2 climbs one rung when variety is insufficient; Loop 1
  5. * climbs when a structural re-anchoring repeats (plan revision alone failed).
  6. */
  7. import { getModel } from "@earendil-works/pi-ai";
  8. import type { Model } from "@earendil-works/pi-ai";
  9. import type { ModelCapability, TaskCategory } from "../types/index.ts";
  10. export interface LadderRung {
  11. mo