declare const XENO_ARTIFACT_SCHEMA_VERSION: 1; type XenoJsonPrimitive = string | number | boolean | null; type XenoJsonValue = XenoJsonPrimitive | XenoJsonObject | XenoJsonValue[]; interface XenoJsonObject { [key: string]: XenoJsonValue; } declare const XENO_BUILTIN_ARTIFACT_KINDS: readonly [ "plan", "requirements", "design", "task-graph", "patch", "diff", "file", "document", "diagram", "screenshot", "recording", "browser-snapshot", "test-report", "review-report", "security-report", "performance-report", "release-report", "sbom", "provenance", "attestation", "page" ]; type XenoArtifactKind = (typeof XENO_BUILTIN_ARTIFACT_KINDS)[number] | `custom:${string}`; declare const XENO_ARTIFACT_STATES: readonly [ "draft", "pending_review", "approved", "rejected", "superseded", "archived" ]; type XenoArtifactState = (typeof XENO_ARTIFACT_STATES)[number]; declare const XENO_ARTIFACT_SENSITIVITIES: readonly [ "public", "internal", "confidential", "restricted" ]; type XenoArtifactSensitivity = (typeof XENO_ARTIFACT_SENSITIVITIES)[number]; interface XenoContentHash { algorithm: "sha256" | `custom:${string}`; value: string; } type XenoArtifactStorageReference = { type: "inline"; text?: string; base64?: string; } | { type: "file"; path: string; } | { type: "blob"; uri: string; } | { type: "git"; commit: string; path: string; repositoryId?: string; } | { type: "url"; url: string; expiresAt?: string; } | { type: "external"; provider: string; locator: string; }; interface XenoArtifactContent { hash: XenoContentHash; sizeBytes: number; storage: XenoArtifactStorageReference; encoding?: "utf8" | "base64" | "binary" | `custom:${string}`; redactedPreview?: string; } interface XenoArtifactIdentity { runId?: string; sessionId?: string; turnId?: string; taskId?: string; agentId?: string; workspaceId?: string; repositoryId?: string; } declare const XENO_ARTIFACT_ACTOR_KINDS: readonly [ "agent", "tool", "user", "system", "integration" ]; type XenoArtifactActorKind = (typeof XENO_ARTIFACT_ACTOR_KINDS)[number]; interface XenoArtifactActor { kind: XenoArtifactActorKind; id: string; displayName?: string; profileFingerprint?: string; } interface XenoArtifactProvenance { producer: XenoArtifactActor; eventId?: string; toolCallId?: string; operationId?: string; executionContractFingerprint?: string; capabilityLeaseIds?: string[]; sourceArtifactIds?: string[]; attributes?: XenoJsonObject; } declare const XENO_EVIDENCE_NODE_TYPES: readonly [ "requirement", "design-decision", "risk", "task", "agent", "run", "tool-call", "edit", "commit", "test-case", "test-run", "finding", "approval", "artifact", "release", "claim" ]; type XenoEvidenceNodeType = (typeof XENO_EVIDENCE_NODE_TYPES)[number] | `custom:${string}`; declare const XENO_EVIDENCE_EDGE_TYPES: readonly [ "decomposes", "depends_on", "implements", "changes", "tests", "verifies", "finds", "fixes", "reviews", "approves", "rejects", "supersedes", "derived_from", "produced_by", "supports_claim", "contradicts_claim", "released_as" ]; type XenoEvidenceEdgeType = (typeof XENO_EVIDENCE_EDGE_TYPES)[number] | `custom:${string}`; interface XenoEvidenceReference { type: XenoEvidenceNodeType; id: string; revision?: number; } interface XenoArtifactRelationship { relation: XenoEvidenceEdgeType; target: XenoEvidenceReference; description?: string; attributes?: XenoJsonObject; } type XenoArtifactAnchor = { kind: "file"; path: string; repositoryId?: string; commit?: string; } | { kind: "source-line"; path: string; startLine: number; endLine?: number; repositoryId?: string; commit?: string; } | { kind: "diff-hunk"; path: string; hunkId: string; artifactId?: string; revision?: number; } | { kind: "symbol"; path: string; symbol: string; repositoryId?: string; commit?: string; } | { kind: "dom-node"; pageId: string; selector?: string; accessibilityId?: string; snapshotArtifactId?: string; } | { kind: "timeline"; startMs: number; endMs?: number; recordingArtifactId: string; } | { kind: "region"; x: number; y: number; width: number; height: number; mediaArtifactId: string; } | { kind: "artifact"; artifactId: string; revision?: number; } | { kind: `custom:${string}`; data: XenoJsonObject; }; interface XenoArtifactRetention { policyId?: string; retainUntil?: string; legalHold?: boolean; } interface XenoArtifactEnvelope { schemaVersion: typeof XENO_ARTIFACT_SCHEMA_VERSION; artifactId: string; revision: number; kind: XenoArtifactKind; title: string; description?: string; state: XenoArtifactState; createdAt: string; updatedAt?: string; mediaType: string; sensitivity: XenoArtifactSensitivity; identity?: XenoArtifactIdentity; content: XenoArtifactContent; provenance: XenoArtifactProvenance; relationships?: XenoArtifactRelationship[]; anchors?: XenoArtifactAnchor[]; predecessorRevision?: number; accessPolicyId?: string; retention?: XenoArtifactRetention; extensions?: Record; } declare const XENO_ORACLE_REPORT_SCHEMA_VERSION: "xeno.oracle-report.v1"; type XenoOracleRole = "primary" | "critic" | "adjudicator"; type XenoOracleVerdict = "supported" | "contested" | "unsupported" | "insufficient-evidence"; interface XenoOracleModelIdentity { participantId: string; role: XenoOracleRole; connectionId?: string; providerId: string; model: string; } interface XenoOracleCitation { citationId: string; uri: string; title?: string; publisher?: string; retrievedAt?: string; revision?: string; license?: string; contentHash?: XenoContentHash; } interface XenoOracleClaim { claimId: string; statement: string; verdict: XenoOracleVerdict; confidence: number; citationIds: string[]; } interface XenoOracleOpinionDraft { answer: string; verdict: XenoOracleVerdict; confidence: number; claims: XenoOracleClaim[]; citations: XenoOracleCitation[]; publicRationale: string; } interface XenoOracleOpinion extends XenoOracleOpinionDraft { opinionId: string; participant: XenoOracleModelIdentity; completedAt: string; usage: { inputTokens: number; outputTokens: number; }; } interface XenoOracleDisagreement { disagreementId: string; summary: string; participantIds: string[]; severity: "low" | "medium" | "high"; resolution: "resolved" | "unresolved"; } interface XenoOracleAdjudicationDraft { conclusion: string; verdict: XenoOracleVerdict; confidence: number; consensusPoints: string[]; disagreements: XenoOracleDisagreement[]; citationIds: string[]; publicRationale: string; } interface XenoOracleAdjudication extends XenoOracleAdjudicationDraft { participant: XenoOracleModelIdentity; completedAt: string; usage: { inputTokens: number; outputTokens: number; }; } interface XenoOracleReport { schemaVersion: typeof XENO_ORACLE_REPORT_SCHEMA_VERSION; reportId: string; runId: string; question: string; questionHash: XenoContentHash; startedAt: string; completedAt: string; opinions: XenoOracleOpinion[]; adjudication: XenoOracleAdjudication; summary: { participantCount: number; distinctModelCount: number; totalInputTokens: number; totalOutputTokens: number; unresolvedDisagreements: number; citationCount: number; }; } interface XenoOracleExecutionRequest { runId: string; question: string; participant: XenoOracleModelIdentity; primaryOpinion?: XenoOracleOpinion; } interface XenoOracleExecutionResult { opinion: XenoOracleOpinionDraft; usage?: { inputTokens?: number; outputTokens?: number; }; } interface XenoOracleAdjudicationRequest { runId: string; question: string; participant: XenoOracleModelIdentity; opinions: XenoOracleOpinion[]; } interface XenoOracleAdjudicationResult { adjudication: XenoOracleAdjudicationDraft; usage?: { inputTokens?: number; outputTokens?: number; }; } interface XenoOracleCoordinatorOptions { execute: (request: XenoOracleExecutionRequest) => Promise; adjudicate: (request: XenoOracleAdjudicationRequest) => Promise; now?: () => string; idFactory?: (prefix: "oracle" | "opinion") => string; } interface XenoOracleRunOptions { runId?: string; question: string; primary: XenoOracleModelIdentity; critics: XenoOracleModelIdentity[]; adjudicator: XenoOracleModelIdentity; } interface XenoOracleArtifactContext { producer: XenoArtifactActor; identity?: XenoArtifactIdentity; sensitivity?: XenoArtifactSensitivity; accessPolicyId?: string; artifactId?: string; } declare class XenoOracleValidationError extends Error { readonly issues: string[]; readonly code = "XENO_ORACLE_INVALID"; constructor(issues: string[]); } declare class XenoOracleCoordinator { private readonly execute; private readonly adjudicate; private readonly now; private readonly idFactory; constructor(options: XenoOracleCoordinatorOptions); run(options: XenoOracleRunOptions): Promise; } declare function assertValidXenoOracleReport(report: XenoOracleReport): void; declare function xenoOracleReportToArtifact(report: XenoOracleReport, context: XenoOracleArtifactContext): XenoArtifactEnvelope; declare function xenoArtifactToOracleReport(artifact: XenoArtifactEnvelope): XenoOracleReport; export { XENO_ORACLE_REPORT_SCHEMA_VERSION, type XenoOracleAdjudication, type XenoOracleAdjudicationDraft, type XenoOracleAdjudicationRequest, type XenoOracleAdjudicationResult, type XenoOracleArtifactContext, type XenoOracleCitation, type XenoOracleClaim, XenoOracleCoordinator, type XenoOracleCoordinatorOptions, type XenoOracleDisagreement, type XenoOracleExecutionRequest, type XenoOracleExecutionResult, type XenoOracleModelIdentity, type XenoOracleOpinion, type XenoOracleOpinionDraft, type XenoOracleReport, type XenoOracleRole, type XenoOracleRunOptions, XenoOracleValidationError, type XenoOracleVerdict, assertValidXenoOracleReport, xenoArtifactToOracleReport, xenoOracleReportToArtifact };