Runtime Trampoline And Alignment

July 1, 2026 ยท View on GitHub

This explainer shows what happens after a SkillSpec-backed skill is installed. The visible SKILL.md is a trampoline: it loads the colocated skill.spec.yml, then keeps the agent inside a stepwise runtime loop.

Context Burden Reduced

The runtime loop keeps the prompt small by replacing broad instruction loading with progressive handles:

  • the loader points to the spec instead of duplicating behavior;
  • plan exposes only the selected route's phase order;
  • act exposes only the current phase checklist;
  • progress and align preserve evidence outside the prompt.

1. Thin Loader To Contract

The loader is intentionally small. It is not a second source of truth.

flowchart LR
    A[user invokes skill] --> B[thin SKILL.md loader]
    B --> C[load spec]
    C --> D[sensemake if unfamiliar]
    D --> E[plan selected route]

Review check:

  • The loader tells the agent to load skill.spec.yml.
  • Behavior lives in the spec, not in duplicated loader prose.
  • The agent strips invocation prefixes before routing task input.

2. Plan Before Action

plan turns a task into ordered phases. It prevents the agent from jumping straight to convenient tools or late-stage proof.

flowchart LR
    A[user task] --> B[plan]
    B --> C[selected route]
    C --> D[phase 1]
    C --> E[phase 2]
    C --> F[later phases]
    B --> G[decision trace handle]

Grounded command:

skillspec plan ./skill.spec.yml \
  --input '<task>' \
  --trace-dir .skillspec/traces

Review check:

  • The printed run_dir is preserved.
  • The selected route is named.
  • The phase order is followed before tool use.

3. Act As OODA Loop

act expands the current phase into an operating checklist. This is the OODA loop the agent follows before each tool call.

flowchart LR
    O[Observe task and trace] --> R[Orient by route, phase, rules]
    R --> D[Decide allowed next action]
    D --> A[Act and capture evidence]
    A --> O

The checklist answers:

  • What route owns this run?
  • What phase is current?
  • What tools, data sources, substrates, providers, APIs, CLIs, browser modes, or skills are allowed now?
  • What is forbidden?
  • What dependency or approval gate applies before action?

Grounded command:

skillspec act ./skill.spec.yml \
  --input '<task>' \
  --run .skillspec/traces/<run-id> \
  --phase <phase-id>

Review check:

  • Unlisted tools require explicit permission.
  • Active forbids block substitutions.
  • Handoffs are treated as execution boundaries.

4. Progress Becomes Evidence

The agent records what happened after each phase or requirement. The progress ledger keeps proof outside the prompt while still making it addressable.

flowchart LR
    A[phase action] --> B[progress record]
    B --> C[execution ledger]
    C --> D[progress show]
    D --> E[completed/current/blocked/remaining]

Grounded commands:

skillspec progress record <run-dir> requirement-satisfied <phase-id> <requirement-id> \
  --evidence-kind command \
  --evidence-ref <ref>

skillspec progress show ./skill.spec.yml --run <run-dir> --quiet

Review check:

  • Evidence has a kind and a reference.
  • Missing proof stays missing.
  • Progress is derived from structured events, not chat memory.

5. Alignment Closes The Loop

Alignment compares the decision trace and execution ledger against the current spec.

flowchart LR
    A[decision trace] --> C[trace align]
    B[execution ledger] --> C
    D[current spec] --> C
    C --> E[alignment report]
    E --> F[pass, partial, or fail]
    E --> G[missing proof rows]

Grounded command:

skillspec trace align ./skill.spec.yml \
  --decision-trace <run-dir> \
  --execution-trace <run-dir>/execution.jsonl \
  --proof-digest <run-dir>/proof-digest.json \
  --quiet

Review check:

  • Final answers report result, evidence, alignment, token usage, and trace path.
  • Partial proof is reported as partial.
  • Token savings are measured or explicitly marked not recorded.

What This Workflow Does Not Do

  • It does not execute task work by itself.
  • It does not bypass harness approval policy.
  • It does not allow a later phase to license skipping an earlier phase.
  • It does not make chat memory count as evidence.

Mental Model

The trampoline keeps the agent in the contract. The OODA checklist keeps each step bounded. Alignment keeps the final answer honest.