/** * PD Runtime v2 — Foundation Contracts * * This module is the single canonical source for all runtime-v2 type definitions. * Future milestones (M2-M9) import from here instead of inventing local types. * * Re-export hierarchy: * schema-version → versioning utilities * error-categories → PDErrorCategory, PDRuntimeError * agent-spec → AgentSpec, well-known agent IDs * runtime-protocol → PDRuntimeAdapter, RuntimeKind, run lifecycle types * task-status → PDTaskStatus, TaskRecord, DiagnosticianTaskRecord * context-payload → ContextPayload, history/trajectory types * diagnostician-output → DiagnosticianOutputV1 */ export { RUNTIME_V2_SCHEMA_VERSION, schemaRef } from './schema-version.js'; export { PDErrorCategorySchema } from './error-categories.js'; export { GovernanceChannelSchema, LineageConfidenceSchema, SourceRefSchema, RevisionIdentitySchema, PrincipleFactSchema, TaskFactSchema, RunnerVerdictFactSchema, ApprovalFactSchema, ActivationFactSchema, DerivedRelationFactSchema, TimelineEventSchema, DataQualityIssueSchema, LineageContextSchema, GovernanceFactsSchema, PrincipleStateSchema, ProcessViewSchema, AutomationViewSchema, AttentionItemSchema, AttentionViewSchema, ActivationSummarySchema, OwnerGovernanceSummarySchema, DataQualitySchema, OwnerGovernanceViewSchema } from './governance-projection-contract.js'; export type { GovernanceChannel, LineageConfidence, SourceRef, RevisionIdentity, PrincipleFact, TaskFact, RunnerVerdictFact, ApprovalFact, ActivationFact, DerivedRelationFact, TimelineEvent, DataQualityIssue, LineageContext, GovernanceFacts, PrincipleState, ProcessView, AutomationView, AttentionItem, AttentionView, ActivationSummary, OwnerGovernanceSummary, DataQuality, OwnerGovernanceView } from './governance-projection-contract.js'; export { GOVERNANCE_HEADLINE_CODES, deriveOwnerGovernanceView } from './governance-projection.js'; export { OwnerDecisionViewCoreSchema, OwnerSourceRefSchema, ReasonSchema, ClaimClassSchema, ProducerRefSchema, SourceRelationSchema, OwnerSourceKindSchema, NarrativeItemSchema, NarrativeSchema, StringFieldSchema, NumberFieldSchema, NarrativeListFieldSchema, NarrativeFieldSchema, PrincipleTextSchema, RiskSummarySchema, EnforcementSummarySchema, EvidenceSummarySchema, RollbackSummarySchema, CapabilitySchema, DecisionMaterialGateSchema, DecisionSubjectSchema, ActionSchema, BlockerSchema, NextActionSchema, DecisionStateSchema, InboxPlacementSchema, SourceReadSchema, } from './owner-decision/owner-decision-view-contract.js'; export type { OwnerDecisionViewCore, OwnerSourceRef, Reason, ClaimClass, ProducerRef, SourceRelation, OwnerSourceKind, NarrativeItem, Narrative, StringField, NumberField, NarrativeListField, NarrativeField, PrincipleText, RiskSummary, EnforcementSummary, EvidenceSummary, RollbackSummary, Capability, DecisionMaterialGate, DecisionSubject, Action, Blocker, NextAction, DecisionState, InboxPlacement, SourceRead, } from './owner-decision/owner-decision-view-contract.js'; export { OwnerDecisionInputsSchema } from './owner-decision/owner-decision-view.js'; export type { OwnerDecisionInputs } from './owner-decision/owner-decision-view.js'; export { deriveOwnerDecisionView } from './owner-decision/owner-decision-view.js'; export { selectLearnedPrincipleV0, selectLearnedPrincipleV1, extractStandaloneBehaviorSentence, isWholeFieldHumanReadable } from './owner-decision/semantic-selector.js'; export type { SemanticSource, SemanticSelectionResult } from './owner-decision/semantic-selector.js'; export { GovernancePrimaryAttentionSchema, GovernanceExperienceReasonCodeSchema, GovernanceExperienceNextActionCodeSchema, WorkspaceEnvironmentSchema, EnvironmentContextInputSchema, SourceAvailabilityInputSchema, UnlinkedRecordGroupSchema, OwnerConfigSnapshotSchema, GovernanceViewInputSchema, FrontierEvidenceSchema, GovernanceExperienceInputsSchema, GovernanceActionKindSchema, GovernanceObservedAuthoritySchema, GovernanceActionReadinessSchema, OwnerGovernanceReadinessSchema, GovernanceActivityCategorySchema, GovernanceActivityItemSchema, GovernanceActivityCategorySummarySchema, GovernanceActivitySnapshotSchema, GovernanceLineageTransparencySchema, GovernanceTrustContextSchema, GovernanceDataQualityIssueGroupSchema, GovernanceDataQualitySchema, GovernanceExperienceSummarySchema, GovernanceExperienceSnapshotSchema, } from './governance-experience-contract.js'; export type { WorkspaceEnvironment, EnvironmentContextInput, SourceAvailabilityInput, UnlinkedRecordGroup, OwnerConfigSnapshot, GovernanceViewInput, FrontierEvidence, GovernanceExperienceInputs, GovernanceActionKind, GovernanceObservedAuthority, GovernanceActionReadiness, OwnerGovernanceReadiness, GovernancePrimaryAttention, GovernanceActivityCategory, GovernanceActivityItem, GovernanceActivityCategorySummary, GovernanceActivitySnapshot, GovernanceLineageTransparency, GovernanceTrustContext, GovernanceDataQualityIssueGroup, GovernanceDataQuality, GovernanceExperienceReasonCode, GovernanceExperienceNextActionCode, GovernanceExperienceSummary, GovernanceExperienceSnapshot, } from './governance-experience-contract.js'; export { GOVERNANCE_EXPERIENCE_ITEMS_LIMIT, GOVERNANCE_EXPERIENCE_ISSUE_GROUPS_LIMIT, deriveGovernanceExperienceSnapshot } from './governance-experience.js'; export { RECEIPT_RETENTION_POLICY_DAYS } from './receipt-coverage.js'; export type { ReceiptSourceStatus, ReceiptValidationStatus, ReceiptEvidenceCoverage } from './receipt-coverage.js'; export { OWNER_IDENTITY_SCHEMA_VERSION, OWNER_IDENTITY_FILE_NAME, resolveOwnerIdentity, readOwnerIdentityFile, writeOwnerIdentityFile, deleteOwnerIdentityFile, ownerIdentityFilePath, defaultOwnerIdentityHomeDir, } from './owner-identity.js'; export type { OwnerIdentityRecord, OwnerIdentitySource, OwnerIdentityResolved, OwnerIdentityFileResult, OwnerIdentityDeleteResult } from './owner-identity.js'; export { generateTelemetrySecretHex, isValidTelemetrySecretHex, bucketDateFromTime, isValidBucketDate, deriveWorkspaceScopeId, deriveDailyTelemetryId, isValidDailyTelemetryId, TELEMETRY_SECRET_BYTES, DAILY_TELEMETRY_ID_HEX_LENGTH, WORKSPACE_SCOPE_ID_HEX_LENGTH, } from './product-telemetry/daily-identity.js'; export { ProductTelemetrySnapshotV1Schema, PRODUCT_TELEMETRY_SNAPSHOT_SCHEMA_VERSION, PRODUCT_TELEMETRY_CONSENT_VERSION, PRODUCT_TELEMETRY_HOST_KINDS, PRODUCT_TELEMETRY_TOP_LEVEL_FIELDS, PROHIBITED_TELEMETRY_FIELD_TOKENS, PRODUCT_TELEMETRY_PD_VERSION_MAX_LENGTH, assertTelemetrySchemaPrivacy, validateProductTelemetrySnapshot, buildProductTelemetrySnapshot, } from './product-telemetry/snapshot-contract.js'; export type { TelemetryFact } from './product-telemetry/snapshot-contract.js'; export type { ProductTelemetryHostKind, ProductTelemetrySnapshotV1, ProductTelemetryMilestoneInput, ProductTelemetryReliabilityInput, BuildSnapshotInput, SnapshotValidationResult, } from './product-telemetry/snapshot-contract.js'; export { AgentCapabilityRequirementsSchema, AgentTimeoutPolicySchema, AgentRetryPolicySchema, AgentSpecSchema } from './agent-spec.js'; export { SchemaVersionRefSchema, RuntimeV2SchemaVersionSchema } from './schema-version.js'; export { RuntimeKindSchema, RuntimeCapabilitiesSchema, RuntimeHealthSchema, RunHandleSchema, RunExecutionStatusSchema, RunStatusSchema, ContextItemSchema, AgentSpecRefSchema, WorkflowRefSchema, TaskRefSchema, StartRunInputSchema, StructuredRunOutputSchema, RuntimeArtifactRefSchema } from './runtime-protocol.js'; export { PDTaskStatusSchema, TaskRecordSchema, DiagnosticianTaskRecordSchema, PD_TASK_STATUSES, isPDTaskStatus } from './task-status.js'; export { HistoryQueryEntrySchema, TrajectoryLocateQuerySchema, TrajectoryCandidateSchema, TrajectoryLocateResultSchema, HistoryQueryResultSchema, DiagnosisTargetSchema, ContextPayloadSchema, DiagnosticianContextPayloadSchema, ToolCallEntrySchema, PainContextSchema, FullTracePayloadSchema, FullTracePayloadV2Schema, TraceSourceRefSchema, TraceTimelineEntrySchema, TraceEventKindSchema, SourceRefKindSchema, validateFullTracePayload, sanitizeFullTracePayload, buildFullTraceTimeline, buildSourceRefs, checkFullTracePayloadSchema, TRACE_EVENT_KINDS, SOURCE_REF_KINDS } from './context-payload.js'; export { DiagnosticianViolatedPrincipleSchema, DiagnosticianEvidenceSchema, RecommendationKindSchema, DiagnosticianRecommendationSchema, DiagnosticianOutputV1Schema, DiagnosticianInvocationInputSchema } from './diagnostician-output.js'; export { PRINCIPLE_STATUSES, PrincipleStatusSchema, PrinciplePrioritySchema, PrincipleScopeSchema, PrincipleEvaluabilitySchema, RuleStatusSchema, RuleTypeSchema, ImplementationLifecycleStateSchema, ImplementationTypeSchema, SampleClassificationSchema, PrincipleSchema, RuleSchema, ImplementationSchema, PrincipleDependencySchema, PrincipleValueMetricsSchema, PrincipleEventTypeSchema, PrincipleLifecycleEventSchema, PrincipleTreeStoreSchema, EvidenceChainStateSchema, EvidenceChainRecordSchema, EvidenceChainResponseSchema } from './types/index.js'; export { PersistenceActionSchema, HygieneStatsSchema } from './types/hygiene-types.js'; export { EventTypeSchema, EventCategorySchema, EventLogEntrySchema, ToolCallEventDataSchema, PainSignalEventDataSchema, RulePromotionEventDataSchema, GovernanceActionEventDataSchema, HookExecutionEventDataSchema, GateBlockEventDataSchema, GateBypassEventDataSchema, EvolutionTaskEventDataSchema, EmpathyRollbackEventDataSchema, HeartbeatDiagnosisEventDataSchema, DiagnosisTaskEventDataSchema, DiagnosticianReportEventDataSchema, PrincipleCandidateEventDataSchema, RuleEnforcedEventDataSchema, RuleHostEvaluatedEventDataSchema, RuleHostBlockedEventDataSchema, RuleHostRequireApprovalEventDataSchema, RuleHostAutoCorrectProposedEventDataSchema, RuleHostAutoCorrectAppliedEventDataSchema, RuntimeV2PromptActivationsInjectedEventDataSchema, RuleHostUnhealthyEventDataSchema, RuleHostSkippedEventDataSchema, TrajectoryObservabilityFailureEventDataSchema, ToolCallStatsSchema, ErrorStatsSchema, EmpathyEventStatsSchema, GfiStatsSchema, EventEvolutionStatsSchema, HookStatsSchema, DailyStatsSchema } from './types/event-types.js'; export { DiscriminatedEventLogEntrySchema } from './types/event-payload.js'; export { CandidateIntakeInputSchema, CandidateIntakeOutputSchema, LedgerPrincipleEntrySchema } from './candidate-intake.js'; export { PD_ERROR_CATEGORIES, PDRuntimeError, FAILURE_CATEGORY_MAP, mapFailureCategory } from './error-categories.js'; export { INTAKE_ERROR_CODES, CandidateIntakeError } from './candidate-intake.js'; export type { PDErrorCategory } from './error-categories.js'; export { isPDErrorCategory } from './error-categories.js'; export { AGENT_IDS } from './agent-spec.js'; export type { AgentSpec, AgentCapabilityRequirements, AgentTimeoutPolicy, AgentRetryPolicy, WellKnownAgentId, } from './agent-spec.js'; export type { RuntimeKind, RuntimeCapabilities, RuntimeHealth, RunHandle, RunExecutionStatus, RunStatus, ContextItem, AgentSpecRef, WorkflowRef, TaskRef, StartRunInput, StructuredRunOutput, RuntimeArtifactRef, PDRuntimeAdapter, } from './runtime-protocol.js'; export type { PDTaskStatus, TaskRecord, DiagnosticianTaskRecord, } from './task-status.js'; export type { HistoryQueryEntry, TrajectoryLocateQuery, TrajectoryCandidate, TrajectoryLocateResult, HistoryQueryResult, DiagnosisTarget, TraceAvailability, TraceUnavailableDetail, ContextPayload, DiagnosticianContextPayload, ToolCallEntry, PainContext, FullTracePayload, FullTracePayloadV2, TraceSourceRef, TraceTimelineEntry, TraceEventKind, SourceRefKind, FullTraceValidationResult, SanitizeFullTraceResult, RunRecordLike, } from './context-payload.js'; export type { DiagnosticianOutputV1, DiagnosticianViolatedPrinciple, DiagnosticianEvidence, RecommendationKind, DiagnosticianRecommendation, DiagnosticianInvocationInput, } from './diagnostician-output.js'; export type { CandidateIntakeInput, CandidateIntakeOutput, LedgerPrincipleEntry, LedgerAdapter, Recommendation, } from './candidate-intake.js'; export { validateRecommendation } from './candidate-intake.js'; export { CandidateIntakeService } from './candidate-intake-service.js'; export type { CandidateIntakeServiceOptions } from './candidate-intake-service.js'; export { SqliteTaskStore } from './store/task/sqlite-task-store.js'; export type { FailedTaskSummary, FailedTaskDetail, FailedTaskFilter } from './store/task/task-types.js'; export { SqliteRunStore, MalformedRunError } from './store/run/sqlite-run-store.js'; export { MemoryTaskStore } from './store/task/memory-task-store.js'; export { MemoryRunStore } from './store/run/memory-run-store.js'; export { MemoryCommitStore } from './store/commit/memory-commit-store.js'; export { MemoryCandidateStore } from './store/candidate/memory-candidate-store.js'; export { MemoryArtifactStore } from './store/artifact/memory-artifact-store.js'; export { SqliteConnection } from './store/sqlite-connection.js'; export { SqliteReconciliationCursorStore, SUCCEEDED_TRANSITIONS_SCOPE, } from './store/reconciliation-cursor-store.js'; export type { ReconciliationCursor } from './store/reconciliation-cursor-store.js'; export type { SqlitePragmaReport } from './store/sqlite-connection.js'; export { guardWorkspaceLeak, isMockLeakPath } from './store/workspace-leak-guard.js'; export { SqliteTrajectoryLocator } from './store/trajectory/sqlite-trajectory-locator.js'; export { SqliteSourceTraceLocator } from './store/trajectory/sqlite-source-trace-locator.js'; export type { SourceTraceLocator, SourceTraceLocateDecision, SourceTraceLocateQuery, SourceTraceLocateResult, SourceTraceCandidate } from './store/trajectory/source-trace-locator.js'; export { SqliteHistoryQuery } from './store/history/sqlite-history-query.js'; export { SqliteContextAssembler } from './store/context/sqlite-context-assembler.js'; export { SqliteDiagnosticianCommitter } from './store/commit/diagnostician-committer.js'; export { ResilientContextAssembler } from './store/context/resilient-context-assembler.js'; export { ResilientHistoryQuery } from './store/history/resilient-history-query.js'; export type { HistoryQuery, HistoryQueryCursorData, HistoryQueryOptions, } from './store/history/history-query.js'; export type { ContextAssembler } from './store/context/context-assembler.js'; export { DEFAULT_HISTORY_PAGE_SIZE, MAX_HISTORY_PAGE_SIZE, DEFAULT_TIME_WINDOW_MS, } from './store/history/history-query.js'; export type { TaskStore, TaskStoreFilter, TaskStoreUpdatePatch, } from './store/task/task-store.js'; export type { RunStore, RunRecord, } from './store/run/run-store.js'; export type { TrajectoryLocator } from './store/trajectory/trajectory-locator.js'; export type { DiagnosticianCommitter, CommitInput, CommitResult, } from './store/commit/diagnostician-committer.js'; export { DefaultLeaseManager } from './store/lifecycle/lease-manager.js'; export type { LeaseManager, AcquireLeaseOptions } from './store/lifecycle/lease-manager.js'; export { DefaultRetryPolicy } from './store/lifecycle/retry-policy.js'; export type { RetryPolicy, RetryPolicyConfig } from './store/lifecycle/retry-policy.js'; export { DefaultRecoverySweep } from './store/lifecycle/recovery-sweep.js'; export type { RecoverySweep, RecoveryResult } from './store/lifecycle/recovery-sweep.js'; export { StoreEventEmitter, storeEmitter } from './store/event-emitter.js'; export type { TelemetryEvent } from '../telemetry-event.js'; export { RuntimeStateManager } from './store/runtime-state-manager.js'; export type { RuntimeStateManagerOptions } from './store/runtime-state-manager.js'; export type { PainDiagnosisRecord, PainDiagnosisWriteInput } from './store/runtime-state-manager.js'; export { RunnerPhase } from './runner/runner-phase.js'; export type { RunnerResult, RunnerResultStatus } from './runner/runner-result.js'; export { SplitDiagnosticianRunner } from './internalization/split-diagnostician-runner.js'; export { DiagRootCauseRunner } from './internalization/diag-rootcause-runner.js'; export { DiagDistillerRunner } from './internalization/diag-distiller-runner.js'; export { DiagRouterRunner } from './internalization/diag-router-runner.js'; export { DefaultDiagRootCauseValidator } from './diagnostician/diag-rootcause-output.js'; export { IntentTensionSchema, IntentTensionSourceSchema, EvidenceStrengthSchema, IntentRelatedFieldSchema, SuggestedOwnerActionSchema, isIntentTensionSource, isEvidenceStrength, isIntentRelatedField, isSuggestedOwnerAction, } from './diagnostician/diag-rootcause-output.js'; export type { IntentTension, IntentTensionSource, EvidenceStrength, IntentRelatedField, SuggestedOwnerAction, } from './diagnostician/diag-rootcause-output.js'; export { DefaultDiagDistillerValidator } from './diagnostician/diag-distiller-output.js'; export { DisabledDiagnosticianRunner } from './pain-signal-runtime-factory.js'; export { resolveDiagnosticianCapability, DIAGNOSTICIAN_CAPABILITY_DISABLED, type DiagnosticianCapability, } from './diagnostician-capability.js'; export { TestDoubleRuntimeAdapter } from './adapter/index.js'; export type { TestDoubleBehaviorOverrides } from './adapter/index.js'; export { OpenClawCliRuntimeAdapter } from './adapter/index.js'; export type { OpenClawCliRuntimeAdapterOptions } from './adapter/openclaw-cli-runtime-adapter.js'; export { PiAiRuntimeAdapter } from './adapter/index.js'; export type { PiAiRuntimeAdapterConfig } from './adapter/pi-ai-runtime-adapter.js'; export { builtinPiAiProviderIds, isBuiltinPiAiProvider } from './adapter/pi-ai-catalog.js'; export { PrincipleTreeLedgerAdapter } from './adapter/principle-tree-ledger-adapter.js'; export { summarizeConversationWindow } from './diagnostician-prompt-builder.js'; export type { PromptInput, PromptBuildResult } from './diagnostician-prompt-builder.js'; export { buildLanguageDirective, resolveOutputLanguage, isValidOutputLanguage, VALID_OUTPUT_LANGUAGES, DEFAULT_OUTPUT_LANGUAGE, } from './language-directive.js'; export type { OutputLanguage, ResolvedOutputLanguage } from './language-directive.js'; export { run, status, candidateList, candidateShow, artifactShow, probeRuntime } from './cli/index.js'; export type { DiagnoseRunOptions, DiagnoseStatusOptions, DiagnoseStatusResult, CandidateListOptions, CandidateShowOptions, ArtifactShowOptions, ProbeOptions, ProbeResult } from './cli/index.js'; export { /** @deprecated Internal implementation detail — use PainToPrincipleService instead */ PainSignalBridge, } from './pain-signal-bridge.js'; export type { /** @deprecated Use PainToPrincipleServiceOptions instead */ PainSignalBridgeOptions, PainDetectedData, PainEvidenceEntry, /** PRI-640: host attribution union ('openclaw' | 'codex'); NULL persists as unknown. */ GovernanceHostKind, /** @deprecated Use PainToPrincipleOutput instead */ PainSignalBridgeResult, /** @deprecated Internal — use PainToPrincipleOutput.status */ PainSignalBridgeStatus, /** Minimal interface for a diagnostician runner (monolith or split pipeline). */ DiagnosticianRunnerLike, /** PRI-642 §10: aggregate progress (at-least-one semantics). */ PainProgressReport, PainFurthestStage, /** PRI-642 §10: per-candidate disposition — the authority for mixed results. */ PainCandidateOutcome, } from './pain-signal-bridge.js'; export { MAX_EVIDENCE_ENTRIES, MAX_EVIDENCE_NOTE_CHARS } from './pain-signal-bridge.js'; /** Deterministic diagnostician task id (`diagnosis_`) — the pain→task dedup key (Codex Governance Closure §13). */ export { createDiagnosticianTaskId } from './pain-signal-bridge.js'; export { PAIN_INGRESS_PAYLOAD_VERSION, parsePainIngressV1Payload, deriveProvenanceFromIngressFacts, checkIngressTopLevelConsistency, } from './pain-ingress-payload.js'; export type { PainIngressV1Payload, PainIngressOriginV1, PainIngressCorrelationV1, PainIngressEvidenceClassV1, PainIngressV1ParseResult, } from './pain-ingress-payload.js'; export { evaluatePainIngress, parsePainIngressReport, validateOriginCorrelationInvariant, SENTINEL_SESSION_IDS, isSentinelSessionId, } from './pain-ingress.js'; export type { PainIngressReport, PainIngressDecision, LegacyPainSubmission, PainOrigin, PainCorrelation, IngressEvidenceEntry, PainEvidenceBundle, PainEvidenceUnavailableReason, PainIngressParseResult, } from './pain-ingress.js'; /** @deprecated Internal implementation detail — observability is handled by PainToPrincipleService */ export { recordPainSignalObservability, appendEventLogLine } from './pain-signal-observability.js'; export type { PainSignalObservabilityResult, RecordPainSignalObservabilityOptions } from './pain-signal-observability.js'; export { sanitizeString, sanitizeValue, sanitizeToolParams, convergePath, MAX_EVIDENCE_VALUE_CHARS } from './evidence-sanitizer.js'; /** @deprecated Internal factory — use PainToPrincipleService constructor instead */ export { createPainSignalBridge, invalidatePainSignalBridge, disposePainSignalBridgesForWorkspace, resolveRuntimeConfig, validateRuntimeConfig, isRuntimeConfigError, resolveRuntimeConfigFromPdConfig, resolveRuntimeConfigForAgent, AGENT_NAME_FOR_TASK_KIND, SPLIT_PIPELINE_TOTAL_TIMEOUT_MS, type PainSignalRuntimeFactoryOptions, type RuntimeConfig, type RuntimeConfigError, type RuntimeConfigResult, type ResolveRuntimeConfigOptions } from './pain-signal-runtime-factory.js'; export { PainToPrincipleService } from './pain-to-principle-service.js'; export type { PainToPrincipleServiceOptions, PainToPrincipleInput, PainToPrincipleOutput, FailureCategory } from './pain-to-principle-service.js'; export { evaluateAdmission, evaluateCandidateAdmissions, evaluateCandidateAdmissionFromRecord, ADMISSION_CONFIDENCE_THRESHOLD } from './admission-gate.js'; export type { AdmissionDecision, AdmissionGateInput, AdmissionGateResult, CandidateAdmissionResult, PainProvenance } from './admission-gate.js'; export { isOwnerExplicitManual, shouldShortCircuitEmptyEvidence } from './evidence-guards.js'; export { PainChainReadModel } from './pain-chain-read-model.js'; export type { PainChainTrace, PainChainTraceLatencyMs, PainChainReadModelOptions } from './pain-chain-read-model.js'; export { PruningReadModel, removeOrphanReferencesFromLedger } from './pruning-read-model.js'; export type { PrinciplePruningSignal, PruningHealthSummary, PruningReadModelOptions, PruningRiskLevel, OrphanDerivedCandidate, OrphanDetectionResult, RemovedOrphanReference } from './pruning-read-model.js'; export { appendPruningReview, listPruningReviews } from './pruning-review-log.js'; export type { PruningReviewDecision, PruningReviewRecord, AppendPruningReviewInput } from './pruning-review-log.js'; export { appendRecoveryAction, listRecoveryActions } from './recovery-actions-log.js'; export type { RecoveryActionRecord, RecoveryActionKind, RecoveryActionResult, AppendRecoveryActionInput, } from './recovery-actions-log.js'; export { auditCandidateLedgerConsistency } from './candidate-audit.js'; export type { CandidateAuditResult } from './candidate-audit.js'; export { OperatorHealthReadModel } from './operator-health-read-model.js'; export type { OperatorHealthSnapshot, OperatorHealthReadModelOptions, OverallHealthStatus } from './operator-health-read-model.js'; export { StalledDiagnosticianTaskReadModel } from './stalled-diagnostician-task-read-model.js'; export type { StalledDiagnosticianTaskInfo, StalledDiagnosticianTaskReadModelOptions } from './stalled-diagnostician-task-read-model.js'; export { computeOverallStatus, boundedEvidence, safeStringify, truncateReason, makeDeterministicDiagnosticianOutput, recommendNextIssue } from './synthetic-baseline.js'; export type { SyntheticBaselineSummary, SyntheticBaselineStage, SyntheticBaselineStageName, SyntheticBaselineFailStage, SyntheticBaselineOptions } from './synthetic-baseline.js'; export { VALID_CATEGORIES, validateFeatureFlagRaw, computeEffectiveFlags, DEFAULT_FEATURE_FLAGS, FEATURE_FLAG_ALIASES, normalizeFeatureFlagOverrides, } from './feature-flags/index.js'; export type { FeatureFlagCategory, FeatureFlagDefinition, EffectiveFeatureFlags, FeatureFlagOverrideNormalization, ValidationResult as FeatureFlagValidationResult, ValidationResultOk as FeatureFlagValidationResultOk, ValidationResultErr as FeatureFlagValidationResultErr, } from './feature-flags/index.js'; export { CORE_PRINCIPLES, CORE_PRINCIPLE_IDS, getFoundationalPrinciples, getOperatingPrinciples, isCorePrincipleId, getCorePrinciple, CorePrincipleSchema, stripFabricatedCorePrincipleIds, formatCorePrinciplesList, buildCoreAxiomBlock, } from './core-principles/index.js'; export type { CorePrinciple, CorePrincipleLayer, CorePrincipleScope, } from './core-principles/index.js'; export { VALID_SURFACE_KINDS, VALID_MVP_CATEGORIES, PLUGIN_SURFACE_REGISTRY, validateSurfaceRegistry, getEnabledSurfaces, getSurfacesByCategory, getSurfacesByKind, findUnclassifiedSurfaces, } from './feature-flags/index.js'; export type { SurfaceKind, MvpCategory, PluginSurfaceEntry, SurfaceRegistryValidationResult, } from './feature-flags/index.js'; export { checkSurfaceGuard, getSurfaceIdForHook, getSurfaceIdForService, isSurfaceEnabled, guardHook, guardService, __resetSurfaceGuardSkipLogStateForTests, } from './feature-flags/index.js'; export type { SurfaceGuardResult, HookHandler, } from './feature-flags/index.js'; export { runPromptFixture, runRuleHostFixture, runDeferArchiveFixture, computeProvenChannelStatus, generateContinuityMatrix, recommendProvenChannelNextIssue, isMvpChannel, parseChannels, makePrincipleArtifact, makeRuleArtifact, makeSandboxAlwaysPass, classifyLegacyDependency, MVP_CHANNELS, } from './proven-channel-baseline.js'; export type { MvpChannel, ChannelFixtureResult, ProvenChannelBaselineSummary, ContinuityMatrixEntry, InputValidationFailure } from './proven-channel-baseline.js'; export { STORY_A_CHANNELS, makeRunId, makePrincipleArtifactRecord, makeRuleArtifactRecord, computeDemoStatus, buildFollowUpObservation, buildDemoNarrative, validateDemoChannels, createDemoSandboxEvaluate, evaluateDemoGoldenTrace, type DemoNarrativeInput, } from './story-a-demo.js'; export type { StoryADemoResult, StoryADemoStage, StoryADemoStageName, StoryADemoChannelOutcome, StoryADemoInputValidationFailure, StoryADemoOptions } from './story-a-demo.js'; export { runAdversarialLoop, DEFAULT_MAX_ROUNDS } from './adversarial-loop.js'; export type { AdversarialLoopInput, AdversarialLoopResult } from './adversarial-loop.js'; export { ArtificerL2Adapter } from './adapter/artificer-l2-adapter.js'; export type { ArtificerL2AdapterConfig } from './adapter/artificer-l2-adapter.js'; export { computeFloodStatus, computeFloodTotals, formatContextBudgetSummary, recommendFloodNextIssue, boundedFloodEvidence, maxEvidencePreviewLength, FLOOD_SCENARIO_EXPECTATIONS, computeMaxAllowedTasks, } from './pain-flood-simulation.js'; export type { PainFloodSimulationSummary, PainFloodStage, PainFloodScenarioName, PainFloodSimulationOptions, PainFloodScenarioExpectation } from './pain-flood-simulation.js'; export type { RuleHostInput, RuleHostDecision, RuleHostMeta, RuleHostResult, LoadedImplementation, } from './internalization/rule-host-contracts.js'; export type { RuleHostHelpers } from './internalization/rule-host-helpers.js'; export { createRuleHostHelpers } from './internalization/rule-host-helpers.js'; export type { LegacyRuleContractSymbol, LegacyRuleContractRuleSource, LegacyRuleContractFinding } from './internalization/legacy-rule-contract-scanner.js'; export { scanLegacyRuleContractDependencies, formatLegacyRuleContractRemediation } from './internalization/legacy-rule-contract-scanner.js'; export type { CorrectionProposal, CorrectionProposalValidationResult, PathValidationResult } from './internalization/correction-proposal.js'; export { validateProposedParams, validateCorrectionProposal, isPathWithinWorkspace, validateProposedPathBounds } from './internalization/correction-proposal.js'; export type { ExtractFilePathOptions, BuildRuleHostActionOptions } from './internalization/rule-host-input-builder.js'; export { normalizePathPure, extractFilePathFromParams, buildRuleHostAction, deriveToolHintsFromCanonicalKind } from './internalization/rule-host-input-builder.js'; export type { ToolSemanticMappingV1, ToolSemanticRegistry, ToolSemanticMappingValidationResult, } from './internalization/tool-semantic-registry.js'; export { buildToolSemanticRegistry, validateToolSemanticMappings } from './internalization/tool-semantic-registry.js'; export type { FailureLayer, RuleReliabilityFailure, RuleReliabilityValidationInput, RuleReliabilityValidationResult, } from './internalization/rule-reliability-validation.js'; export { validateRuleReliability, classifyReplayFailure } from './internalization/rule-reliability-validation.js'; export type { CanonicalKind, EvidenceState, RuleToolOutcome, RuleHistoryStatus, RuleToolCallRecord, RuleHistoryWindow, RuleBehaviorFacts, RuleContextV2, ValidationResult as RuleContextValidationResult, } from './internalization/rule-context-v2.js'; export { UNAVAILABLE_RULE_CONTEXT, canonicalizeToolKind, validateRuleToolCallRecord, validateRuleHistoryWindow, validateRuleBehaviorFacts, validateRuleContextV2, computeBehaviorFacts, } from './internalization/rule-context-v2.js'; export type { BehaviorExamplePack, BehaviorExamplePackValidationResult } from './internalization/behavior-example-pack.js'; export { validateBehaviorExamplePack } from './internalization/behavior-example-pack.js'; export type { InternalizationRouteKind, InternalizationRouteDecision } from './internalization/internalization-route.js'; export { decideInternalizationRoute } from './internalization/internalization-route.js'; export type { PainPattern } from './internalization/template-generator.js'; export { generateFromTemplate } from './internalization/template-generator.js'; export type { ValidationResult } from './internalization/rule-code-validator.js'; export { checkForbiddenPatterns, checkReturnStatementsMissingFields, checkMatchedFalseDecisions } from './internalization/rule-code-validator.js'; export type { CompileResult } from './internalization/compile-result.js'; export { buildMaskedPrincipleSet, getCachedMaskedPrincipleSet, clearPruningMaskCache } from './pruning-mask.js'; export { enforceL1HardCap, validateL1CapConfig, DEFAULT_L1_HARD_CAP, MAX_L1_HARD_CAP } from './l1-hard-cap.js'; export type { L1CapConfig, L1EvictionCandidate, L1EvictionResult } from './l1-hard-cap.js'; export type { DecisionMergeLogger, RuleHostLogger } from './internalization/rule-host-evaluator.js'; export { mergeDecisions } from './internalization/rule-host-evaluator.js'; export type { RuleHostResultValidationResult } from './internalization/rule-host-validator.js'; export { validateRuleHostResult } from './internalization/rule-host-validator.js'; export type { RuleHostImplementationProvider } from './internalization/rule-host-adapter.js'; export type { PrincipleStatus, PrinciplePriority, PrincipleScope, PrincipleEvaluability, RuleStatus, RuleType, ImplementationLifecycleState, ImplementationType, SampleClassification, Principle, Rule, Implementation, ArtifactKind, ArtifactLineageRecord, ReplayResult, ClassificationSummary, ReplayReport, PrincipleDependency, PrincipleValueMetrics, PrincipleEventType, PrincipleLifecycleEvent, PrincipleTreeStore, } from './types/index.js'; export type { TypeboxPainSeverity as PainSeverity, PainSignal, PainSignalValidationResult, PDTaskSchedule, PDTaskExecution, PDTaskDelivery, PDTaskMeta, PDTaskSpec, EvidenceChainState, EvidenceChainRecord, EvidenceChainResponse, } from './types/index.js'; export { PainSeveritySchema, PainSignalSchema, deriveSeverity, validatePainSignal, PDTaskScheduleSchema, PDTaskExecutionSchema, PDTaskDeliverySchema, PDTaskMetaSchema, PDTaskSpecSchema, BUILTIN_PD_TASKS, mapSourceKind, inferAdmissionDecision, determineState, determineNextAction, resolveSummary, normalizeDiagnosticianTaskId, crossReferenceByTimestamp, assembleEvidenceChain, validateIntentTension, } from './types/index.js'; export type { LifecycleClassificationTotals, RuleReplayEvidence, RuleLiveEvidence, RuleLineageEvidence, ImplementationLifecycleEvidence, RuleLifecycleEvidence, PrincipleLifecycleEvidence, LifecycleReadModel, } from './internalization/lifecycle-types.js'; export type { RuleMetricResult, PrincipleAdherenceResult } from './internalization/lifecycle-metrics.js'; export { computeRuleMetrics, computePrincipleAdherence } from './internalization/lifecycle-metrics.js'; export type { DeprecatedReadinessStatus, DeprecatedReadinessAssessment } from './internalization/deprecated-readiness.js'; export { assessDeprecatedReadiness } from './internalization/deprecated-readiness.js'; export type { LifecycleRoute, LifecycleRouteEvidenceSummary, LifecycleRouteRecommendation } from './internalization/routing-policy.js'; export { recommendLifecycleRoute } from './internalization/routing-policy.js'; export type { LifecycleDatasource } from './internalization/lifecycle-datasource.js'; export { buildLifecycleReadModel } from './internalization/lifecycle-read-model.js'; export type { LedgerTreeStore } from './types/ledger-store.js'; export type { InternalizationChannel, PeerRunnerKind, DiagnosticianStageKind, RunnerKind, PIArtifactKind, PIArtifactValidationStatus, ArtifactRef, LineageRef, PIArtifact, PITaskRecord, } from './internalization/peer-runner-contracts.js'; export { PEER_RUNNER_KINDS, DIAGNOSTICIAN_STAGE_KINDS, INTERNALIZATION_CHANNELS, PI_ARTIFACT_KINDS, isPeerRunnerKind, isDiagnosticianStageKind, isRunnerKind, isInternalizationChannel, isPIArtifactKind, isTerminalTaskStatus, isValidPITaskRecord, createMinimalPITaskRecord, } from './internalization/peer-runner-contracts.js'; export { ALLOWED_EDGES, DIAGNOSTICIAN_EDGES, validateEdge, validateDiagEdge, getDiagSuccessors, isAcyclic, getAllowedSuccessors, getAllowedPredecessors, } from './internalization/internalization-job-graph.js'; export { canAcquireLease, canRetryNow, areDependenciesMet, canTransitionTo, isResultRefImmutable, canUpdateLastError, isArtifactRejected, isUnresolvable, recordRejection, isRetryWaitBackoffElapsed, DEFAULT_UNRESOLVABLE_THRESHOLD, } from './internalization/internalization-task-guards.js'; export type { DependencyGateDecision, DependencyGateResult, TransitionValidation, RejectionFeedbackAction, RejectionFeedbackResult, NextTaskProposal, GraphErrorType, GraphValidationError, GraphValidationResult, } from './internalization/internalization-state-machine.js'; export { validateInternalizationTaskReady, validateTaskTransition, decideArtifactRejectionFeedback, createNextTaskProposal, validateInternalizationGraph, } from './internalization/internalization-state-machine.js'; export type { InternalizationTransitionDecisionKind, TransitionDecision, TransitionDecisionInput, } from './internalization/internalization-transition-decision.js'; export { decideInternalizationTransition, transitionInputFromTask, } from './internalization/internalization-transition-decision.js'; export type { PITaskMetadata, RunnerDecision, RolloutRevisionPayload, HumanReviewContext, OwnerResolutionRecord, OwnerResolutionAction, OwnerResolutionStatus, } from './internalization/pitask-metadata.js'; export { PI_METADATA_KEY, serializePITaskMetadata, parsePITaskMetadata, hydratePITaskRecord, createPITaskDiagnosticJson, mergePITaskMetadata, artificerRepairTaskId, } from './internalization/pitask-metadata.js'; export type { WakeOnceResult, NoReadyTasksResult, BlockedResult, DependencyFailedResult, LeasedResult, WouldLeaseResult, LeaseConflictResult, InvalidTaskMetadataResult, ProposalCreatedResult, ProposeNextTaskResult, CommitNextTaskResult, InternalizationOrchestratorOptions, InternalizationOrchestratorDeps, } from './internalization/internalization-orchestrator.js'; export { InternalizationOrchestrator, WAKE_ONCE_DECISIONS } from './internalization/internalization-orchestrator.js'; export type { FixtureDataSet } from './internalization/golden-dogfood-fixtures.js'; export { GOLDEN_FIXTURES } from './internalization/golden-dogfood-fixtures.js'; export type { DreamerCandidate, DreamerOutput, DreamerValidationResult, DreamerValidator, } from './internalization/dreamer-output.js'; export { PassThroughDreamerValidator, DefaultDreamerValidator } from './internalization/dreamer-output.js'; export type { DreamerRunnerResult, DreamerRunnerOptions, ResolvedDreamerRunnerOptions, } from './internalization/dreamer-runner.js'; export { resolveDreamerRunnerOptions, DEFAULT_DREAMER_RUNNER_OPTIONS, } from './internalization/dreamer-runner.js'; export { DreamerRunner } from './internalization/dreamer-runner.js'; export { BasePeerRunner } from './runner/base-peer-runner.js'; export type { PeerRunnerOptions, ResolvedPeerRunnerOptions, PeerRunnerDeps, PeerRunnerConfig, PeerRunnerResult, PeerRunnerResultStatus, PeerRunnerValidationResult, FailureContext, ValidationErrorContext, } from './runner/peer-runner-types.js'; export type { PhilosopherOutputV1, PhilosopherPrincipleCandidate, PhilosopherValidationResult, PhilosopherValidator, } from './internalization/philosopher-output.js'; export { DefaultPhilosopherValidator, } from './internalization/philosopher-output.js'; export type { PhilosopherRunnerResultStatus, PhilosopherRunnerResult, PhilosopherRunnerOptions, ResolvedPhilosopherRunnerOptions, PhilosopherRunnerDeps, } from './internalization/philosopher-runner.js'; export { PhilosopherRunner, resolvePhilosopherRunnerOptions, DEFAULT_PHILOSOPHER_RUNNER_OPTIONS, } from './internalization/philosopher-runner.js'; export type { ScribeOutputV1, ScribePrincipleDraft, ScribeSourceTrace, ScribeValidationResult, ScribeValidator, } from './internalization/scribe-output.js'; export { DefaultScribeValidator, } from './internalization/scribe-output.js'; export type { ScribeRunnerResultStatus, ScribeRunnerResult, ScribeRunnerOptions, ResolvedScribeRunnerOptions, ScribeRunnerDeps, } from './internalization/scribe-runner.js'; export { ScribeRunner, resolveScribeRunnerOptions, DEFAULT_SCRIBE_RUNNER_OPTIONS, } from './internalization/scribe-runner.js'; export type { ArtificerRuleOutput, ArtificerSourceTrace, ArtificerValidationResult, ArtificerValidator, GoldenTraceCaseInput, } from './internalization/artificer-output.js'; export { DefaultArtificerValidator, ArtificerRuleOutputSchema, ArtificerSourceTraceSchema, } from './internalization/artificer-output.js'; export type { ArtificerRunnerResultStatus, ArtificerRunnerResult, ArtificerRunnerOptions, ResolvedArtificerRunnerOptions, ArtificerRunnerDeps, ArtificerHostSemanticContext, } from './internalization/artificer-runner.js'; export { ArtificerRunner, resolveArtificerRunnerOptions, DEFAULT_ARTIFICER_RUNNER_OPTIONS, } from './internalization/artificer-runner.js'; export { buildArtificerHostSemanticContext } from './internalization/artificer-prompt-builder.js'; export type { EvaluatorEvaluation, EvaluatorSourceTrace, EvaluatorOutputV1, EvaluatorOutputV2, EvaluatorValidationResult, EvaluatorValidator, EvaluatorCodeReview, EvaluatorAdversarialResult, AdversarialCase, AdversarialFailedCase, AdversarialAttackType, } from './internalization/evaluator-output.js'; export { DefaultEvaluatorValidator, EvaluatorOutputV1Schema, EvaluatorEvaluationSchema, EvaluatorSourceTraceSchema, EVALUATOR_DECISIONS, isEvaluatorOutputV2, } from './internalization/evaluator-output.js'; export type { EvaluatorRunnerResultStatus, EvaluatorRunnerResult, EvaluatorRunnerOptions, ResolvedEvaluatorRunnerOptions, EvaluatorRunnerDeps, SeedArtificerRepairParams, } from './internalization/evaluator-runner.js'; export { EvaluatorRunner, resolveEvaluatorRunnerOptions, DEFAULT_EVALUATOR_RUNNER_OPTIONS, } from './internalization/evaluator-runner.js'; export { EvaluatorPromptBuilder, EVALUATOR_PROTOCOL_INSTRUCTION, EVALUATOR_PROMPT_CONTRACT_VERSION, } from './internalization/evaluator-prompt-builder.js'; export type { EvaluatorPromptBuilderInput, EvaluatorPromptInput, EvaluatorPromptBuildResult, } from './internalization/evaluator-prompt-builder.js'; export type { RolloutReviewerReview, RolloutReviewerSourceTrace, RolloutReviewerOutputV1, RolloutReviewerValidationResult, RolloutReviewerValidator, } from './internalization/rollout-reviewer-output.js'; export { DefaultRolloutReviewerValidator, RolloutReviewerOutputV1Schema, RolloutReviewerReviewSchema, RolloutReviewerSourceTraceSchema, ROLLOUT_REVIEWER_DECISIONS, } from './internalization/rollout-reviewer-output.js'; export type { RolloutReviewerRunnerResultStatus, RolloutReviewerRunnerResult, RolloutReviewerRunnerOptions, ResolvedRolloutReviewerRunnerOptions, RolloutReviewerRunnerDeps, RolloutAutoDispatchInput, RolloutAutoDispatchOutcome, RolloutRevisionRoutingInput, } from './internalization/rollout-reviewer-runner.js'; export { RolloutReviewerRunner, resolveRolloutReviewerRunnerOptions, DEFAULT_ROLLOUT_REVIEWER_RUNNER_OPTIONS, } from './internalization/rollout-reviewer-runner.js'; export { RolloutReviewerPromptBuilder, ROLLOUT_REVIEWER_PROTOCOL_INSTRUCTION, ROLLOUT_REVIEWER_PROMPT_CONTRACT_VERSION, } from './internalization/rollout-reviewer-prompt-builder.js'; export type { RolloutReviewerPromptBuilderInput, RolloutReviewerPromptInput, RolloutReviewerPromptBuildResult, } from './internalization/rollout-reviewer-prompt-builder.js'; export type { PIArtifactRecord, PIArtifactStore } from './internalization/pi-artifact.js'; export { MemoryPIArtifactStore } from './internalization/pi-artifact-store.js'; export { SqlitePIArtifactStore } from './store/artifact/sqlite-pi-artifact-store.js'; export { L2AgentLoopAdapter } from './adapter/l2-agent-loop-adapter.js'; export type { L2AgentLoopAdapterConfig, L2AgentLoopAdapterDeps } from './adapter/l2-agent-loop-adapter.js'; export { buildDreamerL2Tools, DREAMER_L2_TOOL_WHITELIST, } from './tools/agent-tool-contract.js'; export type { PdL2ToolContext, PdL2ArtifactReader, PdL2PrincipleReader, L2OutputCapture, } from './tools/agent-tool-contract.js'; export { DreamerOutputV1Typebox, DreamerCandidateTypebox } from './tools/dreamer-output-typebox.js'; export { ArtificerRuleOutputTypebox, ArtificerSourceTraceTypebox, GoldenTraceCaseInputTypebox, } from './tools/artificer-output-typebox.js'; export { buildArtificerL2Tools, ARTIFICER_L2_TOOL_WHITELIST, RULECODE_SPEC_TEXT, } from './tools/artificer-l2-tool-contract.js'; export type { ArtificerL2ToolContext, ArtificerL2OutputCapture, } from './tools/artificer-l2-tool-contract.js'; export { buildL2PrincipleReaderFromLedger } from './build-l2-principle-reader.js'; export type { BuildL2PrincipleReaderOptions } from './build-l2-principle-reader.js'; export type { IntakeToInternalizationBridgeInput, BridgeDecision, BridgeTaskSeed, BridgeTaskStore, } from './internalization/intake-to-internalization-bridge.js'; export { ROUTE_CHANNEL_MAP, CANDIDATE_KIND_TO_ROUTE, MVP_ENABLED_CHANNELS, computeBridgeDecision, buildDreamerTaskSeed, buildDreamerSeedFromCandidate, dreamerTaskIdsForCandidate, findExistingDreamerTask, seedIntakeTask, } from './internalization/intake-to-internalization-bridge.js'; export { InternalizationQueueReadModel, createInternalizationQueueReadModel } from './internalization-queue-read-model.js'; export type { InternalizationQueueSnapshot, NoReadyTasksDiagnosis, QueueNoReadyTasksReason, ReadyTask, BlockedSample, DependencyFailedSample, RetryWaitPendingSample, LeaseConflictSample, UnresolvableSample, InternalizationQueueReadModelHandle, CreateQueueReadModelOptions, } from './internalization-queue-read-model.js'; export { classifyTaskActionability, MVP_CORE_TASK_KINDS } from './internalization/queue-actionability.js'; export type { ActionabilityPolicyInput, SuppressedDiagnostic, TaskActionabilityResult, TaskClassificationInput, } from './internalization/queue-actionability.js'; export { computeConsumerDecision, DEFAULT_CONSUMER_MAX_TASKS_PER_CYCLE, DEFAULT_CONSUMER_RUNNER_KINDS, FULL_CHAIN_CONSUMER_RUNNER_KINDS, } from './internalization/internalization-consumer-decision.js'; export type { ConsumerDecision, ConsumerDecisionInput, } from './internalization/internalization-consumer-decision.js'; export { createRecoverySweepService } from './recovery-sweep-service.js'; export type { RecoverySweepService, RecoverySweepServiceHandle, FailedTaskRecoveryInfo, FailedTaskRecoveryResult } from './recovery-sweep-service.js'; export { ownerRetryNeedsHumanReviewTask } from './internalization/owner-retry.js'; export type { OwnerRetryOutcome } from './internalization/owner-retry.js'; export { HUMAN_REVIEW_REASON, DECISION_CAPABLE_HUMAN_REVIEW_REASONS, LEGACY_EVALUATOR_BUDGET_EXHAUSTED, LEGACY_ROLLOUT_BUDGET_EXHAUSTED, buildOwnerReviewKey, collectOwnerDecisionFacts, computeArtifactContentHash, decisionArtifactIdFor, deriveOwnerDecisionCapability, resolveEffectiveRunnerDecision, findOwnerResolutionForCurrentEpoch, findAppliedVerdictOverrideResolution, planOwnerVerdictOverrideResume, markOwnerResolutionApplied, canonicalHumanReviewReasonCode, detectHardGateFailureFromArtifact, effectiveDecisionFor, } from './internalization/owner-review.js'; export type { HumanReviewAttention, OwnerDecisionCapability, OwnerDecisionFactStore, OwnerDecisionFacts, DecisionArtifactRecord, DecisionArtifactFacts, ReviewKeyFacts, OwnerOverrideResumePlan, } from './internalization/owner-review.js'; export { buildOwnerDecisionReview } from './internalization/owner-decision-review.js'; export type { BoundEvidenceManifestV1, DeterministicCheckStatus, EvidenceClass, EvaluatorDecisionBrief, OwnerDecisionBrief, OwnerDecisionReviewSnapshot, OwnerDecisionReviewStore, OwnerEvidenceItem, ReviewEvidenceCompleteness, RolloutDecisionBrief, } from './internalization/owner-decision-review.js'; export { applyOwnerResolution, factStoreFromStateManager, reviewStoreFromStateManager, sanitizeOwnerInstruction, } from './internalization/owner-resolution-service.js'; export type { OwnerResolutionApplyDeps, OwnerResolutionRequest, OwnerResolutionOutcome, OwnerIdentityContext, } from './internalization/owner-resolution-service.js'; export { reopenTaskForRevision, resolveRolloutRevisionTarget, buildRepairRevisionCauseId } from './internalization/revision-reopen.js'; export type { ReopenRevisionOptions, RolloutRevisionTarget } from './internalization/revision-reopen.js'; export { createRuntimeStateHandle } from './runtime-state-handle.js'; export type { RuntimeStateHandle } from './runtime-state-handle.js'; export type { ActivationRiskLevel, ActivationActor, RolloutActivationDecision, DispatchInput, ActivationDecision, PIArtifactSnapshot, ActivationArtifactReadModel, ActivationStatusRecord, ActivationStateReadModel, ActivationDecisionRecord, ActivationDecisionSubject, ActivationDecisionKind, ActivationControlState, GlobalRuleCodePause, PromotionEvidenceSnapshot, PromotionFailedCheck, PromotionReadinessResult, OwnerPromotionActor, OwnerPromotionRequest, PromotionCommitInput, OwnerPromotionResult, RuleCodeOwnerDecisionServiceDeps, PromotionCheckId, PromotionReadinessCheck, PromotionReadinessEvaluationInput, PromotionReadinessReaderDeps, RuleCodeSafetySample, RuleCodeSafetyCircuitState, RuleCodeSafetyTripReason, HostLivenessContract, WriterInput, WriterResult, CanActivateResult, ChannelWriter, ApprovalStatus, ApprovalRecord, ApprovalEnqueueInput, ApprovalFilter, ApprovalDecisionResult, ApprovalQueueStore, ApprovalListFilter, ApprovalStats, ApprovalListResult, ArtifactLineageIdentity, ApprovalWithContext, ConfidenceLabel, BuildPromotionEvidenceSnapshotInput, PromotionEvidenceOwnerIdentity, } from './activation/index.js'; export { LOW_RISK_CHANNELS, isArtifactRevisionOf, HIGH_RISK_CHANNEL_MAP, makeIdempotencyKey, isLowRiskChannel, getChannelRiskLevel, ActivationDispatcher, PromptWriter, DeferArchiveWriter, RuleHostWriter, extractEvidenceRefs, extractPrincipleId, MemoryActivationStateStore, MemoryArtifactReadModel, SqliteActivationStateStore, SqliteActivationSafetyStore, RuleCodeOwnerDecisionService, REQUIRED_PROMOTION_CHECK_IDS, evaluateRuleCodePromotionReadiness, PromotionReadinessReader, evaluateRuleCodeSafetyCircuit, initialRuleCodeSafetyCircuitState, collectOpenClawPromotionChecks, summarizeRuleCodeShadowEvents, AUTO_PROMOTION_CONFIDENCE_THRESHOLD, AUTO_PROMOTABLE_CHANNELS, ApprovalQueue, decideAutoPromotion, MemoryApprovalQueueStore, SqliteApprovalQueueStore, mapConfidenceToLabel, RUNTIME_V2_PRINCIPLE_BUDGET, isArtifactRecord, filterPromptActivations, resolvePrincipleFromArtifact, trimToBudget, renderPrinciplesToDirectives, createProductionGateDeps, compileHardenedRuleEvaluator, ApprovalCompletionService, buildPromotionEvidenceSnapshot, computeArtifactDigest, normalizeOwnerIdentity, } from './activation/index.js'; export type { ActivatedPrinciple, PromptActivationReaderResult, ApprovalCompletionInput, ApprovalCompletionResult, } from './activation/index.js'; export { DEFAULT_GFI_POLICY, applyFriction, applyDecay, applyRelief, classifyGfiStage, createGfiSnapshot, } from './gfi/index.js'; export type { GfiState, GfiEvent, GfiPolicy, GfiStage, GfiSource, GfiSnapshot, } from './gfi/index.js'; export { buildGfiWorkspaceSnapshot, classifyGfiWorkspaceHealth } from './gfi/index.js'; export type { GfiReadModelInput, GfiWorkspaceSnapshot, GfiWorkspaceHealthAssessment } from './gfi/index.js'; export { SchemaConformanceReadModel } from './schema-conformance-read-model.js'; export type { SchemaConformanceResult, SchemaConformanceTableResult, SchemaConformanceReadModelOptions } from './schema-conformance-read-model.js'; export { ActivationCompatibilityReadModel } from './activation-compatibility-read-model.js'; export type { ActivationCompatibilityScanResult } from './activation-compatibility-read-model.js'; export { InternalizationChainIntegrityReadModel, extractPIMetadata } from './internalization-chain-integrity-read-model.js'; export type { BrokenLink, ChainIntegrityResult, InternalizationChainIntegrityReadModelOptions, PIMetadataParseResult } from './internalization-chain-integrity-read-model.js'; export { InternalizationIntegrityRemediation } from './internalization-integrity-remediation.js'; export type { InternalizationIntegrityRemediationOptions } from './internalization-integrity-remediation.js'; export { assertMainlineContract, EMPTY_CONTEXT_SENTINEL } from './mainline-contract.js'; export type { MainlineStage, StageStatus, StageVerdict, MainlineVerdict, ArtifactRefSnapshot, RuntimeReadinessSnapshot, DiagnosisTaskSnapshot, DiagnosticianArtifactSnapshot, CandidateSnapshot, DreamerTaskSnapshot, DreamerContextSnapshot, SuccessorSnapshot, OwnerReviewablePrincipleSnapshot, MainlineChainSnapshot, MainlineSnapshot, } from './mainline-contract.js'; export { createRemediationResult, remediationAction, } from './remediation-contract.js'; export type { RemediationAction, RemediationMode, RemediationResult, RemediationStatus, CreateRemediationResultInput, } from './remediation-contract.js'; export { classifyCanaryFindings } from './control-plane-triage.js'; export type { TriageCategory, TriageCategoryName, TriagePlan } from './control-plane-triage.js'; export { GoldenTraceCaseSchema, GoldenTraceSchema, CorrectionApplicationModeSchema, GoldenTraceDecisionSchema, GoldenTraceCaseKindSchema, validateGoldenTraceCase, validateGoldenTrace, createSyntheticRuleHostInput, createGoldenTraceFixture, buildGoldenTraceFromArtificer, } from './golden-trace.js'; export type { CorrectionApplicationMode, GoldenTraceDecision, GoldenTraceCaseKind, GoldenTraceCase, GoldenTrace, GoldenTraceValidationResult, ToolCallSnapshot, SyntheticRuleHostInputOverrides, GoldenTraceFixtureInput, BuildGoldenTraceFromArtificerInput, BuildGoldenTraceResult, } from './golden-trace.js'; export { applyTrajectorySchemaBase, TRAJECTORY_SCHEMA_VERSION, TRAJECTORY_TABLES, } from './trajectory-schema.js'; export type { TrajectorySchemaApplyOptions, TrajectorySchemaApplyResult, } from './trajectory-schema.js'; export { replayGoldenTrace, diffParams, DEFAULT_REPLAY_VALIDATOR_CONFIG, } from './golden-trace-replay-validator.js'; export type { ReplayValidatorCaseResult, ReplayValidatorResult, ReplayValidatorConfig, ReplayEvaluateFn, } from './golden-trace-replay-validator.js'; export { isCompleteDetectorMetadata, EvolutionPrincipleStatusSchema, PrincipleEvaluatorLevelSchema, EvaluabilitySchema, PrincipleDetectorSpecSchema, EvolutionPrincipleSuggestedRuleSchema, EvolutionPrincipleValueMetricsSnapshotSchema, EvolutionPrincipleSchema, EvolutionLoopEventTypeSchema, EvolutionPainDetectedDataSchema, CandidateCreatedDataSchema, PrinciplePromotedDataSchema, PrincipleDeprecatedDataSchema, PrincipleRolledBackDataSchema, CircuitBreakerOpenedDataSchema, LegacyImportDataSchema, EvolutionLoopEventSchema, } from './evolution/evolution-types.js'; export type { EvolutionPrincipleStatus, PrincipleEvaluatorLevel, Evaluability, PrincipleDetectorSpec, EvolutionPrinciple, EvolutionPrincipleSuggestedRule, EvolutionPrincipleValueMetricsSnapshot, EvolutionLoopEventType, EvolutionPainDetectedData, CandidateCreatedData, PrinciplePromotedData, PrincipleDeprecatedData, PrincipleRolledBackData, CircuitBreakerOpenedData, LegacyImportData, EvolutionLoopEvent, } from './evolution/evolution-types.js'; export { evaluateInRefinerSandbox, DEFAULT_TIMEOUT_MS, MAX_TIMEOUT_MS, } from './internalization/refiner-sandbox-wrapper.js'; export type { RefinerSandboxErrorType, RefinerSandboxFailedCase, RefinerSandboxResult, RefinerSandboxOptions, RefinerSandboxDependencies, } from './internalization/refiner-sandbox-wrapper.js'; export { evaluateRefinerRuleHostGate, } from './internalization/refiner-rulehost-gate.js'; export type { RefinerRuleHostGateDecision, RefinerRuleHostGateInput, RefinerRuleHostGateResult, RefinerRuleHostGateDeps, } from './internalization/refiner-rulehost-gate.js'; export { MAX_CORRECTION_KEYWORDS, CORRECTION_SEED_KEYWORDS, CorrectionKeywordSchema, CorrectionKeywordStoreSchema, } from './correction/correction-types.js'; export type { CorrectionKeyword, CorrectionKeywordStore, } from './correction/correction-types.js'; export type { PersistenceAction, HygieneStats, } from './types/hygiene-types.js'; export { createEmptyHygieneStats, } from './types/hygiene-types.js'; export type { EventType, EventCategory, EventLogEntry, ToolCallEventData, PainSignalEventData, RulePromotionEventData, GovernanceActionEventData, HookExecutionEventData, GateBlockEventData, GateBypassEventData, EvolutionTaskEventData, EmpathyRollbackEventData, HeartbeatDiagnosisEventData, DiagnosisTaskEventData, DiagnosticianReportEventData, PrincipleCandidateEventData, RuleEnforcedEventData, RuleHostEvaluatedEventData, RuleHostBlockedEventData, RuleHostRequireApprovalEventData, RuleHostAutoCorrectProposedEventData, RuleHostAutoCorrectAppliedEventData, RuntimeV2PromptActivationsInjectedEventData, RuleHostUnhealthyEventData, RuleHostSkippedEventData, TrajectoryObservabilityFailureEventData, ToolCallStats, ErrorStats, EmpathyEventStats, GfiStats, EventEvolutionStats, HookStats, DailyStats, } from './types/event-types.js'; export { createEmptyDailyStats, isRuleHostEvaluatedEventData, } from './types/event-types.js'; export type { EventLogEntry as DiscriminatedEventLogEntry, } from './types/event-payload.js'; export { isToolCallEventEntry, isPainSignalEventEntry, isRulePromotionEventEntry, isGovernanceActionEventEntry, isHookExecutionEventEntry, isGateBlockEventEntry, isGateBypassEventEntry, isEvolutionTaskEventEntry, isEmpathyRollbackEventEntry, } from './types/event-payload.js'; export { CorrectionObserverPayloadSchema, CorrectionObserverOutputV1Schema, CorrectionObserver, } from './observer/correction-observer.js'; export type { CorrectionObserverPayload, CorrectionObserverOutputV1, CorrectionObserverDeps, CorrectionObserverOptions, } from './observer/correction-observer.js'; export { AgentScheduler, } from './observer/agent-scheduler.js'; export type { AgentTypeMap, AgentScheduleMode, ScheduledAgent, } from './observer/agent-scheduler.js'; export { WorkflowFunnelLoader } from '../workflow-funnel-loader.js'; export { isFeedbackType, isUserSeverity, isFeedbackSource, isFeedbackFrequency, isFeedbackBlockingLevel, isFeedbackStatus, isFeedbackSubmittedVia, isRecord, isBoolean, normalizeFeedbackDraftInput, computeFeedbackFingerprint, normalizeFeedbackTitle, FEEDBACK_FINGERPRINT_DEFAULT_AREA, FEEDBACK_FINGERPRINT_TITLE_LIMIT, redactAbsolutePaths, redactTokenLikeValues, redactEnvLikeValues, redactStackTrace, redactSensitiveFields, redactTelemetryString, REDACTED_PATH, REDACTED_VALUE, NO_STACK, renderReportMarkdown, MAX_MARKDOWN_LENGTH, buildGitHubIssueDraftUrl, MAX_URL_BODY_LENGTH, GITHUB_REPO, buildPrivacyPreview, buildEmailText, DEFAULT_INCLUDED_SECTIONS, DEFAULT_EXCLUDED_CATEGORIES, createFeedbackReport, safeStringifyPreview, } from './feedback/index.js'; export { PD_CONFIG_VERSION, VALID_FEATURE_CATEGORIES, VALID_PROFILE_TYPES, INTERNAL_AGENT_NAMES, VALID_DIAGNOSTICS_MODES, DANGEROUS_KEYS as PD_CONFIG_DANGEROUS_KEYS, validatePdConfig, DEFAULT_FEATURE_FLAGS as PD_DEFAULT_FEATURE_FLAGS, DEFAULT_RUNTIME_PROFILE_ID, DEFAULT_RUNTIME_PROFILE, DEFAULT_UI as PD_DEFAULT_UI, getDefaultInternalAgents, getDefaultPdConfig, computeEffectivePdConfig, redactPdConfig, redactConfigValue, MVP_CHANNEL_IDS, computeFeatureFlagsFromConfig, isFeatureEnabled, getEnabledFlagIds, } from './config/index.js'; export { resolveAgentRuntimeBinding, checkAgentRuntimeReadiness, createAdapterConfigFromProfile, } from './config/index.js'; export type { AgentRuntimeBindingOk, AgentRuntimeBindingErr, AgentRuntimeBindingResult, AgentRuntimeReadinessResult, PiAiAdapterConfigResult, OpenClawAdapterConfigResult, AdapterConfigResult, } from './config/index.js'; export type { PdConfigVersion, FeatureCategory, FeatureFlagEntry, RuntimeProfileType, OpenClawRuntimeProfile, PdLocalRuntimeProfile, RuntimeProfile, InternalAgentName, InternalAgentBinding, InternalAgentsConfig, DiagnosticsMode, UiConfig, PdConfig, PdConfigValidationError, PdConfigValidationResultOk, PdConfigValidationResultErr, PdConfigValidationResult, EffectivePdConfig, RedactedRuntimeProfileSummary, RedactedAgentSummary, RedactedFeatureSummary, RedactedPdConfigSummary, EffectiveFeatureFlag, FeatureFlagsResult, } from './config/index.js'; export type { FeedbackType, UserSeverity, FeedbackFrequency, FeedbackBlockingLevel, FeedbackStatus, FeedbackSubmittedVia, FeedbackSource, FeedbackContext, AgentDraft, FeedbackUserText, FeedbackDraftInput, NormalizedDraft, RecentEvent, CanaryStatus, DiagnosticSummary, ContextRef, PrivacyPreview, FeedbackReport, ValidationError, NormalizeResult, RedactResult, GithubUrlResult, CreateReportResult, } from './feedback/index.js'; export type { SourceKind, TriageDecision, TriageResult, TriageInput, SourceDescriptor, RawObservation, TriggerOutcome, TriggerDecision, TriggerControllerInput, AdmissionDecisionEvent, DiagnosisTaskCreatedEvent, EvidenceOnlyRecordedEvent, SkippedRefusedEvent, AdmissionEvent, } from './evidence-triage/index.js'; export { isSourceKind, SOURCE_DESCRIPTORS, getSourceDescriptor, evaluateTriage, RISKY_HIGH_SCORE_THRESHOLD, REPEATED_FAILURE_THRESHOLD, resolveSourceKind, buildToolFailureObservation, buildLlmDetectionObservation, buildEmpathyObservation, buildManualPainObservation, evaluateTriggerController, shouldCreateTask, isAdmittedOutcome, isSkippedOutcome, createAdmissionDecisionEvent, createDiagnosisTaskCreatedEvent, createEvidenceOnlyRecordedEvent, createSkippedRefusedEvent, serializeAdmissionEvent, validateEventPrivacy, } from './evidence-triage/index.js'; export type { PainDiagnosticSource, PainDiagnosticGateReason, PainDiagnosticGateInput, PainDiagnosticGateDecision, CooldownCheckInput, } from './pain-gate/index.js'; export { DEFAULT_COOLDOWN_MS, DEFAULT_PAIN_TRIGGER, DEFAULT_HIGH_SEVERITY, DEFAULT_REPEATED_FAILURE, DEFAULT_SEMANTIC_PAIN_FLOOR, normalizedSource, buildEpisodeKey, evaluatePainDiagnosticGateDecision, isCooldownActive, } from './pain-gate/index.js'; export type { DetectionResult, PainMatchResult, PainMatcher, TextHasher, ProtocolTokenGate, DetectionFunnelConfig, } from './detection/index.js'; export { SimpleLRU, DetectionFunnelCore } from './detection/index.js'; export { INTENT_MAX_BYTES, INTENT_DOC_TEMPLATE, INTENT_DOC_TEMPLATE_ZH, INTENT_DOC_TEMPLATE_EN, INTENT_INJECT_MAX_CHARS, INTENT_TRUNCATION_MARKER, getIntentFilename, createIntentTemplate, parseIntentDocSections, assembleIntentDoc, computeIntentContentHash, validateIntentDocSections, buildIntentFrictionBlock, NullIntentDocReader, generateIntentPatchProposal, computeVersionDiff, formatVersionSummary, } from './intent/index.js'; export type { IntentDocSections, IntentDocWarning, IntentDocWarningCode, IntentFrictionBlockInput, IntentDocReader, IntentDocReadResult, IntentDocReference, IntentDocReadReason, IntentDecisionRecord, IntentDecisionInput, IntentDecisionRecordResult, IntentDecisionSummary, IntentDecisionStore, IntentLang, IntentDocVersion, IntentDocVersionStore, FollowUpPatch, IntentPatchProposal, } from './intent/index.js'; export { SqliteIntentDecisionStore, SqliteIntentDocVersionStore } from './store/intent/index.js'; export { SqliteDeadLetterStore } from './store/pain/sqlite-dead-letter-store.js'; export type { DeadLetterRow, DeadLetterOpResult } from './store/pain/sqlite-dead-letter-store.js'; export { PendingAgentDraftStore } from './feedback/pending-agent-draft-store.js'; export type { AgentDraftPayload, PendingAgentDraftRow, PendingDraftOpResult, } from './feedback/pending-agent-draft-store.js'; export type { FileModification } from './risk/index.js'; export { estimateLineChanges } from './risk/index.js'; export type { TrajectoryTurnReader, TrajectoryUserTurn, TrajectoryAssistantTurn, } from './store/context/trajectory-turn-reader.js'; export { scanKeywords, buildLlmPrompt, SIGNAL_CLASSIFIER_SYSTEM_PROMPT, parseLlmClassification, resolveLlmClassificationPayload, SignalClassificationOutputV1Schema, collectSync, mapLlmResultToOutput, buildEvidence, } from './signal-collector/index.js'; export type { KeywordCategory, TermSource, UnifiedKeyword, UnifiedKeywordStore, SignalCollectorConfig, SignalStrength, DetectionSource, MatchedPrecision, SignalEvidence, SignalCollectorOutput, LlmClassificationResult, KeywordScanResult, ParseResult, PayloadResolveResult, ClassifierPayloadPath, SignalClassificationOutputV1, } from './signal-collector/index.js'; //# sourceMappingURL=index.d.ts.map