Skip to content

Release v0.10.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 18 Sep 23:13
· 1862 commits to main since this release
1d4a972

Superseded — do not use this release. This tag (v0.10.0) was cut on 2026-09-18, but only
3 of the 12 workspace crates actually reached crates.io before the release pipeline failed
partway through publishing (see the recovery runbook, docs/src/appendix/release-recovery.md
§4, "when completing forward is not enough," for the general recovery shape this project
follows). This release is superseded by
v0.10.1, which publishes
the complete set of 12 crates. Use v0.10.1. See its
CHANGELOG.md for what
changed since this release. Notice added 2026-09-22.


Behavioral changes

Five user-visible behavior changes ship in this release without requiring a code change. The
first four (M-B-01…M-B-04) are detailed, with a worked before/after example, in
MIGRATION.md §9.1; the
fifth (RAG rationing, below) results from the signature break registered in
MIGRATION.md §9.2's
paladin-memory rows, with its own worked example in docs/src/architecture/commissary.md's
"In-tree caller: RAG" section rather than a §9.1 table row.

  • M-B-01 — EdgeCondition::Custom no longer defaults to true when no evaluator is registered
    (BUG-01 fix).
    Campaign/graph validation now fails, naming every unregistered condition, before
    any node executes. Register an evaluator via CampaignExecutionService::with_evaluator /
    WarEngine::with_edge_evaluator, or replace the condition with Contains/Regex/Always.
  • M-B-02 — Graceful shutdown is on by default. On SIGTERM/SIGINT the process now waits up to
    shutdown_grace (default 30s, env APP_ENGINE_SHUTDOWN_GRACE_SECS) for in-flight engine runs to
    halt before exiting. Set terminationGracePeriodSeconds ≥ 2 × shutdown_grace in any Kubernetes
    Deployment manifest before rolling out this upgrade (both shipped manifests already ship 60).
    Set APP_ENGINE_GRACEFUL_SHUTDOWN=false to restore the old immediate-exit behavior.
  • RAG retrieval output now carries a truncation marker and a shed record where it previously
    dropped silently (COMM-01, COMM-02, Phase 33).
    RagRetrievalService::retrieve_context rations
    retrieved memories through a Commissary::dispense call instead of the old inline
    content.len() / 4 byte-length estimate: a single memory larger than the whole rag.max_tokens
    budget is now retained truncated with the Commissary's own per-item marker, rather than
    dropped entirely — the exact opposite of the old behavior, which injected nothing for it — and
    every memory that does not survive rationing is recorded in RagRetrievalResult::shed and
    surfaced as a trailing omission line in the rendered prompt (both format_for_prompt and the
    facade's format_retrieved_context) whenever shed is non-empty. At an unchanged
    rag.max_tokens, the injected volume is now planned at the Commissary's pessimistic ratio (358
    tokens per 1000 bytes), so roughly 30% fewer bytes are planned for injection than the old
    byte-length estimate allowed at the same setting; RagRetrievalResult::prompt_tokens /
    allotted_tokens / exact_tally show the real, measured usage. No rag.max_tokens value needs
    to change to get this behavior — it applies at whatever budget is already configured.
  • M-B-03 — tool_error_mode defaults to FeedToModel, naming v0.9's existing behavior rather
    than changing it.
    A failed Arsenal/handoff tool call was always fed back to the model and the
    run continued — that is unchanged. The only observable difference: the fed-back text is now
    redacted (bearer tokens, API-key shapes, key=/token= values, JWT-shaped triples) before the
    model ever sees it. Set tool_error_mode = FailRun to opt into failing the run on a tool error
    instead.
  • M-B-04 — Automatic per-superstep checkpointing for any graph executed through the new
    WarEngine.
    Every superstep writes one Waypoint (a full Battlefield snapshot) to whichever
    WaypointPort backend is wired in. Legacy FormationExecutionService, PhalanxExecutionService,
    CampaignExecutionService, and Commander execution paths are completely unaffected
    — they
    write no Waypoints and their behavior is byte-for-byte unchanged. A v0.9 workflow gains no new
    persistence unless it is explicitly rebuilt against the new engine.

Changed

  • Workspace MSRV floor raised from 1.85 to 1.88 (X-11.2 stop-and-flag resolution). The
    declared 1.85 floor could not actually be satisfied: the exact rmcp = "=2.1.0" pin's
    transport-child-process feature reaches process-wrap ^9.0, whose every release requires
    rustc >= 1.87, and clearing RUSTSEC-2026-0009 requires time >= 0.3.47, which requires rustc

    = 1.88. 1.88 is the lowest floor that satisfies both without a new security exception. The
    floor now lives in exactly one place — workspace.package.rust-version = "1.88" in root
    Cargo.toml — inherited by all ten crate manifests via rust-version.workspace = true, and
    [workspace] resolver = "3" guards against a future cargo update silently re-resolving above
    it. See MIGRATION.md §9.3 for the full dependency
    chain and the two rejected alternatives.

  • Custom edge conditions now fail closed instead of always-routing (M-B-01, BUG-01 fix).
    EdgeCondition::Custom(name) previously evaluated to true on every run when no evaluator was
    registered — the edge silently always fired regardless of what the source Paladin actually
    produced. Both consumers (CampaignExecutionService and the WarEngine) now reject an
    unregistered Custom name at validation time, before any node executes, naming every offender.
    Register an evaluator via CampaignExecutionService::with_evaluator /
    WarEngine::with_edge_evaluator, or replace the condition with Contains/Regex/Always. See
    MIGRATION.md §9.1, M-B-01
    for the worked before/after example.

  • Graph fingerprint bumped v3 → v4 (HITL-01, D-09). The new Gate node's
    routing-relevant properties (kind, output_field, choices, on_expire's discriminant) are
    now part of the hashed graph shape. A thread suspended under a v3 fingerprint fails closed
    with EngineError::GraphMismatch on resume rather than being silently reinterpreted under the
    new hash — resume it against the graph it suspended with, or restart the run under the
    v4-fingerprinted graph.

  • Graph fingerprint bumped v4 → v5 (FT-04/FT-06, D-11). Each node's Aegis.on_error and
    Aegis.cache (and the graph-wide default_aegis) are now part of the hashed graph shape,
    because they change what a run does; retry and timeout are deliberately excluded, so tuning
    either never makes resume fail with GraphMismatch. A thread suspended under a v4
    fingerprint fails closed on resume exactly as the v3 → v4 bump did.

  • Every token-usage carrier now reports the full prompt/completion/cache/reasoning split instead
    of a bare count (ACCT-01/ACCT-02/ACCT-03, Phase 31).
    PaladinResult.usage,
    NodeExecutionRecord.usage, TraceEvent::NodeFinished.usage, TraceEvent::RunFinished.usage,
    StreamingResponse.usage (#[non_exhaustive]) and ChunkMetadata.usage (#[non_exhaustive])
    all replace their former token_count/total_tokens bare-count field with a full TokenUsage
    (prompt_tokens, completion_tokens, total_tokens, plus optional cache_read_tokens,
    cache_write_tokens, reasoning_tokens). The HTTP edge follows: ExecuteResponse.usage is now
    a TokenUsageResponse DTO in place of token_count: u32. TokenUsage::from_total — the
    total-only constructor that discarded the split — is deleted outright, with no
    #[deprecated] replacement; every accumulator in the tree (the execution service's reasoning
    loop, Formation/Phalanx per-Paladin aggregation, the engine's TraceDispatcher) now saturates a
    real TokenUsage via its new Add/AddAssign/Sum impls instead of reconstructing a
    zero-split usage from a total. See
    MIGRATION.md §9.2 for
    the full per-type register and every cargo semver-checks suppression.

  • Commissary::new/Commissary::from_port no longer take a caller-supplied exactness
    argument; the HistoryTrimmer/Commissary context-window resolvers are now one shared
    function (PRIM-01, PRIM-02, PRIM-04).
    TokenCounterPort gained a defaulted
    is_exact(&self) -> bool { false } method (TiktokenCounter overrides it true,
    HeuristicTokenCounter inherits the default); Commissary now reads Stockpile.exact_tally
    live from counter.is_exact() instead of a fourth constructor argument, so new drops one
    positional parameter and from_port drops one too. Separately, paladin_llm::window::resolve_context_window
    — one pure, four-step precedence function (config table → provider capabilities → framework
    default or caller fallback, with an explicit WindowFallbackPolicy instead of a strict-bool
    flag) — now backs both Commissary::new's window resolution (strict policy) and
    HistoryTrimmer::resolve_limit (lenient policy), replacing two independent inline .or(...)
    precedence walks with one; the facade's local LimitSource enum is gone, folded into the
    shared WindowSource. Six pre-refactor equivalence fixtures, committed green before either
    consumer was rewired, prove neither Commissary's resolved windows nor HistoryTrimmer's trims
    changed. See MIGRATION.md §9.2
    (the paladin-llm | Commissary row is marked N/A with no allowlist mirror — every
    discovery run recorded zero fired cargo semver-checks lints for it; see that section's note).

  • RagRetrievalService::retrieve_context/retrieve_context_with_timeout return a new
    RagRetrievalResult in place of their v0.9.0 return type; format_for_prompt now takes that
    struct as its parameter (COMM-01, COMM-02, COMM-04, Phase 33).
    RagRetrievalResult carries the
    retained memories (each with the post-dispense body — render this, never memory.content),
    the shed record (shed: Vec<ShedItem>), and the Commissary's Stockpile accounting
    (prompt_tokens/allotted_tokens/exact_tally). A new RagRetrievalError enum surfaces
    Sanctum/Commissary/budget-conversion failures (plus DuplicateMemoryId when one search result
    set carries the same memory UUID twice — a typed error rather than a silent overwrite), and a new
    with_token_counter(Arc<dyn TokenCounterPort>) builder mirrors
    PaladinExecutionService::with_token_counter so a caller can inject an exact counter. No
    forwarding method and no #[deprecated] alias ship (ADR-0051 clean break) — see
    MIGRATION.md §9.2 (the
    two paladin-memory rows, both marked N/A with no allowlist mirror for the same tool-coverage
    reason as the Commissary row immediately above) for the full per-row migration guidance.

Added

  • Typed error taxonomy (FT-01). Transience { Transient, Permanent, Unknown } in paladin-core,
    with table-driven PaladinError::transience() and LlmError::transience() reading typed fields
    only — never a message. Provider adapters now emit LlmError::ProviderError { provider, status, message } for every non-2xx status without a dedicated variant (408/429/5xx classify Transient,
    every other 4xx Permanent, by value), through one shared map_http_status helper that redacts
    credentials before bounding the excerpt. A node's failure travels as one structured
    NodeError { node_id, attempt, transience, source } — on the failed Waypoint
    (WaypointStatus::Failed.node_error), RunOutcome::node_error(), EngineError::NodeFailed and
    BattalionError::Node — while the persisted display line is unchanged. PaladinError, LlmError
    and BattalionError are now #[non_exhaustive] (registered deliberate-breaking in
    MIGRATION.md §9.2).

  • Aegis: per-node retry (FT-02). Aegis { retry, timeout, on_error, cache } attaches to a node
    through WarGraph::set_aegis / with_default_aegis (a node's own entry wins wholesale — no
    field-level merge). RetryPolicy retries a failed attempt inside the same superstep with exact
    exponential backoff (min(initial_interval × backoff_factor^(n−2), max_interval) plus optional
    uniform jitter), gated by a RetryPredicate (TransientOnly default, TransientAndUnknown, or
    a registered Custom evaluator via WarEngine::with_retry_predicate). Attempts are isolated —
    a failed attempt's delta never reaches the Battlefield, every attempt reads the same snapshot,
    interceptors run once per attempt, no Waypoint is written between attempts — and are recorded
    as NodeExecutionRecord.attempts: Vec<AttemptRecord> with per-attempt NodeStarted/NodeFinished
    trace events. Retry is per task inside a Muster; a Parley is a success, never retried; a run
    cancelled mid-backoff aborts at once and resumes at attempt 1. See the
    Aegis guide.

  • Per-attempt timeouts and the run-level budget (FT-03). TimeoutPolicy { run_timeout, idle_timeout } bounds each attempt with a wall clock and a progress-aware idle window, named by
    a typed TimeoutKind::{Run, Idle, EngineRun}; progress flows through a new HeartbeatHandle
    (ctx.heartbeat() in Function nodes; PaladinExecutionService beats on every LLM completion,
    streamed chunk and Armament call through the new defaulted PaladinPort::execute_observed).
    EngineLimits.run_timeout (EngineConfig.run_timeout_secs / APP_ENGINE_RUN_TIMEOUT_SECS,
    declared in 0.10's Phase 23) is now enforced as EngineError::RunTimeoutExceeded, nesting outside
    every per-attempt bound; an attempt cut by the engine budget records Timeout(EngineRun) and is
    never retried.

  • Typed error handlers and compensation (FT-04). Aegis.on_error runs on a node's final
    failure: ErrorHandlerSpec::Route { to, error_field } writes the structured NodeError JSON into
    a declared non-Sum field and places to in the next Vanguard in place of the failed node's
    static successors; Absorb { fallback_delta } merges a schema-validated delta and continues;
    Custom(name) awaits an ErrorHandler registered via WarEngine::with_error_handler over the
    pre-superstep Battlefield and honours whatever Directive it returns — including
    NextStep::Parley. Routed visits count against max_node_visits, so a compensation cycle
    terminates. On a worker template only Absorb and a delta-only Custom are allowed. Every
    wiring fault is a typed validation error listing all offenders before a node runs.

  • Model fallback: FallbackLlmAdapter (FT-05). An ordered chain of LlmPorts exposed as one
    plain LlmPort (paladin_llm::fallback, ungated): hops on Transient/Unknown errors only,
    short-circuits on Permanent, reports exhaustion as LlmError::AllProvidersFailed { attempts, last } in chain order, never switches provider after a streamed chunk has been delivered, emits
    TraceEvent::FallbackHop plus a warn! per hop, and stamps the serving provider into the new
    additive PaladinResult.served_by (registered deliberate-breaking, D-26).

  • Node result caching (FT-06). Aegis.cache: CachePolicy { ttl, key } serves a node's stored
    delta instead of executing it, recorded as cache_hit: true on the record and trace event. Keys
    are a versioned blake3 digest over the graph fingerprint, node id, rendered input (or Battlefield
    snapshot / CacheKeySpec::Fields subset), muster task and the Paladin's configuration, so a
    prompt or graph change is a miss by construction; ttl has a closed boundary; only a successful
    Edges-routed delta is stored; backend errors are best-effort (a get error is a miss, a put
    error is logged). New NodeCachePort (paladin-ports), InMemoryNodeCache and, behind the new
    redis-cache feature on paladin-storage (facade passthrough redis-cache, in no default set),
    RedisNodeCache; WarEngine::with_node_cache wires one, and a cache policy with no backend
    fails validation. The schema-level FieldSpec.cache: CacheMarker::Deny marker opts a field out
    (the documented Append-replay hazard on forks). NodeCacheConfig (src/config/node_cache.rs,
    APP_NODE_CACHE_*) selects the backend and is off by default.

  • Node-driven Directive routing (CF-02). A StateNode::run now returns a Directive — its
    StateDelta plus a NextStep (Edges, Goto, Muster, End, or the not-yet-implemented
    Parley) — letting a node author its own routing instead of relying solely on static graph
    edges. NextStep::Edges is the default and reproduces pre-CF-02 behavior exactly.
    NodeSpec::Paladin nodes opt in via the new DirectiveParser (PlainOutput default,
    StructuredDirective for a documented JSON envelope). See the
    Control Flow guide.

  • Muster: dynamic worker fan-out (CF-03). NextStep::Muster dispatches N worker tasks to a
    node registered via the new WarGraph::add_worker_template, each with an isolated payload
    (never merged into the Battlefield) addressed through the new {muster.payload} /
    {muster.task_key} template namespace. Bounded by the new EngineLimits::max_muster_tasks
    (default 100, configurable via EngineConfig/APP_ENGINE_MAX_MUSTER_TASKS).

  • Subgraph composition via NodeSpec::Battalion (CF-04). A child WarGraph can be embedded
    as a single parent node, running to completion within one parent superstep and exchanging state
    only through the new StateMap's declared inputs/outputs field pairs — everything else the
    child touches stays private.

  • LLM-evaluated edge routing and Commander Semantic strategy selection (CF-05). The new
    LlmDecisionEvaluator resolves an EdgeCondition::Custom edge from a live model's answer
    against a closed, author-declared choice list, asking once per decision per superstep. Commander
    gained StrategySelection::Semantic, which prompts a model to name a Battalion strategy and
    falls back to the existing heuristic deterministically on any error or unrecognized answer. Both
    are off by default and reached only by constructing one in code — no environment variable or
    config field enables either.

  • EngineConfig (src/config/engine.rs). Configures the WarEngine's EngineLimits and
    WaypointDurability: max_supersteps, max_node_visits, run_timeout_secs,
    waypoint_durability, and max_muster_tasks, each with an APP_ENGINE_* environment override.
    EngineConfig::default() converts to exactly today's EngineLimits::default() and
    WaypointDurability::Strict, so a v0.9 configuration file boots v0.10 with identical behavior.

  • Waypoint retention is a public application-layer service. WaypointRetentionService
    (application::services::waypoint_retention) owns the single definition of a protected
    Waypoint — a thread's latest plus every AwaitingInput entry — and passes the keep-set into
    the storage routine, which prunes on WaypointPort::prune_thread instead of the former
    delete-then-resave loop. WaypointRetentionConfig (config::waypoint_retention) configures
    it, with env overrides and validation. Additive API only (no pre-existing item changed);
    API-surface baseline regenerated to match.

  • Human-in-the-loop pause and resume: the Gate node and typed resume_with (HITL-01,
    HITL-02).
    NextStep::Parley now really suspends a run instead of failing it: the emitting
    superstep's deltas merge, a Waypoint with status: AwaitingInput { parleys, responses } is
    persisted, every resource for the run is released, and the run survives full process
    termination — resumable from a different process instance over the same WaypointPort. A new
    first-class NodeSpec::Gate node renders its prompt/payload from the Battlefield and is the
    primary approval-gate building block: one Gate plus two conditional edges is a complete
    approval gate. WarEngine::resume_with(graph, thread, responses) validates every submitted
    response totally before persisting anything (unknown/already-answered/wrong-shape/expired, each
    a distinct typed EngineError), persists a valid-but-partial submission as a same-superstep
    AwaitingInput Waypoint chain, and evaluates each request's on_expire policy
    (FailRun | ResumeWithDefault) lazily at resume time — no background timer. A Paladin node can
    also raise a parley through the structured directive envelope's next.parley key and read the
    answer back through a new parley. InputMapping namespace, reserved at graph-validation time
    exactly like the existing muster. namespace. See the
    Parley & Chronicle guide.

  • Chronicle: inspectable, forkable execution history (HITL-03). Waypoint/WaypointSummary
    gain an additive fork_of: Option<WaypointId> branch marker; WarEngine::replay/
    WarEngine::fork re-enter the superstep loop from any past Waypoint, each producing a new
    branch while the original chain stays byte-identical (a hard, tested invariant) — fork merges
    a caller-supplied StateDelta edit before the first forked superstep, letting a "what-if" edit
    flip a conditional edge's routing. ChronicleService::{history, inspect, latest_on_branch}
    exposes this as a thin, port-only read facade with no engine dependency. A branch's
    NodeSpec::Battalion children run under ThreadId::child_on_branch, so a fork's subgraph
    children never share Waypoints with the mainline's.

  • Graceful shutdown (HITL-04). A mid-superstep cancellation now races the whole in-flight
    batch of node tasks against one shared shutdown_grace deadline (default 30s, tunable via
    EngineConfig) instead of a per-node timeout; a node still running past the deadline is aborted
    and recorded NodeOutcomeKind::Skipped { reason: "shutdown" }, its id re-listed in the Halted
    Waypoint's vanguard so resume re-executes it exactly once. ShutdownCoordinator
    (paladin-battalion::engine::shutdown) tracks every in-flight run; both paladin-server's
    shutdown_signal and ServiceRunner::wait_for_shutdown cancel the same coordinator on
    SIGTERM/SIGINT and wait up to shutdown_grace for the batch to drain. Two new env vars:
    APP_ENGINE_SHUTDOWN_GRACE_SECS (default 30) and APP_ENGINE_GRACEFUL_SHUTDOWN (default
    true; set false to restore the old immediate-exit behavior). Both shipped Kubernetes
    manifests now declare terminationGracePeriodSeconds: 60 (2× the default grace). See
    MIGRATION.md §9.1, M-B-02
    for the worked before/after example.

  • Threads over HTTP (HITL-05). paladin-web gains three routes behind the same
    authentication middleware /v1/agents/* already uses: GET /v1/threads/{id}/state,
    POST /v1/threads/{id}/resume (returns 202 Accepted { thread_id, state_url } immediately —
    the engine continuation runs as a background task, never holding the connection open; a client
    polls .../state for the outcome), and GET /v1/threads/{id}/history (paginated, limit ≤
    100, opaque cursor). POST /v1/threads/{id}/resume additionally requires an admin-role
    credential and answers 403 to an authenticated non-admin caller, while
    GET /v1/threads/{id}/state and GET /v1/threads/{id}/history remain reachable by any
    authenticated role — an interim narrowing of this phase's own D-24 decision, applied because no
    per-thread ownership exists yet to scope against, with PLAT-06 (Phase 27) named as the successor
    that replaces it. See MIGRATION.md §9.6 for the status-code
    registry. Backed by a new ParleyPort (paladin-ports) with zero paladin-battalion
    dependency; paladin-server wires a real backend via the new WaypointStoreConfig
    (APP_WAYPOINT_STORE_BACKEND=sqlite|postgres, disabled by default — every thread route answers
    501 not_implemented naming the config key until an operator sets it). openapi.json
    regenerated with the three new paths; every pre-existing /v1/agents/* path is unchanged.

  • Execution middleware chain (RT-01, RT-02). PaladinExecutionService gains an ordered
    Vec<Arc<dyn ExecutionMiddleware>> (with_middleware/with_middleware_chain) hooking
    before_model/after_model/around_tool — onion-ordered, short-circuiting on Finish, with
    per-run state living on the context rather than the (stateless, Arc-shared) middleware itself.
    An empty chain reproduces v0.9's rendered prompt bytes, port call count and PaladinResult
    exactly. Applies automatically to a NodeSpec::Paladin node dispatched through a WarEngine —
    no engine-side registry, documented as the second of two independent hook layers alongside
    NodeInterceptor (see the Agent Runtime guide).
    Built-ins: ModelCallLimit/TokenBudget (new StopReason::CallLimit/TokenBudget variants,
    both is_successful() == true), ToolCallLimit (denies via ToolFlow::Deny, never fails the
    run), Guardrail (Regex/Predicate rules over prompt/response, Fail/Redact/Finish,
    patterns compiled once under an explicit size bound), and retry/fallback middleware delegating
    to Phase 25's RetryPolicy/FallbackLlmAdapter without duplicating logic. Every built-in is
    configured through one grouped AgentRuntimeConfig (APP_AGENT_RUNTIME_*), every section
    enabled: false by default — a v0.9 config boots v0.10 with an empty chain
    (build_chain_on_a_default_config_returns_an_empty_chain).

  • Context-window management (RT-03). A synchronous, infallible TokenCounterPort (heuristic
    default; the existing content-processing-gated tiktoken counter now also implements it — no
    new dependency), a stable HistoryTrimmer that never splits a message, and a compounding
    SummarizationMiddleware persisting summaries to Garrison via the new GarrisonEntry.is_summary
    field (#[serde(default)], additive SQLite column 002_add_garrison_is_summary.sql) —
    degrading to trimming, never failing the run, on summarizer failure.

  • Vault: cross-session namespaced memory (RT-04). New VaultPort (put/get/delete/list/search)
    with InMemoryVault, SqliteVault (003_create_vault_tables.sql) and an ungated SemanticVault
    composing an existing SanctumPort + EmbeddingPort, all sharing one contract suite.
    Confinement is structural: a host-issued RunScope grants a Namespace subtree, and
    ConfinedVault rejects any call outside it with VaultError::NamespaceDenied before the inner
    store is ever touched (attack-tested: a sibling or parent namespace is always denied). New
    vault_get/vault_put Armaments (via the new InProcessArsenal closure-backed ArsenalPort
    and CompositeArsenalPort) take an absolute namespace argument. PaladinPort::execute_scoped
    (defaulted) carries the grant through the engine to NodeContext::vault().

  • Structured output (RT-05). execute_structured<T: DeserializeOwned + JsonSchema> via a new
    StructuredExecutorPort (deliberately not on PaladinPort), schemas from schemars::schema_for!
    (new direct facade dependency schemars = "1.2", zero new lockfile packages — already resolved
    via rmcp), a bounded repair loop (PaladinError::StructuredOutputInvalid, raw output
    preserved), and native response_format on LlmRequest (new #[non_exhaustive] field, wired
    for OpenAI/compat-engine/DeepSeek/Gemini; Anthropic has no native mode and relies on the
    prompt-level instruction block — see the per-provider table in the Agent Runtime guide). A
    NodeSpec::Paladin.output_schema writes the engine's parsed JSON to output_field
    (GRAPH_FINGERPRINT_VERSION bumped v5 → v6).

  • Provider conformance close-out (RT-06). A shared ConformanceFixture +
    llm_conformance_suite! macro (paladin-llm::conformance) measures the shipped
    OpenAI-compatible/Gemini/Ollama paths against one fixed case list (success, streaming assembly,
    mid-stream errors, 401/404/400/402 dedicated mappings, 408/429/5xx transient-by-value,
    credential redaction, no credential-header redirect) and closes only the gaps it measures — no
    adapter rebuilt. The Ollama recipe (env-probed tests/integration/ollama_docker_test.rs, CI's
    ollama-integration job) is documented in the Agent Runtime guide rather than duplicated.

  • reasoning_agent preset and tool-call protocol (RT-07). paladin::presets::reasoning_agent(llm, arsenal, opts) assembles a runnable ReasoningAgent from an executable Arc<dyn ArsenalPort> in
    a ≤15-line, {{#include}}-compiled doc example. A prompt-level ToolCallProtocolMiddleware +
    FinishOnPlainAnswerMiddleware pair (opt-in; installed by the preset) makes the reasoning loop's
    tool branch reachable for a shipped provider without any wire-level change — ADR-0042's deferred
    native tool calling is untouched. tool_error_mode (FeedToModel default, FailRun new opt-in
    raising PaladinError::ArmamentFailed) names v0.9's existing feed-back-and-continue behavior
    rather than changing it; the fed-back text is now redacted (bearer tokens, API-key shapes,
    key=/token= values, JWT-shaped triples) before being bounded — see
    MIGRATION.md §9.1, M-B-03.

  • TokenCounterPort::is_exact(&self) -> bool (PRIM-01). A defaulted method (false by
    default) that lets a counting adapter declare whether its count result is the model's own
    exact tokenizer tally or an approximation. TiktokenCounter overrides it true (scoped to the
    encoding resolved at new(model)); HeuristicTokenCounter relies on the trait default. See
    MIGRATION.md §9.2.

  • paladin-memory gains an unconditional production dependency on paladin-llm
    (default-features = false) (COMM-01, Phase 33).
    RagRetrievalService calls
    Commissary::dispense directly to ration retrieved memories — the workspace's first
    unconditional production lateral adapter-to-adapter crate edge (paladin-battalion takes
    paladin-llm as a dev-dependency only; paladin-content takes it optionally behind its llm
    feature). No cycle: paladin-llm depends only on paladin-core and paladin-ports; the
    featureless dependency keeps reqwest/rand out of paladin-memory's build.

  • The Commissary prompt-budgeting types are now re-exported from the paladin facade
    (Phase 32).
    Commissary, CommissaryError, CommissaryPlan, Consignment,
    ConsignmentItem, DispensedItem, ShedItem, and Stockpile.

  • The shared context-window resolution types are now re-exported from the paladin facade
    (Phase 32).
    ResolvedWindow, UnknownContextWindow, WindowFallbackPolicy, WindowSource,
    and resolve_context_window, sourced from paladin_llm::window.

Removed

  • Legacy fallible garrison::TokenCounter trait and TokenCounterFactory deleted outright, no
    deprecated replacement (PRIM-03).
    paladin-memory's pre-TokenCounterPort counting contract
    — the TokenCounter trait (count_tokens, model_name) and its TokenCounterFactory
    (for_model/supported_models/is_supported) — is removed with no #[deprecated] shim and no
    forwarding alias, per ADR-0051's clean-break authority for Phases 31-33. TiktokenCounter's
    only counting path is now its TokenCounterPort implementation, with the BPE lookup and
    per-string cache inlined directly into count; TokenCounterPort is now the only counting
    contract in the workspace. Both types sit behind the content-processing feature, so this
    removal is invisible to a default-features build; enable content-processing and migrate any
    caller of the removed trait/factory to TokenCounterPort directly. See
    MIGRATION.md §9.2.

Fixed

  • ToolResultFormatter now redacts-then-bounds every tool text path, not just the Err path
    (26-REVIEW.md CR-01/WR-03).
    The redact-then-bound control RT-07 introduced for a tool's
    ArsenalError/handoff failure text (format_error) was not applied to format_result's
    ArmamentResult { success: false, .. } business-failure Error: field, nor to its successful
    Output: field — both embedded tool-supplied text raw. A shared sanitize_tool_text helper now
    covers all three: format_error, format_result's Error: field, and format_result's
    Output: field.
  • key=/token= redaction no longer misfires on ordinary words (26-REVIEW.md WR-01). The
    pattern matched any word ending in key/token directly followed by = (monkey=5,
    donkey=3, turkey=roast, jockey=true), corrupting benign tool-error text fed back to the
    model. A word-boundary check (non-alphanumeric or start-of-string immediately before the marker)
    now excludes these while still catching api_key=/access_token=.
  • A later after_model Finish no longer lost to an earlier before_model Finish
    (26-REVIEW.md CR-02).
    When a middleware finished the run early from before_model, the reached
    prefix's after_model pass still ran (per the onion-chain contract), but its own Finish result
    was discarded — the run always reported the original before_model Finish's stop_reason,
    even if a later after_model hook (e.g. a Guardrail rule) requested a different one. The
    after_model pass's own FinalResult now wins when present, mirroring the already-correct
    sibling post-model-call path.
  • Two token-usage under-reports corrected (ACCT-02/ACCT-03, Phase 31).
    1. Battalion per-Paladin token split was always zeroed. Formation/Phalanx's aggregation
      path built each BattalionResult.per_paladin_tokens entry from a bare total via
      TokenUsage::from_total(total), which always left prompt_tokens/completion_tokens at 0
      even though the real split was available on the underlying PaladinResult. The real
      result.usage split is now inserted directly, with no reconstruction step.
    2. Anthropic's prompt_tokens excluded cached input, under-reporting the billed figure. The
      adapter previously reported prompt_tokens = input_tokens alone; Anthropic's own
      input_tokens field EXCLUDES cache reads and cache writes, both of which the API still
      bills. prompt_tokens is now input_tokens + cache_read_input_tokens + cache_creation_input_tokens (saturating) — the actual billed input. Before/after: a call
      that previously reported prompt_tokens: 85 with a 512-token cache read now reports
      prompt_tokens: 597; a consumer computing its own cost estimate from prompt_tokens will see
      a LARGER number for any call that hits the prompt cache, and that larger number is the one
      Anthropic actually billed. See
      MIGRATION.md §9.2.
  • A failed-tool error's reason is now redacted and bounded like the text already fed back to
    the model.
    When a tool call is configured to fail the run rather than report the failure back
    to the model, the resulting error's reason previously carried the upstream tool's raw error text
    verbatim — including anything credential-shaped an upstream tool's own error message happened to
    contain. It now passes through the same redact-then-bound sanitizer the model-facing failure
    path already used, so a credential in an upstream tool's error message no longer reaches the
    error surface unredacted.

Documentation

  • New guide: WarEngine — Battlefield State & Superstep Execution. Covers Battlefield state
    and superstep merge semantics, Waypoint full-snapshot checkpointing after every superstep and
    its (ThreadId, WaypointId) addressing scheme, the three WaypointPort backends,
    EngineConfig/EngineLimits (max_supersteps, max_node_visits, run_timeout_secs,
    waypoint_durability, max_muster_tasks) with their APP_ENGINE_* environment overrides, and
    the graph-fingerprint scheme that invalidates a resumed run's checkpoints when its structure
    changes. Linked from the User Guides nav, with runnable, compile-verified examples.
  • Getting Started and API Reference brought current with the v0.10.0 tree. Every dependency
    pin and MSRV statement now reads v0.10.0 / Rust 1.88; the feature-flag and crate inventories are
    regenerated from the workspace Cargo.toml manifests (previously-undocumented flags such as
    otel, dev-ui, redis-cache and storage-postgres are now listed); the stable-API catalogue
    is rerooted onto the live crate paths.
  • User Guides and Architecture pages corrected against the shipped API. Constructor and trait
    samples that no longer compiled (Garrison attachment, Arsenal armament results, the Herald
    trait, Commander construction, RAG retrieval) now run through compile-verified examples; the
    domain-model page documents the engine's new state entities (Battlefield, Waypoint, Aegis,
    TraceRecord) alongside the existing ones.
  • Deployment and Operations pages rebuilt on the real CI/CD and tracing surface. The CI/CD
    guide now tables every job the live workflows actually run instead of an illustrative sample; the
    monitoring and troubleshooting pages point at the tracing export the release ships (an optional
    OpenTelemetry OTLP sink behind the otel feature) rather than a dependency that does not exist.
  • Contributing gained an Architecture Decisions index. A new page tables the ADRs that change
    what a crate consumer or operator sees, linked directly after the retitled Adapter Development
    Guide (previously mislabeled "Architecture Decisions" although it was always an adapter
    walkthrough).
  • Appendix pages rebuilt from live output and corrected import paths. The CLI reference pages
    now carry verbatim --help captures of the shipped paladin-cli binary in place of hand-written
    command syntax; the port and adapter import paths used across the appendix's setup and migration
    guides are corrected to the paths that actually compile against the workspace crates.
  • Five appendix pages recorded as historical rather than corrected. The doc-coverage report,
    the Milestone 7 build-baseline snapshot, the legacy contributing guide, and the paladin user
    CLI/REST pages describe surfaces the shipped v0.10.0 binary no longer has (or, for the coverage
    report and build baseline, describe a point-in-time measurement rather than a maintained page).
    Each now carries a banner naming its live replacement — none was deleted; every existing link to
    these pages still resolves.
  • The generated API documentation now builds warning-free, and stays that way. cargo doc
    previously emitted dozens of broken-link and malformed-markup warnings across the workspace
    under both the default feature set and the full feature set; every one is fixed, and the
    zero-warning bar is now enforced in three places so the count cannot silently regrow: locally
    through the code-quality checks, at push time through a pre-push hook, and in CI as part of the
    required lint job.
  • The examples gallery grew fourteen new runnable programs, covering engine configuration and
    checkpointing, control flow and dynamic routing, human-in-the-loop gating and thread replay,
    graceful shutdown, the agent runtime and its middleware hooks, schema-validated structured
    output, the Platform API client and webhook signature verification, the node-result cache,
    observability and distributed tracing (including OpenTelemetry export), and evaluation
    scenarios. The gallery index now lists every program in the directory, with what it demonstrates
    and how to run it.
  • The two in-process HTTP host examples now mount the same routers the shipped server mounts,
    so they exercise the real request-handling surface rather than a partial stand-in.
  • The examples gallery index is corrected against the current release: the stated minimum Rust
    version and the documented result-field names now match what the shipped crates actually
    require and return.
  • Documentation currency work closed six remaining deferred prose defects, filled in the last
    nineteen missing worked examples, and recorded a known documentation-lint gap.
    Six mdBook
    pages were corrected against the shipped API: the provider contribution guide's adapter import
    paths, the testing guide's tests/ directory tree, the CLI configuration appendix's Garrison
    and Arsenal troubleshooting entries, the OpenAIAdapter type name corrected everywhere it was
    miscased across the book, and the deployment guide's CI/CD YAML fragments now captioned
    illustrative rather than presented as literal, runnable configuration. Nineteen public builders,
    ports and services gained worked # Examples doctests, and a new code-quality gate keeps every
    future one from shipping without one. The decision record for the cargo doc zero-warning bar
    now names the eight crate-level documentation-lint suppressions still in force across five
    crates, with their per-crate hidden diagnostic counts and the reason each is knowingly kept for
    this release rather than cleared.

Known limitations

  • Tracing overhead exceeds the ≤3% bar (Phase 28, PRD 07 acceptance criterion 6). Measured
    superstep overhead with tracing enabled: +22.18% (log sink), +18.46% (composite sink), on
    an all-Function-node synthetic superstep benchmark with no LLM latency to amortize against (see
    .planning/phases/28-observability-tooling/28-BENCH-EVIDENCE.md). Accepted as a documented
    deviation for v0.10.0
    , per maintainer sign-off at Phase 28 close-out UAT (2026-09-09): tracing
    sinks are opt-in (no sink configured → no overhead) and trace.state_values defaults off, so no
    v0.9 workflow and no default v0.10 deployment pays this cost. Follow-up: re-scope the bar to an
    I/O-bound superstep and re-measure. See
    docs/src/operations/observability.md
    for the full disposition.

Release Artifacts

Container image

docker pull ghcr.io/df3ndr/paladin-dev-env@sha256:0942f0caeb08fca28a868531370b99f054990a51e863420c498afda7ca3d85a9

Pushed tag: ghcr.io/df3ndr/paladin-dev-env:0.10.0

Downloads and verification

  • SHA256SUMS
  • paladin-linux-amd64.tar.gz
  • paladin-linux-amd64.tar.gz.sha256
  • paladin-linux-arm64.tar.gz
  • paladin-linux-arm64.tar.gz.sha256
  • paladin-macos-amd64.tar.gz
  • paladin-macos-amd64.tar.gz.sha256
  • paladin-macos-arm64.tar.gz
  • paladin-macos-arm64.tar.gz.sha256
  • paladin-v0.10.0.cdx.json

Verify the downloaded archives against SHA256SUMS:

sha256sum -c SHA256SUMS

On macOS: shasum -a 256 -c SHA256SUMS

SBOM

paladin-v0.10.0.cdx.json is a CycloneDX SBOM for the root paladin-ai package only -- it does not cover the other crates in this workspace.

Image size

Measured image size: 86 MB -- within target (500 MB target, advisory only).