Skip to content

@paraharness/core ​

Variables ​

VariableDescription
BudgetApprovalSchemaZod schema validating a human budget approval response (P.lane.maxCostUsd).
DEFAULT_AGENT_MAX_TURNSDefault maximum number of turns allowed per agent invocation when unspecified (25).
DEFAULT_LESSON_MIN_SCOREDefault minimum empirical score threshold required to recall a lesson (0.2).
DEFAULT_LESSON_SCORINGDefault 4-state empirical lesson scoring and recall configuration for P.lessons(id).
DEFAULT_LESSON_SCORING_WEIGHTSDefault constants for the Bayesian sliding-window lesson scoring formula and signal cooldowns (SPEC.md §3.4.3).
DEFAULT_LESSON_TOP_KDefault maximum number of top-ranked lessons recalled per session start (5).
DEFAULT_LESSON_WEIGHTSDefault empirical lesson scoring weights (slidingWindowInjections, partitionMatchBoost, decayOnPartitionEpochChange).
DEFAULT_MAX_SEALED_AGE_HOURSDefault maximum age in hours (168 hours) for SEALED_UNMERGED topology overlays before eviction (SPEC.md §3.3).
DEFAULT_NODE_RUNNER_AST_NODEDefault subprocess and PTY runner pool AST descriptor (id: 'default-runner', slots: 4, maxDaemons: 4).
DEFAULT_PRIORITY_AGING_INTERVAL_MSDefault priority aging interval in milliseconds (60,000 ms = 1 minute) when agingMinutes is evaluated (SPEC.md §3.10).
defaultExecutionEngineDefault HarnessExecutionEngine singleton delegating directly to createRuntime() (SPEC.md §3.1).
DistilledLessonCandidateSchemaZod schema validating a contrastive distiller agent's structured lesson candidate output.
GlobalRuleSchemaZod schema validating an always-on global rule (id and non-empty directive).
LANE_PRIORITY_WEIGHTSNumeric scheduling priority weights assigned to each LaneNode.priority level (SPEC.md §3.10).
LESSON_OUTCOME_PRECEDENCE_RANKStrict 4-state precedence rank table for deduplicating per-step lesson outcomes (SPEC.md §3.4.3).
PRoot declarative builder namespace (P) for constructing passive Paraharness AST definitions.
PRIORITY_AGING_STEP_WEIGHTPriority weight increment (5) added per elapsed aging interval (SPEC.md §3.10).
ResumeForkInputSchemaZod schema validating the built-in resumeFork capability tool input for parent agents declaring .onChildInterrupt().
ScopedRuleSchemaZod schema validating a partition- or effect-scoped rule with optional beforeStop checks.
ScopePredicateSchemaZod schema validating a ScopePredicate (when filter for scoped rules and skills).

Functions ​

FunctionDescription
affectedByReturns [partitionId, ...dependentsOf(topology, partitionId)], representing all partitions impacted by a change in partitionId.
buildRoleAndScopeContextFrameFormats the structured Turn-0 [ROLE_AND_SCOPE_CONTEXT] user message frame (SPEC.md §3.2.1).
compilePrefixGroupsCompiles all PrefixGroupNode definitions in AST declaration order at the start of a flow run (SPEC.md §3.2.1).
computeInRunGroundingDiffsComputes in-run grounding diffs against a run's pinned CompiledWirePrefix.groundingSnapshots (SPEC.md §3.2.1).
computeLessonScoreComputes the Bayesian sliding-window score $\text{Score}(L, Q)$ for a candidate LessonRecord (SPEC.md §3.4.3).
createAgentBuilderCreates a fluent AgentBuilder for P.agent(id).
createAgentCapabilitiesBuilderCreates a fluent AgentCapabilitiesBuilder for agent.capabilities($cap => ...).
createChildInterruptHandlerBuilderCreates a fluent ChildInterruptHandlerBuilder for agent.onChildInterrupt(interrupt, $ci => ...).
createCommandBuilderCreates a fluent CommandBuilder for P.command(id) or P.command(id, options).
createCompactionConfigBuilderCreates a fluent CompactionConfigBuilder instance from an optional state snapshot.
createEscalateCapabilityBuilderCreates a fluent EscalateCapabilityBuilder for cap.escalate(interrupt, $esc => ...).
createExecutorRegistryMerges one or more RuntimeExecutorRegistrySlice objects (or nested arrays of slices) into a frozen RuntimeExecutorRegistry.
createFlowBranchBuilderCreates a fluent FlowBranchBuilder for flow.branch(id, $b => ...).
createFlowBuilderCreates a fluent FlowBuilder for P.flow(id).
createForkCapabilityBuilderCreates a fluent ForkCapabilityBuilder for $cap.fork(toolName, childExecutable, $f => ...).
createHarnessBuilderCreates a fluent HarnessBuilder for P.harness(id).
createHumanBuilderCreates a fluent HumanBuilder for P.human(id).
createInterruptBuilderCreates a copy-on-write immutable ConfigurableInterruptBuilder for P.interrupt(id).
createInterruptEdgeBuilderCreates a fluent InterruptEdgeBuilder for .onInterrupt(interrupt, $i => ...).
createLaneBuilderCreates a fluent LaneBuilder for P.lane(id).
createLessonsBuilderCreates a fluent LessonsBuilder for P.lessons(id).
createLoopBuilderCreates a fluent LoopBuilder for P.loop(id).
createMutatePlanCapabilityBuilderCreates a fluent MutatePlanCapabilityBuilder for cap.mutatePlan($m => ...).
createPolicyBuilderCreates a fluent PolicyBuilder for P.policy(id).
createPoolBuilderCreates a fluent PoolBuilder for P.pool(id).
createPrefixGroupBuilderCreates a fluent PrefixGroupBuilder for P.prefixGroup(id).
createRulesBuilderCreates a fluent RulesBuilder for P.rules(id).
createRuntimeInstantiates a HarnessRuntime from a declarative HarnessNode AST (or P.harness builder) (SPEC.md §3.1 & §3.10).
createScopedRuleBuilderCreates a fluent ScopedRuleBuilder for P.scopedRule(idOrSource).
createSignalBuilderCreates a copy-on-write immutable ConfigurableSignalBuilder for P.signal(id).
createSkillBuilderCreates a fluent SkillBuilder for P.skill(idOrSource).
createSpeculateCapabilityBuilderCreates a fluent SpeculateCapabilityBuilder for cap.speculate(toolName, $s => ...).
createStreamBuilderCreates a fluent StreamBuilder for P.stream(id).
createTopologyBuilderCreates a fluent ConfigurableTopologyBuilder for P.topology(id).
dependentsOfReturns all strict transitive dependent partitions that depend (directly or indirectly) on partitionId.
evaluateLessonRetirementAndSignalsEvaluates .emitSignalWhen() triggers across updated LessonRecord instances (SPEC.md §3.4.3).
evaluatePreFlightToolBatchEvaluates two-phase policy guards ('deny-with-error' before 'raise-interrupt') across remainingCalls (SPEC.md §3.5).
evaluateQuotaTripwiresEvaluates all QuotaTripwireASTNode instances on policy after a tool execution (SPEC.md §3.5).
executeAddDependenciesExecutes the addDependencies capability tool to register existing lane items as prerequisites (SPEC.md §3.7.2).
executeAgentExecutes a passive AgentNode across turns, tool batches, policy guards, skills, capabilities, and beforeStop gates (SPEC.md §3.7.1).
executeCommandExecutes a passive CommandNode (P.command(id)) by validating input, invoking node.fn(validatedInput, ctx), and validating the returned output (SPEC.md §2.3 & §3.7).
executeFlowExecutes a FlowNode from start or crash-recovery resume through its sequential steps and conditional branches (SPEC.md §3.9).
executeFlowBranchEvaluates a FlowBranchNode against flowCtx.currentInput, executes the first matching when case (or otherwiseSteps), and records output under branchNode.id (SPEC.md §3.9).
executeFlowStepExecutes a single FlowStepNode, handling .inputFrom() projection, step-level .replaceWith() promotion, and .retry() backoff (SPEC.md §3.9).
executeForkBatchExecutes a concurrent batch of downward .fork() tool calls with turn-batch sibling barrier and 3-way commitChild (SPEC.md §3.7.2).
executeHierarchicalRewindDrainExecutes the 4-step Hierarchical Rewind Drain Barrier across active child forks, speculations, human requests, and run overlays (SPEC.md §3.10).
executeLimitExceededSequenceExecutes the 4-step crash-safe .onLimitExceeded() epistemic flush and abort sequence (SPEC.md §3.5).
executeLoopExecutes a passive LoopNode across .act() -> .evaluate() iterations up to maxIterations (SPEC.md §3.8).
executePostFlightSandboxedToolExecutes a 'subprocess-post-flight' tool inside a checkpointed sandbox (SPEC.md §3.5).
executeReplaceWithPromotionPromotes a .replaceWith(replacementActor, mapInput) handler by resetting step overlays and atomically recording replacement step start (SPEC.md §3.6 & §3.9).
executeResumeForkBatchExecutes the built-in resumeFork capability tool to resume or abort suspended child forks (SPEC.md §3.7.2).
executeSpawnTasksExecutes the spawnTasks capability tool with linear prerequisite chaining ($T_{\text{prevTip}} \leftarrow T_1 \leftarrow \dots \leftarrow T_k \leftarrow T_{\text{parent}}$) (SPEC.md §3.7.2).
executeSpeculateTournamentExecutes a parallel .speculate() tournament across $B$ isolated branch scopes (SPEC.md §3.7.2 Capability 2).
executeStepNodeDispatches any passive StepASTNode (AgentNode, LoopNode, CommandNode, or adapter DomainStepASTNode) to its runtime executor (SPEC.md §2.3).
executeUpdatePartitionContractExecutes the updatePartitionContract capability tool against the run's isolated CoW TopologyStore overlay (SPEC.md §3.3).
extractASTNormalizes a MaybeBuilder<TNode> value into its compiled passive TNode AST representation.
flushStepLessonOutcomesFlushes deduplicated per-step lesson outcomes to LessonStore, retires degraded lessons, and evaluates signal triggers (SPEC.md §3.4.3).
mergeLessonOutcomePrecedenceMerges two 4-state LessonOutcome values using strict severity precedence (SPEC.md §3.4.3).
recoverInterruptedRunOnBootRecovers a non-terminal run on boot by reattaching root and child isolation scopes and restoring in-flight checkpoints (SPEC.md §3.10).
resolvePostRaceCasesClassifies a completed speculative tournament race into Post-Race Cases 1–4 (SPEC.md §3.7.2 Capability 2).
runContrastiveLessonDistillationExecutes contrastive lesson distillation for an accepted loop or gate recovery pair (SPEC.md §3.4.3).
scoreAndRecallLessonsScores, filters, and ranks candidate lessons for Turn-0 recall (SPEC.md §3.4.3).
shouldRetireLessonEvaluates the 3-way disjunction determining whether lesson must be retired (SPEC.md §3.4.3).
SpeculationCandidateSchemaBuilds the discriminated-union Zod schema for a single candidate branch in a speculative tournament (COMPLETED or PARKED_ON_ESCALATION).
SpeculationInputSchemaBuilds the complete input Zod schema delivered to a .speculate() arbiter agent (candidates, failedBranches, and humanRulingsHistory).
syncSuspendedRunPrerequisitesSynchronizes completed prerequisite receipts, topology overlays, and syncRoot upon 'SUSPENDED' wakeup or initial run start (SPEC.md §3.7.2).
zodToJsonSchemaConverts a Zod schema (z.ZodTypeAny) into a deeply frozen JSON Schema object for LLM structured outputs and wire tool declarations.

Classes ​

ClassDescription
LaneSchedulerStateful lane scheduler managing deduplication, priority aging, .waitFor() DAG barriers, .maxCostUsd() budgets, tracker sync, and .onSignal() rewinds (SPEC.md §3.10).
PoolManagerRuntime capacity pool scheduler managing run-sticky account seat affinity, HTTP 429 rate-limit failover, and empirical 'escalate-on-retry' model selection (SPEC.md §3.2).
ScopeLockManagerPer-handle asynchronous shared-read / exclusive-write lock manager (SPEC.md §3.7.2).
ServiceSessionRegistryReference-counted registry of active ServiceSession daemons keyed by (scopeKey, serviceNode.id) (SPEC.md §3.4.2).
StepContinuationQueuePer-stepExecId asynchronous FIFO serialization queue for ContinuationFrame[] mutations (SPEC.md §3.7.2).

Interfaces ​

InterfaceDescription
AbortHookExecutionInputInput payload supplied to an AbortHookASTNode executor in RuntimeExecutorRegistry.abortHooks.
AcquireSkillServicesParamsParameters for acquiring skill-backed ServiceSession daemons in an isolation scope.
ActiveRunSummarySummary descriptor of an active or suspended harness run returned by HarnessRuntimeController.getActiveRuns().
ActiveServiceEntryReference-counted runtime entry tracking a live ServiceSession mounted within an isolation scope (SPEC.md §3.4.2).
ActiveTurnPauseStateActive-turn pause state on agent-frame when no tool batch or adjudication is suspended.
AdjudicateInterruptBuilderFluent builder for an automated adjudicator interrupt edge (.adjudicateWith(adjudicator, mapInput)).
AdjudicateInterruptHandlerNodeInterrupt handler variant (mode: 'adjudicate') that dispatches a read-only adjudicator step and resumes the interrupted actor.
AdjudicateLeaseElevationConfigConditional capability lease elevation rule evaluated after an adjudicator step produces a verdict.
AdjudicationPauseStatePause state on agent-frame while awaiting .adjudicateWith() or .ask() interrupt resolution.
AgentBuilderFluent builder for the universal LLM actor primitive (P.agent(id)).
AgentCapabilitiesBuilderFluent builder for hierarchical orchestration capabilities mounted on an AgentNode (.capabilities($cap => ...)).
AgentCapabilitiesNodePassive AST node aggregating all hierarchical orchestration capabilities mounted on an AgentNode (.capabilities($cap => ...)).
AgentContinuationFrameSerialized continuation frame for an P.agent execution session (kind: 'agent-frame').
AgentLessonsMountLesson subsystem mount descriptor on an AgentNode.
AgentNodePassive AST node representing the universal LLM actor primitive (P.agent(id)).
AgentTurnSessionStateMutable session state passed across P.agent turn-loop phase functions (Rule 3.1 — zero closure state machines).
AppendToolResultNotesOptionsOptions for ModelDriver.appendToolResultNotes().
AskInterruptBuilderFluent builder for a human-in-the-loop interrupt edge (.ask(human, responseSchema)).
AskInterruptHandlerNodeInterrupt handler variant (mode: 'ask') that pages a bidirectional HumanNode and resumes the interrupted actor.
AskLeaseElevationConfigConditional capability lease elevation rule evaluated after a human authority responds to an .ask() interrupt handler.
AstBuilderFluent builder contract that compiles declarative configuration into a passive AST node.
ASTNodeBase contract for all passive, JSON-serializable Abstract Syntax Tree (AST) nodes.
BaseAbortHookASTNodeDomain-agnostic base AST node contract for step abort hooks (AbortHookASTNode).
BaseAccountSeatASTNodeDomain-agnostic base AST node contract for LLM provider account seats (AccountSeatASTNode).
BaseCheckASTNodeDomain-agnostic base AST node contract for deterministic verification checks (CheckASTNode).
BaseControlPlaneASTNodeDomain-agnostic base AST node contract for exposed control-plane servers (ControlPlaneASTNode).
BaseCrossVerifierASTNodeDomain-agnostic base AST node contract for speculative cross-verifiers (CrossVerifierASTNode).
BaseDomainStepASTNodeDomain-agnostic base AST node contract for external adapter step nodes (DomainStepASTNode).
BaseEffectMatcherASTNodeDomain-agnostic base AST node contract for capability lease effect matchers (EffectMatcherASTNode).
BaseHumanChannelASTNodeDomain-agnostic base AST node contract for human notification and decision channels (HumanChannelASTNode).
BaseIsolationScopeASTNodeDomain-agnostic base AST node contract for isolation scopes (IsolationScopeASTNode).
BaseLedgerStoreASTNodeDomain-agnostic base AST node contract for durable execution ledger stores (LedgerStoreASTNode).
BaseLessonStoreASTNodeDomain-agnostic base AST node contract for empirical lesson stores (LessonStoreASTNode).
BaseModelASTNodeDomain-agnostic base AST node contract for LLM model configurations (ModelASTNode).
BasePolicyGuardASTNodeDomain-agnostic base AST node contract for pre-flight and post-flight policy guards (PolicyGuardASTNode).
BaseQuotaTripwireASTNodeDomain-agnostic base AST node contract for quantitative effect tripwires (QuotaTripwireASTNode).
BaseRunnerPoolASTNodeDomain-agnostic base AST node contract for execution slot and daemon pools (RunnerPoolASTNode).
BaseScopeRewindHookASTNodeDomain-agnostic base AST node contract for lane signal rewind hooks (ScopeRewindHookASTNode).
BaseServiceASTNodeDomain-agnostic base AST node contract for lifecycle-bound background services (ServiceASTNode).
BaseSourceASTNodeDomain-agnostic base AST node contract for external content and rule/skill sources (SourceASTNode).
BaseStreamSourceASTNodeDomain-agnostic base AST node contract for asynchronous event stream sources (StreamSourceASTNode).
BaseTelemetryCollectorASTNodeDomain-agnostic base AST node contract for custom telemetry collectors (TelemetryCollectorASTNode).
BaseToolASTNodeDomain-agnostic base AST node contract for agent-invocable tools (ToolASTNode).
BaseTopologyStoreASTNodeDomain-agnostic base AST node contract for relational partition topology stores (TopologyStoreASTNode).
BaseTrackerASTNodeDomain-agnostic base AST node contract for external work item trackers (TrackerASTNode).
BeforeStopGatePauseStatePause state on agent-frame when an actor has emitted its structured output and is inside beforeStop gates.
BranchableScopeTier-3 runtime driver contract for branchable isolation scopes (capabilityTier: 'branchable').
CanonicalMessageVendor-neutral projection of a conversation turn frame stored alongside rawWireFrame.
CanonicalToolCallVendor-neutral tool call invocation block inside a CanonicalMessage.
CanonicalToolResultVendor-neutral tool execution result block inside a CanonicalMessage.
CheckEvaluationResultVerification result returned by a CheckASTNode executor in RuntimeExecutorRegistry.checks.
CheckpointableScopeTier-2 runtime driver contract for checkpointable isolation scopes (capabilityTier: 'checkpointable' | 'branchable').
ChildForkExecutionOutcomeOutcome returned by a child step execution inside a downward .fork() or resumeFork batch.
ChildInterruptHandlerBuilderFluent builder for upward child-interrupt handlers declared on a parent agent (.onChildInterrupt(interrupt, $intr => ...)).
ChildInterruptHandlerNodePassive AST node representing an upward child-interrupt handler declared on a parent agent (.onChildInterrupt(interrupt, $intr => ...)).
ClaudeAccountSeatNodePassive AST node representing an Anthropic Claude CLI subscription seat or API key seat.
ClaudeModelNodePassive AST node representing an Anthropic Claude model configuration (@paraharness/claude).
CommandBuilderFluent builder for a deterministic TypeScript step command (P.command(id)).
CommandConfigOptionsDirect configuration object accepted by the 2-argument P.command(id, options) overload.
CommandNodePassive AST node representing a deterministic TypeScript step command (P.command(id)).
CommitRunOverlayResultResult returned by TopologyStore.commitRunOverlay() when a run's overlay lands in the base store.
CompactionConfigBuilderFluent configurator for ledger wire-frame compaction policies (.compactWhen($c => ...)).
CompactionConfigNodePassive AST node defining ledger wire-frame compaction policies.
CompactionSignalTriggerSignal-correlated ledger frame compaction trigger configuration.
CompactionTerminalExitTriggerTerminal run exit state compaction trigger configuration.
CompiledWirePrefixRun-immutable compiled prefix group artifact persisted in LedgerStore.compiledPrefixesJson.
CompileWirePrefixParamsParameters for compiling all PrefixGroupNode instances at the start of a flow run (SPEC.md §3.2.1).
CompletedToolBatchResultRecordCompleted tool execution result entry accumulated within an assistant turn batch.
ContrastiveDistillationTrajectoryPairRejected-to-accepted trajectory pair supplied to contrastive lesson distillation (SPEC.md §3.4.3).
ControlPlaneAdapterRuntime port for inbound control-plane servers (such as HTTP webhook listeners, MCP servers, or Slack bots).
ControlPlaneHandleActive handle returned when a control-plane adapter starts listening for external commands or webhooks.
CreateAgentCapabilitiesBuilderOptionsInternal copy-on-write state for createAgentCapabilitiesBuilder.
CreateCommandBuilderStateInternal copy-on-write state for createCommandBuilder.
CreateHarnessBuilderStateInternal copy-on-write state for createHarnessBuilder.
CreateHumanBuilderStateOptional copy-on-write state for createHumanBuilder.
CreateLessonsBuilderOptionsOptional copy-on-write state for createLessonsBuilder.
CreateOrResumeRunInputInput record passed to LedgerStore.createOrResumeRun().
CreateOrResumeRunResultPersisted run state returned by LedgerStore.createOrResumeRun().
CreatePolicyBuilderStateOptional copy-on-write state for createPolicyBuilder.
CreatePoolBuilderStateOptional state parameters for constructing a PoolBuilder instance.
CreatePrefixGroupBuilderStateOptional copy-on-write state for createPrefixGroupBuilder.
CreateRulesBuilderStateOptional copy-on-write state for createRulesBuilder.
CreateScopedRuleBuilderStateOptional copy-on-write state for createScopedRuleBuilder.
CreateSkillBuilderStateOptional copy-on-write state for createSkillBuilder.
CreateStreamBuilderStateOptional copy-on-write state for createStreamBuilder.
CreateTopologyBuilderStateOptional copy-on-write state for createTopologyBuilder.
CrossVerifierBranchCandidateCandidate branch descriptor supplied to a CrossVerifierASTNode executor in RuntimeExecutorRegistry.crossVerifiers.
CrossVerifierBuilderFluent builder contract for cross-candidate verification primitives (git.patchEquivalence, git.publicSurfaceCrossTester).
CustomDomainASTRegistryOpen declaration-mergeable registry for custom third-party domain adapter AST nodes.
CustomPoolStrategyNodePassive AST node for user-supplied custom pool selector functions.
DenyWithErrorPolicyGuardClauseNodeGuard clause node that blocks unauthorized tool calls in-band with an isError: true tool result.
DistilledLessonCandidateStructured output candidate produced by a contrastive lesson distillation model turn.
DrainToolBatchOutcomeOutcome returned by drainPendingToolBatch() after processing PendingToolBatch.remainingCalls.
EnqueueLaneItemOptionsParameters for enqueuing a work item into LaneScheduler.enqueueItem() (SPEC.md §3.10).
EnvRefSymbolic reference to an environment variable or secret resolved lazily at leaf runtime execution.
EscalateCapabilityBuilderFluent sub-builder for voluntary exogenous human escalation ($cap.escalate(interrupt, $esc => ...)).
EscalateCapabilityNodePassive AST node representing a voluntary exogenous human escalation capability ($cap.escalate(interrupt, $esc => ...)).
EscalateLeaseElevationConfigConditional capability lease elevation rule evaluated when a human authority responds to an .escalate() request.
EscalateOnRetryPoolStrategyNodePassive AST node for empirical retry-escalation pool strategies.
EscalateOnRetryStrategyBuilderFluent configurator for 'escalate-on-retry' pool strategies ($.escalateOnRetry()).
EvaluateLessonSignalTriggersParamsParameters for evaluating .emitSignalWhen() triggers on updated LessonRecord entries.
ExecutionContextStep-level execution context carrying isolation scope handles, leases, observed effects, and environment resolution.
FlowBranchBuilderFluent builder for a conditional multi-way branch inside a FlowNode (.branch(id, $b => ...)).
FlowBranchCaseConditional branch case entry (when(predicate, $sub => ...)) inside a FlowBranchNode.
FlowBranchNodePassive AST node representing a conditional multi-way branch inside a FlowNode (.branch(id, $b => ...)).
FlowBuilderFluent builder for a declarative multi-step workflow (P.flow(id)).
FlowExecutionContextMutable runtime state and dependency context for executing a single FlowNode run (SPEC.md §3.9).
FlowNodePassive AST node representing a declarative multi-step workflow (P.flow(id)).
FlowRunResultTerminal outcome returned by executeFlow() (SPEC.md §3.9).
FlowStepConfigBuilderFluent step configurator passed to flow.step(id, step, $s => ...) and subBranch.step(id, step, $s => ...).
FlowStepNodePassive AST node representing a single sequential step inside a FlowNode (.step(id, step, $s => ...)).
FlowSubBranchBuilderFluent sub-builder passed to FlowBranchBuilder.when(...) and FlowBranchBuilder.otherwise(...).
FlushStepLessonOutcomesParamsParameters for flushing deduplicated step or loop lesson outcomes to LessonStore.
ForkBatchContinuationFrameSerialized continuation frame for a concurrent batch of downward .fork() or resumeFork calls (kind: 'fork-batch-frame').
ForkBatchEntryRecordPer-fork execution entry inside a ForkBatchContinuationFrame.
ForkBatchExecutionParamsParameters for executing a concurrent batch of downward .fork() or resumeFork calls (SPEC.md §3.7.2).
ForkBatchExecutionResultOutcome returned by executeForkBatch() or executeResumeForkBatch() for the parent turn batch.
ForkCapabilityBuilderFluent sub-builder for a downward child fork capability ($cap.fork(toolName, childExecutable, $f => ...)).
ForkCapabilityNodePassive AST node representing a downward child fork capability tool ($cap.fork(toolName, childExecutable, $f => ...)).
ForkContextContext passed to ModelDriver.prepareFork() when initializing a downward child fork, speculative branch, or cross-model P.loop retry escalation.
ForkModelRoutingBuilderFluent sub-builder for downward fork model routing ($f.modelRouting($m => ...)).
ForkModelRoutingConfigConditional model routing configuration for downward child forks (.modelRouting($m => ...)).
ForkModelRoutingOtherwiseBuilderTerminal sub-builder interface for downward fork model routing after .inheritParentWithEffort(...).
FsAllowOnlyGuardNodePassive AST node restricting filesystem writes strictly to an allowlist of globs (fs.allowOnly).
FsBoundaryGuardNodePassive AST node blocking unapproved writes to partition boundaryGlobs (fs.boundaryGuard).
FsEditToolNodePassive AST node for the workspace-jailed file editing tool (fs:edit).
FsGlobMatcherNodePassive AST node matching FsToolEffect paths against POSIX glob patterns (fs.matchGlobs).
FsGlobSourceNodePassive AST node loading multiple UTF-8 text files matching a glob pattern (fs.glob).
FsGlobToolNodePassive AST node for the workspace-jailed file globbing tool (fs:glob).
FsGrepToolNodePassive AST node for the workspace-jailed content search tool (fs:grep).
FsJsonlLessonStoreNodePassive AST node configuring a host-root content-addressed JSON/JSONL lesson store (fs.jsonlLessonStore).
FsPartitionMapNodePassive AST node mapping logical TopologyNode partitions to physical filesystem globs (fs.partitionMap).
FsPartitionPathMappingMember implementation globs and public boundary surface globs mapped to a single topology partition.
FsProtectGuardNodePassive AST node protecting specific glob patterns from write mutations (fs.protect).
FsQuotaTripwireNodePassive AST node tripping when distinct mutated file paths in a session exceed maxFilesMutated (fs.maxFilesMutated).
FsReadOnlyGuardNodePassive AST node denying all filesystem write operations (fs.readOnly).
FsReadToolNodePassive AST node for the workspace-jailed file reading tool (fs:read).
FsRegexCheckNodePassive AST node evaluating a forbidden regex pattern across mutated files matching targetGlobs (fs.regexCheck).
FsRequireReadBeforeWriteGuardNodePassive AST node requiring an existing file to be read in the session before it is edited or overwritten (fs.requireReadBeforeWrite).
FsScopedWriteGuardNodePassive AST node restricting writes to the actor's active partitions (fs.scopedWrite).
FsSecretLiteralsGuardNodePassive AST node scanning proposed file writes for hardcoded secret literals (fs.secretLiterals).
FsTelemetryCollectorNodePassive AST node collecting distinct read and mutated file paths from FsToolEffect records (fs.telemetry).
FsTextSourceNodePassive AST node loading UTF-8 text from a single file path (fs.text).
FsWriteGuardNodePassive AST node enforcing glob-based write allow/deny rules (fs.writeGuard).
FsWriteToolNodePassive AST node for the workspace-jailed file writing tool (fs:write).
GeminiAccountSeatNodePassive AST node representing a Google Gemini API key seat or CLI/ADC seat.
GeminiModelNodePassive AST node representing a Google Gemini model configuration (@paraharness/gemini).
GitAbortMetaValidated abort metadata produced by git.snapshotAndReset().
GitCandidateComparisonToolNodePassive AST node for speculative candidate comparison and benchmark tools (git.candidateComparisonTools).
GitCleanWorkingTreeNodePassive AST node verifying that a GitWorktreeHandle has zero unresolved conflict paths or paired conflict markers.
GitCommitAndPushNodePassive AST node squashing, rebasing, verifying, and pushing a worktree branch (git.commitAndPush).
GitCowWorktreeNodePassive AST node configuring a Tier-3 branchable Copy-on-Write Git worktree scope (git.cowWorktree).
GitDiscardBranchNodePassive AST node resetting a worktree to targetStepBaseScopeCheckpoint and clearing uncommitted run topology overlay mutations during .rewindTo() (git.resetWorktree / git.discardBranch).
GithubCreateOrUpdatePrNodePassive AST node creating or updating a GitHub pull request (github.createOrUpdatePr).
GithubIssuesTrackerNodePassive AST node configuring a GitHub Issues tracker adapter (github.issues).
GithubWebhookStreamNodePassive AST node configuring a GitHub webhook event stream source (github.webhookStream).
GitKeepWorktreeNodePassive AST node preserving a worktree's current working tree and topology overlay in-place across a signal-driven .rewindTo() (git.keepWorktree).
GitMergeQueueNodePassive AST node executing cumulative batch merge-train verification (git.mergeQueue).
GitPatchEquivalenceNodePassive AST node comparing patch equivalence across speculative worktree candidates (git.patchEquivalence).
GitPublicSurfaceCrossTesterNodePassive AST node cross-executing boundary-only tests across speculative worktree candidates (git.publicSurfaceCrossTester).
GitReconcileStrategyConfigBranch landing reconciliation strategy ('rebase-onto-base' or 'batch-merge-train') for GitCowWorktreeNode.
GitRefReaderToolNodePassive AST node for read-only git object store inspection tools (git.refReaderTools).
GitScopeReceiptValidated scope inspection receipt produced by git.cowWorktree (inspect and commitChild).
GitSnapshotAndResetNodePassive AST node snapshotting an aborted worktree to refs/harness/aborted/<run-id>/<stepExecId> and resetting the working tree to handle.baseRef (git.snapshotAndReset).
GitSyncReceiptValidated synchronization receipt produced by git.cowWorktree (syncChild and syncRoot).
GitWorktreeHandleRuntime scope handle for an isolated Copy-on-Write Git worktree (git.cowWorktree).
GroundingSnapshotRecordRun-start snapshot of a .sharedGrounding() source persisted on CompiledWirePrefix.
HarnessBuilderFluent builder for the root Paraharness application (P.harness(id)).
HarnessExecutionEngineFactory interface for swappable execution engines that instantiate a HarnessRuntime from a passive HarnessNode.
HarnessNodeRoot passive AST node representing a complete Paraharness application (P.harness(id)).
HarnessRuntimeLifecycle handle for an instantiated Paraharness runtime engine.
HarnessRuntimeControllerProgrammatic control surface exposed to control-plane adapters and host processes for interacting with a live runtime.
HarnessRuntimeOptionsConfiguration options supplied when instantiating a HarnessRuntime via createRuntime(harness, options).
HarnessSignalNotificationRoot-level signal notification rule routing an emitted SignalNode to a HumanNode channel.
HarnessSignalNotificationBuilderFluent sub-builder for a root-level signal notification rule (harness.onSignal(sig, $sig => $sig.notify(human, mapper))).
HierarchicalRewindDrainParamsParameters for executing the 4-step Hierarchical Rewind Drain Barrier (SPEC.md §3.10).
HumanAdapterRuntime port for outbound human notifications and bidirectional human-in-the-loop adjudications.
HumanBuilderFluent builder for external human authorities and notification channels (P.human(id)).
HumanDecisionRequestStructured request payload delivered to a bidirectional HumanAdapter when awaiting a human decision.
HumanNodePassive AST node representing an external human authority or notification target (P.human(id)).
InlineScopedRuleNodeInline ScopedRuleNode variant whose when predicate and directive are declared directly in code.
InlineSkillNodeInline SkillNode variant whose description and instructions are configured directly on P.skill(id).
InRunGroundingDiffParamsParameters for computing in-run grounding diffs against a pinned CompiledWirePrefix.
InterruptBuilderImmutable fluent builder and property projection for InterruptNode.
InterruptEdgeBuilderFluent builder for an .onInterrupt(interrupt, $intr => ...) resolution edge on a flow step or actor.
InterruptEdgeResolutionOutcome returned by resolveInterruptEdge() when handling a policy, voluntary, or child interrupt (SPEC.md §3.5 & §3.6).
InterruptedStepBootRecordNon-terminal run and step record returned by LedgerStore.getInterruptedStepsOnBoot().
InterruptFlushPauseStatePause state on agent-frame during .onLimitExceeded() epistemic flush or .replaceWith() abort cleanup.
InterruptNodePassive AST node representing a synchronous upward interrupt raised by an actor or policy guard.
InterruptPayloadBuilderFluent builder returned by P.interrupt(id) with .payload(schema) configuration and direct AST property access.
IsolationScopeTier-1 base runtime driver contract for isolated execution scopes (capabilityTier: 'scope').
LaneBuilderFluent builder for a concurrent work execution lane (P.lane(id)).
LaneMaxCostConfigPer-run USD budget ceiling and human approval target for a LaneNode.
LaneNodePassive AST node representing a concurrent work execution lane (P.lane(id)).
LaneQueuedItemStateIn-memory scheduling record for a work item tracked by LaneScheduler (SPEC.md §3.10).
LaneRetryConfigStep retry and exponential backoff configuration for a LaneNode.
LaneRetryConfigBuilderFluent sub-builder for step retry and exponential backoff (lane.retry($ => ...)).
LaneSchedulerConfigConfiguration dependencies injected into LaneScheduler at construction time (SPEC.md §3.10).
LaneSignalHandlerBuilderFluent sub-builder for live signal steering and step rewind (lane.onSignal(sig, $ => ...)).
LaneSignalHandlerConfigLive signal steering and step rewind handler configuration for a LaneNode.
LaneTrackerConfigExternal issue tracker polling and state mapping configuration for a LaneNode.
LaneTrackerConfigBuilderFluent sub-builder for external issue tracker polling and state synchronization (lane.tracker(adapter, $ => ...)).
LaneWaitForConfigPrerequisite dependency extraction and abandoned-dependency fallback configuration for a LaneNode.
LeaseDeltaJSON-serializable capability lease persisted on ContinuationFrame records in LedgerStore.
LedgerStoreDurable runtime storage port for flow runs, continuation call stacks, wire frames, suspended child forks, and lane DAG mutations.
LessonCreationEpochMetadataPartition epoch and run attribution resolved for a newly distilled lesson (SPEC.md §3.4.3).
LessonDistillationBuilderFluent configurator for contrastive lesson distillation ($d in .distillWith(model, $d => ...)).
LessonDistillationConfigConfiguration for contrastive lesson distillation (onLoopRecovery and onGateRecovery).
LessonDistillationParamsParameters for executing contrastive lesson distillation (runContrastiveLessonDistillation).
LessonEmitSignalTriggerSignal emission trigger for promoting high-leverage lessons into permanent rules or checks.
LessonRecordStored empirical lesson record with sliding-window outcome history and relevance scoring metadata.
LessonRetirementBuilderFluent configurator for automatic lesson retirement thresholds ($r in .retireAfter($r => ...)).
LessonRetirementConfigAutomatic retirement thresholds for low-performing or violated lessons.
LessonsBuilderFluent builder for empirical lesson memory subsystems (P.lessons(id)).
LessonScoreContextParamsOptional partition and epoch context passed to computeLessonScore() and selectRecalledLessons().
LessonScoringBuilderFluent configurator for lesson scoring and recall parameters ($s in .scoring($s => ...)).
LessonScoringConfigScoring and recall configuration for P.lessons.
LessonSignalTriggerBuilderFluent configurator for lesson promotion signal triggers ($t in .emitSignalWhen(sig, $t => ..., mapper)).
LessonsNodePassive AST node representing an empirical lesson memory subsystem (P.lessons(id)).
LessonStoreRuntime storage port for querying, admitting, scoring, and retiring empirical lessons.
LimitExceededFlushParamsParameters for executing the 4-step crash-safe .onLimitExceeded() sequence (SPEC.md §3.5).
LimitExceededFlushResultOutcome returned by executeLimitExceededSequence() after completing Steps 1–4 (SPEC.md §3.5).
LocalCommandCheckNodePassive AST node adapting a LocalCommandNode into a deterministic CheckASTNode (cmd.asCheck()).
LocalCommandNodePassive AST node representing a one-shot local OS subprocess command (local.command).
LocalCommandToolNodePassive AST node adapting a LocalCommandNode into a post-flight-diffed ToolASTNode (cmd.asTool()).
LocalCommandUnrepeatableConfigIdempotency guard configuration on LocalCommandNode that skips execution when preCheckCmd returns true.
LocalServiceInteractionConfigFramed pseudo-terminal (PTY) interaction tool specification exposed by a LocalServiceNode.
LocalServiceNodePassive AST node representing a lifecycle-bound background daemon service (local.daemon).
LocalServiceToolNodePassive AST node representing a post-flight-diffed interaction tool bound to a LocalServiceNode.
LocalStreamCheckCircuitBreakerConfigRolling-window regex circuit-breaker configuration over combined stdout and stderr for LocalStreamCheckNode.
LocalStreamCheckNodePassive AST node representing a streaming subprocess check with rolling-window regex circuit-breaking (local.streamCheck).
LocalStreamCheckToolNodePassive AST node adapting a LocalStreamCheckNode into a post-flight-diffed ToolASTNode (streamCheck.asTool()).
LoopActConfigBuilderBuilder descriptor interface for the .act(stepId, actor) step inside P.loop(id).
LoopActStepConfigAction step descriptor (actStep) inside a LoopNode.
LoopBuilderFluent builder for an iterative action-and-evaluation refinement loop (P.loop(id)).
LoopContinuationFrameSerialized continuation frame for an iterative P.loop execution (kind: 'loop-frame').
LoopEvaluateOptionsConfiguration options passed to LoopBuilder.evaluate(stepId, evaluator, options).
LoopEvaluatePhaseResultOutcome returned by runLoopEvaluatePhase() after executing the evaluator agent on an .act() output (SPEC.md §3.8).
LoopEvaluateStepConfigEvaluation step descriptor (evaluateStep) inside a LoopNode.
LoopExecutionStateMutable execution state passed across P.loop iteration phase helpers (Rule 3.1).
LoopNodePassive AST node representing an iterative action-and-evaluation refinement loop (P.loop(id)).
MarkdownFrontmatterSourceNodePassive AST node loading frontmatter-annotated rules or skills from Markdown files (md.*).
MarkdownSectionSourceNodePassive AST node extracting a specific Markdown heading section from a document (md.section).
ModelDriverRuntime port for LLM provider protocol drivers (@paraharness/claude, @paraharness/openai, @paraharness/gemini).
ModelTurnRequestRequest parameters passed to ModelDriver.invokeTurn().
ModelTurnResponseResponse returned by a single ModelDriver.invokeTurn() call.
ModelUsageMetricsToken usage and cost metrics returned by a single ModelDriver.invokeTurn() call.
MutateLanePlanRequestRequest record passed to LedgerStore.mutateLanePlan() when spawning prerequisite tasks or adding dependencies.
MutateLanePlanSpawnedItemNewly spawned work item entry inside a MutateLanePlanRequest.
MutatePlanCapabilityBuilderFluent sub-builder for dynamic lane plan and topology contract mutation capabilities ($cap.mutatePlan($m => ...)).
MutatePlanCapabilityNodePassive AST node representing dynamic lane plan and topology contract mutation capabilities ($cap.mutatePlan($m => ...)).
NodeAllowBinariesNodePassive AST node restricting subprocess execution to an explicit allowlist of binary names (local.allowBinaries).
NodeDenyNetworkNodePassive AST node denying outbound network access during subprocess execution (local.denyNetwork).
NodeHttpControlPlaneNodePassive AST node exposing a local HTTP control-plane endpoint (local.httpControlPlane).
NodeMcpSseNodePassive AST node exposing a Model Context Protocol (MCP) server over HTTP/SSE (mcp.server / local.mcpSse).
NodeMcpStdioNodePassive AST node exposing a Model Context Protocol (MCP) server over standard I/O (local.mcpStdio).
NodeRunnerNodePassive AST node representing a local OS subprocess and daemon concurrency pool (local.runner).
OpenAiAccountSeatNodePassive AST node representing an OpenAI API key seat or Codex CLI subscription seat.
OpenAiModelNodePassive AST node representing an OpenAI Responses API model configuration (@paraharness/openai).
PendingAdjudicationRecordPending interrupt adjudication metadata persisted inside AdjudicationPauseState.
PendingPauseTriggerRecordTrigger metadata recorded on ForkBatchContinuationFrame.pendingPauseTriggers when a child fork raises an upward interrupt during a turn-batch barrier wait.
PendingPreFlightCallViolation record for a single tool call blocked pre-flight or post-flight by a policy guard clause.
PendingToolBatchDurable turn-batch state persisted on agent-frame across tool executions, fork/speculate sub-frames, prerequisite suspensions, and interrupt adjudications.
PlanMutationParamsParameters for executing .mutatePlan() capability tools (spawnTasks, addDependencies, updatePartitionContract).
PlanMutationResultOutcome returned by executeSpawnTasks() or executeAddDependencies().
PNamespaceRoot declarative builder namespace (P) for constructing passive Paraharness AST definitions.
PolicyBuilderFluent builder for capability and sandbox policies (P.policy(id)).
PolicyEvaluationResultResult of evaluating pre-flight or post-flight policy guard clauses (SPEC.md §3.5).
PolicyGuardClauseBuilderIntermediate fluent builder returned by P.policy(id).guard(...guards) requiring .onViolation(...).
PolicyGuardEvaluationInputInput payload supplied to a PolicyGuardASTNode executor in RuntimeExecutorRegistry.policyGuards.
PolicyGuardEvaluationResultResult returned by a PolicyGuardASTNode executor in RuntimeExecutorRegistry.policyGuards.
PolicyLimitExceededBuilderFluent configurator for limit-exceeded flush and abort handling ($limit in .onLimitExceeded).
PolicyLimitExceededConfigEpistemic flush and abort hook configuration executed when a quantitative policy limit or tripwire is breached.
PolicyNodePassive AST node representing a capability and sandbox policy (P.policy(id)).
PolicyViolationAggregated policy violation descriptor passed to .onViolation(...) mappers when a guard clause rejects a tool call or batch.
PoolBuilderFluent builder for capacity and model pools (P.pool(id)).
PoolCandidateRuntimeMetricsMutable per-candidate runtime telemetry and rate-limit state inside a PoolRuntimeState.
PoolCandidateStateRuntime telemetry and rate-limit state for a single candidate item inside a capacity pool.
PoolModelSelectionOptionsOptional retry and timestamp parameters supplied to PoolManager.selectModel() (SPEC.md §3.2).
PoolNodePassive AST node representing a capacity pool of account seats or models.
PoolRuntimeStatePer-pool runtime state managed by PoolManager (SPEC.md §3.2).
PoolSelectionContextContextual metadata passed to a pool selection strategy during candidate resolution.
PoolStrategyBuilderFluent configurator passed to P.pool(id).strategy(($) => ...).
PostFlightSandboxParamsParameters for executing a tool with effectTracking === 'subprocess-post-flight' (SPEC.md §3.5).
PostFlightSandboxResultOutcome returned by executePostFlightSandboxedTool() after running a 'subprocess-post-flight' tool (SPEC.md §3.5).
PostgresLedgerNodePassive AST node configuring a PostgreSQL ledger store (postgres.ledger).
PostgresLessonsNodePassive AST node configuring a PostgreSQL lesson store (postgres.lessonStore).
PostgresRulesSourceNodePassive AST node loading global rules from a PostgreSQL table (postgres.globalRules).
PostgresTopologyNodePassive AST node configuring a PostgreSQL topology store (postgres.topologyStore).
PostRaceResolutionPost-race classification computed by resolvePostRaceCases() (SPEC.md §3.7.2 Capability 2).
PrecedingCompletedToolResultCompleted tool execution result for a preceding regular tool call (1..m) in an assistant turn that also dispatches a 'clone-transcript' downward fork.
PrefixGroupBuilderFluent builder for run-immutable KV-cache prompt prefix groups (P.prefixGroup(id)).
PrefixGroupNodePassive AST node representing a shared KV-cache prompt prefix group (P.prefixGroup(id)).
PreFlightBatchEvalParamsParameters for evaluating pre-flight policy guards across a pending tool call batch (i..k).
PrepareForkTargetTarget model and tombstone substitution options passed to ModelDriver.prepareFork().
PrerequisiteWaitPauseStatePause state on agent-frame when suspended via onPrerequisiteSpawned: 'suspend-and-yield-slot'.
QuotaTripwireEvaluationInputInput payload supplied to a QuotaTripwireASTNode executor in RuntimeExecutorRegistry.quotaTripwires.
QuotaTripwireEvaluationResultResult returned by a QuotaTripwireASTNode executor in RuntimeExecutorRegistry.quotaTripwires.
RaiseInterruptPolicyGuardClauseNodeGuard clause node that intercepts unauthorized tool calls and raises a structured InterruptNode.
ReacquireSkillServicesParamsParameters for re-acquiring all active skill services prior to draining remainingCalls on resume (SPEC.md §3.4.2).
RecalledLoopLessonRecordRecalled lesson summary persisted on LoopContinuationFrame and forwarded into .evaluate().
ReconcileCleanResultClean 3-way scope reconciliation result returned by commitChild, syncChild, or syncRoot.
ReconcileConflictResultConflicted 3-way scope reconciliation result returned when concurrent changes overlap.
RecordStepStartInputInput record passed to LedgerStore.recordStepStart().
RecordStepTransitionInputInput record passed to LedgerStore.recordStepTransition().
RecoverInterruptedRunParamsParameters for recovering a non-terminal run returned by LedgerStore.getInterruptedStepsOnBoot() (SPEC.md §3.10).
RemainingToolCallRecordEntry in the declaration-ordered queue of unfinished tool calls (remainingCalls) for an assistant turn.
ReplaceInterruptBuilderCompiled builder returned by InterruptEdgeBuilder.replaceWith(replacementExecutable, mapReplacementInput).
ReplaceInterruptHandlerNodeInterrupt handler variant (mode: 'replace') that aborts the current step, runs cleanup hooks, and promotes to a replacement executable.
ReplaceWithPromotionParamsParameters for promoting a .replaceWith(replacementActor, mapInput) handler on a flow step (SPEC.md §3.6 & §3.9).
ResolutionContextRead-only context supplied to SourceASTNode executors when loading prompts, rules, skills, or guidelines.
ResolvedSourceArtifactResolved artifact returned by a SourceASTNode executor in RuntimeExecutorRegistry.sources.
RewindHookExecutionInputInput payload supplied to a ScopeRewindHookASTNode executor in RuntimeExecutorRegistry.rewindHooks.
RoleAndScopeContextFrameParamsParameters for constructing the Turn-0 [ROLE_AND_SCOPE_CONTEXT] user message frame.
RulesBuilderFluent builder for rule registries (P.rules(id)).
RulesNodePassive AST node representing a rule registry (P.rules(id)) combining always-on global rules and conditional scoped rules.
RunnerDriverRuntime concurrency limiter for one-shot subprocess slots and background daemon sessions.
RunTerminalReceiptRecordTerminal run receipt entry returned by LedgerStore.getRunTerminalReceipts().
RuntimeDriverContextRoot runtime driver context supplied to adapter factory functions in RuntimeExecutorRegistry.
RuntimeExecutorRegistryComplete runtime lookup table mapping every DomainASTNode category and type discriminant to its executor or driver factory.
RuntimeExecutorRegistrySlicePartial slice of RuntimeExecutorRegistry exported by an individual domain adapter package.
ScopedHumanNameBuilderIntermediate fluent builder returned by human.withName(alias) before binding .output(responseSchema).
ScopedHumanTargetBuilderFluent builder representing a scoped human target (human.withName(alias).output(schema)).
ScopedHumanTargetNodePassive AST node representing a role-aliased bidirectional human decision target with a bound output schema (human.withName(alias).output(schema)).
ScopedRuleBuilderFluent builder for partition- or effect-scoped rules (P.scopedRule(idOrSource)).
ScopeLockEntryStatePer-handle read/write lock state tracked by ScopeLockManager.
ScopeLockQueuedTurnOrdered queued turn descriptor in ScopeLockEntryState.queuedTurns.
ScopeLockQueueWaiterQueued shared-read waiter entry inside a ScopeLockReaderBatchState.
ScopeLockReaderBatchStateReader-batch turn state coordinated on a handle's PQueue (concurrency: 1).
ScopePredicateInputInput predicate shape accepted by P.scopedRule(...).when(...) and P.skill(...).when(...).
ServiceSessionLive background daemon session spawned from a ServiceASTNode within an isolation scope.
ServiceStartInputInput payload supplied to a ServiceASTNode executor in RuntimeExecutorRegistry.services.
ServiceToolSchemaDescriptorStatic wire tool schema descriptor declared by a lifecycle-bound BaseServiceASTNode.
SignalBuilderImmutable fluent builder and property projection for SignalNode.
SignalNodePassive AST node representing an asynchronous signal routed across streams, lanes, and stores.
SignalPayloadBuilderFluent builder returned by P.signal(id) with .payload(schema) configuration and direct AST property access.
SkillBuilderFluent builder for pull-based procedural skills (P.skill(idOrSource)).
SlackApproverNodePassive AST node configuring a bidirectional Slack Socket Mode human approver and control plane (slack.bot).
SlackNotifierNodePassive AST node configuring a one-way notify-only Slack incoming webhook channel (slack.webhook).
SourcedScopedRuleNodeSource-backed ScopedRuleNode variant loaded from a SourceASTNode<ScopedRule> (such as md.frontmatter).
SourcedSkillNodeSource-backed SkillNode variant loaded from a SourceASTNode<SkillNode<THandle>> (such as md.frontmatter).
SpawnTaskInputEntryRaw task descriptor supplied to executeSpawnTasks().
SpawnTasksBuilderOptionsOptions passed to MutatePlanCapabilityBuilder.canSpawnTasks(itemSchema, options).
SpawnTasksConfigConfiguration for the spawnTasks plan-mutation capability tool (canSpawnTasks).
SpawnTasksSignalResumeConditionSignal-correlated wakeup condition for a parent run suspended after spawning prerequisite tasks.
SpeculateArbiterConfigArbiter configuration (arbiter) for judging multiple completed or parked speculative branches.
SpeculateBranchEntryRecordPer-branch execution entry inside a SpeculateContinuationFrame.
SpeculateBufferedLessonOutcomeRecordBuffered lesson outcome batch for a single speculative candidate branch.
SpeculateCapabilityBuilderFluent sub-builder for a parallel speculative tournament capability ($cap.speculate(toolName, $s => ...)).
SpeculateCapabilityNodePassive AST node representing a parallel speculative tournament capability ($cap.speculate(toolName, $s => ...)).
SpeculateContinuationFrameSerialized continuation frame for a .speculate() tournament (kind: 'speculate-frame').
SpeculateHumanRulingRecordHistorical human ruling entry recorded when an arbiter unparks an escalated speculative branch.
SpeculateRefineWinnerConfigOptional post-arbitration refinement step (refineWinnerWhen) for synthesizing cross-candidate improvements on the winning branch.
SpeculateTournamentParamsParameters for executing a parallel .speculate() tournament (SPEC.md §3.7.2 Capability 2).
SpeculateTournamentResultOutcome returned by executeSpeculateTournament() for the parent assistant turn batch.
SpeculateVerifyWinnerConfigOptional sole-survivor verification gate (verifyWinnerWith) for uncontested speculative tournaments.
SqliteLedgerNodePassive AST node configuring a WAL-mode SQLite ledger store (sqlite.ledger).
SqliteLessonsNodePassive AST node configuring a WAL-mode SQLite lesson store (sqlite.lessonStore).
SqliteRulesSourceNodePassive AST node loading global rules from a SQLite table (sqlite.globalRules).
SqliteTopologyNodePassive AST node configuring a WAL-mode SQLite topology store (sqlite.topologyStore).
StandardPoolStrategyNodePassive AST node for built-in non-escalating capacity pool selection strategies.
StepExecutionContextExtended step execution context combining ExecutionContext<THandle> with RuntimeExecutorRegistry.
StreamBuilderFluent builder for inbound event streams (P.stream(id)).
StreamNodePassive AST node representing an inbound event stream (P.stream(id)).
StreamSourceRuntime port for asynchronous event stream sources (@paraharness/github).
StreamSubscriptionHandleActive subscription handle returned by StreamSource.subscribe().
SuspendedForkRecordDurable ledger record representing a downward child fork suspended by an upward interrupt (INTERRUPT_RAISED) or paused at the turn-batch barrier by a sibling interrupt (PAUSED_BY_SIBLING_INTERRUPT).
SyncPrerequisitesParamsParameters for syncSuspendedRunPrerequisites() during 'SUSPENDED' wakeup or initial QUEUED -> RUNNING start.
ToolBatchPauseStateTool-batch pause state on agent-frame while iterating or suspending across assistant tool calls (1..k).
ToolDriverRuntime port for executing a ToolASTNode and optionally predicting its pre-flight ToolEffect list.
ToolEffectDomain-agnostic effect descriptor emitted pre-flight by ToolDriver.describeEffects() or synthesized post-flight by CheckpointableScope.diffEffects().
ToolExecutionResultStructured result payload returned by a ToolDriver.execute or ServiceSession.invokeTool call.
TopologyBuilderFluent builder and query surface for relational partition topologies (P.topology(id)).
TopologyCommitOverlayBuilderInputBuilder input options for P.topology(id).commitOverlayWhen(...), accepting MaybeBuilder<SignalNode> on signal triggers.
TopologyCommitOverlayConfigLifecycle policy governing when a run's Copy-on-Write topology overlay commits to the base store.
TopologyConfigBuilderFluent builder for relational system topologies (P.topology(id)), extending TopologyBuilder<TPartition>.
TopologyNodePassive AST node defining the directed acyclic graph (DAG) of logical system partitions.
TopologyPartitionConstraintDependency constraint declaration for a single partition in a relational TopologyNode.
TopologyPartitionStateLive or overlay state record for a single logical partition in TopologyStore.
TopologySignalCorrelationSignal-to-run correlation rule for committing or discarding a sealed topology overlay.
TopologyStoreRuntime storage port for run-isolated Copy-on-Write partition contract overlays and 3-way commits.
TrackerAdapterRuntime adapter port for external issue or ticket trackers (@paraharness/github).
UniversalStepTelemetryUniversal step execution telemetry record passed to .replaceWith() mappers and persisted in LedgerStore.
WireFrameRecordImmutable ledger record capturing both the exact vendor wire payload (rawWireFrame) and its vendor-neutral CanonicalMessage projection.
WireToolSchemaJSON-serializable tool schema entry compiled into CompiledWirePrefix.

Type Aliases ​

AbortHookASTNode ​

ts
type AbortHookASTNode<THandle, TAbortMeta> = 
  | GitSnapshotAndResetNode
  | CustomDomainAST<"abortHook">
  | THandle extends never ? never : never
  | TAbortMeta extends never ? never : never;

Defined in: ast/domain-ast.types.ts:165

Workspace-wide discriminated union of scope abort hook AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.
TAbortMeta extends Record<string, unknown>Record<string, unknown>Validated abort metadata record shape.

AccountSeatASTNode ​

ts
type AccountSeatASTNode = 
  | ClaudeAccountSeatNode
  | OpenAiAccountSeatNode
  | GeminiAccountSeatNode
| CustomDomainAST<"accountSeat">;

Defined in: ast/domain-ast.types.ts:204

Workspace-wide discriminated union of LLM provider account seat AST nodes.


AgentPauseState ​

ts
type AgentPauseState = 
  | ActiveTurnPauseState
  | ToolBatchPauseState
  | BeforeStopGatePauseState
  | AdjudicationPauseState
  | PrerequisiteWaitPauseState
  | InterruptFlushPauseState;

Defined in: ports/agent-pause-state.types.ts:11

Discriminated union consolidating mutually exclusive phase-specific pause payloads on AgentContinuationFrame.


BaseStepASTNode ​

ts
type BaseStepASTNode<TType, TIn, TOut, THandle> = BaseDomainStepASTNode<TType, TIn, TOut, THandle>;

Defined in: ast/base/base-domain-ast.types.ts:20

Alias for BaseDomainStepASTNode used by external step adapter packages.

Type Parameters ​

Type ParameterDefault typeDescription
TType extends stringstringString-literal discriminant of the domain step node.
TInunknownValidated step input payload type.
TOutunknownValidated step output payload type.
THandleunknownIsolation scope handle type required by the step.

BivariantCallback ​

ts
type BivariantCallback<TArgs, TResult> = object["bivarianceHack"];

Defined in: ast/ast-foundation.types.ts:11

Bivariant function type enabling covariance across generic AST node and port collections under strictFunctionTypes: true without any.

Type Parameters ​

Type ParameterDefault typeDescription
TArgs extends readonly unknown[]-Ordered tuple of function parameter types.
TResultunknownFunction return type.

BudgetApproval ​

ts
type BudgetApproval = z.infer<typeof BudgetApprovalSchema>;

Defined in: schemas/budget-and-lesson.schema.ts:15

Validated human budget approval decision payload.


BuiltInCheckASTNode ​

ts
type BuiltInCheckASTNode<THandle> = 
  | LocalStreamCheckNode<THandle>
  | LocalCommandCheckNode<THandle>
  | FsRegexCheckNode<THandle>
  | GitCleanWorkingTreeNode;

Defined in: ast/domain-ast.types.ts:122

Built-in deterministic check AST node union across @paraharness/{node,fs,git}.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.

BuiltInGuardASTNode ​

ts
type BuiltInGuardASTNode = 
  | FsProtectGuardNode
  | FsReadOnlyGuardNode
  | FsAllowOnlyGuardNode
  | FsRequireReadBeforeWriteGuardNode
  | FsScopedWriteGuardNode
  | FsSecretLiteralsGuardNode
  | FsWriteGuardNode
  | FsBoundaryGuardNode
  | NodeAllowBinariesNode
  | NodeDenyNetworkNode;

Defined in: ast/domain-ast.types.ts:140

Built-in policy guard AST node union across @paraharness/{fs,node}.


BuiltInToolASTNode ​

ts
type BuiltInToolASTNode<THandle> = 
  | FsReadToolNode<THandle>
  | FsEditToolNode<THandle>
  | FsWriteToolNode<THandle>
  | FsGlobToolNode<THandle>
  | FsGrepToolNode<THandle>
  | LocalCommandToolNode<THandle>
  | LocalStreamCheckToolNode<THandle>
  | LocalServiceToolNode<THandle>
  | GitRefReaderToolNode<THandle>
| GitCandidateComparisonToolNode<THandle>;

Defined in: ast/domain-ast.types.ts:108

Built-in tool AST node union across @paraharness/{fs,node,git}.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.

CheckASTNode ​

ts
type CheckASTNode<THandle> = 
  | BuiltInCheckASTNode<THandle>
  | CustomDomainAST<"check">
| CustomDomainAST<"evaluator">;

Defined in: ast/domain-ast.types.ts:128

Workspace-wide discriminated union of deterministic check AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.

CleanReconcileResult ​

ts
type CleanReconcileResult<TData> = ReconcileCleanResult<TData>;

Defined in: ports/reconcile-result.types.ts:9

Alias for ReconcileCleanResult representing a conflict-free 3-way scope reconciliation result.

Type Parameters ​

Type ParameterDefault typeDescription
TDataunknownScope inspection receipt (TReceipt) or sync receipt (TSync) type.

ConflictReconcileResult ​

ts
type ConflictReconcileResult<TData> = ReconcileConflictResult<TData>;

Defined in: ports/reconcile-result.types.ts:16

Alias for ReconcileConflictResult representing a conflicted 3-way scope reconciliation result.

Type Parameters ​

Type ParameterDefault typeDescription
TDataunknownScope inspection receipt (TReceipt) or sync receipt (TSync) type.

ContinuationFrame ​

ts
type ContinuationFrame = 
  | AgentContinuationFrame
  | LoopContinuationFrame
  | ForkBatchContinuationFrame
  | SpeculateContinuationFrame;

Defined in: ports/continuation-frame.types.ts:12

Discriminated union of serialized tree-structured execution frames persisted in LedgerStore.

Preserves composite P.loop, P.agent, downward .fork() / resumeFork batches, and .speculate() tournaments across upward interrupt suspensions and process crash recovery.


ControlPlaneASTNode ​

ts
type ControlPlaneASTNode = 
  | NodeMcpStdioNode
  | NodeMcpSseNode
  | NodeHttpControlPlaneNode
  | SlackApproverNode
| CustomDomainAST<"controlPlane">;

Defined in: ast/domain-ast.types.ts:234

Workspace-wide discriminated union of inbound control-plane AST nodes.


CoreASTNode ​

ts
type CoreASTNode = 
  | HarnessNode
  | LaneNode
  | FlowNode
  | FlowStepNode
  | FlowBranchNode
  | AgentNode
  | LoopNode
  | CommandNode
  | PolicyNode
  | PolicyGuardClauseNode
  | ForkCapabilityNode
  | SpeculateCapabilityNode
  | MutatePlanCapabilityNode
  | EscalateCapabilityNode
  | AgentCapabilitiesNode
  | ChildInterruptHandlerNode
  | InterruptHandlerNode
  | PoolNode
  | PoolStrategyNode
  | TopologyNode
  | RulesNode
  | ScopedRuleNode
  | SkillNode
  | LessonsNode
  | PrefixGroupNode
  | SignalNode
  | InterruptNode
  | StreamNode
  | HumanNode
  | ScopedHumanTargetNode
  | CompactionConfigNode
  | EnvRef;

Defined in: ast/core-ast-node.types.ts:35

Complete union of all @paraharness/core passive AST nodes.


CrossTesterASTNode ​

ts
type CrossTesterASTNode<TCrossReport> = 
  | GitPublicSurfaceCrossTesterNode<TCrossReport>
| CustomDomainAST<"crossTester">;

Defined in: ast/domain-ast.types.ts:182

Workspace-wide discriminated union of public-surface cross-tester AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
TCrossReportunknownValidated cross-verification report type.

CrossVerifierASTNode ​

ts
type CrossVerifierASTNode<THandle, TReceipt, TCrossReport> = 
  | PatchEquivalenceASTNode<TCrossReport>
  | CrossTesterASTNode<TCrossReport>
  | CustomDomainAST<"crossVerifier">
  | THandle extends never ? never : never
  | TReceipt extends never ? never : never;

Defined in: ast/domain-ast.types.ts:189

Workspace-wide discriminated union of speculative cross-verifier AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.
TReceipt extends Record<string, unknown>Record<string, unknown>Inspected scope receipt record shape.
TCrossReportunknownValidated cross-verification report type.

CustomDomainAST ​

ts
type CustomDomainAST<K> = 
  | K extends keyof CustomDomainASTRegistry ? CustomDomainASTRegistry[K] : never
  | { [P in keyof CustomDomainASTRegistry]: P extends `${K}:${string}` ? CustomDomainASTRegistry[P] : never }[keyof CustomDomainASTRegistry];

Defined in: ast/custom-domain-ast.types.ts:13

Resolves custom domain AST node types registered under either exact category key K or namespaced ${K}:${string} keys inside CustomDomainASTRegistry.

Supporting both exact keys (scope, tool, guard) and namespaced keys (tool:stripe, scope:netsuite) allows multiple third-party domain packages to augment CustomDomainASTRegistry simultaneously in the same compilation unit without TypeScript TS2717 property type collisions.

Type Parameters ​

Type ParameterDescription
K extends stringCategory key prefix to extract from CustomDomainASTRegistry.

DomainASTNode ​

ts
type DomainASTNode = 
  | IsolationScopeASTNode
  | DomainStepASTNode
  | ToolASTNode
  | CheckASTNode
  | ServiceASTNode
  | PolicyGuardASTNode
  | QuotaTripwireASTNode
  | TelemetryCollectorASTNode
  | AbortHookASTNode
  | ScopeRewindHookASTNode
  | CrossVerifierASTNode
  | SourceASTNode
  | AccountSeatASTNode
  | ModelASTNode
  | LedgerStoreASTNode
  | TopologyStoreASTNode
  | LessonStoreASTNode
  | TrackerASTNode
  | StreamSourceASTNode
  | HumanChannelASTNode
  | ControlPlaneASTNode
  | EffectMatcherASTNode
  | RunnerPoolASTNode
  | FsPartitionMapNode;

Defined in: ast/domain-ast.types.ts:241

Complete union of all adapter-supplied passive domain AST nodes.


DomainStepASTNode ​

ts
type DomainStepASTNode<TIn, TOut, THandle> = 
  | LocalCommandNode<TIn, TOut, THandle>
  | LocalStreamCheckNode<THandle>
  | GitCommitAndPushNode<TIn>
  | GitMergeQueueNode<TIn, TOut>
  | GithubCreateOrUpdatePrNode<TIn, TOut, THandle>
| CustomDomainAST<"step">;

Defined in: ast/domain-ast.types.ts:92

Workspace-wide discriminated union of adapter-supplied domain step AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownStep input payload type.
TOutunknownStep output payload type.
THandleunknownIsolation scope handle type.

EffectMatcherASTNode ​

ts
type EffectMatcherASTNode = 
  | FsGlobMatcherNode
| CustomDomainAST<"effectMatcher">;

Defined in: ast/domain-ast.types.ts:237

Workspace-wide discriminated union of capability lease effect matcher AST nodes.


EvaluatorASTNode ​

ts
type EvaluatorASTNode<THandle> = CheckASTNode<THandle>;

Defined in: ast/domain-ast.types.ts:133

Alias for CheckASTNode<THandle>.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.

ExtractAbortMeta ​

ts
type ExtractAbortMeta<THook> = THook extends object ? TAbortMeta : Record<string, unknown>;

Defined in: builders/flow-extraction.types.ts:80

Extracts the validated abort metadata type TAbortMeta from an AbortHookASTNode.

Evaluates to Record<string, unknown> when THook does not declare a metaSchema property.

Type Parameters ​

Type ParameterDescription
THookAbort hook AST node type.

ExtractEvalScopeReceipt ​

ts
type ExtractEvalScopeReceipt<TEvalIn> = TEvalIn extends object ? TReceipt : unknown;

Defined in: builders/flow-extraction.types.ts:123

Extracts the scopeReceipt property type from an evaluator agent's input payload type when present.

Evaluates to unknown when TEvalIn does not declare a scopeReceipt field.

Type Parameters ​

Type ParameterDescription
TEvalInEvaluator agent input payload type.

ExtractScopeHandle ​

ts
type ExtractScopeHandle<TScope> = TScope extends BaseIsolationScopeASTNode<string, infer THandle, Record<string, unknown>, Record<string, unknown>> ? THandle : unknown;

Defined in: builders/flow-extraction.types.ts:12

Extracts the runtime scope handle type THandle from an IsolationScopeASTNode.

Evaluates to unknown when TScope does not extend BaseIsolationScopeASTNode.

Type Parameters ​

Type ParameterDescription
TScopeIsolation scope AST node type.

ExtractScopeReceipt ​

ts
type ExtractScopeReceipt<TScope> = TScope extends object ? TReceipt : unknown;

Defined in: builders/flow-extraction.types.ts:28

Extracts the inspected scope receipt type TReceipt from an IsolationScopeASTNode.

Evaluates to unknown when TScope does not declare a receiptSchema property.

Type Parameters ​

Type ParameterDescription
TScopeIsolation scope AST node type.

ExtractSpeculationCandidate ​

ts
type ExtractSpeculationCandidate<TArbiterIn> = TArbiterIn extends object ? TCandidate : unknown;

Defined in: builders/flow-extraction.types.ts:136

Extracts the candidate union element type from an arbiter agent's SpeculationInputSchema input type.

Evaluates to unknown when TArbiterIn does not declare a candidates array property.

Type Parameters ​

Type ParameterDescription
TArbiterInArbiter agent input type.

ExtractStepInput ​

ts
type ExtractStepInput<TStep> = TStep extends object ? TIn : unknown;

Defined in: builders/flow-extraction.types.ts:54

Extracts the validated input payload type TIn from a StepASTNode.

Evaluates to unknown when TStep does not declare an inputSchema property.

Type Parameters ​

Type ParameterDescription
TStepStep AST node type.

ExtractStepOutput ​

ts
type ExtractStepOutput<TStep> = TStep extends object ? TOut : unknown;

Defined in: builders/flow-extraction.types.ts:67

Extracts the validated output payload type TOut from a StepASTNode.

Evaluates to unknown when TStep does not declare an outputSchema property.

Type Parameters ​

Type ParameterDescription
TStepStep AST node type.

ExtractTelemetryMetrics ​

ts
type ExtractTelemetryMetrics<TCollector> = TCollector extends object ? TMetrics : Record<string, unknown>;

Defined in: builders/flow-extraction.types.ts:41

Extracts the custom telemetry metrics type TMetrics from a TelemetryCollectorASTNode.

Evaluates to Record<string, unknown> when TCollector does not declare a schema property.

Type Parameters ​

Type ParameterDescription
TCollectorTelemetry collector AST node type.

ExtractTrackerExternal ​

ts
type ExtractTrackerExternal<TAdapter> = TAdapter extends BaseTrackerASTNode<string, infer TExternal, string> ? TExternal : unknown;

Defined in: builders/flow-extraction.types.ts:93

Extracts the external issue payload type TExternal from a TrackerASTNode.

Evaluates to unknown when TAdapter does not extend BaseTrackerASTNode.

Type Parameters ​

Type ParameterDescription
TAdapterTracker AST node type.

ExtractTrackerState ​

ts
type ExtractTrackerState<TAdapter> = TAdapter extends BaseTrackerASTNode<string, unknown, infer TExternalState> ? TExternalState : string;

Defined in: builders/flow-extraction.types.ts:108

Extracts the external state string type TExternalState from a TrackerASTNode.

Evaluates to string when TAdapter does not extend BaseTrackerASTNode.

Type Parameters ​

Type ParameterDescription
TAdapterTracker AST node type.

FlowStepInputMapper ​

ts
type FlowStepInputMapper<TIn, TFlowIn, TReceipt, TStepOutputs> = BivariantCallback<[flowInput: TFlowIn, priorSteps: TStepOutputs, scopeReceipt: TReceipt], TIn>;

Defined in: ast/flow-step-input-mapper.types.ts:11

Synchronous step input projection function mapping (flowInput, priorSteps, scopeReceipt) to TIn.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownTarget step input payload type.
TFlowInunknownEnclosing flow input payload type.
TReceiptunknownInspected scope receipt type.
TStepOutputsunknownPrior step outputs map type.

GlobalRule ​

ts
type GlobalRule = z.infer<typeof GlobalRuleSchema>;

Defined in: schemas/core-rules.schema.ts:28

Validated global rule record injected into the static system prompt or Turn-0 context.


GuardASTNode ​

ts
type GuardASTNode<THandle> = 
  | BuiltInGuardASTNode
  | CustomDomainAST<"guard">
  | CustomDomainAST<"policyGuard">
  | THandle extends never ? never : never;

Defined in: ast/domain-ast.types.ts:148

Workspace-wide discriminated union of policy guard AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.

HumanChannelASTNode ​

ts
type HumanChannelASTNode<TMode> = TMode extends unknown ? Extract<
  | SlackApproverNode
  | SlackNotifierNode
  | CustomDomainAST<"humanChannel">, {
  interactionMode: TMode;
}> : never;

Defined in: ast/domain-ast.types.ts:229

Workspace-wide discriminated union of human channel AST nodes filtered by interactionMode.

Type Parameters ​

Type ParameterDefault typeDescription
TMode extends "bidirectional" | "notify-only""bidirectional" | "notify-only"Interaction mode filter ('bidirectional' | 'notify-only').

InterruptHandlerNode ​

ts
type InterruptHandlerNode<TIn, TPayload, THandle> = 
  | AdjudicateInterruptHandlerNode<TIn, TPayload, THandle>
  | AskInterruptHandlerNode<TPayload>
| ReplaceInterruptHandlerNode<TIn, TPayload, THandle>;

Defined in: ast/interrupt-handler-node.types.ts:12

Passive AST node representing an actor-level or step-level .onInterrupt(interrupt, $intr => ...) edge.

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownFlow or actor input payload type.
TPayloadunknownInterrupt payload type.
THandleunknownRuntime handle type of the active isolation scope.

IsolationScopeASTNode ​

ts
type IsolationScopeASTNode<THandle, TReceipt, TSync, TTier> = 
  | GitCowWorktreeNode<THandle, TReceipt, TSync> & object
| CustomDomainAST<"scope">;

Defined in: ast/domain-ast.types.ts:80

Workspace-wide discriminated union of isolation scope AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope runtime handle type.
TReceipt extends Record<string, unknown>Record<string, unknown>Validated scope inspection receipt shape.
TSync extends Record<string, unknown>Record<string, unknown>Validated scope synchronization receipt shape.
TTier extends ScopeCapabilityTierScopeCapabilityTierStatic capability tier ('scope' | 'checkpointable' | 'branchable').

LedgerStoreASTNode ​

ts
type LedgerStoreASTNode = 
  | SqliteLedgerNode
  | PostgresLedgerNode
| CustomDomainAST<"ledger">;

Defined in: ast/domain-ast.types.ts:208

Workspace-wide discriminated union of durable ledger store AST nodes.


LessonOutcome ​

ts
type LessonOutcome = 
  | "clean_pass"
  | "gate_rejected_recovered"
  | "gate_rejected_unrecovered"
  | "violated";

Defined in: ports/lesson-outcome.types.ts:7

Objective 4-state execution outcome recorded for an injected lesson after a step completes or fails.

Governed by the strict precedence order: 'violated' > 'gate_rejected_unrecovered' > 'gate_rejected_recovered' > 'clean_pass'.


LessonStoreASTNode ​

ts
type LessonStoreASTNode = 
  | FsJsonlLessonStoreNode
  | SqliteLessonsNode
  | PostgresLessonsNode
| CustomDomainAST<"lessons">;

Defined in: ast/domain-ast.types.ts:212

Workspace-wide discriminated union of empirical lesson store AST nodes.


MaybeBuilder ​

ts
type MaybeBuilder<TNode> = TNode | AstBuilder<TNode>;

Defined in: ast/ast-foundation.types.ts:22

Union accepting either a compiled passive TNode AST node or a fluent AstBuilder<TNode> instance.

Normalized at builder composition boundaries via extractAST(input).

Type Parameters ​

Type ParameterDescription
TNode extends ASTNodePassive AST node type.

MaybeSource ​

ts
type MaybeSource<T> = 
  | SourceValue<T>
| AstBuilder<SourceASTNode<T>>;

Defined in: ast/ast-foundation.types.ts:36

Input union accepting an inline value T, a compiled SourceASTNode<T>, or a fluent AstBuilder<SourceASTNode<T>>.

Type Parameters ​

Type ParameterDescription
TResolved content payload type.

ModelASTNode ​

ts
type ModelASTNode = 
  | ClaudeModelNode
  | OpenAiModelNode
  | GeminiModelNode
| CustomDomainAST<"model">;

Defined in: ast/domain-ast.types.ts:206

Workspace-wide discriminated union of LLM model AST nodes.


NodeExecutor ​

ts
type NodeExecutor<TNode, TInput, TOutput, TContext> = (node, input, ctx) => TOutput | Promise<TOutput>;

Defined in: ports/node-executor.types.ts:15

Universal stateless executor function signature for passive discriminated-union AST nodes.

Accepts the passive AST node, typed input payload, and runtime execution context, returning either a synchronous or asynchronous output value.

Type Parameters ​

Type ParameterDefault typeDescription
TNode extends objectASTNodePassive AST node type discriminated by readonly type: string.
TInputunknownInput payload type consumed by the executor.
TOutputunknownOutput payload type produced by the executor.
TContextExecutionContextRuntime execution context type supplied to the executor.

Parameters ​

ParameterType
nodeTNode
inputTInput
ctxTContext

Returns ​

TOutput | Promise<TOutput>


NodeExecutorMap ​

ts
type NodeExecutorMap<TUnion, TInput, TOutput, TContext> = { readonly [TNode in TUnion as TNode["type"]]?: NodeExecutor<TNode, TInput, TOutput, TContext> };

Defined in: ports/node-executor.types.ts:32

Mapped lookup table indexing NodeExecutor functions by each AST node member's type discriminant.

Enables $O(1)$ runtime dispatch (registry[category][node.type]) with strict per-node type safety.

Type Parameters ​

Type ParameterDefault typeDescription
TUnion extends object-Discriminated union of AST node types belonging to the category.
TInputunknownInput payload type consumed by executors in this category.
TOutputunknownOutput payload type produced by executors in this category.
TContextExecutionContextRuntime execution context type supplied to executors in this category.

PatchEquivalenceASTNode ​

ts
type PatchEquivalenceASTNode<TCrossReport> = 
  | GitPatchEquivalenceNode<TCrossReport>
| CustomDomainAST<"patchEquivalence">;

Defined in: ast/domain-ast.types.ts:177

Workspace-wide discriminated union of patch-equivalence cross-verifier AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
TCrossReportunknownValidated cross-verification report type.

PolicyGuardASTNode ​

ts
type PolicyGuardASTNode = GuardASTNode;

Defined in: ast/domain-ast.types.ts:151

Alias for GuardASTNode.


PolicyGuardClauseNode ​

ts
type PolicyGuardClauseNode = 
  | DenyWithErrorPolicyGuardClauseNode
  | RaiseInterruptPolicyGuardClauseNode;

Defined in: ast/policy-guard-clause-node.types.ts:7

Passive AST node representing a single .guard(...).onViolation(...) clause inside a PolicyNode.


PoolSelectorFn ​

ts
type PoolSelectorFn<TItem> = (candidates, ctx) => TItem | undefined;

Defined in: ast/pool-strategy.types.ts:12

Custom synchronous selector function passed to P.pool(id).strategy(fn).

Type Parameters ​

Type ParameterDefault typeDescription
TItemunknownPooled resource item type.

Parameters ​

ParameterType
candidatesreadonly PoolCandidateState<TItem>[]
ctxPoolSelectionContext

Returns ​

TItem | undefined


PoolStrategyNode ​

ts
type PoolStrategyNode<TItem> = 
  | StandardPoolStrategyNode
  | EscalateOnRetryPoolStrategyNode
| CustomPoolStrategyNode<TItem>;

Defined in: ast/pool-strategy.types.ts:22

Discriminated union of passive capacity pool selection strategy AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
TItemunknownPooled resource item type.

QuotaTripwireASTNode ​

ts
type QuotaTripwireASTNode = 
  | FsQuotaTripwireNode
  | CustomDomainAST<"quotaTripwire">
| CustomDomainAST<"tripwire">;

Defined in: ast/domain-ast.types.ts:153

Workspace-wide discriminated union of quantitative quota tripwire AST nodes.


ReconcileResult ​

ts
type ReconcileResult<TData> = 
  | ReconcileCleanResult<TData>
| ReconcileConflictResult<TData>;

Defined in: ports/reconcile-result.types.ts:23

Discriminated union outcome of BranchableScope.commitChild, syncChild, and syncRoot.

Type Parameters ​

Type ParameterDefault typeDescription
TDataunknownScope inspection receipt (TReceipt) or sync receipt (TSync) type.

ResumeForkInput ​

ts
type ResumeForkInput = z.infer<typeof ResumeForkInputSchema>;

Defined in: schemas/budget-and-lesson.schema.ts:38

Validated input payload for the built-in resumeFork capability tool.


RunnerPoolASTNode ​

ts
type RunnerPoolASTNode = 
  | NodeRunnerNode
| CustomDomainAST<"runner">;

Defined in: ast/domain-ast.types.ts:239

Workspace-wide discriminated union of OS runner pool AST nodes.


ScopeCapabilityTier ​

ts
type ScopeCapabilityTier = "scope" | "checkpointable" | "branchable";

Defined in: ast/base/base-domain-ast.types.ts:10

Capability tier discriminant for isolation scope AST nodes.

Determines at AST compilation time whether a scope supports only root lifecycle ('scope'), uncommitted state checkpointing and diffing ('checkpointable'), or hierarchical child branching and 3-way reconciliation ('branchable').


ScopedRule ​

ts
type ScopedRule = z.infer<typeof ScopedRuleSchema>;

Defined in: schemas/core-rules.schema.ts:43

Validated scoped rule record injected when its partition or effect predicate matches.


ScopedRuleNode ​

ts
type ScopedRuleNode = 
  | InlineScopedRuleNode
  | SourcedScopedRuleNode;

Defined in: ast/scoped-rule-node.types.ts:7

Passive AST node representing a partition- or effect-scoped rule (P.scopedRule(...)).


ScopePredicate ​

ts
type ScopePredicate = z.infer<typeof ScopePredicateSchema>;

Defined in: schemas/core-rules.schema.ts:15

Validated scope predicate specifying target partitions and optional reactive effect matchers.


ScopeRewindHookASTNode ​

ts
type ScopeRewindHookASTNode<THandle> = 
  | GitKeepWorktreeNode
  | GitDiscardBranchNode
  | CustomDomainAST<"rewindHook">
  | THandle extends never ? never : never;

Defined in: ast/domain-ast.types.ts:171

Workspace-wide discriminated union of scope rewind hook AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.

ServiceASTNode ​

ts
type ServiceASTNode<THandle> = 
  | LocalServiceNode
  | CustomDomainAST<"service">
  | THandle extends never ? never : never;

Defined in: ast/domain-ast.types.ts:138

Workspace-wide discriminated union of background daemon service AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.

SkillNode ​

ts
type SkillNode<THandle> = 
  | InlineSkillNode<THandle>
| SourcedSkillNode<THandle>;

Defined in: ast/skill-node.types.ts:9

Passive AST node representing an on-demand procedural skill (P.skill(...)).

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownRuntime handle type of the active isolation scope.

SourceASTNode ​

ts
type SourceASTNode<T> = 
  | FsTextSourceNode
  | FsGlobSourceNode
  | MarkdownFrontmatterSourceNode<T>
  | MarkdownSectionSourceNode<T>
  | SqliteRulesSourceNode
  | PostgresRulesSourceNode
| CustomDomainAST<"source">;

Defined in: ast/domain-ast.types.ts:200

Workspace-wide discriminated union of grounding, rule, and skill source AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
TunknownResolved source content payload type.

SourceValue ​

ts
type SourceValue<T> = T | SourceASTNode<T>;

Defined in: ast/ast-foundation.types.ts:29

Value that is either an inline literal T or a passive SourceASTNode<T> resolved at runtime via RuntimeExecutorRegistry.sources.

Type Parameters ​

Type ParameterDescription
TResolved content payload type.

SpeculateArbiterDecision ​

ts
type SpeculateArbiterDecision = 
  | {
  decision: "select-winner";
  winnerBranchIndex: number;
}
  | {
  decision: "unpark-escalation";
  parkedBranchIndex: number;
  rationale: string;
}
  | {
  decision: "reject-all";
  rationale: string;
};

Defined in: ast/speculate-arbiter-decision.types.ts:4

Normalized arbiter decision union returned by SpeculateArbiterConfig.resolveDecision(verdict).


StepASTNode ​

ts
type StepASTNode<TIn, TOut, THandle> = 
  | AgentNode<TIn, TOut, THandle>
  | LoopNode<TIn, TOut, THandle, string>
  | CommandNode<TIn, TOut, THandle>
| DomainStepASTNode<TIn, TOut, THandle>;

Defined in: ast/domain-ast.types.ts:101

Workspace-wide discriminated union of all executable step AST nodes (AgentNode, LoopNode, CommandNode, and DomainStepASTNode).

Type Parameters ​

Type ParameterDefault typeDescription
TInunknownStep input payload type.
TOutunknownStep output payload type.
THandleunknownIsolation scope handle type.

StreamSourceASTNode ​

ts
type StreamSourceASTNode<TEvent> = 
  | GithubWebhookStreamNode<TEvent>
| CustomDomainAST<"streamSource">;

Defined in: ast/domain-ast.types.ts:224

Workspace-wide discriminated union of inbound event stream source AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
TEventunknownRaw inbound stream event payload type.

TelemetryCollectorASTNode ​

ts
type TelemetryCollectorASTNode<TMetrics> = 
  | FsTelemetryCollectorNode
  | CustomDomainAST<"telemetryCollector">
  | CustomDomainAST<"telemetry">
  | TMetrics extends never ? never : never;

Defined in: ast/domain-ast.types.ts:158

Workspace-wide discriminated union of custom telemetry collector AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
TMetrics extends Record<string, unknown>Record<string, unknown>Custom telemetry metrics record shape.

ToolASTNode ​

ts
type ToolASTNode<THandle> = 
  | BuiltInToolASTNode<THandle>
| CustomDomainAST<"tool">;

Defined in: ast/domain-ast.types.ts:117

Workspace-wide discriminated union of tool AST nodes (BuiltInToolASTNode and CustomDomainAST<'tool'>).

Type Parameters ​

Type ParameterDefault typeDescription
THandleunknownIsolation scope handle type.

TopologyStoreASTNode ​

ts
type TopologyStoreASTNode = 
  | SqliteTopologyNode
  | PostgresTopologyNode
| CustomDomainAST<"topology">;

Defined in: ast/domain-ast.types.ts:210

Workspace-wide discriminated union of relational topology store AST nodes.


TrackerASTNode ​

ts
type TrackerASTNode<TExternal, TExternalState> = 
  | GithubIssuesTrackerNode<TExternal, TExternalState>
| CustomDomainAST<"tracker">;

Defined in: ast/domain-ast.types.ts:218

Workspace-wide discriminated union of external issue tracker AST nodes.

Type Parameters ​

Type ParameterDefault typeDescription
TExternalunknownRaw external issue payload type.
TExternalState extends stringstringExternal tracker state string union.

References ​

AdjudicateInterruptEdgeBuilder ​

Renames and re-exports AdjudicateInterruptBuilder


AskInterruptEdgeBuilder ​

Renames and re-exports AskInterruptBuilder


ChildInterruptBuilder ​

Renames and re-exports ChildInterruptHandlerBuilder


compileRunWirePrefixes ​

Renames and re-exports compilePrefixGroups


computeUpdatedGroundingDiffs ​

Renames and re-exports computeInRunGroundingDiffs


ConfigurableInterruptBuilder ​

Renames and re-exports InterruptPayloadBuilder


ConfigurableSignalBuilder ​

Renames and re-exports SignalPayloadBuilder


ConfigurableTopologyBuilder ​

Renames and re-exports TopologyConfigBuilder


CreateAgentCapabilitiesBuilderState ​

Renames and re-exports CreateAgentCapabilitiesBuilderOptions


createChildInterruptBuilder ​

Renames and re-exports createChildInterruptHandlerBuilder


CreateHumanBuilderOptions ​

Renames and re-exports CreateHumanBuilderState


CreateLessonsBuilderState ​

Renames and re-exports CreateLessonsBuilderOptions


CreatePolicyBuilderOptions ​

Renames and re-exports CreatePolicyBuilderState


CreatePoolBuilderOptions ​

Renames and re-exports CreatePoolBuilderState


CreatePrefixGroupBuilderOptions ​

Renames and re-exports CreatePrefixGroupBuilderState


CreateRulesBuilderOptions ​

Renames and re-exports CreateRulesBuilderState


CreateScopedRuleBuilderOptions ​

Renames and re-exports CreateScopedRuleBuilderState


CreateSkillBuilderOptions ​

Renames and re-exports CreateSkillBuilderState


CreateStreamBuilderOptions ​

Renames and re-exports CreateStreamBuilderState


CreateTopologyBuilderOptions ​

Renames and re-exports CreateTopologyBuilderState


DirectCommandConfig ​

Renames and re-exports CommandConfigOptions


evaluateLessonSignalTriggers ​

Renames and re-exports evaluateLessonRetirementAndSignals


HarnessNamespace ​

Renames and re-exports PNamespace


LaneRetryBuilder ​

Renames and re-exports LaneRetryConfigBuilder


LaneTrackerBuilder ​

Renames and re-exports LaneTrackerConfigBuilder


PolicyGuardClausePendingBuilder ​

Renames and re-exports PolicyGuardClauseBuilder


PoolStrategyConfigurator ​

Renames and re-exports PoolStrategyBuilder


ScopedHumanAliasBuilder ​

Renames and re-exports ScopedHumanNameBuilder


selectRecalledLessons ​

Renames and re-exports scoreAndRecallLessons

Released under the MIT License.