Skip to content
REFERENCE / FIELD NOTE

Recipe reference

SCOUT DOCS · REFERENCE / RECIPES

Run an embedded recipe with scout run <name> NAME=VALUE.... Every parameter listed below is required exactly once. Inputs are typed before the plan is shown, and credential-shaped values are refused; recipes inherit the caller’s stored authentication instead of accepting credentials as parameters.

Parameter types have these meanings:

  • identifier — a Scout-safe name, context, or resource identifier;
  • text — a non-secret UTF-8 value;
  • path — a local path, resolved to an absolute path before execution;
  • u16 — a decimal integer from 0 through 65535;
  • booleantrue or false.

Scout prints the resolved plan before the first step. A step advances only after the command returns the named schema and every listed evidence predicate passes. On failure, no later step runs; correct the named cause and use scout run --resume in the same context.

Verify a release layout, initialize one root Branch cell, and read its public status evidence.

ParameterTypePurpose
release_rootpathInstalled Scout release directory used by the cell.
root_statepathLocal state directory for the root Branch cell.
root_bindtextBind address for the root Branch Controller.
root_router_listentextTLS listen endpoint for the root Branch Router.
root_router_advertisetextAdvertised TLS endpoint for the root Branch Router.
StepContextPublic commandEvidence required before continuing
verify-releaseCaller or selected contextscout doctor --artifact-root <release_root>schema scout.doctor/v1; /dependencies/0/state equals "ready"; /dependencies/1/state equals "ready"; /dependencies/2/state equals "ready"; /dependencies/3/state equals "ready"; /components/1/state equals "ready"
initialize-rootCaller or selected contextscout init --state-dir <root_state> --artifact-root <release_root> --bind <root_bind> --router-listen <root_router_listen> --router-advertise <root_router_advertise>schema scout.init/v1; /local_context is a string; /runtime/result exists
read-root-statusCaptured root_contextscout statusschema scout.status/v2; /local_cell/state exists

Create and activate one direct child Branch, apply its admission Change, and verify both sides.

ParameterTypePurpose
parent_contextidentifierSaved context for the direct parent Branch.
branch_nameidentifierName for the direct child Branch.
descriptiontextHuman-readable description for the child Branch.
owned_prefixtextZenoh key-expression prefix delegated to the child Branch.
activation_filepathPath for the child’s one-time activation handoff.
child_statepathLocal state directory for the child Branch cell.
release_rootpathInstalled Scout release directory used by the cell.
child_bindtextBind address for the child Branch Controller.
port_offsetu16Offset applied to the child cell’s product service ports.
child_router_listentextTLS listen endpoint for the child Branch Router.
child_router_advertisetextAdvertised TLS endpoint for the child Branch Router.
StepContextPublic commandEvidence required before continuing
create-childParameter parent_contextscout branch add <branch_name> --description <description> --owned-prefix <owned_prefix> --child-delegation-allowed --activation-out <activation_file>schema scout.branch-add/v1; /branch/branch_id is a string; /activation_handoff/shown_once equals true
activate-childCaller or selected contextscout activate <activation_file> --state-dir <child_state> --artifact-root <release_root> --bind <child_bind> --port-offset <port_offset> --router-listen <child_router_listen> --router-advertise <child_router_advertise>schema scout.child-activation/v2; /local_stage equals "completed"; /parent_state equals "completed"; /controller_sync_admission/change_id is a string; /local_context is a string
review-admissionParameter parent_contextscout change review <captured:admission_change_id>schema scout.change/v1; /resource/status equals "validated"
stage-admissionParameter parent_contextscout change stage <captured:admission_change_id>schema scout.change/v1; /resource/status equals "staged"
apply-admissionParameter parent_contextscout change apply <captured:admission_change_id>schema scout.change/v1; /resource/status equals "applied"
verify-parent-receiptParameter parent_contextscout branch show <captured:child_branch_id>schema scout.branch/v1; /resource/branch_id is a string
verify-child-statusCaptured child_contextscout statusschema scout.status/v2; /local_cell/state exists

Register and authenticate one Client, prepare and apply its first local Access Grant, and verify both records.

ParameterTypePurpose
branch_contextidentifierSaved context for the Branch that will own the Client and Grant.
client_nameidentifierName for the Client to register.
actiontextData-plane action to grant (publish or subscribe).
areaidentifierExact Data Area identifier used by the Client Grant.
StepContextPublic commandEvidence required before continuing
register-clientParameter branch_contextscout client add <client_name>schema scout.client-add/v1; /resource/handoff_shown equals true; /resource/resource/client_id is a string; /resource/enrollment_handoff is a string
authenticate-clientCaller or selected contextscout client auth <captured:enrollment_handoff>schema scout.client-auth-outcome/v1; /agent_service equals "enabled_running"; /application_configuration equals "written"
prepare-grantParameter branch_contextscout grant allow <client_name> <action> <area>schema scout.grant-allow/v1; /subject_kind equals "client"; /resource/access_grant_id is a string; /resource/policy_change/change_id is a string
review-grantParameter branch_contextscout change review <captured:grant_change_id>schema scout.change/v1; /resource/status equals "validated"
stage-grantParameter branch_contextscout change stage <captured:grant_change_id>schema scout.change/v1; /resource/status equals "staged"
apply-grantParameter branch_contextscout change apply <captured:grant_change_id>schema scout.change/v1; /resource/status equals "applied"
verify-clientParameter branch_contextscout client show <captured:client_id>schema scout.client/v1; /resource/client_id is a string
verify-grantParameter branch_contextscout grant show <captured:grant_id>schema scout.grant/v1; /resource/access_grant_id is a string

Author and apply every retained side of a Data Area grant across a qualified three-Branch ancestor path.

ParameterTypePurpose
area_owner_contextidentifierSaved context for the Branch that owns the Data Area.
author_contextidentifierSaved context for the ancestor Branch authoring the path Grant.
intermediate_contextidentifierSaved context for the middle Branch on the three-Branch path.
area_ididentifierExact Data Area identifier owned by the descendant Branch.
ancestor_subjectidentifierAncestor Branch identifier used as the Grant subject.
actiontextData-plane action to grant (publish or subscribe).
StepContextPublic commandEvidence required before continuing
verify-area-ownerParameter area_owner_contextscout area show <area_id>schema scout.area/v1; /resource/data_area_id is a string; /resource/key_expression is a string
verify-author-pathParameter author_contextscout tree --descendantsschema scout.tree-evidence/v2; /branches exists
author-path-grantParameter author_contextscout grant allow <ancestor_subject> <action> <area_id>schema scout.grant-allow/v2; /subject_kind equals "branch_path"; /resource/path_grant_id is a string; /resource/local_provenance/materialization/change_id is a string
review-author-sideParameter author_contextscout change review <captured:author_change_id>schema scout.change/v1; /resource/status equals "validated"
stage-author-sideParameter author_contextscout change stage <captured:author_change_id>schema scout.change/v1; /resource/status equals "staged"
apply-author-sideParameter author_contextscout change apply <captured:author_change_id>schema scout.change/v1; /resource/status equals "applied"
discover-intermediate-sideParameter intermediate_contextscout grant show <captured:path_grant_id>schema scout.grant/v2; /resource/local_provenance/materialization/change_id is a string
review-intermediate-sideParameter intermediate_contextscout change review <captured:intermediate_change_id>schema scout.change/v1; /resource/status equals "validated"
stage-intermediate-sideParameter intermediate_contextscout change stage <captured:intermediate_change_id>schema scout.change/v1; /resource/status equals "staged"
apply-intermediate-sideParameter intermediate_contextscout change apply <captured:intermediate_change_id>schema scout.change/v1; /resource/status equals "applied"
discover-owner-sideParameter area_owner_contextscout grant show <captured:path_grant_id>schema scout.grant/v2; /resource/local_provenance/materialization/change_id is a string
review-owner-sideParameter area_owner_contextscout change review <captured:owner_change_id>schema scout.change/v1; /resource/status equals "validated"
stage-owner-sideParameter area_owner_contextscout change stage <captured:owner_change_id>schema scout.change/v1; /resource/status equals "staged"
apply-owner-sideParameter area_owner_contextscout change apply <captured:owner_change_id>schema scout.change/v1; /resource/status equals "applied"
verify-author-grantParameter author_contextscout grant show <captured:path_grant_id>schema scout.grant/v2; /resource/path_grant_id is a string
verify-author-statusParameter author_contextscout statusschema scout.status/v2; /local_cell/state exists
verify-intermediate-grantParameter intermediate_contextscout grant show <captured:path_grant_id>schema scout.grant/v2; /resource/path_grant_id is a string
verify-intermediate-statusParameter intermediate_contextscout statusschema scout.status/v2; /local_cell/state exists
verify-owner-grantParameter area_owner_contextscout grant show <captured:path_grant_id>schema scout.grant/v2; /resource/path_grant_id is a string
verify-owner-statusParameter area_owner_contextscout statusschema scout.status/v2; /local_cell/state exists