Search documentation

Browse Awaken Agents docs
Docs/Awaken Agentsv1.0.0-dev/Internal mechanisms/UnderstandResolve an Agent publication
Note·You're reading pre-release documentation (v1.0.0-dev). Interfaces and behavior may change before a stable release.

Internal mechanisms · Understand

Resolve an Agent publication

What this page covers

Follow editable AgentConfig data through validation, compilation, publication, and the immutable snapshot pinned to a Run.

Use this page when changing how authored Agent behavior becomes executable. Configuration resolution ends at an immutable ExecutableAgentSnapshot; it does not run inference, choose a Worker, or delegate to another Agent.

Keep authored and executable data separate

FormOwnerCan change?Used by an active Run?
AgentConfigconfiguration authoringyesno
publicationconfiguration storenew versions may be addedonly through its pinned snapshot
ExecutableAgentSnapshotRuntime contractnoyes
provider credential materialfinal execution boundarymay rotate under its own policynever serialized into the snapshot
flowchart LR
  A[AgentConfig] --> V[Validate references and fields]
  V --> C[compile_published or compile_resolved]
  C --> S[ExecutableAgentSnapshot]
  S --> P[Publication store and executable catalog]
  P --> R[RunActivation pins exact snapshot]
  R --> K[Runtime kernel]
  M[Later AgentConfig revision] --> N[New publication]
  N -. does not replace .-> R

The snapshot contains the behavior a Run may use: instructions, model candidates, Tool descriptors, Plugins, context policy, limits, and a content identity. It carries references and resolved choices, not plaintext secrets or service-owned mutable records.

Resolution sequence

sequenceDiagram
  participant Authoring as Config authoring
  participant Compiler as Agent compiler
  participant Catalog as Publication catalog
  participant Host as Run host
  participant Runtime
  Authoring->>Compiler: AgentConfig plus resolvable references
  Compiler->>Compiler: validate and derive immutable fields
  alt invalid or ambiguous input
    Compiler-->>Authoring: typed compile error, no publication
  else valid input
    Compiler->>Catalog: store snapshot and publication identity
    Host->>Catalog: read exact publication for Run
    Catalog-->>Host: immutable snapshot
    Host->>Runtime: RunActivation with pinned snapshot
  end

awaken-config-resolver supplies the management plane’s read and resolution face for model offerings and credentials. Its concrete ResolvedInference type is for preview and probe operations. Production publication emits secret-free model candidates; Runtime does not call the management resolver during a Run.

Failure and change behavior

  • Missing, ambiguous, or incompatible references fail before publication.
  • A Run that cannot obtain its exact snapshot is rejected before execution; it does not fall forward to the latest Agent version.
  • Publishing a new version changes later Runs. Running, waiting, and retried Runs keep their original behavior identity.
  • Credential materialization and Worker placement occur after publication and remain owned by their execution boundaries.

These are resolution outcomes, not troubleshooting procedures. Correct the authored reference or restore the exact publication named by the reported result; automatic retries must not select different behavior.

Delegation is a separate execution path. See Invoke a sub-Agent from a Tool and Multi-Agent patterns.