← back

type reference

ScopeFile

      type ScopeFile = {
  spec: SpecDefinition;
  plan: PlanDefinition;
};
    

SpecDefinition

      type SpecDefinition = {
  title: string;
  tutorial: { goal: string; outcome: string };
  howTo: { task: string; done: string };
  explanation: { summary: string };
};
    

PlanDefinition

      type PlanDefinition = {
  goals: readonly PlanGoal[];
  loop?: {
    maxIterations?: number;
    stopOnFailure?: boolean;
  };
};
    

PlanGoal

      type PlanGoal = {
  id: string;
  title: string;
  gate: GateDefinition;
};
    

GateStatus

      type VerificationResult = {
  status: "pass" | "fail" | "skip" | "inconclusive";
  proofStrength: "strong" | "moderate" | "weak" | "none";
};
    

source: src/index.ts