UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

671 lines • 128 kB
/**
 * `@sema-agent/core` — a stateless, task-oriented AI agent core distilled from openclaw.
 *
 * Bring your own brain (an OpenAI-compatible model gateway), define tools / MCP servers
 * per task, and run single-agent tasks against in-memory sessions with zero-config
 * auto-compaction.
 */
export { Runner, runTask } from "./core/runner/runtask.js";
export { resolveTaskLimits } from "./core/runner/prepare-task.js";
export type { RunInternals, ResolvedWorkspace } from "./core/runner/prepare-task.js";
export type { SpendParent, SpendSeat, SpendLink } from "./core/spend-account.js";
export type { RunnerSelfSeat } from "./core/runner/contracts.js";
export type { CompositionLeg } from "./core/runner/contracts.js";
export { DRAINED_LEG_FRAME_TYPES, LEG_LABEL_KINDS } from "./core/runner/leg-frame.js";
export type { DrainedLegFrame, LegAt, LegLabel } from "./core/runner/leg-frame.js";
export type { BudgetAxis } from "./core/runner/assemble-result.js";
export { terminalProjection } from "./core/runner/terminal-projection.js";
export { toolOutputBlockChars } from "./core/runner/tool-output-projection.js";
export { SESSION_LOG_DIGEST_SCHEME, sessionEntryDigest, sessionLogDigest, sessionLogDigestsComparable, } from "./engine/session/log-digest.js";
export type { ResumeTaskConfig } from "./core/runner/runtask.js";
export type { ResumeConfigQuestion, ResumeConfigVerdict } from "./core/resume-config-judge.js";
export type { TaskStartVerdict } from "./core/task-start-judge.js";
export { defineTool } from "./core/tools.js";
export { SKILL_TOOL_NAME, SKILL_CONTENT_MAX_CHARS, skillsThatLoad } from "./core/runner/synthetic-tools.js";
export { TOOL_SEARCH_POLICIES, TOOL_SEARCH_DEFAULT_THRESHOLD_PERCENT, TOOL_SEARCH_INVALID_CODE, type ToolSearchSetting, type ToolSearchPolicy, } from "./core/tool-search-setting.js";
export type { ToolDisclosureSnapshot } from "./core/runner/deferral-census.js";
export { createSkillsFromDirectory, type SkillsDirectoryOptions, type SkillsDirectoryWarning, type SkillsDirectoryWarningCode, } from "./core/skills-directory.js";
export { SKILL_NAME_MAX_CHARS, skillNamePattern, SKILL_DESCRIPTION_MAX_CHARS, SKILL_FILE_REFUSAL_REASONS, judgeSkillName, judgeSkillDescription, readSkillFile, type SkillFileRefusalReason, type SkillFileReading, type ReadSkillFileOptions, } from "@sema-agent/primitives";
export { parseToolListField, type ToolListField, type ToolListFieldEntry, type ToolListFieldProblem, } from "./core/tool-list-grammar.js";
export { FRONTMATTER_FENCE, isFrontmatterFence, UNCLOSED_FRONTMATTER_REASON } from "@sema-agent/primitives";
export { REPORT_FINDINGS_TOOL_NAME, type ReportedFinding } from "./core/runner/synthetic-tools.js";
export { formatToolError, formatZodValidationError, formatValidationPath, truncateError, errorClassOf } from "./core/tool-errors.js";
export type { WorkerErrorClass } from "./core/tool-errors.js";
export { webFetchToolSpec, htmlToText, type WebFetchConfig, createWebSearchTool, type WebSearchConfig, createSearxngSearchBackend, probeSearchBackend, type SearxngBackendOptions, createWebFetchSummarizer, WEBFETCH_SUMMARY_MAX_CONTENT, WEBFETCH_SUMMARY_GUIDELINES, } from "./tools/web.js";
export { compileHostFloor, isLoopbackHost, type HostFloor, type HostFloorDeclaration, type HostFloorPosture, type HostFloorReach } from "./core/host-floor.js";
export { hostOfUrl, HOST_UNREADABLE_SENTENCE, type HostReading, type HostUnreadableReason } from "./core/host-target.js";
export { createTodoWriteTool } from "./tools/todo.js";
export { SHARED_ARTIFACT_READS_SETTINGS, SETTING_NOT_APPLIED_REASONS, resolveSharedArtifactReads, type SharedArtifactReadsSetting, type SharedArtifactReadsLayers, type SharedArtifactReadsDecidedBy, type SettingNotAppliedReason, type SettingNotApplied, type ResolvedSharedArtifactReads, } from "./core/shared-artifact-reads.js";
export { ARTIFACT_ACTIONS, ARTIFACT_PLANES, ARTIFACT_COMMIT_CERTAINTIES, ARTIFACT_COMMIT_THROW_OUTCOME, ARTIFACT_PUBLISH_CONTEXTS, ARTIFACT_LIST_SCOPES, ARTIFACT_PLANE_CONTENT_ORIGIN, ARTIFACT_ACTION_HOST_METHOD, ARTIFACT_ACTION_CONCURRENCY_SAFE, ARTIFACT_HOST_FAILURE_CODES, ARTIFACT_FAILURE_RESULT_CODE, ARTIFACT_HOST_ERROR_CODE, ARTIFACT_OWNERSHIP_WORDS, readArtifactHostCapabilities, type ArtifactHostOwnership, type ArtifactCallBinding, type ArtifactAction, type ArtifactPlane, type ArtifactCommitCertainty, type ArtifactPublishContext, type ArtifactListScope, type ArtifactHostFailureCode, type ArtifactResultCode, type ArtifactHost, type ArtifactHostCapabilities, type ArtifactHostCapabilitiesVerdict, type ArtifactCallContext, type ArtifactFileContent, type ArtifactPublishRequest, type ArtifactPublishOutcome, type ArtifactConflictSnapshot, type ArtifactListOutcome, type ArtifactReadOutcome, type ArtifactFilesOutcome, type ArtifactFileOutcome, type ArtifactRef, type ArtifactListRow, } from "./core/artifact-host.js";
export { createArtifactTool, artifactAttemptId, normalizePublishedPath, mediaTypeOf, type ArtifactToolOptions, type ArtifactLocalRead } from "./tools/artifact/artifact-tool.js";
export { localArtifactStub, LocalArtifactStub, EVAL_STUB_URL_PREFIX, LOCAL_STUB_MAX_FILE_BYTES, LOCAL_STUB_MAX_TOTAL_BYTES, type LocalArtifactStubOptions } from "./tools/artifact/local-stub.js";
export { ARTIFACT_CONFORMANCE_VECTORS, artifactConformanceVectors, runArtifactConformance, type ArtifactConformanceWho, type ArtifactConformanceHooks, type ArtifactConformanceOptions, type ArtifactConformanceStatus, type ArtifactConformanceVector, type ArtifactConformanceResult, type ArtifactConformanceReport, } from "./tools/artifact/conformance.js";
export { createTaskListTools, createMemoryTaskListStore, assertJsonMetadata, compareTaskIds, type TaskListItem, type TaskListStore } from "./tools/task-list.js";
export { TASK_LIST_ITEM_ROW_SHAPE, TASK_LIST_ROW_MALFORMED_CODE, TASK_LIST_STATUSES, TaskListStoreError, readStoredTaskListItem, listStoredTaskListEntry, admitTaskListItem, type TaskListEntry, type DamagedTaskListItem, } from "./tools/task-list.js";
export { taskListStoreContract, type TaskListStoreContractHooks } from "./core/store-contracts/task-list-store-contract.js";
export { ROW_EXITS, type RowExit, type RowAnswer, type RowContext, type RowCorrupt, type RowVerdict, type DamagedRowVerdict, type RowShapeReader } from "./core/row-shape.js";
export { assembleCodeTools, type CodeToolsConfig, CODE_ROLE } from "./scenarios/full-body.js";
export { TOOL_MODEL_GATE_CLASSES, isModelGatedForClass, type ToolModelGateRule } from "./core/tool-model-gate.js";
export { capAggregateToolResults, AGGREGATE_TOOL_RESULT_BUDGET_CHARS, type AggregateBudgetOptions, } from "./core/tool-result-budget.js";
export { isMediaBlock, mediaBlockDescriptor, type MediaDescriptor } from "./core/media-byte-cap.js";
export { createAskUserQuestionTool, createDurableQuestionPolicy, QUESTION_AWAITS_RESUME, isQuestionUnavailable, type OnQuestionOutcome, type QuestionUnavailable, type OnQuestion, type AskQuestion, type AskQuestionOption, type AskQuestionRequest, type QuestionAnswer, type QuestionAnswerItem, type QuestionDeclined, type QuestionResponse, type AskQuestionCardDetails, type AskUserQuestionToolOptions, type AskAnswerContinuationSource, type SyntheticContinuationReason, ASK_USER_QUESTION_TOOL_NAME, } from "./core/ask-question.js";
export { createLspTool, gitCheckIgnoreFilter, LSP_OPERATIONS, LSP_FAILURE_BRAND, brandLspFailure, lspFailureOf, SharedAbortScope, settleOnAbort, type LspNoneReason, type LspOperation, type LspServerManager, type LspSession, type LspResult, type LspLocation, type LspSymbolInfo, type LspRequestParams, type LspToolOptions, type LspTransport, type LspReadText, } from "./core/lsp.js";
export { buildRequest, parseResult, callHierarchyMethod, pathToUri } from "./core/lsp-protocol.js";
export { TransportLspSession, type SessionWarmup } from "./core/lsp-session.js";
export { LspDiagnosticsRegistry, formatDiagnosticsBlock, formatDiagnosticsSummary, type LspDiagnostic, type LspFileDiagnostics, } from "./core/lsp-diagnostics.js";
export { NodeLspManager, DEFAULT_LSP_SERVERS, languageFor, defaultLspSpawn, type NodeLspManagerOptions, type LspSpawn, } from "./engine/lsp/node-lsp-manager.js";
export { StdioLspTransport, type LspChildProcess } from "./engine/lsp/stdio-lsp-transport.js";
export { encodeFrame, createFrameDecoder } from "./engine/lsp/frame-decoder.js";
export { resolveModel, resolveTaskModel, parseModelMention, expandTiers, catalogOfDeps, tierAliasVia, DEFAULT_TIER_ORDER, CC_MODEL_TIER_ALIASES, ROLE_TIER_DEFAULTS, MODEL_ROLES, type ModelRole, type RoleSpec, type ModelRoles, type ResolvedRole, type ModelMention, } from "./core/roles.js";
export { modelOriginOf } from "./core/model-receipt.js";
export { selectModel, selectModelOrThrow, type ModelCriteria, type ModelTier } from "./core/select-model.js";
export { BrainError, classifyHttp, isProviderEchoShape, PROVIDER_ECHO_SHAPE, PROXY_TUNNEL_REFUSED, type BrainErrorCode } from "./brain/errors.js";
export { isEngineCodeShape } from "./core/thrown-value.js";
export { PROVIDER_CONDITIONS, PROVIDER_CONDITION_SOURCES, type ProviderCondition, type ProviderConditionSource } from "./brain/provider-dialect.js";
export { looksDegenerate, inspectDegenerate, trimDegenerateTail } from "./brain/repetition.js";
export type { RepetitionEvent, RepetitionInspection } from "./brain/repetition.js";
export { computeCostMicroUsd, isModelPriced, modelCostToPricing, type ModelPricing, type TokenCounts, } from "./core/pricing.js";
export { cacheFamilyOf, promptTokensOf, uncachedInputTokensOf, type CacheFamily } from "./core/runner/usage-accounting.js";
export { emitTrace, isKnownTraceEvent, TRACE_EVENT_KINDS, type PromptManifestIdentity, type PromptManifestSection, type PromptManifestSelectors, type ToolDisclosureManifest, type TraceEvent, type TraceRecord, type TracerHook } from "./core/trace.js";
export { OPEN_FACE, type OpenFaceSubject } from "./core/contract-faces.js";
export { openFaceContract, type OpenFaceAudience, type OpenFaceConsumer, type OpenFaceContractHooks, type OpenFaceOrigin, type OpenFaceReading, } from "./core/engine-contracts/open-face-contract.js";
export { createSqlTool, validateReadOnlySql, type SqlToolOptions } from "./tools/sql.js";
export { runWithVerification, resumeWithVerification, verifyCompleted, runDeveloperTask, VERIFICATION_PROMPT, STATIC_VERIFICATION_PROMPT, VerdictSchema, type Verdict, type VerifyConfig, type UnverifiedReason, type VerificationOutcome, type VerificationResult, type DeveloperTaskConfig, } from "./agents/verify.js";
export { runRepairLoop, terminalForTier, repairBundleFromCheckpoint, isolationPermitsAutoAccept, type OracleTier, type RepairTerminal, type OracleResult, type RepairOracle, type RepairBundle, type RepairLoopConfig, type RepairResult, } from "./agents/repair-loop.js";
export { assertOracleIsolation, type GraderEnv, type OracleIsolationVerdict, type AssertOracleIsolationOptions, } from "./core/oracle-isolation.js";
export { decideAutoPromote, deriveTripwire, FROZEN_DENYLIST_FLOOR, type AutoPromoteTerminal, type AutoPromoteInputs, type PromotedRecord, type TripwireResult, } from "./core/auto-promote.js";
export { runCascade, resumeCascade, type CascadeRung, type CascadeConfig, type CascadeAttempt, type CascadeRunResult, type GateVerdict, } from "./agents/cascade.js";
export { pgQuery, mysqlQuery, sqliteQuery } from "./tools/sql-adapters.js";
export { materializeMcpTools, MCP_PREFIX, type MaterializedMcp, type McpServerStatus, type McpRefreshResult, type McpReconnectResult, type McpListingIncomplete } from "./core/mcp.js";
export { pdfModelCapabilitiesOf, type PdfModelCapabilities } from "./tools/fs/pdf.js";
export { renderMcpPromptForModel, type McpHostRead, type McpPromptEntry, type McpPromptAnswer, type McpResourceEntry, type McpResourceTemplateEntry, type McpResourceContents, type McpContentBlock } from "./core/mcp-host-read.js";
export { mcpStartupTimeoutMs } from "./core/mcp.js";
export { judgeSessionMetaKey, MCP_SESSION_META_KEY_MAX_CHARS, type SessionMetaKeyReading } from "./core/mcp-call-meta.js";
export { McpConnectionPool, type ForgetMcpFailureRequest, type ForgetMcpFailureResult } from "./core/mcp-connection-pool.js";
export { probeMcpServers, type McpProbeResult } from "./core/mcp-probe.js";
export { judgeMcpNames, describeMcpNameConflict, type McpNameConflict, type McpNameSetServer, type McpNameVerdict } from "./core/mcp-name-judge.js";
export { MCP_FAILURE_KINDS, MCP_DELIVERY_VERDICTS, MCP_LIVENESS_STATES, MCP_AUTHORIZATION_REASONS, classifyMcpFailure, owesAuthorization, type McpFailure, type McpFailureFields, type McpFailureKind, type McpDelivered, type McpLivenessState, type McpServerLiveness, type McpAuthorization, type McpAuthorizationReason } from "./core/mcp-failure.js";
export { MCP_INJECTION_DROP_REASONS, MCP_INJECTION_DROP_TEXT, mcpInjectionDroppedNotice, type McpInjectionDropReason, type McpInjectionDropFacts } from "./core/mcp-injection-drop.js";
export { ENTRIES_NOT_APPLIED_KINDS, type EntriesNotAppliedKind } from "./core/entries-not-applied.js";
export { askUnresolvableNotice, type AskUnresolvableFacts } from "./core/ask-unresolvable-notice.js";
export { ASK_UNRESOLVABLE_CAUSES, type AskUnresolvableCause } from "./core/ask-unresolvable-notice.js";
export { WORKFLOW_PARK_GAPS, isWorkflowParkGap, type WorkflowParkGap } from "./core/ask-unresolvable-notice.js";
export { TOOL_GATE_PHASES, type ToolGatePhase } from "./core/tool-gate-phase.js";
export { BRAIN_STATUS_SEATS } from "./core/tool-gate-phase.js";
export type { ApprovalParkNotResumable } from "./core/park-resumability.js";
export { APPROVAL_REMEDY_KINDS, type ApprovalRemedy, type ApprovalRemedyKind } from "./core/ask-origin.js";
export { USER_INPUT_UNDRAINED_CAUSES, type UserInputUndrainedCause, USER_INPUT_UNDRAINED_FAMILIES } from "./core/engine-notice.js";
export { setDefaultEngineNoticeSeat } from "./core/engine-notice.js";
export { STEER_REPLAY_FACETS, type SteerReplayFacet } from "./core/steer-replay.js";
export { TOOL_TURN_INCOMPLETE_CAUSES, type ToolTurnIncompleteCause } from "./internal/llm.js";
export { MODEL_OUTPUT_INVALID_CAUSES, type ModelOutputInvalidCause, type ModelOutputInvalid, type OutputLimit } from "./internal/llm.js";
export { DURABLE_MANDATE_SOURCES } from "./core/tool-policy.js";
export { TERMINAL_CAUSE_IS_REPLAYABLE, type TerminalFailureDetail, type CodedFailureDetail, type CodedFailureDetailValue, type TerminalCompletedDetail, type TerminalBlockedDetail, PROMPT_BLOCK_CAUSES, type PromptBlockCause, isPromptBlockCause, REFUSED_REQUEST_PARTS, type RefusedRequestPart } from "./core/terminal-cause.js";
export { RESERVED_AGENT_NAMES } from "./agents/subagent.js";
export { WORKFLOW_SIZE_GUIDELINE_AGENT_CAPS } from "./orchestration/workflow-size-guideline.js";
export { ENGINE_AUTHORITY_ENVELOPE_TAGS } from "./core/untrusted-text.js";
export { materializeA2aTools, A2aRpcError, A2A_CALL_REFUSAL_CODES, type MaterializedA2a, type A2aPeerStatus, type A2aCardDrift, type A2aRefreshResult, type A2aToolAxis } from "./core/a2a.js";
export type { A2aInsidePeer, MountedPeersSeat } from "./core/a2a-bound-grant.js";
export type { AskDestination } from "./core/mcp-server-spec.js";
export { PROTOCOL_TABLE, MCP_NAMESPACE, A2A_NAMESPACE, protocolOf, type ProtocolNamespace, type ProtocolId } from "@sema-agent/primitives";
export { InMemorySessionPolicyStore, SessionPolicyError, loosenReasons, normalizeRules, judgeSessionRulesWrite, readSessionRulesShape, sessionRulesPrincipalOf, conjoinSessionRuleRows, type SessionRuleContent, SESSION_RULES_GRAMMAR, compileSessionRuleBucket, unreadableDenyEntries, readRuleGrammarStamp, rewriteSessionRules, type SessionRulesRewrite, type SessionRulesRewriteRefusal, type SessionRulesRewriteWayOut, type SessionRuleEntryRef, type SessionRuleReread, type SessionRuleGrammarRefusal, type SessionRuleRereadRefusal, type SessionRuleRereadWay, type SessionRuleLoosenRefusal, type SessionRulesRereadPosture, type SessionRulesInGrammar, type SessionPolicyStoreOptions, type SessionRuleShapeRefusal, type SessionRuleEntryRefusal, type SessionRuleEntryField, type SessionPolicyStore, type SessionPermissionRules, type StoredSessionRules, type SessionRulesRecord, type PutRulesOptions, } from "./core/session-policy-store.js";
export { SAFETY_MERGE_CONFORMANCE_CORPUS, type SafetyMergeVector } from "./core/safety-merge-corpus.js";
export { SAFETY_AXIS_VOCABULARY } from "./core/safety-axis-vocab.js";
export { createSessionRulePolicy } from "./core/runner/session-rule-policy.js";
export { LOCKED_KEY_REGISTRY, resolveLockedKeys, type LockedKey, type LockedConfig } from "./core/locked-config.js";
export { judgeMcpEntryDeclarations, type McpEntryJudgment, judgeA2aEntryDeclarations, type A2aEntryJudgment } from "./core/locked-config.js";
export { judgeAgentDefinitionDeclarations, type AgentDefinitionJudgment } from "./agents/agent-definition.js";
export { BUILTIN_COMPLIANCE_DENIES, COMPLIANCE_CAPABILITIES, WEB_FETCH_TOOL_NAME, complianceCallDenial, resolveComplianceDenies, type ComplianceCapability, type CompliancePosture, type ComplianceProfile, } from "./core/compliance.js";
export { admitMemoryScopes, foldAdmissionFreeze, type DeploymentMemoryScopeRequest, type OwnOrgAdmissionVerdict, type MemoryAdmissionInput, type MemoryAdmissionOutcome, type MemoryAdmissionVerdict, type MemoryScopeAdmission, type MemoryScopeAdmissionInput, type MemoryScopeOrigin, type MemoryScopeRequest, } from "./core/memory-admission.js";
export { assertRetentionCapability, readRetentionDeclaration, RETENTION_CASCADE, RETENTION_SESSION_TREE_STEPS, type ManagedRetentionCapability, type RetentionCascadeDomain, type RetentionCascadeLeg, type RetentionCascadeRow, type RetentionCascadeStores, type RetentionDeclaration, type RetentionDeclaring, type RetentionPolicy, type RetentionReceipt, } from "./core/retention.js";
export { GOVERNANCE_CODES, governanceRetryClass, TOOL_DECLARATION_CODES, type GovernanceCode, type GovernanceRetryClass, type ToolDeclarationCode } from "./core/governance-codes.js";
export { RESUME_AT_REFUSAL_CLASSES, RESUME_AT_REFUSAL_CLASS, isResumeAtAnchorMissing, type ResumeAtRefusalClass } from "./core/config-refusal-codes.js";
export { RESUME_AT_OUTSIDE_WINDOW_REASONS, RESUME_AT_REMEDY_KINDS, type ResumeAtOutsideWindowDetail, type ResumeAtOutsideWindowReason, type ResumeAtRemedy, type ResumeAtRemedyKind } from "./core/resume-at-refusal.js";
export { CONFIG_REFUSAL_INPUTS, type ConfigRefusalInput, isConfigRefusalInput, configRefusalInputOf } from "./core/config-refusal-input.js";
export { CONFIG_REFUSAL_CODES, type ConfigRefusalCode } from "./core/config-refusal-codes.js";
export { REWIND_REFUSAL_CODES, type RewindRefusalCode } from "./core/rewind-refusal-codes.js";
export { NOTICE_AUDIENCE, noticeAudienceOf, ENGINE_NOTICE_CODES, NOTICE_MINTER, NOTICE_ATTENTION, noticeAttentionOf, type EngineNoticeCode, type NoticeAudience, type NoticeMinter, type NoticeAttention } from "./core/governance-codes.js";
export { NOTICE_CODE_LINEAGE, type NoticeCodeChange, type NoticeCodeBranch } from "./core/governance-codes.js";
export { TtlSessionStore, type TtlSessionStoreOptions, type EvictPolicy } from "./core/session-store.js";
export { reconcileInterruptedSession, findOrphanToolCalls, type OrphanToolCall, type ReconcileReport, } from "./core/session-reconcile.js";
export { StoredSession, InMemorySessionRepo, InMemorySessionStorage, BaseSessionStorage, leafIdAfterEntry, validateEntriesForImport, StreamingImportValidator, boundedTail, SessionError, isSessionConflict, isRowUnreadable, CORRUPT_SESSION_FORMS, CORRUPT_SESSION_WAYS, CORRUPT_SESSION_WAYS_OUT, CORRUPT_SESSION_DELETE_DOORS, corruptSessionWayOutSentence, isCorruptSessionForm, corruptSessionFormOf, type CorruptSessionDeleteDoor, type CorruptSessionDetail, type CorruptSessionForm, type CorruptSessionWay, type CorruptSessionWayOut, hasSessionFork, uuidv7, readSessionListQuery, SESSION_LIST_LIMITS, type Session, type SessionStore, type AcquiredSession, type SessionStoreSummary, type SessionListQuery, type SessionListQueryReading, type SessionStorage, type SessionRepo, type SessionRepoRowCells, type SessionRow, type SessionMetadata, type SessionTreeEntry, type SessionWriteOptions, type SessionPlacement, type SessionPlacementRecord, type PlacedSessionRow, type SessionHead, type SessionLogTransfer, type SessionLogExportOptions, type SessionLogReplace, type SessionLogCommit, type SessionLogCommitView, type SessionStoreHooks, type SessionRowExpectation, type SessionRowRead, type SessionLogMark, } from "./core/session.js";
export { warmResume } from "./core/warm-resume.js";
export { StubExecutionEnv } from "./core/stub-env.js";
export { NodeExecutionEnv, FileError, ExecutionError } from "./internal/harness.js";
export { ok, err } from "./internal/harness.js";
export { killProcessTree, signalProcessTree } from "./engine/execution-env/kill-tree.js";
export type { KillProcessTreeOptions } from "./engine/execution-env/kill-tree.js";
export { processGroupReading, type ProcessGroupReading } from "./core/process-table.js";
export { getShellConfig, isWslBashLauncher } from "./engine/execution-env/node-execution-env.js";
export { walkSymlinkChain, SYMLINK_CHAIN_MAX_HOPS, type SymlinkHopReader } from "./engine/execution-env/symlink-chain.js";
export { isSecretEnvKey, scrubSecretEnv } from "./core/secret-env.js";
export type { SecretEnvFinding, SecretEnvFindingKind } from "./core/secret-env.js";
export { declareWithheldEnv, hostChildEnv, hostChildEnvProblem, inheritedHostEnv, inheritEnvPolicyProblem, type HostChildEnv, type HostChildInheritance, type InheritEnvPolicy, type WithheldEnvDeclaration } from "./core/secret-env.js";
export { judgeWithheldEnv, WITHHELD_ENV_ANSWERS, type WithheldEnvJudgment, type WithheldEnvAnswer } from "./core/secret-env.js";
export { credentialValueProblemOf } from "./core/secret-env.js";
export { declarePeerHeldEnv, PEER_HELD_ENV_NOT_TAKEN_REASONS, type PeerHeldEnvAudience, type PeerHeldEnvDeclaration, type PeerHeldEnvNameNotTaken, type PeerHeldEnvNotTakenReason, type PeerHeldEnvReceipt, } from "./core/secret-env.js";
export { isBlankCredential } from "./core/secret-env.js";
export { isNamespaceCredentialName } from "./core/secret-env.js";
export { credentialHeaderValues, isCredentialHeaderName, isSchemedCredentialHeader } from "./core/secret-env.js";
export { ENGINE_CAPABILITIES, type EngineCapability } from "./core/engine-capabilities.js";
export { fastModeReadingOf, FAST_MODE_STATES, FAST_MODE_UNAVAILABLE_REASONS, FAST_MODE_COOLDOWN_REASONS, FAST_MODE_OVERAGE_CAUSES, type FastModeReading, type FastModeState, type FastModeUnavailableReason, type FastModeCooldownReason, type FastModeOverageCause } from "./brain/fast-mode.js";
export { MAX_EXEC_OUTPUT_BYTES, RollingTailBuffer, markTruncated } from "./core/exec-output-tail.js";
export { physicalPathOf, physicalPathOfExisting } from "./core/physical-path.js";
export type { ExecutionEnv, FileInfo, Result, FileErrorCode, ExecutionErrorCode, WriteExpectation, WriteReceipt, SymlinkChain, BoundFileObject } from "./internal/harness.js";
export type { ExecResult } from "./internal/harness.js";
export type { ReadFloor } from "./internal/harness.js";
export { confineShellStart } from "./core/shell-confinement.js";
export type { TaskSandboxSettings, TaskSandboxFilesystem, TaskSandboxNetwork, TaskSandboxCredentials, TaskSandboxCredentialFile, TaskSandboxCredentialEnvVar, CommandSandboxBoundary, CommandSandboxMechanism, CommandSandboxInstruction, ConfinementRefusal, } from "./core/command-sandbox.js";
export type { ExecutionEnvCapabilities } from "./internal/harness.js";
export { RemoteExecutionError, hasDestroy, isRemoteExecutionEnv, isSuspendable, isIsolated, canonicalPathIsAuthoritative, pathsAreHostLocal, keepsReadFloor, providesCommandSandbox, missingRestoreSurface, isRetryableRemoteErrorCode, RETRYABLE_REMOTE_ERROR_CODES, EXECUTION_ENV_PURPOSES, ENV_PURPOSE_UNSUPPORTED, WORKSPACE_SYNC_REASONS, hasWorkspaceSync, } from "./core/remote-env.js";
export { withRetry } from "./core/with-retry.js";
export type { RetryPolicy, RetryResult } from "./core/with-retry.js";
export type { RemoteExecutionEnv, WorkspaceHandle, SnapshotId, SessionToken, OutputChunk, ExecStreamOptions, RemoteConnectConfig, VmLifecycleOptions, SecretRef, RemoteExecutionErrorCode, ExecutionEnvFactory, ExecutionEnvFactoryContext, ExecutionEnvPurpose, PlacementTarget, RepositoryWorkspace, WorkspaceSyncReason, WorkspaceSyncOptions, WorkspaceSyncAnswer, } from "./core/remote-env.js";
export { addWorktree, judgeManagedTree, pruneWorktrees, WORKTREE_PARENT, type AddWorktreeOptions, type ManagedTreeVerdict, type TreeKeptReason, } from "./core/git-worktree-env.js";
export { listOrphanSessionTrees, probeWorktreeCapability, readSessionCheckout, releaseOrphanSessionTree, releaseSessionCheckout, WORKTREE_INCAPABLE_REASONS, type OrphanSessionTree, type ReleasedTree, type SessionCheckoutRead, type SessionCheckoutRecord, type WorkspaceDeclaration, type WorkspaceSourceDeclaration, type WorktreeCapability, type WorktreeIncapableReason, } from "./core/session-checkout.js";
export { runExecGate } from "./core/exec-gate.js";
export type { ExecStep, ExecStepResult, ExecGateResult, ExecGateOptions } from "./core/exec-gate.js";
export { sanitizeUntrustedText, delimitUntrusted, inlineUntrusted, isMintableProbeReason } from "./core/untrusted-text.js";
export { callerKey, callerText } from "./core/caller-text.js";
export { mintReminderMark, isValidReminderMark, openSystemReminder, mintSystemReminder, reminderMarkDeclaration } from "./core/reminder-mint.js";
export { deriveInvariants, checkInvariants } from "./core/property-harness.js";
export type { InvariantKind, FunctionContract, Invariant, InvariantViolation, CheckResult, } from "./core/property-harness.js";
export { bashReversibilityProbe, BASH_READONLY_DEFAULT_ALLOW, parseLeadingCommandName, classifyCompoundReadonly, MAX_EDIT_BYTES } from "./tools/fs/index.js";
export { classifyCompoundReadonlyDetailed, formatOutOfRootReadApprovalOption, type BashReadonlyRootBoundary, type CompoundReadonlyVerdict, } from "./tools/fs/index.js";
export { resolveBashTimeoutCaps } from "./tools/fs/index.js";
export { shouldAutoBackgroundCommand } from "./tools/fs/index.js";
export { judgeBashTimeoutCaps, type BashTimeoutCapsJudgment, type DiscardedBashTimeout, type BashTimeoutKnob } from "./tools/fs/index.js";
export { READ_FACE_DEFAULT_DENY_ENTRIES, READ_FACE_BUILTIN_DENY_TABLE, READ_DENY_BUILTIN_TIERS, READ_DENY_DEFAULT_TIERS, resolveReadDenyBuiltins, compileReadDeny, READ_DENY_HOME_WORD, readDenyPatternRun, readDenyRowAnchor, readDenyHomesOf, compileWriteDeny, DENY_FACES, type DenyFace, type PathRuleDenyRow, type WriteDenyMatcher, type ReadDenyEntry, type ReadDenyMatcher, type NormalizedReadDenyEntry, type ReadDenyBuiltinTier, type ReadDenyBuiltinRow, type ReadDenyBuiltinConfig, } from "./tools/fs/index.js";
export { placeReadDenyAtHome } from "./tools/fs/read-deny-home.js";
export { deploymentFaceClampNotice, FACE_CLAMP_CAUSES, type FaceClampCause, resolveContainmentFace, type ContainmentFace, type ContainmentFaceInputs, type ContainmentFaceKind, type ContainmentFaceLayer, } from "./tools/fs/index.js";
export { WRITE_PROTECTED_DEFAULT_TABLE, resolveWriteProtectedTable, compileWriteProtection, type WriteProtectedEntry, type WriteProtectedRow, type WriteProtectedKind, type WriteProtectedHit, type WriteProtectionMatcher, type WriteProtectionVerdict, type WriteProtectionViewAbsence, type WriteProtectionJudgeContext, type WriteProtectionCompileOptions, type WriteProtectionCheck, WRITE_PROTECTION_TARGET_VIEWS, type WriteProtectionTargetView, type WriteProtectionMount, } from "./core/write-protect.js";
export { InMemoryToolResultStore, OFFLOAD_TOOL_NAME, DEFAULT_TOOL_RESULT_THRESHOLD_CHARS, assertSafeToolResultRef, buildToolResultRef, toolResultContentSegment, MAX_MINTED_TOOL_RESULT_REF_CHARS, type ToolResultProvenance, assertToolResultProvenanceMatch, normalizeToolResultProvenance, toolResultProvenanceOf, type ToolResultReadRefusal, ToolResultRefConflictError, TOOL_RESULT_REF_CONFLICT_CODE, ToolResultBytesOverLimitError, TOOL_RESULT_BYTES_OVER_LIMIT_CODE, type ToolResultStore, type ToolResultSeat, rekeyToolResultOwner, type ToolResultRekeyVerdict, type ToolResultSlice, type ToolResultDeletionReport, type ToolResultSessionListing, type ToolResultListedEntry, } from "./core/tool-result-store.js";
export { offloadedDetailOf, type OffloadedDetail } from "@sema-agent/primitives";
export { applyRecordedEdit, type RecordedEdit } from "@sema-agent/primitives";
export { type OwnerIdentity, ownerIdentityOf, type IdentityReadVerdict, identityReadVerdict, encodePrincipalColumn, decodePrincipalColumn } from "./core/owner-identity.js";
export { InMemoryCheckpointStore, CheckpointError, CHECKPOINT_ERROR_CODES, isCheckpointErrorCode, type CheckpointErrorCode, SPAWN_RESUME_REFUSAL_CODES, type SpawnResumeRefusalCode, mintCheckpointId, mintCheckpointToken, checkpointVersionOf, MAX_SUPPORTED_CHECKPOINT_VERSION, debitLedger, remainingBudgetMicroUsd, remainingTokens, winnerFromOutcome, validatePendingSteer, readPendingSteerQueue, appendPendingSteer, judgeParkedSteerRepeat, // #2705 — the queue's one identity judgment (append and the wake entrance read it)
MAX_PENDING_STEER_CHARS, PENDING_STEER_QUEUE_BYTE_BUDGET_BYTES, PENDING_STEER_FROZEN_FIELDS, ACTOR_ASSERTION_FROZEN_FIELDS, MAX_ACTOR_FIELD_CHARS, MAX_STEER_INPUT_ID_CHARS, type ActorAssertion, type PendingSteerEntry, type PendingSteerInput, type PendingSteerReply, riskSeverity, buildRiskDescriptor, summarizeCheckpoint, isUnreadableCheckpointSummary, type CheckpointRowVerdict, type RiskDescriptor, type ProbeCause, type ProbeCauseOperands, type CheckpointStore, type CheckpointSummary, type Checkpoint, type CheckpointToken, type CheckpointGate, type CheckpointState, type SerializedCheckpointState, type CheckpointFaultMode, type PendingAction, type ResumeOutcome, type ResolvedOutcome, type ReopenReason, type ResolveExpectation, type TerminalClaimIntent, type TerminalClaimOutcome, type CheckpointWriteOptions, type SafetyAxis, type RealApprovalGateBit, type ResourceLedger, RESOURCE_LIMIT_REASONS, type ResourceLimitReason, PLATFORM_LIMIT_REASONS, type PlatformLimitReason, type CheckpointRow, realApprovalOrgFact, resolveCheckpointStore, checkpointStoreIncomplete, } from "./core/checkpoint-store.js";
export { MAX_CHECKPOINT_ID_CHARS, trustedCheckpointId, readGateIdentity, CHECKPOINT_ID_MISSING, isCheckpointIdMissing, type CheckpointIdMissing, type GateIdentity, } from "./core/checkpoint-identity.js";
export { REOPEN_REASONS, RESUME_STARTUP_CAUSES, resumeStartupCauseOf, reopenReasonOf, resumeAgainMayCure, type ResumeStartupCause } from "./core/resume-startup-cause.js";
export { EXECUTION_OUTCOME_RECORD_WORDS, EXECUTION_RECORD_LEAVES_ROW_UNRECORDED, type ExecutionOutcomeRecordWord, type ExecutionRecordRowFacts, type ExecutionVerdict, ExecutionOutcomeConflictError, checkpointExecutionRecorded, executionRecordDisposition, sameExecutionRecord, executionVerdict, } from "./core/checkpoint-execution-record.js";
export { PAUSE_REGISTRY, type GateKind, type PendingKind, type ResumeGate, isGateKind, resumeGateMatches, type CheckpointPause, type CheckpointFields, pauseOf, checkpointFrom, facetOf } from "./core/pause-registry.js";
export { REQUIREMENT_WORDS, type RequirementWord, checkpointRequirementsFor, stampCheckpointRequirements } from "./core/checkpoint-requirements.js";
export { judgeCheckpointRow, checkpointRowRefusal, UNREADABLE_ROW_VERDICT } from "./core/checkpoint-row-verdict.js";
export { InMemoryUsageWindowStore, GLOBAL_USAGE_KEY, EMPTY_USAGE_WINDOW_RECORD, chargeUsageRecord, readUsageRecord, usageRetryAfterMs, resolveUsageWindows, type UsageWindow, type UsageWindowStore, type UsageWindowReading, type UsageWindowRecord, type UsageSlot, type UsageBucketRow, } from "./core/usage-window-store.js";
export { FileUsageWindowStore, type FileUsageWindowStoreOptions } from "./stores/file/usage-window-store.js";
export { ENV_LIFETIME_SUSPEND_MARGIN_MS, USAGE_WINDOW_REAP_MARGIN_MS } from "./core/runner/prepare-task.js";
export { InMemoryFileHistoryStore, boundaryPublishVerdict } from "./core/file-history-store.js";
export { FILE_HISTORY_ERROR_CODES, FileHistoryStoreError } from "./core/file-history-store.js";
export { fileHistoryTooLarge, FILE_HISTORY_LIMIT_SOURCES, type FileHistoryLimitSource, type FileHistorySizeLimit } from "./core/file-history-store.js";
export { caughtFault, type FileHistoryFault } from "./core/file-history-store.js";
export { captureFileBackupViaEnv, applyFileRestoreViaEnv } from "./core/file-history-store.js";
export { modeProvenDifferent as fileHistoryModeProvenDifferent } from "./core/file-history-store.js";
export { countRestoreLineDiff, FILE_HISTORY_DIFF_LINE_BUDGET } from "./core/file-history-store.js";
export { bytesAreBinary } from "./core/file-history-store.js";
export { worldStillMatchesMint, annulProofFailure } from "./core/file-history-store.js";
export type { FileHistoryMintProof } from "./core/file-history-store.js";
export { FILE_HISTORY_REFUSAL_CLASSES } from "./core/file-history-store.js";
export type { FileHistoryRefusalClass } from "./core/file-history-store.js";
export type { RewindFilesRequest, RewindFilesResult } from "./core/file-history-store.js";
export type { CompactSessionRequest, CompactSessionResult } from "./core/auto-compaction.js";
export type { RewindConversationRequest, RewindConversationResult } from "./core/rewind-conversation.js";
export { CHANGES_CONTENT_MAX_BYTES, CHANGES_CONTENT_BUDGET_BYTES, CHANGES_CONTENT_OF_MAX, CHANGES_CHECKPOINTS_PAGE_MAX, CHANGES_ROWS_MAX, CHANGES_REASONS, CHANGES_UNAVAILABLE_REASONS } from "./core/session-changes.js";
export type { SessionChangesRequest, SessionChanges, ChangesSource, ChangeRow, ChangesReason, ChangesBefore, ChangesAfter, ChangesUnavailable, ChangesItem, ChangesStoreFault } from "./core/session-changes.js";
export { COMPACTION_FAILURE_CAUSES } from "./core/auto-compaction.js";
export type { CompactionFailureCause } from "./core/auto-compaction.js";
export { trackKeyOf as fileHistoryTrackKeyOf, resolveTrackKey as fileHistoryResolveTrackKey } from "./core/file-history-store.js";
export { describeTrackKey as fileHistoryDescribeTrackKey, fileHistoryExportDigest, validateFileHistoryExport } from "./core/file-history-store.js";
export { resolveTrackedFile as fileHistoryResolveTrackedFile, placeProvenDifferent as fileHistoryPlaceProvenDifferent, trackKeyForEdit as fileHistoryTrackKeyForEdit, trackKeyForAnnul as fileHistoryTrackKeyForAnnul, fileHistoryEntryTravels, fileHistoryParentIdentTravels } from "./core/file-history-store.js";
export type { FileHistoryRewindFile, FileHistoryRestoreOptions } from "./core/file-history-store.js";
export { FILE_HISTORY_LEFT_AS_IS_CLASSES, fileHistoryEntryFrozen, listFrozenFileHistoryEntries } from "./core/file-history-store.js";
export type { FileHistoryLeftAsIsClass, FileHistoryLeftAsIsFile } from "./core/file-history-store.js";
export { fileHistoryTargetOf } from "./core/file-history-store.js";
export type { FileHistoryTarget, FileHistoryBoundaryEntry, FileHistoryBoundaryReadResult, FileHistoryBoundariesReadResult } from "./core/file-history-store.js";
export { FILE_HISTORY_UNREFERENCED_BLOB_GRACE_MS } from "./core/file-history-store.js";
export { fileHistoryBlobExchangeOf } from "./core/file-history-store.js";
export type { FileHistoryBlobExchange } from "./core/file-history-store.js";
export type { FileHistoryStore, FileHistoryResult, FileHistoryTrackResult, FileHistoryError, FileHistoryKeyFamily, FileHistoryTrackKeyDescriptor, FileHistoryRestoreResult, FileHistoryDiffStats, FileHistoryExport, FileHistoryExportResult, FileBackupCapture, FileRestoreTarget, FileRestoreApplyOptions, FileRestoreApplyOutcome, FileHistoryTrackKeyResolution } from "./core/file-history-store.js";
export type { InMemoryFileHistoryStoreOptions } from "./core/file-history-store.js";
export { DEFAULT_FILE_HISTORY_BOUNDARY_KEEP, resolveFileHistoryRetention, fileHistoryBoundariesToKeep } from "./core/file-history-retention.js";
export type { FileHistoryRetentionPolicy } from "./core/file-history-retention.js";
export { FileStorageBackend, FileSessionRepo, FileCheckpointStore, CHECKPOINT_LEDGER_EVENT_KINDS, readCheckpointLedger, FileToolResultStore, FileSessionPolicyStore, FileFileHistoryStore, FileWorkflowJournalStore, MAX_JOURNAL_RESULT_BYTES, oversizeJournalResult, resolveDataRoot, dataRootLocation, sanitizeScope, sanitizePathComponent, atomicWriteFile, writeThenLink, ensureDir, readJsonlRecords, AppendLog, setAppendLogDescriptorBudget, appendLogDescriptorStats, type AppendLogDescriptorStats, FileStoreLockError, type FileStoreLockErrorCode, readDataRootLocks, type LockReading, type LockHolder, type LockRemedy, type AnchorReading, FileLedgerDamagedError, type LedgerDamagedLine, inspectFileLedgers, setAsideLedgerDamage, type FileLedgerHealth, type FileLedgerName, type LedgerDamageSetAside, processFingerprint, isProcessLive, type ProcessFingerprint, declareDataRoot, type DataRootDeclaration, type FileStorageBackendOptions, type FileStorageCorruptReadInfo, type FileFileHistoryStoreOptions, type FileSessionRepoOptions, type FileCheckpointStoreOptions, type CheckpointLedgerEventKind, type CheckpointLedgerReading, type ReadCheckpointLedgerOptions, } from "./stores/file/index.js";
export { ANCHOR_DIR as PROCESS_ANCHOR_DIR } from "./stores/file/process-anchor.js";
export type { ToolFingerprintInput } from "./core/prefix-declaration.js";
export { maybeCompact, type MaybeCompactOptions, type CompactionPassStart, type CompactionRestoreAsk } from "./core/auto-compaction.js";
export type { MintedAttachmentFrame } from "./core/user-attachment.js";
export type { CompactionEffect } from "./core/frame-settlement.js";
export { brainToRuntime } from "./core/runtime.js";
export { createSensitivePathPolicy, RECOMMENDED_SENSITIVE_PATTERNS } from "./core/sensitive-path-policy.js";
export { createFsWriteGatePolicy, WRITE_EXEMPT_DIR_COVERS_ROOT_CODE, type FsWriteGatePolicyOptions } from "./core/fs-write-gate-policy.js";
export { RETIRED_TOOL_NAMES } from "@sema-agent/primitives";
export { judgeRuleToolName, RULE_TOOL_NAME_VERDICTS, type RuleToolNameVerdict } from "@sema-agent/primitives";
export { judgePolicyEntryName, type PolicyEntryNameReading } from "./core/tool-name-aliases.js";
export { retiredNameView, type RetiredNameView } from "./core/tool-name-aliases.js";
export { retiredToolNameAccount } from "./core/retired-host-table-account.js";
export { DEFAULT_SUBAGENT_TOOL_NAME } from "./agents/subagent.js";
export { renderTaskNotificationXml, RESUPPLIED_FRAME_PREAMBLE, taskNotificationDedupKey, isDelegatedAgentTerminal, isTerminalTaskNotification, TASK_NOTIFICATION_TERMINAL_STATUSES, // the terminal words that predicate reads, as a value: a host's own terminal check reads these, never a second list
type TaskNotificationTerminalStatus, SystemInjectionQueue, type TaskNotificationPayload, type TaskNotificationStatus, type ExternalNotificationInput, type SystemInjection, type SystemInjectionPriority, type NotificationInjectionOutcome, // the injector's outcome words (`parked_durably` = the session's durable box took the frame)
NOTIFICATION_INJECTION_OUTCOMES, // …and their value half + guard, so a host wiring its own uplink validates a reported outcome without duplicating the vocabulary
isNotificationInjectionOutcome, SYSTEM_INJECTION_PRIORITIES, isSystemInjectionPriority, steerPriorityOf, injectionLaneOf, type UserInputLane, AGENT_MESSAGE_TAG, renderAgentMessageFrame, type SemaProvenance, HANDBACK_STATES, type HandbackState, COMPACTION_KINDS, type CompactionKind, DISCARDED_DELIVERY_PATHS, PEER_TASK_FOLLOW_UPS, PEER_TASK_CANCEL_STATES, PEER_TASK_CLOCK_STATES, PEER_TASK_REMINDER_TARGETS, PEER_TASK_REMINDER_DISPOSITIONS, PEER_TASK_REMINDER_ROUTES, type PeerTaskNotification, type PeerTaskReminderFacet, type PeerTaskFollowUps, type PeerTaskCancelState, type PeerTaskClockState, type PeerTaskReminderTarget, type PeerTaskReminderDisposition, type PeerTaskReminderRoute, handbackStateOf, terminalFrameFacets, parksInSessionBox, } from "./core/task-notification.js";
export { TOOL_FAMILIES, TOOL_MOUNT_TAGS, TOOL_APPROVAL_CARDS, TOOL_PATH_ACCESSES, TOOL_PATH_BASES, TOOL_PATH_ABSENCES, TOOL_WIRE_NAME_MAX_CHARS, TOOL_CONTRACT_MAX_CHARS, TOOL_CARD_ID_MAX_CHARS, TOOL_KEY_MAX_CHARS, TOOL_KEYS_MAX, RENDER_HINT_MAX_CHARS, RENDER_HINT_ACTIVITY_MAX_CHARS, RENDER_HINT_MAX_LIST, type ToolFamily, type ToolMountTag, type ToolApprovalCard, type ToolPathAccess, type ToolPathBase, type ToolPathAbsence, type ToolPathTarget, type ToolCallPathTarget, type ToolRosterPathTarget, pathTargetSlotOnly, type ToolHostTarget, type ToolRuleFace, type ToolRenderHints, type ToolFaceDeclaration, type ToolCatalogEntry, } from "./core/tool-face.js";
export { describeToolCatalog, catalogEntriesNamed, catalogToolNames, catalogRuleFaceOf, pathTargetOf, pathTargetValue, protectivePathTargetOf, declaredPathTargetOf, BARE_REQUEST_CODE, isProtectedWrite, isDeclaredWrite, fileOpAccessOf, type ToolCallLike, pathConfinableWriteToolNames, persistenceCapableToolNames, persistenceCandidateToolNames, rosterCanPersistMemory, type PersistenceProbeTool, type PersistenceFacts, pathTargetingToolNames, compactableToolNames, budgetExemptToolNames, handBandEffects, engineCardTypes, HANDS_BAND_TAGS, MOUNT_TAG_IN_HANDS_BAND, } from "./core/tool-registry.js";
export { ToolRosterEntry, ToolRoster, ToolRosterDelta, ToolRosterRenderHints, ROSTER_SOURCES, type RosterSource, type ToolIdentity, toolIdentityOf, ROSTER_APPROVAL_BINDING, type RosterApprovalBinding, toolDeclarationDigestOf, mintCapabilityId, diffToolRoster, ruleFacesFromRoster, toolCallFaceOf, rosterToolName, ruleNamesOf, inputKeysOf, ruleFaceOfInstance, rosterMemberBoundProblem, TOOL_ROSTER_MAX_ENTRIES, type RosterBoundMembers, type RosterBoundCode, ToolRosterDeltaSeat, } from "./core/tool-roster.js";
export { type ToolCallFace } from "./core/tool-policy.js";
export { effectivePathTargetOf, pathTargetBaseOf, type ToolPathBases, type PathTargetReading, type CallTargetReading, type CallTargetView } from "./core/effective-path-target.js";
export type { JudgedRead, JudgedFile, JudgedReads, JudgedReadsUnavailable } from "./core/judged-read.js";
export { JUDGED_READS_UNAVAILABLE } from "./tools/fs/judged-reads.js";
export { type BoundPathRule, type PathRuleSpec } from "./core/path-rule-binding.js";
export { pathFamilyOf, isAbsoluteForFamily, pathIdentityOf, win32NamespaceScreen, WIN32_NAMESPACE_REFUSALS, type PathFamily, type PathIdentity, type PathIdentityReading, type Win32NamespaceRefusal } from "./tools/fs/safety.js";
export { judgeShellRead, type ShellReadJudgeInput, type ShellReadJudgment, type ShellReadVerdict, type ShellReadStationSeat, type ShellReadAdmission, } from "./tools/fs/shell-read-check.js";
export type { ReadLanding } from "./tools/fs/shell-read-identity.js";
export { SHELL_READ_FINDINGS, SHELL_READ_SEATS, SHELL_READ_DECISION, SHELL_READ_FINDING_RANK, type ShellReadFinding, type ShellReadSeat, type ShellReadDisposition, type ShellReadBoundary, type ReadEstablishment, type EstablishedRead, type ReadFinding, } from "./tools/fs/shell-read-judge.js";
export { type ReadCandidate, type ShellReadPlan, type ShellReadSegment } from "./tools/fs/shell-read-plan.js";
export { WORKING_DIRECTORY_NAMES } from "./tools/fs/shell-read-bindings.js";
export { TOOL_MOUNT_FACTS, type ToolMountFact, type ToolMountPlan } from "./core/tool-mount-plan.js";
export { EXECUTION_ENV_NEEDS, EXECUTION_ENV_ASKS, type ExecutionEnvNeed, type ExecutionEnvAsk, type ToolMountPlanExecutionEnv } from "./core/tool-mount-plan.js";
export { INTERACTIVE_TOOL_NAMES } from "./core/tool-mount-plan.js";
export { type StaticWiringStatement } from "./core/tool-mount-static.js";
export { applyMcpToolFaces, toolFaceProblem, APPROVAL_CARD_REQUIRED_KEYS, type McpToolFace } from "./core/runner/tool-face-overlay.js";
export { readToolFaces } from "./core/tool-face-reader.js";
export { createStructuredProjector } from "./core/runner/tool-output-projection.js";
export { parkedToolIdentity } from "./core/tool-roster.js";
export { approvalObjectOf, judgeApprovalObject, APPROVAL_STATION_MEMBERS, APPROVAL_TARGET_ROLES, type ApprovalObject, type ApprovalTargets, type ApprovalTargetReads, type ApprovalStation, type ApprovalMember, type ApprovalMismatch, type ApprovalDisposition, type LiveApprovalObject } from "./core/approval-object.js";
export { type ToolCallIdentity } from "./core/fs-write-gate-policy.js";
export { type RuleFaceView, catalogRuleFaceView } from "./core/permission-rules.js";
export { DURABLE_HISTORY_NAMES } from "./engine/compaction/utils.js";
export { describeStaticWiring, deriveWiringManifest, deriveAskEffective, resolveDeclaredDurability, resolveSubagentTranscriptTier, type SubagentTranscriptTier, resolveAskSeamForm, resolveQuestionSeam, countElicitOptIns, AUTO_MODE_ARM_REASONS, type AutoModeArmReason, type AutoModeArmFact, type WiringManifest, type WiringManifestMcpEntry, type WiringManifestA2aEntry, LSP_LANES, type LspLane, HANDS_UNMOUNTED_REASONS, type HandsUnmountedReason, EXECUTION_ENV_SEATS, type ExecutionEnvSeat, DEPLOYMENT_ASK_SEAT_FORMS, type DeploymentAskSeatForm, type InteractionSeats, type WiringFacts, type WiringLegKind, type WiringLegInstance, type HostInstanceDeclaration, ASK_SEAM_FORMS, type AskSeamForm, APPROVAL_REACH, type ApprovalReach, isApprovalReach, ASK_EFFECTIVE_VALUES, type AskEffective, type QuestionChannelState, type SeamProvenance, PARK_LANE_REASONS, type ParkLaneReason, SUSPEND_LANE_REASONS, type SuspendLaneReason, type ManifestDurability, type StaticWiringDeps, type StaticWiringSpec, } from "./core/wiring-manifest.js";
export { RUN_ORIGINS, type RunOrigin, isRunOrigin } from "./core/run-origin.js";
export { INPUT_AUTHORS, type InputAuthor, isInputAuthor, type InputWindow } from "./core/input-author.js";
export { USER_ROW_ORIGINS, type UserRowOrigin, type UserRowSource, isUserRowOrigin, userRowSourceOf } from "./core/user-row-origin.js";
export { legFirstInputOf } from "./core/user-row-origin.js";
export { probeParkRoundTrip, durableParkGapOf, durableParkGapFor, PARK_SELFCHECK_SCOPE_PREFIX, type ParkSelfCheckResult, type ParkProbeFinding, type ParkProbeFindingCode, } from "./core/park-selfcheck.js";
export { type StoreDurability } from "./core/checkpoint-store.js";
export { type StoreFidelity, resolveDeclaredFidelity } from "./core/checkpoint-store.js";
export { projectHumanInput, buildHumanInputEvent, type HumanInputSource, type HumanInputFrame, type HumanInputEvent, type HumanInputDelivery, } from "./core/human-input-projection.js";
export { USER_ATTACHMENT_SEAT, USER_ATTACHMENT_KINDS, USER_ATTACHMENT_SUPPLIES, USER_ATTACHMENT_OUTCOMES, USER_ATTACHMENTS_MAX, USER_ATTACHMENT_LABEL_MAX, USER_ATTACHMENT_INVALID_REASONS, type UserAttachmentInvalidReason, type UserAttachmentRefusalDetail, type UserAttachmentFieldRef, type UserAttachmentDeclaration, } from "./core/user-attachment.js";
export { NESTED_MEMORY_LANE, INSTRUCTIONS_WITHHELD_REASONS, type InstructionsWithheldReason } from "./core/runner/nested-memory-lane.js";
export type { HumanInputAttachment } from "./core/types.js";
export { TaskRegistry, defaultTaskRegistry, createTaskStopTool, type SemaTaskType, SEMA_TASK_TYPES, SEMA_TASK_HANDLE_PREFIXES, PEER_TASK_HANDLE_RE, // strict peer_task handle shape (^p[0-9a-f]{16}$), derived from SEMA_TASK_HANDLE_PREFIXES
type SemaTaskStatus, type SemaTaskHandle, type ParkedClaimTicket, type BackgroundYieldReport, type BackgroundYieldOptions, type BackgroundUnyieldableReason, type BackgroundYieldLane, PARKED_CLAIM_ROLLBACKS, type ParkedClaimRollback, type TaskAccess, type TaskListRow, type UnifiedTaskOutput, type TaskRetrievalStatus, type StopSource, type RegisterMonitorInput, type MonitorTimers, MONITOR_BATCH_WINDOW_MS, MONITOR_DEFAULT_TIMEOUT_MS, MONITOR_MAX_TIMEOUT_MS, MONITOR_MAX_BATCHES_PER_MINUTE, canAccessWorkflowRun, DURABLE_AGENT_HANDLE_RE, engineAgentName, chosenAgentName, type BackgroundShellHardKillReceipt, } from "./core/task-registry.js";
export { InMemoryMailboxStore, type MailboxStore, type MailboxMessage, type MailboxLease, MailboxStoreError, type MailboxStoreErrorCode, MAILBOX_TOMBSTONED_RECIPIENT_CODE, type MailboxAppendMessage, type MailboxPeerMeta, type MailboxPeerFromMode, type MailboxPeerRecordKind, type MailboxPeerNoticeMeta, type MailboxPeerNoticeState, MAILBOX_PEER_NOTICE_STATES, MAILBOX_PEER_FROM_MODES, MAILBOX_PEER_RECORD_KINDS, MAILBOX_INVALID_PEER_META_CODE, MAILBOX_CROSS_PROCESS_UNSAFE_CODE, readMailboxPeerMeta, mailboxCrossProcessMountVerdict, sessionBoxMountVerdict, type MailboxCrossProcessVerdict, mailboxRecipientLifecycleOf, type MailboxRecipientTombstone, MAILBOX_INVALID_RECORD_ID_CODE, MAILBOX_DUPLICATE_RECORD_ID_CODE, MAILBOX_RECORD_ID_MAX_CHARS, MAILBOX_REPLAY_FACETS, type MailboxReplayFacet, readMailboxRecordId, readMailboxAppend, judgeMailboxAppendById, MAILBOX_MESSAGE_ROW_SHAPE, MAILBOX_ROW_MALFORMED_CODE, mailboxReadablePrefix, type MailboxReadablePrefix, MAILBOX_CONSUMED_ID_WINDOW, type MailboxConsumedRecord, mailboxReplayDigests, type MailboxAckResult, type MailboxDecision, type MailboxDecisionOutcome, MAILBOX_DECISIONS, MAILBOX_INVALID_DECISION_MOVE_CODE, MAILBOX_INVALID_LEASE_OWNER_CODE, assertMailboxLeaseOwner, isMailboxDecision, isMailboxDecisionFinal, isMailboxDecisionDeliverable, mailboxDecisionEdgeAllowed, mailboxDecisionMoveFenced, assertMailboxDecisionMove, moveMailboxDecision, readStoredMailboxDecision, } from "./core/mailbox-store.js";
export { FileMailboxStore, type FileMailboxStoreOptions } from "./stores/file/mailbox-store.js";
export { createFileTaskListStore } from "./stores/file/task-list-store.js";
export { createMonitorTool, type MonitorToolOptions } from "./tools/monitor.js";
export { createWorktreeTools, type WorktreeToolsOptions, type ActiveWorktreeSession, type WorktreeSessionRef } from "./tools/worktree.js";
export { createImageDownsampler, sharpImageDownsampler, type ImageDownsampler, type ImageDimensions } from "./core/image-downsample.js";
export { IMAGE_ADMISSION } from "./core/image-admission.js";
export { hasBackgroundShell, BackgroundShellError } from "./core/background-shell.js";
export type { BackgroundShellCapability, BackgroundShellId, BackgroundShellStatus, BackgroundShellErrorCode, BackgroundSpawnOptions, BackgroundPoll, BackgroundHardKillOutcome, } from "./core/background-shell.js";
export { hasScheduler, SchedulerError } from "./core/scheduler.js";
export { isValidCronExpr, nextCronFireTime } from "./core/cron.js";
export type { SchedulerCapability, SchedulerErrorCode, ScheduledIntent, SchedulerContext, ScheduledTaskId, ScheduledTaskSummary, SchedulerScopeKeys, } from "./core/scheduler.js";
export { migrateSchedulerStore, rollbackSchedulerStore, type SchedulerStoredRow, type SchedulerStoreRows, type SchedulerStoreMove, type SchedulerRowRefusalCode, } from "./tools/scheduler-store-move.js";
export { createSchedulerTools, type SchedulerToolContext, schedulerLanesOf, listScheduled, cancelScheduled, type SchedulerLanes, SCHEDULE_WAKEUP_TOOL_NAME, AUTONOMOUS_LOOP_SENTINEL, AUTONOMOUS_LOOP_DYNAMIC_SENTINEL, } from "./tools/scheduler-tools.js";
export { resolveAutonomousLoopPrompt, AUTONOMOUS_LOOP_PREAMBLE, AUTONOMOUS_LOOP_PREAMBLE_PERSISTENT, type AutonomousLoopPromptOptions, } from "./tools/loop-tick.js";
export { tightenTaskSpec, TaskSpecTightenError } from "./core/tighten-task-spec.js";
export { createAllowDenyPolicy, createApprovalPolicy, 
/** The return type of `createApprovalPolicy.approve` — a boolean, or the `AskOutcome` object minus the two
 *  members that seat has no lane for (`"unavailable"`, a routing answer; `updatedInput`, an operator edit a
 *  policy verdict cannot get re-adjudicated). Exported so a host can NAME it instead of deriving it through
 *  `Parameters<typeof createApprovalPolicy>[0]["approve"]`. */
type ApprovalSeatOutcome, COARSE_SHELL_TOOLS, createCoarseCommandNamePolicy, createTranscriptIntegrityPolicy, createUnverifiableDeletePolicy, combinePolicies, abortedSeatDeny, noApproverSeatDeny, wrapToolPolicy, decisionText, resolveAsk, toolPolicyNameSets, toolPolicyPathRules, type ToolPolicyNameSets, type NamedToolPolicy, type ToolPolicyProjection, type ToolPolicyProjectionComponent, type ConstraintChainEntry, type ConstraintLayerKind, CONSTRAINT_LAYER_KINDS, checkToolPolicyProjection, constraintChainEntryOf, constraintChainDigest, type ToolPolicy, type ToolCallRequest, type PermissionResult, type DecisionReason, screenApproverAttribution, APPROVER_ATTRIBUTION_MAX_CHARS, BIDI_CONTROL_CHARS, carriesBidiControls, type OnAsk, asPolicyApprover, isPolicyApprover, declareClassAnswers, type AskOutcome, type ResolvedAsk, type EngineAttestation, type AskRequest, type AskDelegationProvenance, type AskRuleEvidence, type AskEvidenceAbsence, ASK_EVIDENCE_ABSENCE_VALUES, } from "./core/tool-policy.js";
export type { StationRefusal, StationRefusalLayer } from "./core/engine-attestation.js";
export { writtenFeedback, unfitFeedbackOf, type UnfitFeedback } from "./core/approval-words.js";
export { type ExistingTarget, type ExistingTargetKind, type ExistingTargetWithheldReason, EXISTING_TARGET_KINDS, EXISTING_TARGET_WITHHELD_REASONS, EXISTING_TARGET_READ_CAP, } from "./core/existing-target.js";
export { READ_ROOT_GRANT_LASTS, type ReadRootGrantScreen } from "./core/read-root-grant-screen.js";
export { type AskOrigin, ASK_ORIGINS, isAskOrigin, ORIGIN_IMPLIES_REAL_APPROVAL, PERSISTED_RULE_MANDATES, type PersistedRuleMandate, isPersistedRuleMandate, screenAskClassMembers } from "./core/ask-origin.js";
export { type AskReason, HOOK_QUESTION_CAUSES, type HookQuestionCause } from "./core/ask-origin.js";
export { PERMISSION_MODES, type PermissionMode, isPermissionMode, PERMISSION_MODE_RANK, clampPermissionMode, ASK_CLASSES, type AskClass, isAskClass, MODE_ARBITRATION, type ModeArbitrationRow, ASK_FACES, type AskFace, askFaceOf, releasableAskClassesFor, MODE_RELEASE_REASONS, type ModeReleaseReason, isModeReleaseReason, RRA_EXPLAINERS, classifyAsk, foldArbitrationRow, type AskClassification, type AskClassFacts, type ToolMarkSource, arbitrateByMode, type Arbitration, fileCommandOptionsSentence, RELEASED_ON_CONFINED_RUNNER, confinedReleasableAskClassesFor, type ConfinedCall } from "./core/ask-origin.js";
export { DEPLOYMENT_SHAPES, type DeploymentShape } from "./core/deployment-shape.js";
export { CROSS_BOUNDARY_TAINT_BITS, type CrossBoundaryTaintBit, CROSS_BOUNDARY_POSTURES, type CrossBoundaryPosture, BOUNDARY_LEGS, type BoundaryLeg, type BoundaryLegList, type BoundaryLegsDeclaration, type CrossBoundaryTree, type CrossBoundaryObligation, crossBoundaryObligation, CROSS_BOUNDARY_RECORD_TYPE, type CrossBoundaryRecordData, type CrossBoundaryRecordEntry, type CrossBoundaryRecordRead, readCrossBoundaryRecord, type BoundaryLegsFor, type BoundaryLegsGiven, type CrossBoundaryCall, type CrossBoundaryCheck, type CrossBoundaryExitRefusal, type CrossBoundaryTreeToken } from "./core/cross-boundary-taint.js";
export { modePolicyOf, type ModePolicy, PERMISSION_MODE_FOLD_REASONS, type PermissionModeFoldReason, type PermissionModeReceipt, ACCEPT_EDITS_FILE_COMMANDS, modeAcceptsFileCommand, foldPermissionMode, type PermissionModeFold, type PermissionModeFoldInput, type PermissionModeArmingFacts, type PermissionModeStartWord } from "./core/mode-policy.js";
export type { PermissionSeatInputs, PermissionSeatReading } from "./core/mode-policy.js";
export type { SkillGateSeats, SkillGrantHit, SkillGrantLane, SkillGrantOrigin, SkillGrantRecord } from "./core/skill-grant.js";
export { SKILL_GRANT_ORIGINS } from "./core/skill-grant.js";
export type { BoundSkillGrants } from "./core/skill-grant-binding.js";
export { AUTO_STRIP_REASONS, type AutoStripReason, type AutoStripRowReason } from "./core/auto-strip.js";
export { ALLOW_ENTRY_INERT_REASONS, allowEntryAutoStrip, readRuleEntry, compileAllowList, renderListEntry, screenAllowedToolsValue, type RuleEntryReading, type AllowEntryInertReason, type AllowEntryInertDetail, type CompiledAllowEntry, type AllowEntryGateSeats, type AllowEntryLane, type AllowEntryHit, type AllowEntryBound, type AllowListEntry, type AllowListMember } from "./core/allow-entry.js";
export { ALLOW_RULE_MEMBERS, ALLOW_RULE_SHADOW_REASONS, ALLOW_RULE_BINDINGS, ALLOW_LIST_GRANTS, type AllowRuleMember, type AllowRuleShadow, type AllowRuleShadowReason, type AllowRuleBinding, type AllowListGrant } from "./core/allow-rule-shadow.js";
export { mintNamespacePrefix } from "@sema-agent/primitives";
export { readDenyClassifierRules, renderClassifierDenyRules, type DerivedDenyRule } from "./core/auto-mode-prompt.js";
export { AUTO_MODE_DENY_SOURCES, isAutoModeDenySource, type AutoModeDenySource } from "./core/runtime-caps.js";
export { SETTLEMENT_KINDS, type SettlementKind, isSettlementKind, type Settlement, SETTLEMENT_PARTIES, type SettlementParty, isSettlementParty, HOST_DECIDERS, type HostDecider, type HostDecisionFacts, isHostDecider, DECIDED_VIA, type DecidedVia, SETTLEMENT_IS_REFUSAL, DENIED_BY_VALUES, type DeniedBy, isDeniedBy, DENIED_BY_MAY_VETO, CLASSIFIER_DENY_CAUSES, type ClassifierDenyCause, isClassifierDenyCause, DENIED_BY_MAY_CARRY_CAUSE, type GateDisposition, type GateOutcome, type ModeRelease, type ModeRefusal, type ClassifierAsked, screenGateOutcome, RETIRED_MEMBERS, isRetiredMember } from "./core/gate-outcome.js";
export { CLASSIFIER_CATEGORIES, type ClassifierCategory, isClassifierCategory } from "./core/classifier-category.js";
export { REFUSAL_ECHO_KINDS, type RefusalEchoKind, isRefusalEchoKind, type RefusalEcho } from "./core/refusal-echo.js";
export { ENGINE_BUILTIN_TOOL_NAMES, isEngineBuiltinToolName } from "./core/tool-catalog-entries.js";
export { policyCannotAnswer, type HeldQuestion } from "./core/real-approval.js";
export { type AskCarry } from "./core/hooks.js";
export { UNAVAILABLE_LANDINGS, isUnavailableLanding, type GateDeliveredCall, type UnavailableLanding } from "./core/unavailable-landing.js";
export { SWAPPABLE_DEP_SEATS, SWAP_SEAT_NOTICE, isSwappableDepSeat, screenSwappableDeps, type SwappableDepSeat, type SwappableDeps } from "./core/swappable-deps.js";
export { parseAutoModeResponse, createAutoModeDecider, AUTO_MODE_UNAVAILABLE_CAUSES, isAutoModeUnavailableCause, classifierUnavailableDenyMessage, classifierParseFailureDenyMessage, AUTO_MODE_PARSE_FAILURES, isAutoModeParseFailure, type AutoModeParseFailure, type AutoModeUnavailableCause, AUTO_MODE_CLASSIFIER_FALLBACKS, isAutoModeClassifierFallback, AUTO_MODE_FALLBACK_CAUSES, isAutoModeFallbackCause, type AutoModeClassifierFallback, type AutoModeFallbackCause, type AutoModeClassifierRound, type AutoModeLadderRung, type AutoModeVerdict, type AutoModeDecider, type AutoModeDeciderOptions, type AutoModeClassified, type AutoModeClassifyFn, type AutoModeClassifyInput, createAutoModeDenialTracker, denialLimitFallbackMessage, denialLimitSentence, unarmedWindow, type AutoModeDenialTracker, type AutoModeDenialLimitOptions, type DenialLimitCounts, DENIAL_LIMIT_BOUNDS, isDenialLimitBound, type DenialLimitBound, type DenialLimitFallbackFace, type UnarmedDenialLimitFallback, type DenialLimitFallback, type DenialLimitVerdict, } from "./core/auto-mode.js";
export type { ClassifierUnavailableSeat, ClassifierUnavailableInfo, ClassifierUnavailableDisposition, ClassifierUnavailableObserver, ClassifierReviewSite, DelegationUnreviewed } from "./core/classifier-unavailable-arm.js";
export { CLASSIFIER_REVIEW_SITES } from "./core/classifier-unavailable-arm.js";
export { AUTO_MODE_DENIAL_LIMIT_DEFAULTS, AUTO_MODE_DENIAL_AUTO_DENY_DEFAULT_MS, AUTO_MODE_CLASSIFIER_MAX_TOKENS, AUTO_MODE_CLASSIFIER_LOW_REASONING_BUDGET_TOKENS } from "./core/auto-mode-defaults.js";
export { classifierSeatModel, type ClassifierSeat } from "./core/runner/classifier-ladder.js";
export { advisorAttachVerdict, advisorHoldOf, ADVISOR_NOT_ATTACHED_REASONS, ADVISOR_OUTCOMES, type AdvisorAttachVerdict, type AdvisorHold, type AdvisorNotAttachedReason, type AdvisorOutcome } from "./core/advisor-verdict.js";
export type { AdvisorCard } from "./core/runner/advisor-tool.js";
export type { WiringAdvisorFact } from "./core/wiring-manifest.js";
export { buildAutoModePrompt, renderAutoModeWindow, renderAutoModeAction, AUTO_MODE_DEFAULTS_SENTINEL, type AutoModeRules, type BuildAutoModePromptOptions, type AutoModeWindowOptions, type AutoModeWindowRun, } from "./core/auto-mode-prompt.js";
export { AUTO_MODE_BASE_PROMPT, AUTO_MODE_PERMISSIONS_EXTERNAL } from "./core/auto-mode-prompt-assets.js";
export { AUTO_MODE_ARMING_RECIPE_VERSION, autoModeArmingRecipeOf, sanitizeAutoModeArmingRecipe, foldAutoModeArming, type AutoModeArmingRecipe, type AutoModeArmingFace, type AutoModeArmingFold, type AutoModeRebuildRefusal, } from "./core/auto-mode-arming.js";
export { rebuildAutoModeDecider, type AutoModeClassifierCompletion, type AutoModeRebuildOptions, type AutoModeRebuildResult, } from "./core/auto-mode-rebuild.js";
export { createPermissionRulePolicy, validatePermissionRules, skipsUnreadableRule, toolPolicySkippedRules, type SkippedPermissionRule, parsePermissionRule, formatPermissionRule, // its inverse: a tool name and a content → the rule text that reads back as them (the reference's escapes)
wildcardMatch, isCoveringRuleName, ruleNameCovers, type PermissionRule, type ParsedPermissionRule, type PermissionRuleIssue, type PermissionRuleCaps, type PermissionRulePolicyOptions, } from "./core/permission-rules.js";
/**
 * design/179 — persisted ALLOW rules: the standing form of approvals a person already gave.
 *
 * The consent boundary, restated precisely (ruled 2026-08-10): the ENGINE's only write
 * path into a rule store is the consent protocol below (a durable approval record, an authenticated
 * confirmation, a principal-bound redemption). That fact is a property of the engine's wiring, not of
 * what this file exports — a deployment always owned its own storage bytes. The BACKEND CONTRACT
 * (writer types, the writer handle key, and the fold pure functions) is therefore exported further
 * down, so an out-of-repo store implementation (the server's SQL twin) is built against the same
 * definitions as the file backend instead of mirroring them — mirrored types are how comment/contract
 * drift starts. What stays deliberately absent is any convenience that mints rules AROUND consent:
 * exporting the contract gives a store implementer the same powers it already had over its own bytes,
 * and nothing more. Removal is exported without ceremony, because narrowing on a user's behalf is
 * allowed and widening is not.
 */
export { RULE_BEHAVIORS, RULE_BEHAVIOR_PRECEDENCE, RULE_BEHAVIORS_BY_PRECEDENCE, isRuleBehavior, readRowBehavior, adjudicatePersistedRules, adjudicatePersistedPathRules, adjudicatePersistedToolRules, ruleReachesProgramRun, programRunReachOf, PROGRAM_RUN_REACHES, type ProgramRunReachOutcome, pathRuleReachOf, ruleBasesNeeded, PATH_RULE_BASES, PATH_RULE_BASE_LABEL, ruleToolGrammarOf, COMMAND_RULE_TOOL, READ_RULE_TOOL, type PathRuleBase, type PathRuleBases, type RuleBehavior, type PersistedRuleVerdict, parseRuleText, formatRuleText, ruleAdmitsCommand, findAdmittingRule, suggestRulesForCommand, scopeCoversCwd, pathWithinRoot, isRuleLive, renderUntrustedCommandText, stripFormatCharacters, UNCOVERED_SEGMENT_REASON_BASELINE, RULE_OFFERS_ABSENCE_BASELINE, type UncoveredSegmentDetail, PERSISTED_RULE_MATCHES, RULE_OFFER_KINDS, RULE_OFFER_BATCH_MEMBER_KINDS, UNCOVERED_SEGMENT_REASONS, EDITED_RULE_BREADTH_WARNING_CODES, RULE_ADD_ORIGINS, type EditedRuleBreadthWarning, directoryRuleAdmits, BARE_INTERPRETER_NAMES, MAX_RULE_TEXT_CHARS, type PersistedRule, type RuleTombstone, type RuleScope, type RuleDot, type RuleAdd, type RuleAddOrigin, type RuleOffer, type RuleOfferBatchMember, type SegmentRuleSuggestion, RULE_OFFER_CAUTIONS, type RuleOfferCaution, type SegmentCoverage, type RuleReject, type RuleRejectCode, type ParsedRule, type PersistedRuleTool, type PersistedRuleMatch, } from "./core/permission-rule-model.js";
export { removePersistedRule, addPersistedRule, applyTombstones, sameScope, sameRuleIdentity, isValidConsentScope, isValidDurableScope, InMemoryDurableRulePartition, EMPTY_DURABLE_RULE_PARTITION, type DurableRulePartition, type DurableRulePartitionProvider, type RuleWriteOutcome, type StoredRules, type RemoveResult, type AddResult, type PutResult, joinRuleStates, applySyncJoin, type RuleSyncJoinBase, screenRuleSyncState, collectBelowFrontier, ruleSyncVector, joinFrontiers, dotAtOrBelowFrontier, type RuleSyncState, type RuleSyncFrontier, type RuleSyncDrop, type RuleSyncLandingReport, type QuarantinedRuleAdd, PERMISSION_RULE_WRITER, writerOf, foldDelta, addDotsOf, assertDeleteDeltaCarriesNoAdd, assertRedemptionNotQuarantined, assertWriteDeltaScopeDurable, PERMISSION_RULES_LATER_GRAMMAR_CODE, PERMISSION_RULES_DAMAGED_BUCKET_CODE, PERMISSION_RULES_UNREADABLE_BUCKET_CODE, type PermissionRuleWriter, type WritableDurableRulePartition, type RuleWriteDelta, type RuleAddDelta, type RuleTightenAddDelta, type RuleDeleteDelta, type RuleSyncJoinDelta, type RawRuleSyncState, type RedemptionAuthorization, } from "./core/permission-rule-store.js";
export { readRuleOwner, sameRuleOwner, type RuleOwner, RULE_OWNER_KINDS, } from "./core/rule-owner.js";
export { judgePrincipalName, principalNameOf, whiteSpaceAtEdgesOf, PRINCIPAL_NAME_MAX_CHARS, PRINCIPAL_NAME_MAX_BYTES, PRINCIPAL_NAME_REFUSALS, type PrincipalNameRefusal, type PrincipalNameVerdict, } from "./core/principal-name.js";
export { isolationScopeOf, callScopeOf, ANONYMOUS_SCOPE, scopeKeyOf } from "./core/isolation-scope.js";
export { REKEY_MODES, ONE_STEP_REKEY_MODES, readPrincipalRekeyInput, readScopeRekeyInput, readIdentityRekeyInput, rekeyOwnerIdentity, oneStepRekeyAnswerOf, judgePrincipalRekey, eraseStepOf, type OneStepRekeyMode, type RekeyStamp, type RekeyRowStamp, type RekeyArrivalRecord, type RekeyMarkReading, type PrincipalRekeyKeyState, type PrincipalRekeyWrite, type RekeyMode, type PrincipalRekeyInput, type ScopeRekeyInput, type ScopeRekeyPair, type IdentityRekeyInput, type IdentityRekeyMap, type OwnerIdentityRekeyVerdict, type OneStepRekeyCount, type RekeyPlan, type IdentityRekeyPlan, type RekeyDone, type RekeyConflict, } from "./core/identity-rekey.js";
export { rekeyCheckpointRow, checkpointRekeySelects, CHECKPOINT_IDENTITY_MEMBERS, type CheckpointRekeyVerdict } from "./core/checkpoint-rekey.js";
export { syncPermissionRules, parseRuleSyncResponse, PERMISSION_RULE_SYNC_PATH, LOCAL_OWNER_UNSYNCABLE_CODE, type PermissionRuleSyncTransport, type PermissionRuleSyncResult, type RuleSyncRequestBody, type RuleSyncResponseBody, } from "./core/permission-rule-sync.js";
export { createPermissionRuleStoreProvider, effectivePermissionRules, effectiveOrThrow, ruleSourceOf, type PermissionRuleStore, type PermissionRuleStoreProvider, type PermissionRuleStoreConfig, type EffectivePermissionRules, type EffectivePermissionRule, type RemovedPermissionRule, type RuleSource, } from "./core/permission-rule-provider.js";
export { RULE_STORE_FAULT_REASONS, type RuleStoreFault, type RuleStoreFaultReason, type RuleStoreSource } from "./core/rule-store-fault.js";
export { InMemorySessionRulePartition, type SessionRulePartition, type SessionRuleAdd, type SessionRuleApplyResult, type SessionRuleTarget, type SessionRuleRevokeResult, } from "./core/permission-rule-session.js";
export { sessionCallGrantOfRow, readCallGrantBinding, type CallGrantBinding, type CallGrantSegment, type CallGrantProgram } from "./core/session-call-grant.js";
export { SESSION_CALL_GRANT_REJECTIONS, type SessionCallGrantOffer, type SessionCallGrantScreen, type SessionCallGrantRejection, } from "./core/session-call-grant-screen.js";
export { readShellCommand, isFullyReadable, MAX_SHELL_READ_CHARS, SHELL_WRAPPER_TABLE, type ShellCommandShape, type ShellSegment, type ShellWord, type ShellRedirection, type ShellWrapperName, } from "./core/shell-run-candidates.js";
export { readOnlyShellVerdict, type ReadOnlyShellVerdict, type ReadOnlyShellOptions } from "./core/read-only-shell.js";
export { READ_ONLY_FLAG_ARITIES, FLAG_VALUE_ACCEPTS, READ_ONLY_COMMAND_TABLE, READ_ONLY_BARE_PROGRAMS, READ_ONLY_GLOB_PROGRAMS, READ_ONLY_EXACT_FORMS, READ_ONLY_BARE_ONLY, FIND_ACTION_PRIMARIES, FIND_VALUE_PRIMARIES, FIND_NEWER_PRIMARY, READ_ONLY_ENV_NAMES, XARGS_READ_ONLY_TARGETS, type ReadOnlyFlagArity, type ReadOnlyCommandRow, } from "./core/read-only-shell-table.js";
export { orgRuleVerdictFor, sameOrgPolicyContent, type OrgRuleVerdict, orgRuleShadows, unenforceableOrgRules, ORG_UNAVAILABLE_DECISION_REASON, ORG_RULE_DECISION_REASON, ORG_ADJUDICATION_TIMEOUT_MS, type OrgPermissionRule, type OrgRuleSnapshot, type OrgRuleSnapshotProvider, type OrgRuleStatePersistence, type PersistedOrgRuleState, type OrgRulePartitionConfig, type OrgRuleResolution, type OrgRuleStatus, } from "./core/permission-rule-org.js";
export { RULE_SYNC_DROP_CODES, type RuleSyncDropReason, type RuleQuarantineReason } from "./core/governance-codes.js";
export { prepareCardApproval, confirmRuleApproval, type ConfirmResult, type ConfirmRefusalReason, precheckEditedRuleText, type EditedRuleTextPrecheck, redeemRuleTicket, redeemRuleBatch, prepareCcImport, prepareStarterBatch, mintRuleTicket, STARTER_RULES, InMemoryRuleApprovalRecordStore, ruleOffersOfRecord, type RuleTicket, type RuleCandidate, type RuleApprovalKind, type RuleApprovalState, RULE_APPROVAL_KINDS, RULE_APPROVAL_STATES, IMPORTED_SETTINGS_LAYERS, RULE_APPROVAL_RECORD_SCHEMA, type RuleApprovalRecord, type RuleApprovalRecordStore, type RuleOffer2, readRuleOffer2, type RuleOffer2Reading, type StaleRuleApprovalRecord, type RuleConsentDeps, type RedeemResult, type RedeemedBatchMember, type CcImportLayer, type ImportedSettingsLayer, type ImportPreview, } from "./core/permission-rule-consent.js";
export { FileDurableRulePartitionProvider, ORG_STATE_FILE } from "./stores/file/permission-rule-store.js";
export { adoptFilePermissionRuleStore, type AdoptFileRuleStoreResult } from "./stores/file/permission-rule-adopt.js";
export { ADOPTION_ERROR_CODES, AdoptionError, assertAdoptionBootGate, readRootAdoptionFile, writeRootAdoptionFile, ROOT_ADOPTION_FILE, type AdoptionErrorCode, type AdoptionReport, type AdoptionReceipt, type AdoptionLegReport, type AffectedDeploymentConfig, type RootAdoptionFile, } from "./stores/file/adoption/marker.js";
export { adoptLocalDataRoot, ackAdoptionConfig, witnessAdoptionConfig, listAdoptionQuarantine, readAdoptionStatus, type AdoptionStatus, type AdoptLocalDataRootOptions, type AdoptLocalDataRootResult, type AdoptionCarriageLeg, type AdoptionCarriageLegContext, type AdoptionConfigWitnessReceipt, } from "./stores/file/adoption/adopt.js";
export { formatHookFeedback, runToolGate, createHookEnvCapabilities, type PersistedRuleHit, type PersistedRuleHitRule, type PersistedRuleUnreadable, type PersistedRuleCoverage, type PersistedRuleAnswer, normalizePersistedRuleHit, type HookInvocationIdentity, type ClassicEventBase, type PreToolUseEvent, type PostToolUseEvent, type PostToolUseFailureEvent, type PostToolBatchEvent, type UserPromptSubmitEvent, type SubagentStartEvent, type StopEvent, type TaskHookEvent, type TeammateIdleEvent, type StopFailureEvent, type SessionStartEvent, type SessionEndEvent, type PreCompactEvent, type PostCompactEvent, type MessageDisplayEvent, type MessageDisplayResult, type StopHookResult, type HookEnvCapabilities, type HookToolOutput, type PreToolUseResult, type PostToolUseResult, type UserPromptSubmitResult, type SubagentStartResult, type HookToolFailure, type PostToolUseFailureResult, type PostToolBatchCall, type PostToolBatchResult, type PreCompactContext, type PreCompactResult, type PostCompactContext, type PermissionDeniedPayload, } from "./core/hooks.js";
export type { ClassicEventMap, ClassicEventName, ObservedAnswer, EngineModRegistration } from "./core/mods/classic-events.js";
export { KERNEL_CONTRACT_VERSION, MOD_TIERS, MOD_SEATS, MOD_EVENT_SIDES, MOD_EVENT_TABLE, MODS_INVALID_CODE, MODS_REGISTRATION_REFUSED_CODE, MODS_REGISTRATION_REFUSED_DEPLOYMENT_CODE, type ModTier, type ModRegistrationTier, type ModSeat, type ModEventSide, type ModEventName, type ModEventRow, type ModStation, type ModRegistration, type ModUses, type On, type ModHandler, type ModHandlerOptions, type ModNext, type ModParticipant, type ModOrigin, type ModTraceEntry, type ModCaughtError, type ModDollarBase, type ModEventPayload, type ModMatcher, type ModAdmissionRecord, type ModTimer, } from "./core/mods/kernel/index.js";
export type { AgentSpawnAnswer, EngineDollar, ModelCompleteBlock, PromptSubmitAnswer, SessionAppendAnswer, SessionCompactAnswer, SessionSendAnswer, SessionUsage, SessionVersion, ToolCallAnswer } from "./core/mods/dollar.js";
export type { ContextOccupancy } from "./core/mods/lifecycle-stations.js";
export { admitModChain, promptScreenDeclaredBy } from "./core/mods/stations.js";
export { mergeStopAnswers } from "./core/mods/stop-answers.js";
export { SESSION_APPEND_DOORS, SESSION_APPEND_ORIGIN_KINDS, type SessionAppendDoor, type SessionAppendOrigin } from "./core/mods/session-append.js";
export { SESSION_RECEIVE_ORIGIN_KINDS, type SessionReceiveOrigin } from "./core/mods/session-receive.js";
export { SESSION_SEND_ORIGIN_KINDS, type SessionSendOrigin } from "./core/mods/session-send.js";
export { loadModPackage, type ModPackageHost, type ModPackageRegistration, type ModPackageUnreadKey } from "./core/mods/package.js";
export { CREDENTIAL_REF_KINDS, CREDENTIAL_REF_TRUST, CREDENTIAL_REF_TEXT_MAX, CREDENTIAL_REF_MAP_MAX, CREDENTIAL_REF_PROBLEM_REASONS, readCredentialRef, type CredentialRef, type CredentialRefKind, type CredentialRefRequestAdmission, type CredentialRefProblem, type CredentialRefProblemReason, type CredentialRefReading, } from "@sema-agent/primitives";
export { composeMemoryBlock, composeLayeredMemoryBlock, normalizeMemorySpec, type NormalizedMemorySpec, type MemorySpecInput, firstSentence, detectSecret, MEMORY_PROJECT_KEY_ABSENT_REASONS, type MemoryProjectKeyAbsentReason, type MemoryProjectKey, } from "./core/memory.js";
export { MemoryEngine, FileMemoryEngineBackend, readMemoryLedgerForm, memoryBackendContract, assertMemoryBackendSearchEquivalence, type MemoryBackendContractHooks, memoryGovernanceStoreContract, type MemoryGovernanceStoreContractHooks, buildMemoryInstruction, writableRootOf, truncateIndex, scanEntryFiles, deriveRepoKey, deriveRepoMemoryDir, deriveControlPlaneDir, deriveRepoControlPlaneDir, resolveMemoryEngineRoot, scopeDirName, ControlPlaneCorruptError, parseEntryFile, serializeEntryFile, computeEntryRev, entryFromFile, isValidEntryId, // the entry-id grammar a backend outside core judges a key by (the delete evidence of a key it fails carries the marker for such keys)
MEMORY_ORIGIN_CAUSES, committedOriginOf, originEquals, consolidationExposedFrontmatter, ambiguousOriginRepresentation, type OriginClearanceRow, type OriginClearanceEvent, type OriginClearanceShadow, committedDistilledOf, distilledEquals, type MemoryEntryDistilled, type MemoryEntryDistilledInput, CONSOLIDATION_DEFAULTS, ConsolidationRefusedError, MEMORY_SEARCH_SUPERSEDED_TAG, consolidationTypeEligible, deriveSupersededSet, memorySupersededNote, supersessionFuseCeiling, DELETION_FUSE_FLOOR, fileGovernanceStore, memoryGovernanceDurability, type MemoryGovernanceDurability, deriveShadowedSet, memoryConsolidationRecommendedNotice, memoryConsolidationCommittedNotice, memoryConsolidationConflictNotice, memoryConsolidationIncompleteNotice, memoryConsolidationRefusedNotice, memoryConsolidationWithheldNotice, type ConsolidationGateRead, type ConsolidationGateRow, type ConsolidationIntent, type ConsolidationIntentCredentialRow, type ConsolidationLeaseSeat, type ConsolidationProductProposal, type ConsolidationProposal, type ConsolidationWriteGate, type MemoryConsolidationOptions, type ConsolidationCommitReceipt, type ConsolidationReconcileReport, type ConsolidationResolveReceipt, type ConsolidationPlanSummary, type ConsolidationPlanFoldEvidence, type SessionMemoryStatus, DISTILLER_DEFAULT_MAX_INPUTS_PER_PRODUCT, LLM_DISTILLER_CONTRACT, LLM_DISTILLER_CONTRACT_DL2, LLM_DISTILLER_CONTRACT_DL3, LLM_DISTILLER_CONTRACTS, MEMORY_DISTILLER_CONTRACT_V1, contractGroupingDiff, driveConsolidationToFixpoint, isAliasModelId, llmPlanDistiller, mintExposurePartitionedPlan, mintLlmConsolidationPlan, MEMORY_DISTILLER_PURITY_CONTRACT_V1, detectCleanArmVerbatimLeak, type CleanArmLeakFinding, type CleanArmLeakVerdict, type MemoryDistillerPurityContract, openAiCompatChatSeat, parseJsonAnswer, planParseRepairs, sanitizeLlmGroups, scheduleUnderFuse, type ConsolidationDistillFn, type ConsolidationDriveCycleRow, type ConsolidationDriveEngine, type ConsolidationDriveResult, type ConsolidationFoldState, type DistillerCandidate, type DistillerChatAnswer, type DistillerChatFn, type DistillerChatRequest, type FuseSchedule, type LlmConsolidationPlan, type LlmConsolidationPlanArm, type LlmConsolidationPlanProduct, type LlmDistillerContract, type MintLlmConsolidationPlanResult, type PlanParseRepairs, type SanitizedLlmGroups, CONSOLIDATION_RUN_STOP_REASONS, CONSOLIDATION_WRITE_REFUSED_CODE, runMemoryConsolidationDriver, type ConsolidationDriverEngine, type ConsolidationDriverRunRow, type ConsolidationRunReceipt, type ConsolidationRunStopReason, type ConsolidationWriteJudge, type ConsolidationWriteTarget, type RunMemoryConsolidationOptions, isInstructionEntry, type MemoryEntryOrigin, type MemoryOriginCause, MEMORY_INSTRUCTION_TEMPLATE, MEMORY_RECALL_DISCIPLINE, MEMORY_PREFERENCE_DISCIPLINE, MEMORY_READONLY_NOTICE, MEMORY_CAPTURE_OPTOUT_NOTICE, memoryCaptureOptedOutNotice, memoryCaptureOptOutUnpersistedNotice, CAPTURE_OPTOUT_UNPERSISTED_RETRY, type CaptureOptOutUnpersistedCause, type CaptureOptOutUnpersistedRetry, SESSION_CAPTURE_OPTOUT_DIR, fileSessionCaptureRecordStore, type SessionCaptureOptOutRecord, type SessionCaptureOptOutMarkOutcome, type SessionCaptureRecordStore, sessionRecordBindsIncarnation, usableSessionIncarnation, type SessionIdentityRead, readV2HeaderHints, type V2HeaderHints, LINEAGE_FILE, CHALLENGES_FILE, CHALLENGED_HISTORY_FILE, CHALLENGE_LEDGER_MAX_EVENTS, rebuildStrictControlPlaneLedger, type ControlPlaneRebuildReceipt, type StrictControlPlaneLedger, type ChallengeAssignment, type ChallengeEvent, type ChallengedHistoryRow, type LineagePendingTxn, type LineagePromotion, MEMORY_INDEX_FILENAME, MEMORY_INDEX_MAX_LINES, MEMORY_INDEX_MAX_BYTES, MEMORY_SEARCH_TOOL_NAME, MEMORY_GET_TOOL_NAME, MEMORY_INDEX_TOOL_NAME, MEMORY_ENGINE_TOOL_NAMES, type MemorySearchDetails, type MemorySearchHit, type CleanMemorySearchHit, type ExposedMemorySearchHit, MEMORY_EXPOSURE_BANNER, MEMORY_EXPOSURE_HANDLE_TAG, memoryExposureIndexRow, type MemoryGetDetails, type MemoryIndexDetails, type MemoryIndexRow, type CleanMemoryIndexRow, type ExposedMemoryIndexRow, STUB_ARCHIVED_LINE, DEFAULT_MAX_MEMORY_FILES, DEFAULT_MAX_ENTRY_DEPTH, DEFAULT_HARVEST_DEADLINE_MS, DEFAULT_HARVEST_FILE_BUDGET, MASS_DELETION_FUSE_RATIO, scanMemoryWrite, scanMemoryFileName, scanRemediation, MEMORY_FILENAME_SEGMENT_RE, renderAnnouncements, enqueueMemoryAnnouncement, drainMemoryAnnouncements, peekMemoryAnnouncements, bumpScanFuse, scanFuseCount, clearScanFuse, ANNOUNCEMENTS_FILE, MEMORY_ANNOUNCEMENTS_MAX, SCAN_FUSE_FILE, SCAN_FUSE_THRESHOLD, type MemoryAnnouncement, type ScanFinding, type MemoryEngineOptions, type MemoryInjection, type EntryProvenanceAccount, type TransferEvidence, type CommittedBinding, type CommittedEntrySnapshot, type CommittedScopeSnapshots, type EntryCustodyReport, erasureSelectHash, type EraseMemoryEntriesInput, type ErasureCarrierAnswer, type ErasureCarrierClass, type ErasureCountAnswer, type ErasureSelect, type ErasedBinding, type MemoryErasureAttestation, computeMemoryBundleHash, type MemoryExportBundle, type MemoryImportReport, type MemoryExportSnapshot, type MemoryBundleImportPlan, type BundleChallengeRow, type BundleLineageRow, type BundlePollutedSession, type MemoryBackend, type MemoryGovernanceStore, MEMORY_GOVERNANCE_DOC_NAMES, type MemoryGovernanceDocName, MEMORY_CONTROL_OBJECT_KINDS, type MemoryControlObjectKind, adoptReplicaControlPlane, replicaControlPlaneStrays, type ControlPlaneAdoptionReport, type ReplicaControlPlaneStrays, type MemoryGovernanceDocs, type ConsolidationTx, type MemoryEntry, type MemoryEntryFrontmatter, type MemoryEntryHeader, type MemoryScopeEnumeration, type ScoredMemoryEntry, type NotePatch, type PatchReport, type MaterializedFile, type MemorySessionHandle, type HarvestReport, type HarvestRejection, type HarvestRejectionCode, type ParsedEntryFile, type ScannedEntryFile, SCOPE_SEGMENT_MAX_ENCODED, PROJECT_MARKER_PATH, encodeScopeSegment, decodeScopeSegment, parseScopeKey, formatUserScope, formatUserLocalScope, formatOrgScope, formatProjScope, formatUserProjScope, isPersonalScope, isReplicableScope, isOrgScopeKey, assertScopeContractPlacement, formatProjectMarker, parseProjectMarker, resolveProjectId, PROJECT_ID_REGEX, PROJECT_IDENTITY_REFUSAL_KINDS, PROJECT_MARKER_UNREADABLE_REASONS, type ProjectIdentityRefusalKind, type ProjectMarkerUnreadableReason, type ProjectIdentityRefusalDetail, type ParsedScopeKey, migrateScope, type MigrateScopeReport, materializeEntriesToFiles, harvestFilesToPatches, projectionsToWriteBack, screenInboundEntries, REMOTE_HARVEST_PER_FILE_BYTES, REMOTE_MASS_DELETION_FUSE_RATIO, type RemoteMemoryFile, type RemoteMemoryBaseline, type RemoteMaterialization, type RemoteHarvestResult, type InboundEntryFinding, deriveProjectMemoryDir, deriveProjectControlDir, recordProjectIdHint, lookupProjectIdHint, PROJECT_ID_HINTS_FILE, reconcileMemoryEntries, nextSyncBaseline, mergeRecallHits, type MemorySyncCursor, type MemorySyncConflict, type MemorySyncPlan, type RecallSource, syncMemoryScope, memorySyncStoreOf, carriesCredential, type MemorySyncTransport, type MemorySyncRequestBody, type MemorySyncResponseBody, type MemorySyncClientConflict, type SyncMemoryScopeOptions, type MemorySyncClientResult, memorySyncReportOf, memoryTravelGapOf, type MemorySyncLayerReport, type MemorySyncRoundReport, } from "./core/memory-engine/index.js";
export { createConsolidationWriteJudge, deliverWriteRefusal, type ConsolidationWriteJudgeInput } from "./core/runner/memory-consolidation-write-judge.js";
export { STORE_FORM_REFUSAL_CODES, TARGET_OUTSIDE_STORE, TARGET_OUTSIDE_STORE_REASONS, SCOPE_HOME_NOT_DIRECTORY, CONTROL_PLANE_LINKS_UNSUPPORTED, SCOPE_HOME_FORMS, STORE_ABSENT, STORE_ABSENT_EXPECTED_BY, type StoreFormRefusalCode, type StoreFormRefusalDetail, type StoreFormRefusal, type ScopeHomeForm, type TargetOutsideStoreReason, type StoreAbsentExpectedBy, ROOT_ANCHOR_DAMAGED, type RootAnchorRefusalDetail } from "./core/memory-engine/layout.js";
export { resolveMemoryScopeStore, type MemoryScopeStore, type MemoryScopeStoreInput } from "./core/memory-engine/dual-root.js";
export { classifyScopePlanes, memoryScopePlaneOf, scopePlanesOf, type ScopePlanes } from "./core/memory-engine/dual-root.js";
export { createMemoryDeployment, type MemoryDeployment, type MemoryDeploymentInput, type MemoryDeploymentStore, type DeploymentSessionMemoryStatus, } from "./core/memory-engine/memory-deployment.js";
export { reanchorMemoryStoreRoot, type StoreRootReanchor } from "./core/memory-engine/layout.js";
export { deletionRecordOf, memoryDeletionRecords, type DeletionRecord } from "./core/memory-engine/deletion-record.js";
export type { MemorySyncDeletions } from "./core/memory-engine/sync.js";
export { admittingLandings, cutPerLanding, LandingsNeedAdmission, MAX_LANDING_ADMISSION_ROUNDS, requireLandingsAdmitted, type AdmitLandings, type LandingCut, type PatchLanding, type PatchShare, } from "./core/memory-engine/landing-admission.js";
export { NON_GOVERNANCE_MEMORY_CODES } from "./core/governance-codes.js";
export { SHARED_MEMORY_READ_CAP_BYTES, SHARED_MEMORY_LIST_PAGE_SIZE, SharedMemoryStoreError, type SharedMemoryStoreProvider, type SharedMemoryStoreReader, type SharedMemoryPagedList, type SharedMemoryStoreInfo, type SharedMemoryDocumentEntry, type SharedMemorySnapshot, type SharedMemoryRequestContext, type MemoryListDetails, type MemoryReadDetails, } from "./core/shared-memory/types.js";
export { isSharedMemoryDocumentPath, isSharedMemoryStoreId } from "./core/shared-memory/normalize.js";
export { sharedMemoryStoreContract, type SharedMemoryFixture, type SharedMemoryStoreContractHooks, } from "./core/shared-memory/contract.js";
export { termSet, jaccardDistance, cosineDistance } from "./core/memory-vector.js";
export { formatMemoryAge } from "./core/memory-engine/memory-age.js";
export { resolveMemoryConsolidationDriver, autoRunOnRecommendationEffective, // the ONE arming reading (`memory.auto_consolidation.arming_has_one_resolver`) — the seat's absence is not "off"
type MemoryConsolidationDriverDeps, } from "./core/runner/memory-consolidation-driver.js";
export { ROLE_RESOLUTION_TABLE, modelFaceResolvable, type ModelFace, type ModelFaceOptions, type ModelFaceTask, type ModelFaceVerdict, type RoleResolutionAbsence, type RoleResolutionRow, type RoleResolutionWhen, } from "./core/runner/role-resolution-table.js";
export { teardownLegBudget } from "./core/runner/teardown-bounded.js";
export { DEFAULT_COMPACTION_INSTRUCTIONS } from "./core/auto-compaction.js";
export { DEFAULT_SYSTEM_PROMPT, CODE_AGENT_PROMPT, SUBAGENT_PROMPT, MEMORY_SAFETY, MEMORY_HYGIENE, OUTPUT_EFFICIENCY, CYBER_RISK, HARNESS_SECTION_ANCHOR, URL_SAFETY, SUMMARIZE_TOOL_RESULTS, EXECUTION_ENVIRONMENT, EXECUTION_ENVIRONMENT_OPEN_READS, executionEnvironmentBlockFor, buildEnvironmentContext, buildScratchpadSection, GIT_STATUS_MAX_CHARS, formatLocalDate, type EnvironmentFacts, type PromptBlock, } from "./prompts/default.js";
export type { EngineText } from "./prompt-assembly/engine-text.js";
export { SUPERVISOR_PROMPT, ORCHESTRATION_GUIDANCE, ORCHESTRATION_AWARENESS, GOAL_COMPLETION_GUIDANCE } from "./prompts/supervisor.js";
export { OVERLAY_SOURCE_ORDER, type ChainLink as PromptChainLink, type PromptOverlay, type SupersededOverlay } from "./prompt-assembly/overlay.js";
export { PROMPT_BINDING_LIST_MAX, PROMPT_BINDING_MAX_CHARS } from "./prompt-assembly/overlay.js";
export { BANDS as PROMPT_BANDS } from "./prompt-assembly/bands.js";
export { PROMPT_TRAITS, PROMPT_TRAIT_BUNDLES, PROMPT_TRAIT_EXCLUSIVE_GROUPS, isPromptTraitName, type PromptTraitName, type PromptTraitBundle } from "./prompt-assembly/catalog/schema.js";
export { PROMPT_LOCALES, type PromptLocale } from "./prompt-assembly/catalog/schema.js";
export { OVERLAY_OPS, HOST_ROLES, isHostRole, HOST_FORMS, type OverlayOp as PromptOverlayOp, type OverlaySource as PromptOverlaySource, type HostRole as PromptHostRole, type HostForm as PromptHostForm, type VariantWhen as PromptVariantWhen } from "./prompt-assembly/catalog/schema.js";
export { SEMA_DEFAULT_CATALOG, catalogText } from "./prompt-assembly/catalog/index.js";
export type { Attribution as PromptCatalogAttribution, BandId as PromptBandId, BandRow as PromptBandRow, CatalogMessage as PromptCatalogMessage, CatalogSection as PromptCatalogSection, FactConjunction as PromptFactConjunction, PromptCatalog, PromptFactName, PromptTrait, RendererId as PromptRendererId, SectionBody as PromptSectionBody, TraitCondition as PromptTraitCondition, Variant as PromptCatalogVariant, } from "./prompt-assembly/catalog/schema.js";
export { attachToolContract, getToolContract, hasToolContract, computeShapeDigest, projectToolManifest, type ToolContractDescriptor, type ToolOrigin } from "./prompt-assembly/tool-catalog.js";
export { normalizePromptEpoch, promptIdentityOf, walkPromptEpochCarriers, type PromptEpochCarrierRead, type PromptEpochWalk, PROMPT_EPOCH_ACTIVATIONS, PROMPT_EPOCH_CHANGES, type PromptEpochDescriptor, type PromptEpochActivation, type PromptEpochChange, type PromptIdentityLayers, type StoredPromptEpoch, } from "./prompt-assembly/epoch.js";
export { ARTIFACT_LIMITS, buildPromptArtifact, computeArtifactDigest, requiresOf, unmetRequirements, verifyPromptArtifact, type ArtifactVerifyCode, type ArtifactVerifyResult, type PromptArtifact, type PromptArtifactEvidence, type PromptArtifactPayload, type PromptArtifactRequires, type PublishedPromptArtifact, } from "./prompt-assembly/artifact.js";
export { buildTurnPromptSnapshot, loweringRecordFor, LOWERING_VERSION, PREFIX_INPUT_CLASSIFICATION, type CacheIdentityElements, type LoweringRecord, type PrefixInputClass, type RawPrefixInputs, type TurnPromptSnapshot, } from "./prompt-assembly/turn-snapshot.js";
export { CenterPromptSource, FilePromptArtifactStore, FilePromptSourceStateStore, MemoryPromptArtifactStore, MemoryPromptSourceStateStore, type OnArtifactRefused, type PromptArtifactSource, type PromptArtifactStore, type PromptSourceState, type PromptSourceStateStore, type StoredArtifactRefusal, } from "./prompt-assembly/artifact-store.js";
export { stripEngineMetadata } from "./internal/llm.js";
export { EVENT_PROMPT_REGISTRY, eventDefaultOn, type CompiledEventPrompt, type EventDedupe, type EventDefaultPolicy } from "./prompt-assembly/event-registry.js";
export { OUTPUT_STYLE_NAME_MAX } from "./core/output-style.js";
export { contextUsageSections, type ContextUsageSection } from "./prompt-assembly/section-usage.js";
export type { CompiledSection, ComposedPrompt, PromptRuntimeFacts, SectionRenderInputs, } from "./prompt-assembly/types.js";
export { type ReasoningIntensity, type ReasoningResolution, type ResolvedReasoning, type ReasoningFormat, REASONING_EFFECTIVE_WORDS, type ReasoningEffective, DEFAULT_EFFORT_LEVELS, REASONING_BUDGET_SHARE, isThinkingLevel, rankOf, resolveEffort, reasoningBudgetShare, thinkingOffSpelled, declaredOffSpelling, mintEffortWireValue, type OffCapabilityModel, resolveReasoningProfile, type ReasoningTier, type ReasoningProfileFlags, } from "./brain/reasoning.js";
export { applyReasoningToRequest, mergeReasoningHeaders, lowestReasoningSeat, resolveReasoning, reasoningEffortLevelsOf, type ApplyReasoningInput, type AppliedReasoning, type ReasoningCarriage, type ReasoningBudgetKnobs, type ReasoningRequestModel, type ReasoningSeat, } from "./brain/reasoning-request.js";
export { capabilityOf, capabilityHeld, MODEL_CAPABILITIES, CAPABILITY_DECLARATIONS, type ModelCapability, type CapabilityDeclaration, } from "./brain/model-capability.js";
export { runWorkflow, startWorkflow, workflowAgentCallKey, WorkflowBudgetExceededError, WorkflowNestingError, WorkflowAgentSchemaError, WorkflowAgentStalledError, WorkflowAgentBlockedError, WORKFLOW_SPAWN_BLOCKED_ERROR_CODE, WorkflowAgentParkedError, WORKFLOW_AGENT_PARKED_ERROR_CODE, WORKFLOW_AGENT_OUTLIVED_RUN_CODE, parkedAgentsOf, runParkedOf, type WorkflowParkedResume, type WorkflowParkDelivery, type WorkflowParkDeliveryResult, type WorkflowFanOutSlotError, type WorkflowFanOutOptions, WORKFLOW_SUBAGENT_PROMPT, WORKFLOW_SUBAGENT_PROMPT_SCHEMA, WORKFLOW_SUBAGENT_APPEND, WORKFLOW_SUBAGENT_APPEND_SCHEMA, type WorkflowHandle, MAX_WORKFLOW_ITEMS, type WorkflowRun, type WorkflowRunStatus, type WorkflowItemStatus, type WorkflowPhase, type WorkflowGroup, type WorkflowAgentRun, type WorkflowAgentResult, workflowRowStatusOf, workflowMembersOf, type WorkflowAgentHandle, type WorkflowRunStats, type WorkflowEvent, type WorkflowBudget, type WorkflowAgentOptions, type WorkflowRunContext, type WorkflowInternals, type RunWorkflowOptions, type RunWorkflowResult, type WorkflowTimers, } from "./orchestration/workflow.js";
export { listWorkflowRuns, getWorkflowRun, subscribeWorkflow, redeemWorkflowParks, deriveAgentDisplayStatus, type AgentDisplayStatus } from "./orchestration/workflow-observe.js";
export { workflowRecordPickupOf } from "./orchestration/workflow-record-artifact.js";
export { runGoal, DECLARE_DONE_TOOL_NAME, type GoalSpec, type GoalResult, type GoalStatus, type GoalBudgetCause, type GoalVerdict, type GoalTurnState, type GoalVerificationKind, } from "./orchestration/goal.js";
export { emitTaskOutcome, type TaskOutcome } from "./core/task-outcome.js";
export { runOracle, captureBaseline, resolveFrozenPaths, snapshotFrozenPaths, restoreFrozenPaths, specError, type SpecContract, type OracleGateSpec, type OracleGreenSpec, type OracleVerdict, type OracleGateResult, type OracleRunReport, type OracleBaseline, } from "./core/spec-contract.js";
export { runSpec, type RunSpecOptions, type RunSpecResult, type RunSpecOracleReport } from "./orchestration/run-spec.js";
export { isSelfOrchestrationActive, workflowsCapability, selfOrchestrationFailClosedReason, type WorkflowScriptRunner, type WorkflowMeta, type WorkflowRequires, type WorkflowPrimitives, } from "./orchestration/workflow-script-runner.js";
export { devWorkflowScriptRunner } from "./orchestration/dev-vm-script-runner.js";
export { parseWorkflowMeta, parseWorkflowRequires, splitWorkflowMeta, WorkflowScriptError, workflowScriptReadsClockOrRandom } from "./orchestration/workflow-meta.js";
export { assertWorkflowSandboxConformance, assertWorkflowPrimitivesWiring, assertWorkflowDeterminism } from "./orchestration/workflow-sandbox-conformance.js";
export { WorkflowModelNotAllowedError, workflowModelNamesOf, type WorkflowAgentSpec } from "./orchestration/workflow-governance.js";
export { WorkflowMaxAgentsError, WorkflowResultTooLargeError, WorkflowJournalAppendTimeoutError } from "./orchestration/workflow.js";
export { createFileWorkflowScriptStore, mergeWorkflowArgs, type WorkflowScriptStore, } from "./orchestration/workflow-script-store.js";
export { createWorkflowCatalog, createDirectoryWorkflowLayer, isWorkflowName, WORKFLOW_SOURCES, WORKFLOW_SAVE_LAYERS, WORKFLOW_CATALOG_MAX_FILE_BYTES, WORKFLOW_SAVE_REFUSAL_CODES, WORKFLOW_CATALOG_HELD_CODE, WorkflowCatalogSaveError, WorkflowCatalogHeldError, type WorkflowSource, type WorkflowSaveLayer, type WorkflowCatalogEntryKind, type WorkflowCatalogEntry, type WorkflowCatalogContent, type WorkflowCatalogResolution, type WorkflowCatalogNoticeCode, type WorkflowCatalogNotice, type WorkflowCatalogListing, type WorkflowCatalogLayer, type WorkflowCatalogLayerFile, type WorkflowCatalogLayerRead, type WorkflowCatalogSaveRequest, type WorkflowCatalogSaved, type WorkflowCatalogSnapshot, type WorkflowCatalog, type WorkflowSaveRefusalCode, type WorkflowSaveUnavailableReason, } from "./orchestration/workflow-catalog.js";
export { workflowRequirementGaps, workflowRequirementsUnmetSentence, listWorkflowCatalogRows, WORKFLOW_REQUIREMENTS_UNMET_CODE, type WorkflowRequirementGap, type WorkflowRequirementGapKind, type WorkflowRequirementMount, type WorkflowCatalogRow, } from "./orchestration/workflow-requirements.js";
export { WORKFLOW_AGENT_STALL_MS, WORKFLOW_AGENT_MAX_RETRIES, WORKFLOW_AGENT_THROTTLE_BACKOFF_MS, WORKFLOW_JOURNAL_APPEND_TIMEOUT_MS } from "./orchestration/workflow.js";
export { parentSpecSeatOf, applyParentSpecSeat, type ParentSpecSeat, type ParentSpecSeatFields } from "./core/parent-spec-seat.js";
export { createRunWorkflowTool, RUN_WORKFLOW_TOOL_NAME, workflowWhenToUseText, renderNamedWorkflowListing, type WorkflowCompletionNotifier, type WorkflowLimits, type RunWorkflowToolDeps, } from "./orchestration/run-workflow-tool.js";
export { runSideQuery, type SideQuerySpec, type SideQueryResult, type SideQueryToolDef, type SideQueryDeps, type SideQueryMessage } from "./core/side-query.js";
export { ACCOUNT_ORIGINS, accountRowOfResult, foldAccount, type AccountOrigin, type AccountRow, type AccountTotal, type SessionAccount } from "./core/account-row.js";
export { PRESENT_PLAN_TOOL_NAME, ENTER_PLAN_MODE_TOOL_NAME } from "./core/present-plan-tool.js";
export { type WorkflowRunStore, type WorkflowRunSummary, type ReadableWorkflowRunSummary, type DamagedWorkflowRunSummary, summarizeWorkflowRun, isTerminalWorkflowStatus, WorkflowRunStoreError, InMemoryWorkflowRunStore, WORKFLOW_RUN_UPDATE_CAUSES, type WorkflowRunUpdateCause, type WorkflowRunUpdateOptions, type WorkflowRunUpdateExpect, workflowRunCreationIdOf, WORKFLOW_RUN_ROW_SHAPE, WORKFLOW_RUN_ROW_MALFORMED_CODE, readStoredWorkflowRun, admitWorkflowRun, summarizeStoredWorkflowRun, reapWorkflowRuns, type WorkflowRunTreeStores, type WorkflowRunReapFault, } from "./core/workflow-run-store.js";
export { WORKFLOW_RUN_STATUSES } from "./orchestration/workflow-types.js";
export { workflowTreeIdStampOf, type WorkflowTreeIdStamp } from "./orchestration/workflow-tree-id.js";
export { readWorkflowRunTree, workflowRunTreeOfOne, type WorkflowRunTree } from "./orchestration/workflow-park-adoption.js";
export { workflowParkHolderOf, type WorkflowParkHolder } from "./orchestration/workflow-types.js";
export { WORKFLOW_AGENT_STOP_ANSWERS, type WorkflowAgentStopAnswer, type WorkflowAgentStopReceipt } from "./orchestration/workflow-types.js";
export { WORKFLOW_RUN_STOP_ANSWERS, type WorkflowRunStopAnswer, type WorkflowRunStopReceipt } from "./orchestration/workflow-stop.js";
export { type WorkflowParkWait, type WorkflowParkCardState } from "./orchestration/workflow-types.js";
export { workflowParkWaitOf, readWorkflowParkWaits, type WorkflowParkWaitSeats } from "./orchestration/workflow-park-adoption.js";
export { WORKFLOW_PARK_UNUSED_REASONS, type WorkflowParkUnusedReason } from "./orchestration/workflow-park-adoption.js";
export { workflowParkDecisionOf, type WorkflowParkDecisionState, type WorkflowParkSettlingReason } from "./orchestration/workflow-park-adoption.js";
export { WORKFLOW_PARK_UNUSED_REASON_CLASS, workflowParkUnusedClassOf, type WorkflowParkUnusedClass, type WorkflowParkUnusedClassRow } from "./orchestration/workflow-park-adoption.js";
export { WORKFLOW_PARK_SETTLED_DECISIONS_MAX, WORKFLOW_PARK_DECISION_MARK_BYTES_MAX } from "./orchestration/workflow-types.js";
export { FileWorkflowRunStore, type FileWorkflowRunStoreOptions } from "./stores/file/workflow-run-store.js";
export { workflowRunStoreContract, type WorkflowRunStoreContractHooks } from "./core/workflow-run-store-contract.js";
export { CONTRACT_KIT_ENGINE_VERSION } from "./core/store-contracts/contract-kit-version.js";
export { CORRUPT_BODY_FORMS, storeReadBackShapeContract, type CorruptBodyForm, type ReadBackShapeSubject, type StoreReadBackShapeHooks, } from "./core/store-contracts/read-back-shape-contract.js";
export { type ContractAssertionRunner } from "./core/store-contracts/contract-harness.js";
export { checkpointStoreContract } from "./core/store-contracts/checkpoint-store-contract.js";
export { sessionRepoContract } from "./core/store-contracts/session-repo-contract.js";
export { toolResultStoreContract } from "./core/store-contracts/tool-result-store-contract.js";
export { fileHistoryStoreContract } from "./core/store-contracts/file-history-store-contract.js";
export { workflowJournalStoreContract, type WorkflowJournalStoreContractHooks } from "./core/store-contracts/workflow-journal-store-contract.js";
export { sessionPolicyStoreContract } from "./core/store-contracts/session-policy-store-contract.js";
export { sessionDeletionCascadeContract } from "./core/store-contracts/session-deletion-cascade-contract.js";
export { permissionRuleSyncContract, type PermissionRuleSyncContractHooks } from "./core/store-contracts/permission-rule-sync-contract.js";
export { permissionRuleWriteContract, type PermissionRuleWriteContractHooks } from "./core/store-contracts/permission-rule-write-contract.js";
export { MAILBOX_CONTRACT_SCOPE, mailboxStoreContract, mailboxAckOwnershipContract, mailboxBundledOnlyContract, mailboxTombstonedRecipientContract, type MailboxTombstonedRecipientContractHooks, mailboxCrossProcessContract, type MailboxCrossProcessContractHooks, type MailboxStoreContractHooks, } from "./core/store-contracts/mailbox-store-contract.js";
export { BACKGROUND_AGENT_CONTRACT_SCOPE, backgroundAgentStoreContract, backgroundAgentStoreScopesContract, type BackgroundAgentStoreContractHooks, } from "./core/store-contracts/background-agent-store-contract.js";
export { PEER_DIRECTORY_CONTRACT_SCOPE, peerDirectoryContract, type PeerDirectoryContractHooks } from "./core/store-contracts/peer-directory-contract.js";
export { type BackgroundAgentStore, type BackgroundAgentRecord, type BackgroundAgentRowSummary, type BackgroundAgentUsage, canAccessAgentRecord, STALE_RUNNING_REAP_ATTRIBUTION, staleRunningFlip, staleRunningFlipOf, BackgroundAgentStoreError, InMemoryBackgroundAgentStore, reconcileParkedAgents, queryBackgroundAgents, type BackgroundAgentQuery, backgroundAgentSessionRows, BACKGROUND_AGENT_ROW_SHAPE, BACKGROUND_AGENT_ROW_MALFORMED_CODE, BACKGROUND_AGENT_STATUSES, type BackgroundAgentStatus, BACKGROUND_AGENT_SETTLED_STATUSES, type BackgroundAgentSettledStatus, isBackgroundAgentSettledStatus, BACKGROUND_AGENT_LIVE_STATUSES, isBackgroundAgentLiveStatus, type ReadableBackgroundAgentRowSummary, type DamagedBackgroundAgentRowSummary, readStoredBackgroundAgent, admitBackgroundAgent, planScopeRekey, scopeRekeyWritesOf, type ScopeRekeyMove, summarizeStoredBackgroundAgent, nextBackgroundAgentOnUpdate, assertDelegationRoot, } from "./core/background-agent-store.js";
export { serveDurableAgentRowLane, buildAgentPollDetails, type AgentPollDetailsInput, } from "./core/task-registry-agent.js";
export { AGENT_PARK_UNREADABLE_CAUSES, readAgentState, agentStateSourceOfRecord, agentStateSummary, type AgentState, type AgentPark, type AgentParkGate, type AgentParkState, type AgentParkUnreadableCause, type AgentStateRow, type AgentStateSource, } from "./core/agent-state.js";
export type { TranscriptStep } from "./agents/subagent-steps.js";
export type { UnifiedTaskResult } from "./core/task-registry-shared.js";
export { TASK_OUTPUT_REPLAY_KINDS, type TaskOutputReplay } from "./core/task-registry-shared.js";
export { REMOVAL_LIVENESS_WORDS, type RemovalLiveness, RULE_REFUSAL_CODES, type RuleRefusalCode, RULE_WRITE_COMMITTED_WORDS, type RuleWriteCommitted } from "./core/permission-rule-store.js";
export { normalizeReadRootCandidate, READ_ROOT_CANDIDATE_DIR_MAX } from "./core/read-root-candidate.js";
export { FileBackgroundAgentStore, type FileBackgroundAgentStoreOptions } from "./stores/file/background-agent-store.js";
export { A2A_TASK_STATES, type A2ATaskState, A2A_SEMA_EXTENSIONS, A2A_SEMA_REFUSAL_CODES, type A2ARefusalClass, A2A_SEMA_SKILL_ID_KEY, A2A_SEMA_WAITING_ON_KEY, A2A_WAITING_ON_KINDS, type A2AWaitingOnKind, type A2AWaitingOn, A2A_STATE_CLASSES, type A2AStateClass, A2A_WAITING_FOR, type A2AWaitingFor, type A2AStateClassRow, A2A_STATE_TABLE, type A2AWireStatus, a2aWireStatusOf, a2aStateClassOfRecord, type A2APeerStateReading, readA2APeerState, } from "./core/a2a-task-state.js";
export { type WorkflowJournalStore, type WorkflowJournalEntry, type StopResumeClaimArgs, type StopResumeClaimAnswer, InMemoryWorkflowJournalStore, callKeyOrdinal, JOURNAL_OVERSIZE_ERROR_CODE, WorkflowJournalOversizeError, assertJournalEntryFits, readWorkflowJournalEntry, type WorkflowJournalEntryReading, WorkflowJournalIncompatibleError, JOURNAL_INCOMPATIBLE_ERROR_CODE, type WorkflowLaunchRecord, type WorkflowLaunchFace, readWorkflowLaunchRecord, launchRecordToKeepOrThrow, assertLaunchRecordFits, sameLaunchRecord, WorkflowLaunchConflictError, WORKFLOW_LAUNCH_CONFLICT_CODE, WorkflowLaunchUnreadableError, WORKFLOW_LAUNCH_UNREADABLE_CODE, } from "./core/workflow-journal-store.js";
export { untrustedEgressForHuman, redactHostLeaks, redactSecrets, boundedRedactedSummary } from "./core/untrusted-egress.js";
export { REDACTION_MARKS, isRedactionMark, eachRedactionMarkerSpan, redactionMarkerSpans, type RedactionMark, type RedactionMarkName, } from "@sema-agent/primitives";
export type { Egress, EgressTier } from "./core/untrusted-egress.js";
export type { RedactionFinding, RedactionReport, RedactionConfidence, RedactionSource, SummarizableFinding, } from "./core/untrusted-egress.js";
export { summarizeRedactions } from "./core/untrusted-egress.js";
export { headerOwnershipCollision, MCP_ASSERTION_HEADER } from "./core/protocol-http-auth.js";
export type { ProtocolHttpAuth } from "./core/protocol-http-auth.js";
export { crossesNetworkInClear } from "./core/protocol-http-auth.js";
export { resolvePlaintextOrigins, screenPlaintextOrigins, type PlaintextOrigins, type PlaintextOriginsReading } from "@sema-agent/primitives";
export { createSentCredentialStream, eraseSentCredentials, sentCredentialHits } from "./core/protocol-http-auth.js";
export type { SentCredentialStream } from "./core/protocol-http-auth.js";
export { MemoryRosterStore, FileRosterStore, type RosterStore, type RosterEntry, type RosterAccess, type RosterGcOptions } from "./agents/roster-store.js";
export { CONFIG_CATALOG_VERSION, describeConfigCatalog, resolveEffectiveConfig, type ConfigKnob, type ConfigOverrideDeclaration, type ConfigProvenance, type EffectiveConfigField, } from "./config/catalog.js";
export { normalizeAgentName } from "./core/task-registry.js";
export { DELEGATION_MAX_CONCURRENT_DEFAULT, DELEGATION_MAX_PER_SESSION_DEFAULT, SUBAGENT_TRANSCRIPT_RETENTION_DAYS_DEFAULT, } from "./config/defaults.js";
export { COORDINATOR_ROLE_PROMPT, TEAMMATE_COMMUNICATION_ADDENDUM } from "./prompts/coordinator.js";
export type { BuiltinSubagentType } from "./agents/subagent.js";
export { createSubagentTool, FORK_SUBAGENT_TYPE, BUILTIN_SUBAGENT_TYPES, GENERAL_PURPOSE_SUBAGENT_TYPE, agentWhenToUseText, FORK_DIRECTIVE_FRAME, SUBAGENT_SYSTEM_NOTE, type SubagentToolOptions, resolveDelegationEntryCaps, type ResolvedDelegationEntryCaps, type SubagentSpawnContext, type SubagentSteerHandle, type SubagentStep, type SubagentEditedFile, } from "./agents/subagent.js";
export { getSessionRetainLedger, releaseSessionRetainLedger, } from "./agents/retain-ledger.js";
export { createSendMessageTool, createAgentContinuationVerb, SEND_MESSAGE_TOOL_NAME, type SendMessageToolOptions, type AgentContinuationReceipt } from "./agents/send-message-tool.js";
export { createPeerAdmission, peerAdmissionFor, judgePeerAdmission, resolvePeerLaneConfig, PEER_LANE_DEFAULTS, PEER_HOP_CHAIN_WINDOW, PEER_MESSAGE_NOTICE, createPeerSelfRef, createPeerInboundChainRef, peerAxisToken, appendHopToken, type PeerAdmission, type PeerLaneConfig, type PeerAdmissionOptions, type PeerAdmissionRequest, type PeerAdmissionVerdict, type PeerAdmissionRefusal, type PeerRefusalCode, type PeerAxisTag, type PeerIdentity, type PeerSelfRef, type PeerInboundChainRef, } from "./agents/peer-admission.js";
export { CROSS_SESSION_MESSAGE_TAG, CROSS_SESSION_MESSAGE_NOTICE, PERMISSION_MODE_CLASSES, isPermissionModeClass, CrossSessionCodecError, PEER_HOP_CHAIN_CARRY_WINDOW, encodePeerAddress, isCanonicalPeerAddress, encodeScopeAttribute, decodeScopeAttribute, isSpellableFromScope, canonicalPeerDisplayName, buildCrossSessionEnvelope, parseCrossSessionEnvelope, clampHopChain, encodeCcPeerFrame, decodeCcPeerFrame, type PermissionModeClass, type CrossSessionEnvelopeFields, type CrossSessionEnvelopeParse, type CrossSessionEnvelopeRefusal, type CcPeerFrameFields, type CcPeerFrameParse, } from "./agents/cross-session-envelope.js";
export { CROSS_SESSION_INBOUND_SETTINGS, isCrossSessionInboundSetting, resolveCrossSessionInboundSetting, CROSS_SESSION_HOLD_CAUSES, describeCrossSessionHoldCause, judgeCrossSessionInbound, foldPermissionModeClass, PEER_SEND_VERDICT_CODES, peerSendVerdictSeverity, type CrossSessionInboundSetting, type CrossSessionSettingSource, type CrossSessionInboundSettingLayers, type ResolvedCrossSessionInboundSetting, type CrossSessionHoldCause, type CrossSessionInboundVerdict, type CrossSessionInboundInput, type PeerSendVerdictCode, type PeerSendVerdict, } from "./agents/cross-session-judge.js";
export { PEER_REF_MIN, PEER_REF_MAX, PEER_REF_RE, mintPeerRef, formatPeerNameRef, parsePeerNameRef, normalizePeerName, PEER_ADDRESS_PREFIXES, reservedPeerNameReason, type PeerRefEntry, } from "./agents/cross-session-ref.js";
export { PEER_SESSION_RECORD_SCHEMA_VERSION, PEER_SESSION_RECORD_MAX_BYTES, SESSION_BOX_PREFIX, peerSessionBoxHandle, isPeerSessionId, PEER_SESSION_ID_GRAMMAR, parsePeerSessionAddress, readPeerSessionRecord, defaultPeerLivenessProbe, isPeerSessionProcessAlive, mintPeerSessionCandidates, resolvePeerSessions, createInMemoryPeerDirectory, vetPeerRegistryDirectory, judgePeerRecordFile, type PeerSessionRecord, type PeerPresence, PEER_PRESENCE_MAX_CHARS, type PeerSessionLiveness, type PeerSessionTempo, PEER_SESSION_WHERE_VALUES, PEER_SESSION_WHERE_LABELS, type PeerSessionWhere, type PeerSessionRecordRefusal, type PeerSessionRecordRead, type PeerLivenessProbe, type PeerDirectory, type PeerDirectoryAccess, type PeerSessionCandidate, type PeerSessionResolution, type InMemoryPeerDirectory, type PeerRegistryDirectoryRefusal, type PeerRegistryDirectoryVerdict, SEMA_MAILBOX_FEATURE_PREFIX, semaMailboxFeature, peerSessionLane, type PeerSessionLane, } from "./agents/peer-directory.js";
export { PEER_CHANNEL_DROP_REASONS, type PeerChannel, type PeerChannelSelf, type PeerChannelListener, type PeerChannelMessage, type PeerChannelEvent, type PeerChannelDropReason } from "./core/peer-channel.js";
export { createCcUdsPeerChannel, CcPeerChannelError, type CcUdsPeerChannelOptions, type CcPeerChannelRefusal } from "./agents/cc-uds-peer-channel.js";
export { createCcPeerDirectory, CcPeerDirectoryError, ccProcessStartToken, defaultCcProcessProbe, CC_UNNAMED_SESSION_NAME, type CcPeerDirectoryOptions, type CcProcessProbe, type CcPeerRowSkip } from "./agents/cc-peer-directory.js";
export { ccPeerDefaultLocations } from "./agents/cc-peer-wire.js";
export { createReadInboxTool, READ_INBOX_TOOL_NAME, READ_INBOX_MAX_LIMIT, READ_INBOX_RESULT_BUDGET_CHARS, type ReadInboxToolOptions } from "./agents/read-inbox-tool.js";
export { TEAM_ROLES, DIRECTION_RELATIONS, teamRoleOf, mayDirect, type TeamRole, type DirectionRelation } from "./agents/team-role.js";
export { createListAgentsTool, LIST_AGENTS_TOOL_NAME, LIST_AGENTS_TOOL_ALIAS, LIST_AGENTS_MAX_RESULT_CHARS, PEER_LISTING_FRESH_WINDOW_MS, isFreshPeerRow, type ListAgentsToolOptions, type ListAgentsRow } from "./agents/list-agents-tool.js";
export { CROSS_SESSION_CLASSIFIER_RULE } from "./agents/cross-session-envelope.js";
export { PEER_SESSION_ID_UNGRAMMATICAL_CODE, PEER_RESUPPLY_CAP, type PeerLaneMountVerdict, type PeerInboundDisposition } from "./agents/peer-session-drain.js";
export { ORG_DELIVERY_REFUSAL_CODES, isOrgDeliveryRefusalCode, orgDeliveryRefusalOfAppendFailure, mintCrossPrincipalRecord, isGateMintedRecord, PRINCIPAL_INBOX_TRIAGE_POLICIES, principalInboxTriagePolicy, principalInboxLetterKey, principalInboxConsumerOf, PRINCIPAL_INBOX_CONSUMER_INVALID_CODE, type PrincipalInboxConsumer, type PrincipalInboxAssistantSeat, type PrincipalInboxLetter, type OrgDeliveryGate, type OrgDeliveryOptions, type OrgAuthenticatedSender, type CrossPrincipalBody, type OrgDeliveryOutcome, type OrgDeliveryRefusalCode, type PrincipalInboxTriagePolicy, } from "./agents/org-delivery-gate.js";
export { PRINCIPAL_INBOX_HANDLE } from "./agents/cross-session-ref.js";
export { CROSS_PRINCIPAL_MESSAGE_NOTICE } from "./agents/cross-session-envelope.js";
export { principalInboundLayers } from "./agents/cross-session-judge.js";
export { PRINCIPAL_INBOX_UNMINTED_CAUSE } from "./agents/peer-session-drain.js";
export { renderCrossSessionMessageFrame, renderCrossSessionNoticeLine } from "./core/task-notification.js";
export { PEER_HELD_QUEUE_CAP, PEER_IDLE_SUBSCRIPTION_TTL_MS, PEER_IDLE_SUBSCRIBER_TABLE_CAP, PEER_IDLE_OUTSTANDING_CAP, PEER_IDLE_PRIORS_KEPT, PEER_IDLE_FIRE_DEBOUNCE_MS, PEER_IDLE_HELD_BACKOFF_MS, PEER_IDLE_LABEL_MAX, CROSS_SESSION_DIALOG_EXPIRY_VALUES, CROSS_SESSION_DIALOG_EXPIRY_DEFAULT, resolveCrossSessionDialogExpiry, PEER_HELD_REVIEW_CAUSES, PEER_DELIVERY_RECEIPT_STATES, isPeerDeliveryReceiptState, PEER_DROP_REASONS, peerRecipientSuffix, renderCrossSessionDeliveryNotice, describePeerDropReasons, renderCrossSessionDroppedNotice, PEER_IDLE_NOTICE_KINDS, isPeerIdleNoticeKind, PEER_IDLE_UNAVAILABLE_CAUSES, peerIdleNoticeLabel, formatPeerNoticeClock, renderCrossSessionIdleNotice, describePeerIdleSubscription, type CrossSessionDialogExpiry, type ResolvedCrossSessionDialogExpiry, type PeerDeliveryReceiptState, type PeerDropReason, type PeerIdleNoticeKind, type PeerIdleNoticeFields, } from "./agents/peer-notices.js";
export { createPeerHeldQueue, peerHeldQueueFor, peerHeldQueueIfAny, peerHeldQueueKey, listPeerHeldQueues, realPeerClock, type PeerHeldQueueSnapshot, type PeerInboundHoldCause, type PeerHeldEntry, type PeerHeldSettlement, type PeerHeldSettleReason, type PeerHeldSettleOutcome, type PeerHoldOutcome, type PeerCardDecision, type PeerClock, type PeerHeldQueueSink, type PeerHeldQueueConfig, type PeerHeldQueue, } from "./agents/peer-held-queue.js";
export { createPeerIdleTarget, createPeerIdleRequester, peerIdleMachineFor, peerIdleMachineIfAny, peerIdleMachineKey, type PeerIdleSubscriber, type PeerIdleTargetNotice, type PeerIdleTargetSink, type PeerIdleSubscribeOutcome, type PeerIdleTarget, type PeerIdleOutstanding, type PeerIdleRequesterSink, type PeerIdleRequester, type PeerIdleMachine, } from "./agents/peer-idle.js";
export { routePeerDeliveryReceipt, routePeerDroppedReceipt, routePeerIdleNotice, type PeerNoticeRoute } from "./agents/peer-notice-route.js";
export { type PeerAdmissionStage } from "./agents/peer-admission.js";
export { createAgentTranscriptTool, AGENT_TRANSCRIPT_TOOL_NAME, type AgentTranscriptToolOptions, } from "./agents/agent-transcript-tool.js";
export { defineAgent } from "./agents/agent-definition.js";
export { builtinAgentDefinitions, BUILTIN_READONLY_DENY_TOOLS, EXPLORE_WHEN_TO_USE, EXPLORE_WHEN_TO_USE_LEAN, PLAN_WHEN_TO_USE, EXPLORE_SYSTEM_PROMPT, PLAN_SYSTEM_PROMPT, } from "./agents/builtin-agents.js";
export { createTaskServer, type TaskServerOptions, type TaskRequestBody, } from "./server/http.js";
export { clearStaleToolResults, editBudget, type ContextEditOptions, } from "./core/context-edit.js";
export { createOpenAIBrain, type OpenAIBrainConfig } from "./brain/openai.js";
export { createAnthropicBrain, ANTHROPIC_DEFAULT_BASE_URL, anthropicCredentialHeadersOf, type AnthropicBrainConfig, type AnthropicCredentialHeaders } from "./brain/anthropic.js";
export { createOpenResponsesBrain, type OpenResponsesBrainConfig } from "./brain/open-responses.js";
export { FABLE_5_COMPAT, fable5Model } from "./brain/model-presets.js";
export { REFERENCE_MODEL_PROMPT_TRAITS, referenceModelIdOf, referencePromptTraitsOf, type ReferenceModelId } from "./brain/reference-model-traits.js";
export { parseClaudeModelId, type ParsedClaudeModelId } from "./brain/claude-model-id.js";
export { createFailoverBrain } from "./brain/failover.js";
export { createRoutingBrain, brainLaneOf, type RoutingBrainOptions } from "./brain/routing.js";
export { repairTextToolCalls } from "./brain/tool-call-repair.js";
export { createCircuitBreakerBrain, type CircuitBreakerOptions, type BreakerState, type BreakerSnapshot, type BreakerPhase, CIRCUIT_OPEN_MARKER, } from "./brain/circuit-breaker.js";
export { readDegradation, DEGRADED_DIAGNOSTIC_TYPE, ROUTE_JUDGMENT_FAILED, type DegradeReason, type DegradationInfo, type SkippedHop } from "./brain/model-lane.js";
export { readFallbackUnsent, FALLBACK_UNSENT_DIAGNOSTIC_TYPE, type FallbackUnsent } from "./brain/model-lane.js";
export { DEGRADE_REASONS, MODEL_FALLBACK_GATE_WORDS, DEFAULT_FALLBACK_GATE, type ModelFallbackPolicy } from "./core/model-fallbacks.js";
export { retryBackoffMs, parseRetryAfter } from "./brain/retry.js";
export { WAITING_AFTER_MS, WAITING_EVERY_MS } from "./brain/stream-engine.js";
export { adjudicateModelRoute, resolveRouteCredential, admitRouteRequest, rebindCredentialOrigin, type CredentialRebind, type CredentialRebindEntry, type CredentialRebindAlignment, type CredentialRebindOutcome, CREDENTIAL_REBIND_OUTCOMES, requestOriginOf, routeRefusalText, routePairingStatus, routeKeyOf, displayUrlOf, resolveRequestRoot, resolveRequestRootOf, joinRequestUrl, hasAuthCarrier, __resetCredentialOriginBindings, type RoutePairingStatus, } from "./brain/route-adjudicator.js";
export { ROUTE_PAIRING_STATUSES } from "./brain/route-adjudicator.js";
export { ROUTE_CREDENTIAL_SOURCES, ROUTE_CARRIERS, ROUTE_CARRIER_BAGS, REQUEST_ROOT_ORIGINS, ROUTE_CREDENTIAL_PAIRING, requestRouteOf, routePairingRowOf, type RequestRoute, type RouteCarrier, type RouteCarrierBag, type RequestRootOrigin, type RouteCredentialPairingRow, } from "./brain/request-route.js";
export type { RouteAdjudication, RouteCredential, RouteCredentialSource, RoutePairingConfig, RoutePairingPosture, RouteRefusalCode, RouteRefusalDetail, RouteUnavailableDetail, } from "./internal/llm.js";
export { ROUTE_ADJUDICATION_CONFORMANCE_CORPUS, type RouteAdjudicationVector } from "./brain/route-conformance.js";
export { type BrainTimeoutConfig } from "./brain/timeout.js";
export { createAssistantMessageEventStream } from "./internal/llm.js";
export type { AssistantMessage, AssistantMessageEvent, CompleteSimpleFn, Context, DocumentContent, ImageContent, Message, StopReason, StreamFn, TextContent, ThinkingContent, ToolCall, ToolDescriptionVariant, ToolResultMessage, Usage, UserMessage, UserMessageAttachment, UserAttachmentKind, UserAttachmentObservation, UserAttachmentOutcome, UserAttachmentSupply, ChangedFilesNotice, RowRewrittenBy, } from "./internal/llm.js";
export type { AgentDefinition, BeforeWriteHook, BeforeWriteRequest, BeforeWriteResult, TrackFileEditHook, TrackEditRequest, TrackEditResult, FileEditedHook, FileEditedNotice, HandsBandOptions, Brain, RouteJudgmentDispatch, BrainStatus, BrainStatusPhase, BrainRetryErrClass, ImageInput, UserAttachment, McpElicitRequest, McpElicitResponse, McpServerSpec, A2aServerSpec, OnElicit, Model, ModelRef, RunnerDeps, ResumePreflightInfo, ResumePreflightVerdict, EngineNotice, RuntimeCaps, BackgroundChildEvent, ContinuationEndedBy, DelegationLifecycleEvent, SkillSpec, TaskEvent, ExtensionRequester, RewriteAuthor, ToolInputRewrite, TaskEventIdentity, ToolActivity, TaskLimits, StaleToolResultOffloadOptions, TaskResult, TerminalCause, PausedCause, EffectiveMemoryScopes, RemoteEnvFailureNote, RefusedAsk, VerdictRefusal, RefusedToolCall, RefusedToolCalls, TaskSpec, DurableApprovalOptIn, InstructionFamilyDeclaration, ShellGateDoctrine, TaskStatus, TaskStream, CompactOutcome, ThinkingLevel, ToolExecuteContext, ToolReturn, ToolSpec, ToolInputVerdict, ToolInputValidationContext, ReversibilityVerdict, ReadRootGrantCandidate, ToolEffect, ToolContentOrigin, WorkflowGovernanceBaseline, DelegationTaskType, } from "./core/types.js";
export { CONTINUATION_ENDED_BY } from "./core/delegation-frames.js";
export { MEMBER_OUTCOMES, MEMBER_KINDS, MEMBER_COVERAGES, RUN_END_CAUSES, REFUSALS_LISTED, isMemberOutcomeWord, isRunEndCause, isMemberOutcome, isMemberCoverage, memberOutcomeOf, memberRefusalsOf, memberCoverageOf, memberLedgerOf, memberOutcomeText, memberRefusalsText, memberRefusalFaces, type MemberOutcome, type MemberOutcomeWord, type MemberKind, type MemberCoverage, type RunEndCause, type MemberRefusals, type MemberFacts, type MemberLedger, type MemberLedgerRow, type Listed, } from "./core/member-outcome.js";
export { RUN_LEDGER_VERSION, RUN_LEDGER_WIRE_KEY, RUN_LEDGER_CHECKS, runLedgerHeadline, type RunLedger, type RunLedgerRow, type RunLedgerCheck, type RunLedgerClaim, type RunLedgerReport, type RunLedgerVerdict, type RunLedgerTrigger, } from "./core/run-ledger.js";
export { subagentActionsLine, type SubagentActions } from "./core/actions-digest.js";
export { MANAGER_LAUNCH_ITEMS, managerLaunchCheck, managerLaunchCheckSentence, type ManagerLaunchCheck, type ManagerLaunchFacts, type ManagerLaunchItem, type ManagerLaunchState } from "./core/manager-launch-check.js";
export { MANAGER_RECIPE, MANAGER_DUTIES_ADDENDUM, managerWorkerDefinition } from "./prompts/manager-recipe.js";
export { SEND_USER_MESSAGE_TOOL_NAME } from "./agents/send-user-message-tool.js";
export { agentOutcomeOf } from "./core/background-agent-store.js";
export { Type } from "typebox";
export type { TSchema, Static } from "typebox";
export { explainPromptAssembly, describeCatalog, type CatalogDescription, type ExplainInput } from "./prompt-assembly/explain.js";
export { APPROVAL_ROUTES, approvalRouteOf, type ApprovalRoute } from "./core/wiring-manifest.js";
export { SHADOW_REASON, allowRuleShadowSentence, cardDisclosureOf } from "./core/allow-entry.js";
export { RULE_OFFERS_ABSENCES, type RuleOffersAbsence } from "./core/ask-origin.js";
export { BOUND_GRANT_ABSENCES, type BoundGrantAbsence } from "./core/skill-grant-binding.js";
export { DISPOSABLE_PROMPT_SECTIONS, type DisposablePromptSection, type PromptSectionEntry, type PromptSectionAuthor, type McpInstructionsEntry } from "./core/prompt-section-seat.js";
export type { ProtocolRevocationLedger, ProtocolRevocationTarget, RevokedPeerCode } from "./core/protocol-revocation.js";
export { REVOKED_PEER_CODES } from "./core/protocol-revocation.js";
export type { PeerSeat, PeerQuestion, PeerAnswer, PeerSeatTarget, PeerAskCause } from "./core/peer-seat.js";
export type { PeerDeclarations, PeerDeclarationHold } from "./core/peer-seat.js";
export { readPeerAnswer } from "./core/peer-seat.js";
export type { PeerLane, CarriedPieces } from "./core/peer-seat.js";
export { McpHostSeatFailure, hostSeatOfRequests, type McpHostSeat, type McpHostRequestSeat, type McpHostSeatMethod, type McpHostSeatAnswer } from "./core/mcp-host-seat.js";
export { MCP_TRANSPORT_KINDS, type McpTransportKind } from "./core/mcp-server-spec.js";
export { readToolAxes, readMcpToolAxes } from "./core/mcp-server-spec.js";
export type { ToolAxesRead, ToolAxesSurface } from "./core/mcp-server-spec.js";
export { receiveDeclaration, DECLARATION_PATH_RULES } from "./core/mcp-server-spec.js";
export type { DeclarationRead, DeclarationFault, DeclarationPathRule } from "./core/mcp-server-spec.js";
export type { EngineStorageBackend } from "./core/engine-storage-backend.js";
export { sessionStoreContract, type SessionStoreContractHooks } from "./core/store-contracts/session-store-contract.js";
export type { ContractGrants } from "./core/store-contracts/grant-fixture.js";
export { canonicalJsonStringify } from "./core/canonical-json.js";
export { parkedApprovalCardOf, type ParkedApprovalCardReading } from "./core/pause-registry.js";
export { admitSessionPlacement, settledForkOptions } from "./core/session-store.js";
export { incarnationCell, forkRowCells, assertForkTarget, readIncarnationCell, fileHistoryScopeOf, readFileHistoryScope, sessionIdHasScopeTail, FILE_HISTORY_SCOPE_TAIL_LENGTH, FILE_HISTORY_SCOPE_SUFFIX_LENGTH, type FileHistoryScopeParts } from "./engine/session/repo-utils.js";
export { ownerCell, readOwnerCell } from "./engine/session/repo-utils.js";
export { readPlacementCell, placementCellToWrite } from "./engine/session/repo-utils.js";
export { selectForkRows, type ForkPoint, type ForkRowShape } from "./engine/session/path-to-root.js";
export { checkpointIndexFacts, type CheckpointIndexFacts } from "./core/checkpoint-store.js";
export { checkpointRevOf, checkpointOccMatches, checkpointHolderMatches, type HolderJudge, type StoreHolderFence } from "./core/checkpoint-generation.js";
export { encodeGrantHolder, decodeGrantHolder, holderSupersededError, isHolderSuperseded, type GrantHolderParts } from "./core/grant-holder.js";
export { CARD_FACET_OVERRIDES } from "./core/pause-registry.js";
export { readRuleOffers, RULE_OFFER_SHAPE_PROBLEMS, type RuleOfferShapeProblem, type RuleOfferRead, type RuleOfferDropped, type RuleOffersReading } from "./core/rule-offer-read.js";
export { compareOccupants } from "./engine/session/repo-utils.js";
export { sessionRowMatches } from "./engine/session/repo-utils.js";
export { sessionLogMarkOf } from "./engine/session/storage-base.js";
export { readRowExpectationMember } from "./core/runner/session-verb-doors.js";
export { delegationOwnerSeat, type DelegationOwnerSeat, type DelegationOwnerReading } from "./core/runner/delegation-owner.js";
export { CHECKPOINT_LIST_LIMITS, readCheckpointOverdueQuery, readCheckpointSessionQuery, readCheckpointDeleteGuard, checkpointDeadlinePassed, checkpointOverdueAt, checkpointRunSessionOf, storedCheckpointRowRefusal, checkpointRowUnreadable, isCheckpointRowUnreadable, deleteGuardAdmits, selectOverduePage, selectSessionPage, type CheckpointFacet, type CheckpointPage, type CheckpointOverdueQuery, type CheckpointOverdueCursor, type CheckpointOverdueQueryReading, type CheckpointSessionQuery, type CheckpointSessionCursor, type CheckpointSessionQueryReading, type CheckpointRowRead, type CheckpointDeleteGuard, } from "./core/checkpoint-queries.js";
export { EXTERNAL_INCLUDE_POST_APPROVAL_BLOCKS, type ExternalIncludePostApprovalBlock, type InstructionIncludedEntry, type InstructionWithheldEntry, type WiringInstructions, type InstructionPreviewResult, } from "./core/instruction-preview.js";
export { screenProjectSeat, type ProjectSeat, type ProjectSeatScreen } from "./core/project-seat.js";
export { HOOK_CONDITION_EVENTS, HOOK_CONDITION_UNTESTED_REASONS, judgeHookCondition, type HookConditionInput, type HookConditionVerdict } from "./core/hook-condition.js";
export { SHELL_STATE_ENV, shellStateEnvRowOf, type ShellStateEnvRow, type ShellStateInherited } from "./core/model-shell.js";
export type { ExecutionEnvModelShell } from "./internal/harness.js";
export { SHELL_KIND_QUESTION, SHELL_KIND_QUESTION_OPTIONS, hasModelShell, readShellKindAnswer, type DroppedShellState, type ShellKindAnswer } from "./core/model-shell.js";
export { readModelShell, type ModelShellReading, type MountedModelShell, type ModelShellStart } from "./core/model-shell.js";
export { adoptHostPromise, isHostPromise } from "./core/host-promise.js";
export { dataRootSpellingSplitOf } from "./core/data-root.js";
export { resolveMemoryEngineRootFrom } from "./core/memory-engine/layout.js";
export { PEER_TASK_FAILURE_CODES, PEER_TASK_TERMS_DEFAULTS, type PeerTaskTerms } from "./core/peer-task-lane.js";
export { peerTaskFramesDeclared, type A2aDeploymentSwitches } from "./core/a2a-deployment-switches.js";
export { shellKindQuestionEnv } from "./core/model-shell.js";
export { judgeJsonlBytes, type JsonlFileLine, type JsonlRecordJudge, type JsonlWritten } from "./stores/file/fs-atomic.js";
export { noteChildSpawned } from "./core/secret-env.js";
export { sessionRowKeyOf, type SessionRowKey, type SessionPartitionAddressing } from "./core/permission-rule-session.js";
export type { FileDataRootAdmission } from "./stores/file/index.js";
export { encodeCompositeHolder, decodeCompositeHolder, type CompositeHolderParts, type OccupancyHolderParts } from "./core/grant-holder.js";
export { assertWorkflowPositionsCarried } from "./orchestration/workflow-sandbox-conformance.js";
export type { WorkflowFanOutPlaces } from "./orchestration/workflow-script-runner.js";
export { ENV_ERROR_DETAIL_MAX } from "./tools/fs/env-error-detail.js";
export type { DrainOptions, DrainParked, DrainReceipt } from "./core/runner-drain.js";
export { revertConsolidationRun, type ConsolidationRunRevertEngine, type ConsolidationRunRevertReceipt, type RevertConsolidationRunInput } from "./core/memory-engine/consolidation-run-revert.js";
export { createSkillProposalTool, SKILL_PROPOSAL_TOOL_NAME, type SkillProposal, type SkillProposalSource, type SkillProposalVerdict, type SkillProposalToolOptions } from "./tools/skill-proposal-tool.js";
export type { ContentExposure } from "./core/content-exposure.js";
export type { ConsolidationProductCheck, ConsolidationProductCheckInput, ConsolidationProductVerdict, ConsolidationProductCheckRecord } from "./core/memory-engine/consolidation-driver.js";
export { createMemoryWriteTool, MEMORY_WRITE_TOOL_NAME, type MemoryWriteToolOptions } from "./tools/memory-write-tool.js";
export type { MemoryEntryDraft, MemoryEntryCreateOutcome } from "./core/memory-engine/entry-create.js";
export { MEMORY_DISTILLER_CONTRACT_DL4 } from "./core/memory-engine/distiller.js";
export { modelMintedBy, type ModelMintedBy } from "./core/engine-copies.js";
export { InMemoryPeerTaskStore, PeerTaskStoreError, type PeerTaskStore, type PeerTaskRow, type PeerTaskRowSummary, type ReadablePeerTaskRowSummary, type DamagedPeerTaskRowSummary, type PeerTaskUpdateIfExpect, type PeerTaskListOptions, type PeerTaskReapOptions, type PeerTaskStoreErrorCode } from "./core/peer-task-store.js";
export { peerTaskStoreContract, peerTaskStoreScopesContract } from "./core/store-contracts/peer-task-store-contract.js";
export { INHERIT_ENV_FORMS, type InheritEnvForm } from "./core/secret-env.js";
export { shellStartArgs } from "./core/model-shell.js";