Skip to content

context.assemble

The one-call governed context for a proposed action (ADR 0036 §6): returns the preflight verdict + retrieved memory + resolved guides + a ready-to-inject prompt_block + server-estimated token counts, collapsing preflight.action -> memory.search -> guide.resolve into a single round-trip. Prefer this over the three granular verbs when you are about to act: the governance verdict comes attached to the context, and prompt_block is safe to inject verbatim (untrusted memory is sanitized; mandatory obligations always render). Only action is required — actor/scope/filters default from your token.

FieldTypeRequired
actionobjectyes
actorobject (nullable)
optionsobject
searchobject
FieldTypeRequiredDescription
action_typeActionTypeyesfrom the closed high-risk action taxonomy (schemas.md §1)
changed_filesarray of string (nullable)
diff_refstring
envstringlevel:id, e.g. repo:payments-service
purposePurposeyes
repostringlevel:id, e.g. repo:payments-service
resourcesarray of string (nullable)
risk_classRiskClass
summarystring
toolstringlevel:id, e.g. repo:payments-service
FieldTypeRequiredDescription
actor_idstring
actor_typeActorType
clearancearray of Sensitivity (nullable)
rolestring
scope_keystringlevel:id, e.g. repo:payments-service
FieldTypeRequiredDescription
include_resolution_traceboolean
latency_budget_msintegerAGGREGATE budget for the whole call (default 800); exhaustion degrades, never errors
max_candidatesinteger
response_formatResponseFormatprompt_block verbosity only; the structured sub-results are always complete
FieldTypeRequiredDescription
filtersobject
top_kintegerrecall depth for the retrieved_memory segment (default 8) (range 1–50)
FieldTypeRequiredDescription
as_ofstring (nullable) (date-time)bi-temporal time-travel: recall memory as it was valid/asserted at this instant
kindsarray of Kind (nullable)
scope_prefixstringmust equal or be narrower than the action’s effective scope
sensitivity_maxSensitivity
statusesarray of Status (nullable)
subtypesarray of string (nullable)
FieldTypeRequired
degradedbooleanyes
degraded_componentsarray of string (nullable)yes
guidesobject (nullable)yes
memoryobject (nullable)yes
prompt_blockstringyes
request_idstring
segmentsarray (nullable)yes
verdictobject (nullable)yes
FieldTypeRequired
guidesarray (nullable)yes
request_idstring
FieldTypeRequiredDescription
bindingbooleanyes
checksumstring
guide_idstringyes
prohibitionsarray of string (nullable)
purposePurposeyes
rendered_markdown_refstring
required_checksarray of string (nullable)
scope_keystringyeslevel:id, e.g. repo:payments-service
titlestringyes
versionintegeryes
FieldTypeRequired
as_ofstring (nullable) (date-time)
degradedbooleanyes
hitsarray (nullable)yes
latency_msintegeryes
request_idstring
returnedintegeryes
skipped_stagesarray of string (nullable)yes
stage_latencies_msobject
stages_runarray of string (nullable)yes
total_candidatesintegeryes
FieldTypeRequiredDescription
admissionobject (nullable)
asserted_atstring (date-time)yes
canonical_textstringyes
confidencenumberyes
edgesarray (nullable)
evidencearray (nullable)
kindKindyes
memory_idstringyes
provenanceobject
scope_keystringyeslevel:id, e.g. repo:payments-service
scorenumber
score_breakdownobject (nullable)
sensitivitySensitivityyes
statusStatusyes
subtypestring
titlestringyes
valid_fromstring (nullable) (date-time)
valid_tostring (nullable) (date-time)
versioninteger
FieldTypeRequired
admittedbooleanyes
checksarray of string (nullable)yes
FieldTypeRequired
dst_memory_idstringyes
edge_typeEdgeTypeyes
src_memory_idstring
valid_tostring (nullable) (date-time)
weightnumberyes
FieldTypeRequiredDescription
action_typeActionTypefrom the closed high-risk action taxonomy (schemas.md §1)
actor_idstringyes
actor_typeActorTypeyes
artifact_refsarray of string (nullable)
download_urlstring
entity_mentionsarray of string (nullable)
event_hashstringyes
event_tsstring (date-time)yes
idstringyes
labelsarray of string (nullable)
metadataobject
payload_refstring
prev_hashstring
risk_classRiskClass
scope_keystringyeslevel:id, e.g. repo:payments-service
sensitivitySensitivityyes
source_refstringyes
source_typeSourceTypeyes
summarystringyes
tenant_idstringyes
workspace_idstringyesoptional; defaults to your token’s workspace
FieldTypeRequired
densenumberyes
graph_proximitynumberyes
lexicalnumberyes
rrfnumberyes
FieldTypeRequired
labelSegmentLabelyes
tokensintegeryes
FieldTypeRequired
admitted_scopesarray of string (nullable)yes
cited_memoryarray (nullable)yes
confidencenumberyes
decisionDecisionyes
decision_idstringyes
degradedbooleanyes
expires_atstring (date-time)yes
forbidden_actionsarray of string (nullable)yes
latency_msintegeryes
reasonsarray (nullable)yes
request_idstring
required_approvalsarray (nullable)yes
required_checksarray of string (nullable)yes
required_guidesarray (nullable)yes
resolution_traceobject (nullable)
FieldTypeRequiredDescription
admissionobject (nullable)
asserted_atstring (date-time)yes
canonical_textstringyes
confidencenumberyes
edgesarray (nullable)
evidencearray (nullable)
kindKindyes
memory_idstringyes
provenanceobject
scope_keystringyeslevel:id, e.g. repo:payments-service
scorenumber
score_breakdownobject (nullable)
sensitivitySensitivityyes
statusStatusyes
subtypestring
titlestringyes
valid_fromstring (nullable) (date-time)
valid_tostring (nullable) (date-time)
versioninteger
FieldTypeRequired
admittedbooleanyes
checksarray of string (nullable)yes
FieldTypeRequired
dst_memory_idstringyes
edge_typeEdgeTypeyes
src_memory_idstring
valid_tostring (nullable) (date-time)
weightnumberyes
FieldTypeRequiredDescription
action_typeActionTypefrom the closed high-risk action taxonomy (schemas.md §1)
actor_idstringyes
actor_typeActorTypeyes
artifact_refsarray of string (nullable)
download_urlstring
entity_mentionsarray of string (nullable)
event_hashstringyes
event_tsstring (date-time)yes
idstringyes
labelsarray of string (nullable)
metadataobject
payload_refstring
prev_hashstring
risk_classRiskClass
scope_keystringyeslevel:id, e.g. repo:payments-service
sensitivitySensitivityyes
source_refstringyes
source_typeSourceTypeyes
summarystringyes
tenant_idstringyes
workspace_idstringyesoptional; defaults to your token’s workspace
FieldTypeRequired
densenumberyes
graph_proximitynumberyes
lexicalnumberyes
rrfnumberyes
FieldTypeRequired
codeReasonCodeyes
decompositionobjectyes
evidence_idsarray of string (nullable)
memory_idsarray of string (nullable)
messagestringyes
scorenumberyes
severityReasonSeverityyes
FieldTypeRequired
blast_radiusnumberyes
contradictionnumberyes
noveltynumberyes
FieldTypeRequired
approver_scopestringyes
policy_rule_idstringyes
reasonstringyes
FieldTypeRequiredDescription
bindingbooleanyes
checksumstring
guide_idstringyes
prohibitionsarray of string (nullable)
purposePurposeyes
rendered_markdown_refstring
required_checksarray of string (nullable)
scope_keystringyeslevel:id, e.g. repo:payments-service
titlestringyes
versionintegeryes
FieldTypeRequired
fusionstringyes
skipped_stagesarray of string (nullable)yes
stages_runarray of string (nullable)yes
walkarray (nullable)yes
FieldTypeRequiredDescription
guidesarray of string (nullable)yes
policiesarray of string (nullable)yes
scope_keystringyeslevel:id, e.g. repo:payments-service