Repository navigation
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.