Function: buildRoleAndScopeContextFrame()
ts
function buildRoleAndScopeContextFrame(params): string;Defined in: runtime/prefix/internal/build-role-and-scope-context-frame.ts:13
Formats the structured Turn-0 [ROLE_AND_SCOPE_CONTEXT] user message frame (SPEC.md §3.2.1).
Injects role identity, active partitions, actor instructions, skill catalog, live topology partition contracts and epochs, in-run grounding diffs, partition-scoped rules, and recalled lessons.
Parameters
| Parameter | Type | Description |
|---|---|---|
params | RoleAndScopeContextFrameParams | Context sections for the active actor session. |
Returns
string
Formatted [ROLE_AND_SCOPE_CONTEXT] message text.