Skip to content

Releases

Release 0.8.6

Choose a tag to compare

@tercel tercel released this 24 Nov 07:55

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

Choose a tag to compare

@tercel tercel released this 19 Nov 08:17

Changed

  • Upgrade jsonwebtoken to 10 with the rust_crypto backend (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

Choose a tag to compare

@tercel tercel released this 26 Oct 10:03

Release version 0.8.4

Release 0.8.3

Choose a tag to compare

@tercel tercel released this 14 Oct 08:15

Release version 0.8.3

Release 0.8.2

Choose a tag to compare

@tercel tercel released this 10 Oct 06:21

Changed

  • Raise the dependency floors to apcore 0.32.0 and apcore-toolkit 0.14.0.
    Python's openapi extra 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.errors entries (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-valued tags.
  • 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

Choose a tag to compare

@tercel tercel released this 29 Sep 01:27

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
    hyphenated operationId and path.
    The toolkit splits camelCase into snake_case words where
    this binding's projection only lowercased: listPets → list_pets (was listpets); under
    prefix: petstore, petstore.list_pets (was petstore.listpets); and camelCase path
    parameters likewise (GET /pets/{petId} → pets.pet_id.get, was pets.petid.get). A
    prefix is 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 / exclude patterns keyed on the old IDs must be updated — the scanner's filters
    match the emitted, normalised ID (^read_audit_log$, not readAuditLog). 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-toolkit floor raised to 0.13.0 (was >=0.12.0), keeping
    default-features = false and the openapi → apcore-toolkit/http-proxy wiring.
    Cargo.lock is not tracked; a local checkout needs cargo update -p apcore-toolkit.
  • FR-OAS-002 is now a skip policy, applied after scan. openapi_backend no 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 IDs scan returns instead of inside
    transform_module. A hook returning MyThing is normalised by the toolkit to my_thing and
    registers (the old in-hook projection made it mything; 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's transform_module is now handed to the scanner as it is, so it
    still runs first — and the Arc<Mutex<Vec<_>>> side channels the wrapping hook needed are
    gone.
  • The FR-OAS-003 description repair runs on the modules scan returns, still after the
    caller's transform_module hook, 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_pets twice, never
    list_pets_2).

Deprecated

  • project_module_id (#[deprecated]), at both apcore_a2a::openapi_backend and 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 / exclude was still reported as description-synthesized.
    The repair ran inside the scanner's transform_module hook, 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 after scan makes it true.

Tests

  • The conformance driver reads openapi_backend.json contract 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 named hooks (an unknown
    hook name panics); expected_no_error_logs; and expected_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's Pet-Store.ListPets
    registers as pet_store.list_pets with its cleared description repaired; illegal_segment
    reads the emitted ID as it is.

Release 0.8.0

Choose a tag to compare

@tercel tercel released this 24 Sep 06:32

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_context no longer synthesizes an Identity for an anonymous
    caller
    (src/server/executor.rs). This method exists to reproduce, out of pipeline, exactly
    what apcore's BuiltinContextCreation hands to BuiltinACLCheck, 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 an Identity{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 else BuiltinContextCreation does. apcore 0.31.0 fixes
    apcore-rust to match its siblings (PROTOCOL_SPEC decision D-103: a null identity stays null,
    no synthetic @external principal; caller_id alone still defaults to the ACL's @external
    sentinel). Left unmirrored, this method would have kept manufacturing an Identity the real
    pipeline no longer does, silently reopening the exact discovery/enforcement disagreement this
    method was written to prevent: a identity_types/roles conditional ACL rule would evaluate
    against a fabricated principal on the card path and against None on the call path. caller_id
    defaulting is unaffected — only the identity synthesis was removed.

Changed — dependency floor

  • Required apcore floor raised to 0.31.0 (was >=0.30) and required apcore-toolkit
    floor raised to 0.12.0
    (was >=0.11.1). apcore 0.31.0 is two joined audit cycles
    (PROTOCOL_SPEC v1.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 a pattern parameter through BindingLoader.load (not used by this crate), and
    fixes a $ref sibling-key credential-disclosure defect in its own schema resolver. Every
    apcore/apcore-toolkit symbol this crate imports was grepped against both changelogs'
    breaking-change sections: the one hit is the acl_context fix above. src/adapters/schema.rs
    delegates $ref resolution entirely to apcore_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.enabled registration, global_deadline construction (already a
    dedicated Context field, already epoch seconds, already built fresh per request rather than
    deserialized), and governance_state()/check_access usage were all checked against their
    respective decisions and need no change.

Release 0.7.0

Choose a tag to compare

@tercel tercel released this 07 Sep 08:09

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 new openapi cargo feature —
    openapi_backend(), the async openapi_backend_from_spec() wrapper (apcore-toolkit-rust's
    load_spec is async, so the fetch cannot hide inside a document argument),
    project_module_id, is_legal_segment, resolve_spec_location, synthesize_description,
    build_openapi_backend_from_config and OpenAPIBackendOptions. 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_modules takes an owned Arc<Registry> while
    Executor::registry() yields only a &Registry, so returning None would silently cost
    system.* registration on an OpenAPI-backed server — which is the whole reason the feature
    spec makes this source produce a Registry rather than an Executor. 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's Registry accepts 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 (2fa cannot begin with a digit) drops the module and says so at
    WARNING, naming both the derived ID and the segment — the scanner's transform_module hook
    drops a None return silently, so that report cannot be delegated. FR-OAS-003: an
    operation with neither summary nor description yields "", and AgentCardBuilder skips
    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_module hook 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 own deduplicate_ids, because lowercasing
    can create a collision the document did not have (listPets + listpets).

  • FR-OAS-005 unapproved-write warning. The scanner never infers requires_approval for
    any HTTP method, and the 0.6.0 public-card filter subtracts only ACL-denied and
    approval-gated skills — so a scanned POST /charges is 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 own GovernanceState reports the absence of a gate,
    never the presence of protection), only by having nothing to warn about, by a module
    declaring requires_approval itself, or by an explicit acknowledge_unapproved_writes. It
    is escalated when builtin_approval_gate_wired is false.

  • CLI: --from-openapi, --openapi-base-url, --openapi-prefix, --openapi-include,
    --openapi-exclude, --openapi-header (repeatable KEY:VALUE, spec fetch only) and
    --openapi-no-deprecated. Each is an overlay on the apcore-a2a.openapi Config 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.openapi default 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, so resolve_spec_location owns the three rules instead.

  • cli::merge_openapi_settings, which reads that section and overlays the --openapi-*
    flags on it per key, flag wins. It returns None when neither route names a spec —
    the ordinary "no OpenAPI configured" outcome, not an error — and the CLI's backend-source
    check consults it, so apcore-a2a with no flag at all now serves a spec declared in
    the config file.

  • New openapi cargo feature, gating apcore-toolkit/http-proxy (the spec fetch and the
    HTTP proxy writer), matching the Python package's openapi extra. apcore-toolkit is now
    depended on with default-features = false so the toolkit's default http-proxy feature
    is reached through that gate rather than pulled in unconditionally.

  • 9 conformance tests (tests/openapi_backend_conformance.rs) against the shared corpus
    in apcore-a2a/conformance/fixtures/openapi_backend.json, plus 17 unit tests. The driver
    captures tracing output 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 — timeout being the spec-fetch timeout,
    headers reaching the fetch request, and base_url supplying 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 renaming test_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 exited 2 for a usage fault and 1 for a
    configuration fault — correct; TypeScript collapsed everything onto 1; and Rust exited 2
    for --bogus (clap caught it) but 1 for 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: 2 the command line is wrong (no backend source, an
    unknown flag, a flag missing its value, a malformed --openapi-header) and 1 the
    environment it named is wrong
    (missing directory, zero modules, unresolvable spec, missing
    auth key). The distinction is actionable — a supervisor may retry 1 and must never retry
    2 — and 2 is 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, which main downcasts to choose the code. main now
    returns ExitCode rather than Result, because Rust's runtime exits 1 for any Err and
    would have collapsed the two tiers again.

Changed

  • APCoreA2AError gains a Config(String) variant for misconfiguration detected before
    the server can start (a missing prefix in 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;
    EmptyRegistry and Server are unchanged.

  • --extensions-dir is now optional and has no ./extensions default. One of it or
    --from-openapi is required, and supplying neither is an error naming both. Previously a
    bare apcore-a2a served ./extensions.

Fixed

  • --port was inert. cli::run built its APCoreA2AConfig with ..Default::default()
    and never copied cli.port, so the server bound 0.0.0.0:8000 whatever the operator typed,
    with nothing logged. The published --url now follows --port too (defaulting to
    http://localhost:<port>), so the Agent Card cannot advertise a socket the server does not
    bind; an explicit --url still wins.

  • The apcore-a2a.openapi Config Bus section reached nothing.
    build_openapi_backend_from_config had no caller anywhere in src/ — 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::run built its options from the flags alone, so timeout,
    include, exclude and acknowledge_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
    through build_openapi_backend_from_config, which also means a relative spec resolves
    against Config::project_root on the route most deployments use (FR-OAS-004 AC 5).

    The merge is per key, not per source: a...

Read more

Release 0.6.0

Choose a tag to compare

@tercel tercel released this 01 Sep 08:43

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_DENIED moves from -32001 "Task not found" to
    -32040 "Access denied"; APPROVAL_DENIED and APPROVAL_TIMEOUT leave the
    -32603 catch-all for -32041 "Approval denied" and -32042 "Approval timed out". All three now reach TASK_STATE_REJECTED instead of
    TASK_STATE_FAILED, which matters most on message/send, where the response
    is a JSON-RPC result and 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.

    -32001 now means only "unknown task id, or a task owned by another
    principal". APPROVAL_PENDING is untouched: still a resumable
    TASK_STATE_INPUT_REQUIRED carrying its message verbatim, which is how a
    caller learns the approval id it resumes with.

    Breaking for callers that matched -32001 or 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 annotated requires_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), including requires_approval skills, resolved against
    that caller's own identity.

  • capabilities.extendedAgentCard is no longer derived from auth != 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 an approval: required
    field orthogonal to effect, 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 boolean ACL.check fail 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_access and filters on the
    authorization axis alone. The approval axis decides only which surface: it
    joins the module's requires_approval annotation 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_card called
    acl.check(...). ACL::check_access returns an AccessDecision, and the filter
    now reads decision.is_allowed() for visibility and decision.approval_required
    only to decide which surface — the hide_approval_gated argument, true for the
    public card and false for the extended one. The projection argument is None:
    a card is discovery and there is no call site.

    apcore::acl::ACLRule also gained a required approval field, 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 the requires_approval annotation, and of how sys_modules is
    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 three system.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 capturing tracing output with a thread-local
    subscriber::set_default rather than a global subscriber, so the check cannot
    race the other tests in the integration binary.
    Server construction reads apcore's Executor::governance_state and warns when
    unprotected_control_surface is true. It never refuses to start and never
    alters a card. Withholding system.* from the public card removes the surface
    from discovery, not from dispatch: apcore's approval gate warns once and
    continues with no ApprovalHandler, 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, idempotent and requires_approval are emitted as
    namespaced entries in the standard tags field — 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. Only true flags are emitted.

    A2A 1.0 AgentSkill has no extensions and no metadata member, so tags
    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, since retryable is 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 (default false, 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/authenticatedExtendedCard and the GetExtendedAgentCard
    JSON-RPC method.
    This crate advertised capabilities.extendedAgentCard and
    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_modules registered 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() to register_sys_modules, which reads
    sys_modules.enabled and 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, the Result is 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_serve no longer derives its bind address from config.url (#2).
    APCoreA2AConfig gains host and port; url is now the Agent Card
    endpoint only, defaulting to http://{host}:{port} exactly as the Python and
    TypeScript bindings have always done. The old code string-split url on
    :// and fell back to 0.0.0.0:8000 when the split failed, so a scheme-less
    loopback value like 127.0.0.1:18999 silently 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: APCoreA2AConfig gains two fields, so struct-literal
    construction must be updated (use APCoreA2AConfig::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

Choose a tag to compare

@tercel tercel released this 19 Aug 02:35

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_status now routes through ErrorMapper, 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 plus ai_guidance when 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_guidance is gated on exactly those three classes, not on
    err.user_fixable. Six apcore codes carry user_fixable = Some(true) while
    mapping to the fixed "Internal server error" (VERSION_CONSTRAINT_INVALID,
    the three BINDING_* codes, DEPENDENCY_NOT_FOUND,
    DEPENDENCY_VERSION_MISMATCH), and user_fixable is 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_message does not strip (module ids, versions, env-var names,
    hostnames). A unit test now locks the gate to ErrorMapper's own branching
    across every apcore error code.

    SCHEMA_VALIDATION_ERROR is 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 params with "Output validation failed" and guidance
    pointing at a details.errors field 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/cancel is guarded. Unknown ids return -32001 instead of
    fabricating a CANCELED task, terminal tasks return -32002 instead 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).

  • TextPart input 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 the application/json input mode on the Agent Card
    usable without a DataPart.

  • JSON-RPC 2.0 envelope validation. Malformed JSON returns -32700 in a
    JSON-RPC response instead of a text/plain HTTP 400; a "jsonrpc" other
    than "2.0", a missing jsonrpc/method, and a batch array all return
    -32600 (previously accepted, or reported as -32601).

    A missing id is 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": null rather 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
    lastChunk marker and the oneof wrapper keys are unchanged; kind and
    final remain 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 monotonic id: 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
    until tasks/resubscribe / Last-Event-ID replay 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
    unreadable message now reports what actually failed to parse instead of
    claiming the parameter was missing.

  • VERSION tracks the crate version (CARGO_PKG_VERSION) rather than a
    hand-maintained literal that had drifted to 0.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 three tasks/pushNotificationConfig/*.

    Three of those previously answered as though nothing was wrong:
    tasks/pushNotificationConfig/delete returned result: null while the
    config stayed live and kept delivering — a caller revoking a leaked webhook
    was told it had worked; tasks/list returned [], which reads as "you have
    no tasks" rather than "the backend is down"; and
    tasks/pushNotificationConfig/get returned -32001 not found for an outage
    while set returned -32603 for the same one, giving callers two
    contradictory signals about a single failure.

    tasks/cancel is 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, leaving tasks/get to contradict it.

  • Task-store write failures are logged instead of discarded. Each
    persistence call was a bare let _ =, so a store outage produced tasks that
    message/send reported as COMPLETED and tasks/get then 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: error with a JSON-RPC error response in data:. Envelope unwrapping
    only looks for result, so such a frame fell through and was handed to the
    caller as though it were an event — a caller reading statusUpdate saw
    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
    -32001 frame produces TaskNotFoundError wherever it arrives. Events
    received before the error frame are still delivered.

Changed (BREAKING)

  • TaskStore carries the owner; PushConfigStore is new. Every
    TaskStore method now takes a &CallContext and returns StoreError
    instead of String, and list takes a &ListParams. Push-notification
    configs moved out of the server's own state into a matching
    PushConfigStore trait.

    This closes two holes that a process-memory task_id -> owner map 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/list returned
    []. Splitting PushConfigStore out is what stops a restart from restoring
    tasks whose webhook targets have evaporated. This is the shape upstream
    already uses (a2a-python's ServerCallContext + OwnerResolver, and its
    separate PushNotificationConfigStore); apcore-a2a-python and
    apcore-a2a-typescript re-export those stores directly and were never
    affected.

    The default InMemoryTaskStore buckets 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
    TaskStore methods take ctx: &CallContext custom TaskStore implementors add the parameter; key storage on (owner, task_id)
    Result<_, String> -> Result<_, StoreError> same use StoreError::backend / backend_msg
    list() -> list(&ListParams, &CallContext) same add both parameters
    new PushConfigStore callers of A2AServerFactory::create pass Arc::new(InMemoryPushConfigStore::new()), or a persistent store alongside a persistent TaskStore
    A2AServerFactory::create(...) -> create(registry, CreateOptions) same build CreateOptions::new(..) and chain with_task_store / with_auth / with_explorer
    AppState fields are pub(crate) anyone hand-building AppState use build_app / build_app_with_auth / serve / async_serve, or A2AServerFactory::create

    build_app / build_app_with_auth / serve / async_serve are unchanged;
    deployments on the default in-memory stores need no migration.

  • AppState is no longer constructible outside this crate, and
    A2AServerFactory::create takes a CreateOptions struct instead of ten
    positional arguments. Three releases in a row had b...

Read more