Skip to content

Interface: ResolutionContext ​

Defined in: ports/resolution-context.ts:10

Read-only context supplied to SourceASTNode executors when loading prompts, rules, skills, or guidelines.

Provides the active run identifier, unlocked partition keys, observed tool effects, optional scope handle for worktree-aware in-run grounding diffs, and symbolic EnvRef resolution.

Methods ​

resolveEnv() ​

ts
resolveEnv(value): string | undefined;

Defined in: ports/resolution-context.ts:29

Resolves a literal string or symbolic P.env(key) reference against the runtime environment map.

Evaluates symbolic environment references against the injected runtime environment map without reading process.env.

Parameters ​

ParameterTypeDescription
valuestring | EnvRefLiteral string or symbolic environment variable reference.

Returns ​

string | undefined

Resolved environment variable value, or undefined if unset.

Properties ​

PropertyModifierTypeDescriptionDefined in
activePartitionsreadonlyreadonly string[]Partition identifiers unlocked for the active step or actor.ports/resolution-context.ts:14
observedEffectsreadonlyreadonly ToolEffect[]Tool effects observed so far within the active step or loop.ports/resolution-context.ts:16
runIdreadonlystringUnique identifier of the active harness run.ports/resolution-context.ts:12
scopeHandle?readonlyunknownOptional active isolation scope handle used strictly when computing in-run grounding diffs.ports/resolution-context.ts:18

Released under the MIT License.