/** * CLI handler for "jensen benchmark long-horizon" commands. * * Extends the benchmark CLI with mission contract and requirement ledger * management commands. All commands route before model selection and * provider loading. * * Trust Model (LH-1 hardened): * - The generic CLI uses the UNTRUSTED context. * - Payload role labels (--actor-type, --collector-type, reportedAuthority) * are descriptive only — they NEVER grant privilege. * - The generic CLI REJECTS privileged operations: * SATISFIED transition → exit 1 TRUSTED_CONTEXT_REQUIRED * Runtime NOT_APPLICABLE → exit 1 TRUSTED_CONTEXT_REQUIRED * Authoritative evidence insertion → exit 1 UNTRUSTED_AUTHORITY_CLAIM * - Trusted satisfaction is unavailable through the generic CLI. */ import type { LedgerEvidenceRequest } from "./types.js"; /** * Parse a string as a canonical non-negative integer suitable for use as * an expectedRevision value. Rejects: * - decimals: "1.0", "12.5" * - scientific notation: "1e2" * - leading sign: "+1", "-1" * - leading zeros: "01" (except "0" itself) * - NaN, Infinity, -Infinity * - empty or whitespace-only strings * - values exceeding Number.MAX_SAFE_INTEGER * * Accepts only: "0", "1", "12", "9007199254740991" */ export declare function parseStrictNonNegativeInteger(raw: string): number | undefined; type GenericCliEvidence = LedgerEvidenceRequest["evidence"]; export type GenericCliEvidencePayloadValidation = { readonly ok: true; readonly kind: "ordinary-agent-claim"; readonly evidence: GenericCliEvidence; } | { readonly ok: false; readonly kind: "attempted-authority-claim"; readonly code: "UNTRUSTED_AUTHORITY_CLAIM"; readonly field: string; } | { readonly ok: false; readonly kind: "malformed-evidence"; readonly code: "MALFORMED_EVIDENCE"; readonly field: string; } | { readonly ok: false; readonly kind: "trusted-context-unavailable"; readonly code: "TRUSTED_CONTEXT_REQUIRED"; readonly field: string; }; /** Validate and normalize evidence accepted by the generic, untrusted CLI. */ export declare function validateGenericCliEvidencePayload(payload: unknown): GenericCliEvidencePayloadValidation; export interface LongHorizonCommandOptions { help?: boolean; format?: "text" | "json"; output?: string; command?: string; contract?: string; ledger?: string; requirementId?: string; toStatus?: string; expectedRevision?: number; actorType?: string; reason?: string; evidenceIds?: string[]; blockerReference?: string; evidenceInput?: string; transitionId?: string; execution?: string; executionId?: string; kind?: string; scheduler?: string; eventId?: string; cycleId?: string; dispatchedContinuationId?: string; resultDigest?: string; expectedSchedulerRevision?: number; expectedExecutionRevision?: number; } export declare function handleLongHorizonCommand(args: string[]): Promise; export {}; //# sourceMappingURL=cli.d.ts.map