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
| Parameter | Type | Description |
|---|---|---|
value | string | EnvRef | Literal string or symbolic environment variable reference. |
Returns
string | undefined
Resolved environment variable value, or undefined if unset.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
activePartitions | readonly | readonly string[] | Partition identifiers unlocked for the active step or actor. | ports/resolution-context.ts:14 |
observedEffects | readonly | readonly ToolEffect[] | Tool effects observed so far within the active step or loop. | ports/resolution-context.ts:16 |
runId | readonly | string | Unique identifier of the active harness run. | ports/resolution-context.ts:12 |
scopeHandle? | readonly | unknown | Optional active isolation scope handle used strictly when computing in-run grounding diffs. | ports/resolution-context.ts:18 |