Repository navigation
Releases
Release 0.8.6
Fixed
- The standalone OpenAPI backend resolves inherited and referenced parameters.
It checks the final filtered selection before writing any proxies and reports
operations that the toolkit cannot forward.
Release 0.8.5
Changed
- Upgrade
jsonwebtokento 10 with therust_cryptobackend (was 9/ring).
JWT validation behaviour and the supported algorithms are unchanged; the
authentication and A2A integration suites pass on the new backend.
Release 0.8.4
Release 0.8.3
Release 0.8.2
Changed
- Raise the dependency floors to apcore 0.32.0 and apcore-toolkit 0.14.0.
Python'sopenapiextra uses the same toolkit floor. - Align runtime declarations with upstream requirements: Node.js 20+ and
Rust 1.86+. Update the TypeScript CI Node version accordingly.
Fixed
- Render input validation diagnostics from apcore's canonical
details.errorsentries (path,keyword,message). Preserve RFC 6901
JSON Pointers, including nested indices and escaped property names, and
display the empty root pointer as<root>. Free-form diagnostic messages
still pass through path/traceback sanitization and the combined message is
limited to 500 characters. Output/config failures remain internal errors;
errors without canonical diagnostics retain the sanitized original message. - Extend the shared error-mapping conformance driver to exercise structured
diagnostics instead of synthesizing field names into the error message.
Compatibility
- Toolkit 0.14.0 tightens binding-file validation (unknown keys, incomplete
schema pairs and strict-mode tags). The A2A backend does not use that loader;
its OpenAPI scanner, registry writer and reference resolver need no API change.
Deployments that load bindings separately must move custom entry keys into
metadata, supply both inline schemas, and use list-valuedtags. - Core 0.32.0's governance, cancellation, redaction and registration fixes are
inherited through the existing executor/registry APIs. No A2A wire-code or
OpenAPI skill-ID migration is required for this update.
Release 0.8.1
Adopts apcore-toolkit 0.13.0, whose OpenAPIScanner now emits every module_id in apcore's
Canonical ID alphabet itself, and retires this binding's own module-ID projection (FR-OAS-002)
to match. Tracks the apcore-a2a spec's openapi_backend.json contract 2.0.
Suite: 229 tests with --all-features (was 224), 196 without; cargo fmt --check,
cargo clippy --all-targets -D warnings (with and without --all-features) and
cargo build --examples clean.
Changed — BREAKING
- OpenAPI-derived module IDs — and therefore A2A skill IDs — change for every camelCase or
hyphenatedoperationIdand path. The toolkit splits camelCase into snake_case words where
this binding's projection only lowercased:listPets→list_pets(waslistpets); under
prefix: petstore,petstore.list_pets(waspetstore.listpets); and camelCase path
parameters likewise (GET /pets/{petId}→pets.pet_id.get, waspets.petid.get). A
prefixis normalised with the rest of the ID (Pet-Store→pet_store.…). IDs that were
already lowercase and legal are unchanged. Migration: ACL rules (targets), bindings, and
include/excludepatterns keyed on the old IDs must be updated — the scanner's filters
match the emitted, normalised ID (^read_audit_log$, notreadAuditLog). The recommended
prefixed catch-all deny rule (petstore.*) keeps holding, but an allow-list of old operation
names now fails closed until it is updated. Clients that call skills by ID must use the new IDs. - Required
apcore-toolkitfloor raised to 0.13.0 (was>=0.12.0), keeping
default-features = falseand theopenapi→apcore-toolkit/http-proxywiring.
Cargo.lockis not tracked; a local checkout needscargo update -p apcore-toolkit. - FR-OAS-002 is now a skip policy, applied after
scan.openapi_backendno longer
rewrites IDs: it registers the ID the scanner emitted. It still skips a module whose emitted ID
apcore's registry would reject — the one case the toolkit deliberately does not repair, a
segment that begins with a digit (/v1/2fa→v1.2fa.get), or an empty ID from a hook — with
the same WARNING as before, now checked on the IDsscanreturns instead of inside
transform_module. A hook returningMyThingis normalised by the toolkit tomy_thingand
registers (the old in-hook projection made itmything; a legality check left there would have
skipped it). The toolkit's own legality warning for a skipped module is not re-emitted beside
the skip line. The caller'stransform_moduleis now handed to the scanner as it is, so it
still runs first — and theArc<Mutex<Vec<_>>>side channels the wrapping hook needed are
gone. - The FR-OAS-003 description repair runs on the modules
scanreturns, still after the
caller'stransform_modulehook, so the synthesis INFO line names the IDs actually emitted —
including a deduplicated…_2, which the in-hook repair, running before the scanner's
deduplication, reported under the pre-deduplication ID (list_petstwice, never
list_pets_2).
Deprecated
project_module_id(#[deprecated]), at bothapcore_a2a::openapi_backendand the
crate root. apcore-toolkit >= 0.13 emits IDs in apcore's alphabet, so the projection is no
longer needed and nothing in this crate calls it. Behaviour unchanged; it will be removed in a
later minor release. It does not reproduce the toolkit's naming (listPets→listpets, not
list_pets), so do not use it to predict the ID a module registers under.is_legal_segment
is unaffected — the skip policy uses it.
Fixed
- An operation removed by
include/excludewas still reported as description-synthesized.
The repair ran inside the scanner'stransform_modulehook, which runs before the scanner's
own filters, so the FR-OAS-003 INFO line named operations that never registered and counted
them against a denominator that excluded them (2 of 1 scanned operations). The feature spec
already required the opposite ("an operation excluded by configuration is never synthesized for
and never reported"); running the repair afterscanmakes it true.
Tests
- The conformance driver reads
openapi_backend.jsoncontract 2.0: re-pinned IDs; three new
cases (projection_hook_output_normalised_not_skipped,
description_synthesis_report_names_the_emitted_id,
description_not_synthesized_for_excluded_operation); the fixture's namedhooks(an unknown
hook name panics);expected_no_error_logs; andexpected_synthesis_report. - New regressions: production code never calls
project_module_id(read from the source, outside
its#[cfg(test)]module); an illegal hook-returned ID is skipped whatever its shape (including
the empty ID); a skipped module reaches no later diagnostic (no synthesis, no FR-OAS-005 count,
the zero-modules warning fires, nothing at ERROR); a caller hook'sPet-Store.ListPets
registers aspet_store.list_petswith its cleared description repaired;illegal_segment
reads the emitted ID as it is.
Release 0.8.0
Minor release, version-aligned with the Python and TypeScript SDKs. Raises the required floor to
apcore 0.31.0 and apcore-toolkit 0.12.0, and fixes a card/enforcement divergence the floor
raise would otherwise have reopened. 224 tests pass (was 224 — one test rewritten in place, no
new surface).
Fixed
ApCoreAgentExecutor::acl_contextno longer synthesizes anIdentityfor an anonymous
caller (src/server/executor.rs). This method exists to reproduce, out of pipeline, exactly
what apcore'sBuiltinContextCreationhands toBuiltinACLCheck, so the Agent Card filter and
the real call path agree about what an anonymous caller can see. Through apcore 0.30, apcore-rust
itself manufactured anIdentity{id:"@external", type:"external"}for a null identity — a
Rust-only bug apcore-python and apcore-typescript never had — and this method mirrored it for the
same reason it mirrors everything elseBuiltinContextCreationdoes. apcore 0.31.0 fixes
apcore-rust to match its siblings (PROTOCOL_SPECdecision D-103: a nullidentitystays null,
no synthetic@externalprincipal;caller_idalone still defaults to the ACL's@external
sentinel). Left unmirrored, this method would have kept manufacturing anIdentitythe real
pipeline no longer does, silently reopening the exact discovery/enforcement disagreement this
method was written to prevent: aidentity_types/rolesconditional ACL rule would evaluate
against a fabricated principal on the card path and againstNoneon the call path.caller_id
defaulting is unaffected — only theidentitysynthesis was removed.
Changed — dependency floor
- Required
apcorefloor raised to 0.31.0 (was>=0.30) and requiredapcore-toolkit
floor raised to 0.12.0 (was>=0.11.1). apcore 0.31.0 is two joined audit cycles
(PROTOCOL_SPECv1.37.0 → v1.59.0) settling 54 cross-language divergences, five of them
security defects; apcore-toolkit 0.12.0 adds the Device Authorization Flow (RFC 8628, unused
here), threads apatternparameter throughBindingLoader.load(not used by this crate), and
fixes a$refsibling-key credential-disclosure defect in its own schema resolver. Every
apcore/apcore-toolkitsymbol this crate imports was grepped against both changelogs'
breaking-change sections: the one hit is theacl_contextfix above.src/adapters/schema.rs
delegates$refresolution entirely toapcore_toolkit::deep_resolve_refs, so the toolkit's
sibling-key fix reaches this crate transitively with no code change needed here — unlike
apcore-mcp, which carried an independent, unfixed copy of the same bug in its own schema
converter.sys_modules.enabledregistration,global_deadlineconstruction (already a
dedicatedContextfield, already epoch seconds, already built fresh per request rather than
deserialized), andgovernance_state()/check_accessusage were all checked against their
respective decisions and need no change.
Release 0.7.0
Minor release, version-aligned with the Python and TypeScript SDKs. Ships the OpenAPI
Backend (feature F-12): point the adapter at an OpenAPI 3.0/3.1 document and every
operation becomes an A2A Skill, proxied over HTTP to the API that published it, with no
apcore project on the other end.
Suite: 224 tests with --all-features (was 190), 194 without — the 26 that need a spec
fetch or an HTTP proxy writer are behind the feature. cargo clippy --all-targets --all-features -- -D warnings and cargo fmt --all -- --check clean.
Added
-
apcore_a2a::openapi_backend, behind the newopenapicargo feature —
openapi_backend(), the asyncopenapi_backend_from_spec()wrapper (apcore-toolkit-rust's
load_specisasync, so the fetch cannot hide inside a document argument),
project_module_id,is_legal_segment,resolve_spec_location,synthesize_description,
build_openapi_backend_from_configandOpenAPIBackendOptions. All re-exported from the
crate root.The pipeline is
load_spec -> OpenAPIScanner::scan -> HTTPProxyRegistryWriter::write -> Registry, all already-shipped apcore-toolkit code; everything downstream is the adapter
that already serves an extensions directory, unmodified. See
apcore-a2a/docs/features/openapi-backend.md. -
BackendSource::OpenApi { spec, options }. It resolves to(Executor, Some(Registry)),
not(Executor, None):apcore::register_sys_modulestakes an ownedArc<Registry>while
Executor::registry()yields only a&Registry, so returningNonewould silently cost
system.*registration on an OpenAPI-backed server — which is the whole reason the feature
spec makes this source produce aRegistryrather than anExecutor. The registry is
populated before the executor is constructed. -
Two repairs the composition cannot work without.
FR-OAS-002: apcore-toolkit derives
module IDs into[A-Za-z0-9_.-]while apcore'sRegistryaccepts only
^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)*$— measured against apcore 0.30.0 / apcore-toolkit
0.11.1, the canonical Swagger Petstore scans cleanly, registers nothing, and yields an
Agent Card with zero skills without raising anywhere. A projected ID that still carries an
unrepairable segment (2facannot begin with a digit) drops the module and says so at
WARNING, naming both the derived ID and the segment — the scanner'stransform_modulehook
drops aNonereturn silently, so that report cannot be delegated.FR-OAS-003: an
operation with neithersummarynordescriptionyields"", andAgentCardBuilderskips
empty-description modules, so undocumented operations vanished from the card with no
diagnostic; a{METHOD} {path}description is synthesized instead and the affected modules
are named at INFO — by their post-projection IDs, which are the ones that reach the card.The ordering is normative in both directions: the caller's own
transform_modulehook runs
first, then the description repair, then the projection — and the projection runs inside the
scanner's hook, so it happens before the scanner's owndeduplicate_ids, because lowercasing
can create a collision the document did not have (listPets+listpets). -
FR-OAS-005unapproved-write warning. The scanner never infersrequires_approvalfor
any HTTP method, and the 0.6.0 public-card filter subtracts only ACL-denied and
approval-gated skills — so a scannedPOST /chargesis advertised on the unauthenticated
/.well-known/agent-card.json. The warning names that exposure, and is never suppressed
by the presence of an ACL (apcore's ownGovernanceStatereports the absence of a gate,
never the presence of protection), only by having nothing to warn about, by a module
declaringrequires_approvalitself, or by an explicitacknowledge_unapproved_writes. It
is escalated whenbuiltin_approval_gate_wiredisfalse. -
CLI:
--from-openapi,--openapi-base-url,--openapi-prefix,--openapi-include,
--openapi-exclude,--openapi-header(repeatableKEY:VALUE, spec fetch only) and
--openapi-no-deprecated. Each is an overlay on theapcore-a2a.openapiConfig Bus
section, resolved per key. An extensions directory combined with an OpenAPI document
requires a prefix from either route, and they populate one registry so the collision
preflight can see the project modules it must not shadow. -
Config: an
apcore-a2a.openapidefault in the namespace registration — the namespace's
first nested section and its first path-typed key. apcore 0.30.0's protections for
path-typed keys do not reach a consumer namespace:Config::path_typed_keys()is a
hardcoded set of apcore's own keys and never consults a namespace registered through
Config::register_namespace, soresolve_spec_locationowns the three rules instead. -
cli::merge_openapi_settings, which reads that section and overlays the--openapi-*
flags on it per key, flag wins. It returnsNonewhen neither route names aspec—
the ordinary "no OpenAPI configured" outcome, not an error — and the CLI's backend-source
check consults it, soapcore-a2awith no flag at all now serves a spec declared in
the config file. -
New
openapicargo feature, gatingapcore-toolkit/http-proxy(the spec fetch and the
HTTP proxy writer), matching the Python package'sopenapiextra.apcore-toolkitis now
depended on withdefault-features = falseso the toolkit's defaulthttp-proxyfeature
is reached through that gate rather than pulled in unconditionally. -
9 conformance tests (
tests/openapi_backend_conformance.rs) against the shared corpus
inapcore-a2a/conformance/fixtures/openapi_backend.json, plus 17 unit tests. The driver
capturestracingoutput with its level, so every diagnostic the fixture names is
asserted rather than assumed — the two discriminating cases
(projection_unprojectable_segment_dropped_with_warning,
write_warning_not_suppressed_by_permissive_acl) assert nothing but a diagnostic. Three
behaviours the shared corpus cannot reach —timeoutbeing the spec-fetch timeout,
headersreaching the fetch request, andbase_urlsupplying what a document lacks — are
pinned separately, two of them against a real socket.
Fixed (conformance harness)
-
The conformance runner could pass vacuously.
cases()read each fixture group through
unwrap_or_default(), so renaming a group upstream made the loop iterate zero cases and
report success. Measured by renamingtest_cases: this binary reported 9 passing tests while
asserting nothing, and apcore-a2a-typescript silently dropped from 46 to 33, while
apcore-a2a-python failed loudly because it indexes the key directly.cases()now panics on
an absent or empty group. Returning early when the spec repo is not checked out remains a
separate, legitimate case. -
The three CLIs disagreed on the exit code for a usage fault, and Rust disagreed with
itself. Measured before the fix: Python exited2for a usage fault and1for a
configuration fault — correct; TypeScript collapsed everything onto1; and Rust exited2
for--bogus(clap caught it) but1for a missing backend source (its own check did) — the
same class of mistake, two codes, decided by which layer noticed first.All three now implement both tiers:
2the command line is wrong (no backend source, an
unknown flag, a flag missing its value, a malformed--openapi-header) and1the
environment it named is wrong (missing directory, zero modules, unresolvable spec, missing
auth key). The distinction is actionable — a supervisor may retry1and must never retry
2— and2is what argparse, clap and GNU getopt all use, so the bindings agree with the
tools around them as well as with each other.This crate gained
cli::UsageError, whichmaindowncasts to choose the code.mainnow
returnsExitCoderather thanResult, because Rust's runtime exits1for anyErrand
would have collapsed the two tiers again.
Changed
-
APCoreA2AErrorgains aConfig(String)variant for misconfiguration detected before
the server can start (a missingprefixin a mixed deployment, an unresolvable spec, a
document that is not 3.0.x/3.1.x, no usable base URL, an ID collision). Additive;
EmptyRegistryandServerare unchanged. -
--extensions-diris now optional and has no./extensionsdefault. One of it or
--from-openapiis required, and supplying neither is an error naming both. Previously a
bareapcore-a2aserved./extensions.
Fixed
-
--portwas inert.cli::runbuilt itsAPCoreA2AConfigwith..Default::default()
and never copiedcli.port, so the server bound0.0.0.0:8000whatever the operator typed,
with nothing logged. The published--urlnow follows--porttoo (defaulting to
http://localhost:<port>), so the Agent Card cannot advertise a socket the server does not
bind; an explicit--urlstill wins. -
The
apcore-a2a.openapiConfig Bus section reached nothing.
build_openapi_backend_from_confighad no caller anywhere insrc/— it was public API
and a documented first-class surface (feature spec §Configuration, SRS FR-OAS-004 AC 5) that
no live path read.cli::runbuilt its options from the flags alone, sotimeout,
include,excludeandacknowledge_unapproved_writes— none of which has a CLI flag in
any of the three SDKs — were unreachable except by calling the library directly. The CLI now
merges the section with the flags and routes both the OpenAPI-only and the mixed deployment
throughbuild_openapi_backend_from_config, which also means a relativespecresolves
againstConfig::project_rooton the route most deployments use (FR-OAS-004 AC 5).The merge is per key, not per source: a...
Release 0.6.0
Resolves aiperceivable/apcore-a2a issues #2, #3, #4, #5 and apcore-a2a-rust #2.
One principle runs through all five: apcore already draws these distinctions,
and a transport binding's job is to convey them, not to flatten them.
Suite: 190 tests (was 164).
Runtime floor moves to apcore 0.28.0 / apcore-toolkit 0.10.2 (apcore = ">=0.28, <0.29" / apcore-toolkit = ">=0.10.2").
Changed
-
A governance refusal is reported as itself (spec srs FR-ERR-003, FR-ERR-009,
FR-ERR-010, FR-ERR-012).ACL_DENIEDmoves from-32001 "Task not found"to
-32040 "Access denied";APPROVAL_DENIEDandAPPROVAL_TIMEOUTleave the
-32603catch-all for-32041 "Approval denied"and-32042 "Approval timed out". All three now reachTASK_STATE_REJECTEDinstead of
TASK_STATE_FAILED, which matters most onmessage/send, where the response
is a JSON-RPCresultand the error code never reaches the caller at all —
the state and its message are the entire payload.The old mapping told an agent a different failure had happened, one whose
correct response was the opposite of the real one:"Task not found"sends a
caller back to re-fetch or re-send the one thing that was fine, and
"Internal server error"is the canonical retryable failure — for a call a
human had explicitly refused. A2A §13.2's MUST NOT forbids revealing the
existence of a resource, not the class of failure, so a fixed
"Access denied"naming no caller, target or rule satisfies it while still
telling an agent to stop.-32001now means only "unknown task id, or a task owned by another
principal".APPROVAL_PENDINGis untouched: still a resumable
TASK_STATE_INPUT_REQUIREDcarrying its message verbatim, which is how a
caller learns the approval id it resumes with.Breaking for callers that matched
-32001or the literal"Task not found"to detect an authorization failure. -
The public Agent Card shows what an anonymous caller could actually invoke
(spec srs FR-AGC-003): every registered skill, minus those the ACL denies to
the anonymous principal, minus those annotatedrequires_approval. The filter
resolves one identity, so it runs once at card-build time — never per request
on the auth-exempt/.well-known/route. -
The extended Agent Card carries what the authenticated caller may invoke
(spec srs FR-AGC-004), includingrequires_approvalskills, resolved against
that caller's own identity. -
capabilities.extendedAgentCardis no longer derived fromauth != null
alone (spec srs FR-AGC-002, FR-AGC-006): this binding advertises the
capability only because it now serves it. -
Card visibility reads apcore's two governance axes apart (spec srs
FR-AGC-003 "The two axes" and criterion 11; FR-AGC-004 criteria 2 and 10).
apcore 0.28.0 (PROTOCOL_SPEC§6.1.6) gave an ACL rule anapproval: required
field orthogonal toeffect, so one check now resolves two independent results
— may this caller reach this target, and must this call be put to a human — and
made the legacy booleanACL.checkfail closed on the second. This binding
filtered its cards on that boolean. Left alone, a skill the ACL allows the
caller but gates behind a human would have silently vanished from the
extended card too: a refusal the ACL never issued, and the caller left
unable to learn that a capability it holds exists at all.Every card filter now reads
ACL::check_accessand filters on the
authorization axis alone. The approval axis decides only which surface: it
joins the module'srequires_approvalannotation as the second source the
public card subtracts, composed by union exactly as apcore §6.9 composes them.
Since 0.28.0 the annotation describes the module, not the call (apcore#110),
so reading it alone would leave on the public card a skill an anonymous caller
cannot in fact just call.The bug this closes was one line:
handlers::acl_filtered_cardcalled
acl.check(...).ACL::check_accessreturns anAccessDecision, and the filter
now readsdecision.is_allowed()for visibility anddecision.approval_required
only to decide which surface — thehide_approval_gatedargument,truefor the
public card andfalsefor the extended one. The projection argument isNone:
a card is discovery and there is no call site.apcore::acl::ACLRulealso gained a requiredapprovalfield, a source break for
the struct literals in this crate's integration tests. -
apcore's
system.*management namespace never reaches the public Agent Card
(spec srs FR-AGC-003 criteria 12 and 13, FR-AGC-004 criterion 11;
aiperceivable/apcore-a2a#5). Removed unconditionally — independent of ACL
state, of therequires_approvalannotation, and of howsys_modulesis
configured. Kept on the extended card, filtered per identity like any other
skill.Every other subtraction the public card makes is governance-shaped, and with no
ACL configured they all collapse: the ACL predicates are empty and the
annotation covers only the threesystem.control.*write modules — leaving the
six read modules, which enumerate the deployment's module inventory, health and
usage, published to any anonymous caller on the auth-exempt/.well-known/
route.ACL.discover()yields nothing for a missing root by design, so "no ACL
at all" is the default rather than an edge case, and the rule that has to hold
there cannot be shaped like a governance verdict. -
Warns when an unprotected control surface is served (spec srs FR-AGC-007),
asserted by capturingtracingoutput with a thread-local
subscriber::set_defaultrather than a global subscriber, so the check cannot
race the other tests in the integration binary.
Server construction reads apcore'sExecutor::governance_stateand warns when
unprotected_control_surfaceis true. It never refuses to start and never
alters a card. Withholdingsystem.*from the public card removes the surface
from discovery, not from dispatch: apcore's approval gate warns once and
continues with noApprovalHandler, so the write modules stay callable, and the
card rule must not be mistaken for a fix to that.
Added
-
apcore's behavioral annotations reach the wire (spec srs FR-SKL-004):
readonly,destructive,idempotentandrequires_approvalare emitted as
namespaced entries in the standardtagsfield —apcore:readonly,
apcore:destructive,apcore:idempotent,apcore:requires-approval— in
that fixed order, appended after the module's own tags and de-duplicated
against them. Onlytrueflags are emitted.A2A 1.0
AgentSkillhas noextensionsand nometadatamember, sotags
is the only carrier that exists. Without them the card carried enough to
construct a call and not enough to judge whether making it is safe — and
retry semantics were unusable, sinceretryableis a property of the error
while whether a retry is safe is a property of the operation. -
Governance refusal errors on the client, so a refusal is not reported as
a transient server failure. -
A2AClientError::AccessDenied/ApprovalDenied/ApprovalTimeout, plus
A2AClientError::is_governance_refusal(). -
APCoreA2AConfig::disclose_refusal_reason(defaultfalse, spec srs
FR-ERR-011): forwards apcore's own sanitized reason for the three governance
codes instead of the fixed per-class string. The code never changes with the
flag; only the message does. -
GET /agent/authenticatedExtendedCardand theGetExtendedAgentCard
JSON-RPC method. This crate advertisedcapabilities.extendedAgentCardand
routed neither, so a client that read the flag and called the method — which
A2A §3.2.x entitles it to do — got method-not-found.
Fixed
-
sys_modulesregistered nothing (aiperceivable/apcore-a2a#5). apcore reads
sys_modules.enabled, a top-level config section; the flag was a silent
no-op in every deployment since it was introduced.This binding passed
&Config::default()toregister_sys_modules, which reads
sys_modules.enabledand returns an empty context when it is absent — and
let _ =discarded the result, so nothing reported the no-op. The config is now
built with the key set, theResultis inspected, a failure is warned about
rather than dropped, and the registered ids are logged.Fixed together with the namespace rule above, deliberately in that order:
repairing the config path on its own is precisely what would have opened the
hole that rule closes. -
async_serveno longer derives its bind address fromconfig.url(#2).
APCoreA2AConfiggainshostandport;urlis now the Agent Card
endpoint only, defaulting tohttp://{host}:{port}exactly as the Python and
TypeScript bindings have always done. The old code string-spliturlon
://and fell back to0.0.0.0:8000when the split failed, so a scheme-less
loopback value like127.0.0.1:18999silently published every skill on every
interface, on a port the operator never chose — with nothing logged. A path, a
trailing slash or a missing port failed to bind with an address-parse error
naming neither the URL nor the cause.Breaking:
APCoreA2AConfiggains two fields, so struct-literal
construction must be updated (useAPCoreA2AConfig::default()with.., or
the builder's new.host()/.port()/.bind()setters). -
Rust now emits the unauthenticated-public-bind warning Python and TypeScript
already did — the one configuration that most deserves a line in the log
produced none.
Release 0.5.0
Minor release. Task isolation moves into the TaskStore, which makes it survive
a restart — a breaking change to the store traits and to
A2AServerFactory::create; see Changed (BREAKING) below for the migration
table. Also carries conformance and correctness fixes on the A2A server path
from aiperceivable/apexe issues #33, #34 and #35, and raises the apcore floor
to 0.27. Deployments on the default in-memory stores and on build_app /
serve need no migration. 161 tests pass.
Fixed
-
Failed tasks no longer collapse every error to
"Internal server error".
error_to_statusnow routes throughErrorMapper, the crate's single
redaction policy, so the task-status surface classifies like the JSON-RPC
surface. Internal and unrecognized errors keep the fixed string (srs
FR-ERR-004 / FR-ERR-008) and ACL denials stay masked (FR-ERR-003), but
caller-fixable failures — schema validation, invalid input, unknown module —
carry their sanitized detail plusai_guidancewhen apcore supplied one. An
agent that reads a guard refusal can now correct itself. Python and TS emit
the fixed string on this path too, so they need the same change.ai_guidanceis gated on exactly those three classes, not on
err.user_fixable. Six apcore codes carryuser_fixable = Some(true)while
mapping to the fixed "Internal server error" (VERSION_CONSTRAINT_INVALID,
the threeBINDING_*codes,DEPENDENCY_NOT_FOUND,
DEPENDENCY_VERSION_MISMATCH), anduser_fixableis settable per-error by
the module author — so the first version of this change let a fixed,
deliberately-opaque string be extended with internal detail that
sanitize_messagedoes not strip (module ids, versions, env-var names,
hostnames). A unit test now locks the gate toErrorMapper's own branching
across every apcore error code.SCHEMA_VALIDATION_ERRORis no longer treated as caller-fixable in every
direction. apcore raises the one code for input, output and config
validation, so a module returning the wrong shape reached the caller as
-32602 Invalid paramswith"Output validation failed"and guidance
pointing at adetails.errorsfield an A2A caller never receives — a
server-side defect reported as the caller's fault. Output and config
validation now map to the fixed internal string. The direction label apcore
puts at the front of the message is the only signal available, so the two
exact wordings are matched; anything unrecognized (including a module raising
the code with its own wording) keeps the caller-facing detail. -
tasks/cancelis guarded. Unknown ids return-32001instead of
fabricating a CANCELED task, terminal tasks return-32002instead of having
their artifacts destroyed, and a cancelled task keeps the artifacts and
history it had already accumulated (srs FR-TSK-005; matches a2a-python's
on_cancel_task). -
TextPartinput works. The module's input schema is now passed to the
part converter, so a JSON text part is parsed against it rather than arriving
as a bare string — making theapplication/jsoninput mode on the Agent Card
usable without aDataPart. -
JSON-RPC 2.0 envelope validation. Malformed JSON returns
-32700in a
JSON-RPC response instead of atext/plainHTTP 400; a"jsonrpc"other
than"2.0", a missingjsonrpc/method, and a batch array all return
-32600(previously accepted, or reported as-32601).A missing
idis deliberately not an error. That is a JSON-RPC 2.0
notification, and — like a2a-python and a2a-js — this server answers it with
a normal response carrying"id": nullrather than staying silent as strict
JSON-RPC 2.0 would. Clients that send notifications should expect a response
body. -
SSE frames are JSON-RPC responses. Each
data:now carries
{"jsonrpc","id","result":<event>}, matching a2a-python and a2a-js, so an
off-the-shelf A2A client can parse the stream. Event ordering, the terminal
lastChunkmarker and theoneofwrapper keys are unchanged;kindand
finalremain absent, as A2A 1.0 requires.The SSE
id:line also remains absent, but that is a deviation from the
spec repo, which mandates a monotonicid:in three places
(docs/spec/srs.md,docs/features/streaming.md,
docs/spec/tech-design.md). Neither a2a-python nor a2a-js emits one, so
emitting it would put this server alone on the wire, and it buys nothing
untiltasks/resubscribe/Last-Event-IDreplay exists. To be revisited
with resubscribe support, or by amending the spec. -
"role": "user"is accepted. The lowercase A2A 0.3 spellings are
deserialization aliases (ROLE_*is still what is serialized), and an
unreadablemessagenow reports what actually failed to parse instead of
claiming the parameter was missing. -
VERSIONtracks the crate version (CARGO_PKG_VERSION) rather than a
hand-maintained literal that had drifted to0.4.1. -
A store-backend failure is reported as
-32603, never as-32001. The
two demand opposite responses — an A2A agent reading task not found
re-submits work that is actually still there, while internal error is
correctly not caller-fixable — so they must stay distinguishable. This is the
same classification the task-status surface uses (srs FR-ERR-004 /
FR-ERR-008), now applied to every store-addressed method:tasks/get,
tasks/cancel,tasks/list, and all threetasks/pushNotificationConfig/*.Three of those previously answered as though nothing was wrong:
tasks/pushNotificationConfig/deletereturnedresult: nullwhile the
config stayed live and kept delivering — a caller revoking a leaked webhook
was told it had worked;tasks/listreturned[], which reads as "you have
no tasks" rather than "the backend is down"; and
tasks/pushNotificationConfig/getreturned-32001 not foundfor an outage
whilesetreturned-32603for the same one, giving callers two
contradictory signals about a single failure.tasks/cancelis the fourth: recording CANCELED is what cancelling does,
so a failed write there is the operation failing, not "work happened that
could not be recorded". It answered with a CANCELED task while the store
still held the old state, leavingtasks/getto contradict it. -
Task-store write failures are logged instead of discarded. Each
persistence call was a barelet _ =, so a store outage produced tasks that
message/sendreported as COMPLETED andtasks/getthen reported as
missing, with nothing logged in between. The response is unchanged — the work
really did run — but the failure now reaches the operator. -
A JSON-RPC error frame on an SSE stream now raises instead of being yielded
as an event. Upstream reports a mid-stream failure as its own frame, tagged
event: errorwith a JSON-RPC error response indata:. Envelope unwrapping
only looks forresult, so such a frame fell through and was handed to the
caller as though it were an event — a caller readingstatusUpdatesaw
nothing and the failure vanished, while the non-streaming path raised for a
byte-identical payload. Both paths now share the same error mapping, so a
-32001frame producesTaskNotFoundErrorwherever it arrives. Events
received before the error frame are still delivered.
Changed (BREAKING)
-
TaskStorecarries the owner;PushConfigStoreis new. Every
TaskStoremethod now takes a&CallContextand returnsStoreError
instead ofString, andlisttakes a&ListParams. Push-notification
configs moved out of the server's own state into a matching
PushConfigStoretrait.This closes two holes that a process-memory
task_id -> ownermap beside the
store could not: the map had to be capped (100 000 entries), which made an
evicted task permanently unreachable to its owner; and it started empty after
a restart, so every task in a consumer-supplied persistent store was
permanently unreachable to its genuine owner —tasks/get/tasks/cancel
and the three push-config methods returned-32001,tasks/listreturned
[]. SplittingPushConfigStoreout is what stops a restart from restoring
tasks whose webhook targets have evaporated. This is the shape upstream
already uses (a2a-python'sServerCallContext+OwnerResolver, and its
separatePushNotificationConfigStore);apcore-a2a-pythonand
apcore-a2a-typescriptre-export those stores directly and were never
affected.The default
InMemoryTaskStorebuckets by owner, so isolation is a property
of the data structure rather than a check each method has to remember.Change Who is affected Migration TaskStoremethods takectx: &CallContextcustom TaskStoreimplementorsadd the parameter; key storage on (owner, task_id)Result<_, String>->Result<_, StoreError>same use StoreError::backend/backend_msglist()->list(&ListParams, &CallContext)same add both parameters new PushConfigStorecallers of A2AServerFactory::createpass Arc::new(InMemoryPushConfigStore::new()), or a persistent store alongside a persistentTaskStoreA2AServerFactory::create(...)->create(registry, CreateOptions)same build CreateOptions::new(..)and chainwith_task_store/with_auth/with_explorerAppStatefields arepub(crate)anyone hand-building AppStateuse build_app/build_app_with_auth/serve/async_serve, orA2AServerFactory::createbuild_app/build_app_with_auth/serve/async_serveare unchanged;
deployments on the default in-memory stores need no migration. -
AppStateis no longer constructible outside this crate, and
A2AServerFactory::createtakes aCreateOptionsstruct instead of ten
positional arguments. Three releases in a row had b...