Repository navigation
Release v0.10.0
Pre-releaseSuperseded — 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. Usev0.10.1. See its
CHANGELOG.mdfor 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::Customno longer defaults totruewhen no evaluator is registered
(BUG-01 fix). Campaign/graph validation now fails, naming every unregistered condition, before
any node executes. Register an evaluator viaCampaignExecutionService::with_evaluator/
WarEngine::with_edge_evaluator, or replace the condition withContains/Regex/Always. - M-B-02 — Graceful shutdown is on by default. On SIGTERM/SIGINT the process now waits up to
shutdown_grace(default 30s, envAPP_ENGINE_SHUTDOWN_GRACE_SECS) for in-flight engine runs to
halt before exiting. SetterminationGracePeriodSeconds≥ 2 ×shutdown_gracein any Kubernetes
Deployment manifest before rolling out this upgrade (both shipped manifests already ship60).
SetAPP_ENGINE_GRACEFUL_SHUTDOWN=falseto 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_contextrations
retrieved memories through aCommissary::dispensecall instead of the old inline
content.len() / 4byte-length estimate: a single memory larger than the wholerag.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 inRagRetrievalResult::shedand
surfaced as a trailing omission line in the rendered prompt (bothformat_for_promptand the
facade'sformat_retrieved_context) whenevershedis 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_tallyshow the real, measured usage. Norag.max_tokensvalue needs
to change to get this behavior — it applies at whatever budget is already configured. - M-B-03 —
tool_error_modedefaults toFeedToModel, 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. Settool_error_mode = FailRunto 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 oneWaypoint(a fullBattlefieldsnapshot) to whichever
WaypointPortbackend is wired in. LegacyFormationExecutionService,PhalanxExecutionService,
CampaignExecutionService, andCommanderexecution 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 exactrmcp = "=2.1.0"pin's
transport-child-processfeature reachesprocess-wrap ^9.0, whose every release requires
rustc >= 1.87, and clearing RUSTSEC-2026-0009 requirestime>= 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 viarust-version.workspace = true, and
[workspace] resolver = "3"guards against a futurecargo updatesilently re-resolving above
it. SeeMIGRATION.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 totrueon every run when no evaluator was
registered — the edge silently always fired regardless of what the source Paladin actually
produced. Both consumers (CampaignExecutionServiceand theWarEngine) now reject an
unregisteredCustomname at validation time, before any node executes, naming every offender.
Register an evaluator viaCampaignExecutionService::with_evaluator/
WarEngine::with_edge_evaluator, or replace the condition withContains/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 newGatenode's
routing-relevant properties (kind,output_field,choices,on_expire's discriminant) are
now part of the hashed graph shape. A thread suspended under av3fingerprint fails closed
withEngineError::GraphMismatchon 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'sAegis.on_errorand
Aegis.cache(and the graph-widedefault_aegis) are now part of the hashed graph shape,
because they change what a run does;retryandtimeoutare deliberately excluded, so tuning
either never makesresumefail withGraphMismatch. A thread suspended under av4
fingerprint fails closed on resume exactly as thev3→v4bump 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]) andChunkMetadata.usage(#[non_exhaustive])
all replace their formertoken_count/total_tokensbare-count field with a fullTokenUsage
(prompt_tokens,completion_tokens,total_tokens, plus optionalcache_read_tokens,
cache_write_tokens,reasoning_tokens). The HTTP edge follows:ExecuteResponse.usageis now
aTokenUsageResponseDTO in place oftoken_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'sTraceDispatcher) now saturates a
realTokenUsagevia its newAdd/AddAssign/Sumimpls instead of reconstructing a
zero-split usage from a total. See
MIGRATION.md§9.2 for
the full per-type register and everycargo semver-checkssuppression. -
Commissary::new/Commissary::from_portno longer take a caller-supplied exactness
argument; theHistoryTrimmer/Commissarycontext-window resolvers are now one shared
function (PRIM-01, PRIM-02, PRIM-04).TokenCounterPortgained a defaulted
is_exact(&self) -> bool { false }method (TiktokenCounteroverrides ittrue,
HeuristicTokenCounterinherits the default);Commissarynow readsStockpile.exact_tally
live fromcounter.is_exact()instead of a fourth constructor argument, sonewdrops one
positional parameter andfrom_portdrops 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 explicitWindowFallbackPolicyinstead of a strict-bool
flag) — now backs bothCommissary::new's window resolution (strict policy) and
HistoryTrimmer::resolve_limit(lenient policy), replacing two independent inline.or(...)
precedence walks with one; the facade's localLimitSourceenum is gone, folded into the
sharedWindowSource. Six pre-refactor equivalence fixtures, committed green before either
consumer was rewired, prove neither Commissary's resolved windows nor HistoryTrimmer's trims
changed. SeeMIGRATION.md§9.2
(thepaladin-llm | Commissaryrow is markedN/Awith no allowlist mirror — every
discovery run recorded zero firedcargo semver-checkslints for it; see that section's note). -
RagRetrievalService::retrieve_context/retrieve_context_with_timeoutreturn a new
RagRetrievalResultin place of their v0.9.0 return type;format_for_promptnow takes that
struct as its parameter (COMM-01, COMM-02, COMM-04, Phase 33).RagRetrievalResultcarries the
retained memories (each with the post-dispensebody— render this, nevermemory.content),
the shed record (shed: Vec<ShedItem>), and the Commissary'sStockpileaccounting
(prompt_tokens/allotted_tokens/exact_tally). A newRagRetrievalErrorenum surfaces
Sanctum/Commissary/budget-conversion failures (plusDuplicateMemoryIdwhen 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_counterso 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
twopaladin-memoryrows, both markedN/Awith no allowlist mirror for the same tool-coverage
reason as theCommissaryrow immediately above) for the full per-row migration guidance.
Added
-
Typed error taxonomy (FT-01).
Transience { Transient, Permanent, Unknown }inpaladin-core,
with table-drivenPaladinError::transience()andLlmError::transience()reading typed fields
only — never a message. Provider adapters now emitLlmError::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 sharedmap_http_statushelper 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::NodeFailedand
BattalionError::Node— while the persisted display line is unchanged.PaladinError,LlmError
andBattalionErrorare 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
throughWarGraph::set_aegis/with_default_aegis(a node's own entry wins wholesale — no
field-level merge).RetryPolicyretries 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 aRetryPredicate(TransientOnlydefault,TransientAndUnknown, or
a registeredCustomevaluator viaWarEngine::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
asNodeExecutionRecord.attempts: Vec<AttemptRecord>with per-attemptNodeStarted/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 typedTimeoutKind::{Run, Idle, EngineRun}; progress flows through a newHeartbeatHandle
(ctx.heartbeat()in Function nodes;PaladinExecutionServicebeats on every LLM completion,
streamed chunk and Armament call through the new defaultedPaladinPort::execute_observed).
EngineLimits.run_timeout(EngineConfig.run_timeout_secs/APP_ENGINE_RUN_TIMEOUT_SECS,
declared in 0.10's Phase 23) is now enforced asEngineError::RunTimeoutExceeded, nesting outside
every per-attempt bound; an attempt cut by the engine budget recordsTimeout(EngineRun)and is
never retried. -
Typed error handlers and compensation (FT-04).
Aegis.on_errorruns on a node's final
failure:ErrorHandlerSpec::Route { to, error_field }writes the structuredNodeErrorJSON into
a declared non-Sumfield and placestoin 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 anErrorHandlerregistered viaWarEngine::with_error_handlerover the
pre-superstep Battlefield and honours whateverDirectiveit returns — including
NextStep::Parley. Routed visits count againstmax_node_visits, so a compensation cycle
terminates. On a worker template onlyAbsorband a delta-onlyCustomare allowed. Every
wiring fault is a typed validation error listing all offenders before a node runs. -
Model fallback:
FallbackLlmAdapter(FT-05). An ordered chain ofLlmPorts exposed as one
plainLlmPort(paladin_llm::fallback, ungated): hops on Transient/Unknown errors only,
short-circuits on Permanent, reports exhaustion asLlmError::AllProvidersFailed { attempts, last }in chain order, never switches provider after a streamed chunk has been delivered, emits
TraceEvent::FallbackHopplus awarn!per hop, and stamps the serving provider into the new
additivePaladinResult.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 ascache_hit: trueon the record and trace event. Keys
are a versioned blake3 digest over the graph fingerprint, node id, rendered input (or Battlefield
snapshot /CacheKeySpec::Fieldssubset), muster task and the Paladin's configuration, so a
prompt or graph change is a miss by construction;ttlhas a closed boundary; only a successful
Edges-routed delta is stored; backend errors are best-effort (ageterror is a miss, aput
error is logged). NewNodeCachePort(paladin-ports),InMemoryNodeCacheand, behind the new
redis-cachefeature onpaladin-storage(facade passthroughredis-cache, in no default set),
RedisNodeCache;WarEngine::with_node_cachewires one, and acachepolicy with no backend
fails validation. The schema-levelFieldSpec.cache: CacheMarker::Denymarker opts a field out
(the documentedAppend-replay hazard on forks).NodeCacheConfig(src/config/node_cache.rs,
APP_NODE_CACHE_*) selects the backend and is off by default. -
Node-driven
Directiverouting (CF-02). AStateNode::runnow returns aDirective— its
StateDeltaplus aNextStep(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::Edgesis the default and reproduces pre-CF-02 behavior exactly.
NodeSpec::Paladinnodes opt in via the newDirectiveParser(PlainOutputdefault,
StructuredDirectivefor a documented JSON envelope). See the
Control Flow guide. -
Muster: dynamic worker fan-out (CF-03).
NextStep::Musterdispatches N worker tasks to a
node registered via the newWarGraph::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 newEngineLimits::max_muster_tasks
(default 100, configurable viaEngineConfig/APP_ENGINE_MAX_MUSTER_TASKS). -
Subgraph composition via
NodeSpec::Battalion(CF-04). A childWarGraphcan be embedded
as a single parent node, running to completion within one parent superstep and exchanging state
only through the newStateMap's declaredinputs/outputsfield pairs — everything else the
child touches stays private. -
LLM-evaluated edge routing and Commander Semantic strategy selection (CF-05). The new
LlmDecisionEvaluatorresolves anEdgeCondition::Customedge from a live model's answer
against a closed, author-declared choice list, asking once per decision per superstep. Commander
gainedStrategySelection::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 theWarEngine'sEngineLimitsand
WaypointDurability:max_supersteps,max_node_visits,run_timeout_secs,
waypoint_durability, andmax_muster_tasks, each with anAPP_ENGINE_*environment override.
EngineConfig::default()converts to exactly today'sEngineLimits::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 everyAwaitingInputentry — and passes the keep-set into
the storage routine, which prunes onWaypointPort::prune_threadinstead 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
Gatenode and typedresume_with(HITL-01,
HITL-02).NextStep::Parleynow really suspends a run instead of failing it: the emitting
superstep's deltas merge, a Waypoint withstatus: 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 sameWaypointPort. A new
first-classNodeSpec::Gatenode renders its prompt/payload from the Battlefield and is the
primary approval-gate building block: oneGateplus 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 typedEngineError), persists a valid-but-partial submission as a same-superstep
AwaitingInputWaypoint chain, and evaluates each request'son_expirepolicy
(FailRun|ResumeWithDefault) lazily at resume time — no background timer. A Paladin node can
also raise a parley through the structured directive envelope'snext.parleykey and read the
answer back through a newparley.InputMappingnamespace, reserved at graph-validation time
exactly like the existingmuster.namespace. See the
Parley & Chronicle guide. -
Chronicle: inspectable, forkable execution history (HITL-03).
Waypoint/WaypointSummary
gain an additivefork_of: Option<WaypointId>branch marker;WarEngine::replay/
WarEngine::forkre-enter the superstep loop from any past Waypoint, each producing a new
branch while the original chain stays byte-identical (a hard, tested invariant) —forkmerges
a caller-suppliedStateDeltaedit 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::Battalionchildren run underThreadId::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 sharedshutdown_gracedeadline (default 30s, tunable via
EngineConfig) instead of a per-node timeout; a node still running past the deadline is aborted
and recordedNodeOutcomeKind::Skipped { reason: "shutdown" }, its id re-listed in the Halted
Waypoint's vanguard soresumere-executes it exactly once.ShutdownCoordinator
(paladin-battalion::engine::shutdown) tracks every in-flight run; bothpaladin-server's
shutdown_signalandServiceRunner::wait_for_shutdowncancel the same coordinator on
SIGTERM/SIGINT and wait up toshutdown_gracefor the batch to drain. Two new env vars:
APP_ENGINE_SHUTDOWN_GRACE_SECS(default30) andAPP_ENGINE_GRACEFUL_SHUTDOWN(default
true; setfalseto restore the old immediate-exit behavior). Both shipped Kubernetes
manifests now declareterminationGracePeriodSeconds: 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-webgains three routes behind the same
authentication middleware/v1/agents/*already uses:GET /v1/threads/{id}/state,
POST /v1/threads/{id}/resume(returns202 Accepted { thread_id, state_url }immediately —
the engine continuation runs as a background task, never holding the connection open; a client
polls.../statefor the outcome), andGET /v1/threads/{id}/history(paginated,limit≤
100, opaque cursor).POST /v1/threads/{id}/resumeadditionally requires an admin-role
credential and answers403to an authenticated non-admin caller, while
GET /v1/threads/{id}/stateandGET /v1/threads/{id}/historyremain 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. SeeMIGRATION.md§9.6 for the status-code
registry. Backed by a newParleyPort(paladin-ports) with zeropaladin-battalion
dependency;paladin-serverwires a real backend via the newWaypointStoreConfig
(APP_WAYPOINT_STORE_BACKEND=sqlite|postgres, disabled by default — every thread route answers
501 not_implementednaming 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).
PaladinExecutionServicegains an ordered
Vec<Arc<dyn ExecutionMiddleware>>(with_middleware/with_middleware_chain) hooking
before_model/after_model/around_tool— onion-ordered, short-circuiting onFinish, 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 andPaladinResult
exactly. Applies automatically to aNodeSpec::Paladinnode dispatched through aWarEngine—
no engine-side registry, documented as the second of two independent hook layers alongside
NodeInterceptor(see the Agent Runtime guide).
Built-ins:ModelCallLimit/TokenBudget(newStopReason::CallLimit/TokenBudgetvariants,
bothis_successful() == true),ToolCallLimit(denies viaToolFlow::Deny, never fails the
run),Guardrail(Regex/Predicaterules over prompt/response,Fail/Redact/Finish,
patterns compiled once under an explicit size bound), and retry/fallback middleware delegating
to Phase 25'sRetryPolicy/FallbackLlmAdapterwithout duplicating logic. Every built-in is
configured through one groupedAgentRuntimeConfig(APP_AGENT_RUNTIME_*), every section
enabled: falseby 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 existingcontent-processing-gated tiktoken counter now also implements it — no
new dependency), a stableHistoryTrimmerthat never splits a message, and a compounding
SummarizationMiddlewarepersisting summaries to Garrison via the newGarrisonEntry.is_summary
field (#[serde(default)], additive SQLite column002_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)
withInMemoryVault,SqliteVault(003_create_vault_tables.sql) and an ungatedSemanticVault
composing an existingSanctumPort+EmbeddingPort, all sharing one contract suite.
Confinement is structural: a host-issuedRunScopegrants aNamespacesubtree, and
ConfinedVaultrejects any call outside it withVaultError::NamespaceDeniedbefore the inner
store is ever touched (attack-tested: a sibling or parent namespace is always denied). New
vault_get/vault_putArmaments (via the newInProcessArsenalclosure-backedArsenalPort
andCompositeArsenalPort) take an absolute namespace argument.PaladinPort::execute_scoped
(defaulted) carries the grant through the engine toNodeContext::vault(). -
Structured output (RT-05).
execute_structured<T: DeserializeOwned + JsonSchema>via a new
StructuredExecutorPort(deliberately not onPaladinPort), schemas fromschemars::schema_for!
(new direct facade dependencyschemars = "1.2", zero new lockfile packages — already resolved
viarmcp), a bounded repair loop (PaladinError::StructuredOutputInvalid, raw output
preserved), and nativeresponse_formatonLlmRequest(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_schemawrites the engine's parsed JSON tooutput_field
(GRAPH_FINGERPRINT_VERSIONbumpedv5→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/402dedicated mappings,408/429/5xxtransient-by-value,
credential redaction, no credential-header redirect) and closes only the gaps it measures — no
adapter rebuilt. The Ollama recipe (env-probedtests/integration/ollama_docker_test.rs, CI's
ollama-integrationjob) is documented in the Agent Runtime guide rather than duplicated. -
reasoning_agentpreset and tool-call protocol (RT-07).paladin::presets::reasoning_agent(llm, arsenal, opts)assembles a runnableReasoningAgentfrom an executableArc<dyn ArsenalPort>in
a ≤15-line,{{#include}}-compiled doc example. A prompt-levelToolCallProtocolMiddleware+
FinishOnPlainAnswerMiddlewarepair (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(FeedToModeldefault,FailRunnew opt-in
raisingPaladinError::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 (falseby
default) that lets a counting adapter declare whether itscountresult is the model's own
exact tokenizer tally or an approximation.TiktokenCounteroverrides ittrue(scoped to the
encoding resolved atnew(model));HeuristicTokenCounterrelies on the trait default. See
MIGRATION.md§9.2. -
paladin-memorygains an unconditional production dependency onpaladin-llm
(default-features = false) (COMM-01, Phase 33).RagRetrievalServicecalls
Commissary::dispensedirectly to ration retrieved memories — the workspace's first
unconditional production lateral adapter-to-adapter crate edge (paladin-battaliontakes
paladin-llmas a dev-dependency only;paladin-contenttakes it optionally behind itsllm
feature). No cycle:paladin-llmdepends only onpaladin-coreandpaladin-ports; the
featureless dependency keepsreqwest/randout ofpaladin-memory's build. -
The Commissary prompt-budgeting types are now re-exported from the
paladinfacade
(Phase 32).Commissary,CommissaryError,CommissaryPlan,Consignment,
ConsignmentItem,DispensedItem,ShedItem, andStockpile. -
The shared context-window resolution types are now re-exported from the
paladinfacade
(Phase 32).ResolvedWindow,UnknownContextWindow,WindowFallbackPolicy,WindowSource,
andresolve_context_window, sourced frompaladin_llm::window.
Removed
- Legacy fallible
garrison::TokenCountertrait andTokenCounterFactorydeleted outright, no
deprecated replacement (PRIM-03).paladin-memory's pre-TokenCounterPortcounting contract
— theTokenCountertrait (count_tokens,model_name) and itsTokenCounterFactory
(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 itsTokenCounterPortimplementation, with the BPE lookup and
per-string cache inlined directly intocount;TokenCounterPortis now the only counting
contract in the workspace. Both types sit behind thecontent-processingfeature, so this
removal is invisible to a default-features build; enablecontent-processingand migrate any
caller of the removed trait/factory toTokenCounterPortdirectly. See
MIGRATION.md§9.2.
Fixed
ToolResultFormatternow redacts-then-bounds every tool text path, not just theErrpath
(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 toformat_result's
ArmamentResult { success: false, .. }business-failureError:field, nor to its successful
Output:field — both embedded tool-supplied text raw. A sharedsanitize_tool_texthelper now
covers all three:format_error,format_result'sError:field, andformat_result's
Output:field.key=/token=redaction no longer misfires on ordinary words (26-REVIEW.md WR-01). The
pattern matched any word ending inkey/tokendirectly 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 catchingapi_key=/access_token=.- A later
after_modelFinishno longer lost to an earlierbefore_modelFinish
(26-REVIEW.md CR-02). When a middleware finished the run early frombefore_model, the reached
prefix'safter_modelpass still ran (per the onion-chain contract), but its ownFinishresult
was discarded — the run always reported the originalbefore_modelFinish'sstop_reason,
even if a laterafter_modelhook (e.g. aGuardrailrule) requested a different one. The
after_modelpass's ownFinalResultnow wins when present, mirroring the already-correct
sibling post-model-call path. - Two token-usage under-reports corrected (ACCT-02/ACCT-03, Phase 31).
- Battalion per-Paladin token split was always zeroed.
Formation/Phalanx's aggregation
path built eachBattalionResult.per_paladin_tokensentry from a bare total via
TokenUsage::from_total(total), which always leftprompt_tokens/completion_tokensat0
even though the real split was available on the underlyingPaladinResult. The real
result.usagesplit is now inserted directly, with no reconstruction step. - Anthropic's
prompt_tokensexcluded cached input, under-reporting the billed figure. The
adapter previously reportedprompt_tokens = input_tokensalone; Anthropic's own
input_tokensfield EXCLUDES cache reads and cache writes, both of which the API still
bills.prompt_tokensis nowinput_tokens + cache_read_input_tokens + cache_creation_input_tokens(saturating) — the actual billed input. Before/after: a call
that previously reportedprompt_tokens: 85with a 512-token cache read now reports
prompt_tokens: 597; a consumer computing its own cost estimate fromprompt_tokenswill 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.
- Battalion per-Paladin token split was always zeroed.
- 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
Battlefieldstate
and superstep merge semantics,Waypointfull-snapshot checkpointing after every superstep and
its(ThreadId, WaypointId)addressing scheme, the threeWaypointPortbackends,
EngineConfig/EngineLimits(max_supersteps,max_node_visits,run_timeout_secs,
waypoint_durability,max_muster_tasks) with theirAPP_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 workspaceCargo.tomlmanifests (previously-undocumented flags such as
otel,dev-ui,redis-cacheandstorage-postgresare 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 theotelfeature) 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--helpcaptures of the shippedpaladin-clibinary 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 thepaladin 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'stests/directory tree, the CLI configuration appendix's Garrison
and Arsenal troubleshooting entries, theOpenAIAdaptertype 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# Examplesdoctests, and a new code-quality gate keeps every
future one from shipping without one. The decision record for thecargo doczero-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) andtrace.state_valuesdefaults 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
SHA256SUMSpaladin-linux-amd64.tar.gzpaladin-linux-amd64.tar.gz.sha256paladin-linux-arm64.tar.gzpaladin-linux-arm64.tar.gz.sha256paladin-macos-amd64.tar.gzpaladin-macos-amd64.tar.gz.sha256paladin-macos-arm64.tar.gzpaladin-macos-arm64.tar.gz.sha256paladin-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).