Repository navigation
feat(acts): ACTS corpus, schema and loader - #59
Merged
Merged
Conversation
…pus to enable strict schema validation without modifying upstream snapshots
mykytanetipa
reviewed
Sep 1, 2026
mykytanetipa
approved these changes
Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the ACTS conformance corpus and the code to load it: a schema derived from the spec's CDDL grammar, a compat layer, and a loader that flattens a manifest into an ordered run plan. Nothing executes tests yet - this is the input side.
The corpus is a verbatim mirror.
scenarios/acts/*.acts.yamlis byte-identical totests/acts/ata2aproject/A2A@dbcabfba(head of a2aproject/A2A#1882), and MUST NOT be edited by hand. Refreshing is then a copy rather than a three-waymerge, and defects stay visible to the people who can fix them upstream.That creates a problem: 26 of the 111 tests violate the ACTS CDDL and cannot be validated as written. Losing them is expensive - it takes out all push-notification coverage, all capability-error coverage, and the only gRPC error-status test. So
test_suite/acts/compat.pyrewrites them at load time instead, under four rules:expect-error-code-keyexpect_errorkeys the error name ascode; the CDDL sayserror_typepush-config-operation-nameoperation:uses push-config names absent from the spec'sabstract-operationenumexpect-field-outside-bodyexpect, which admits onlystatusandbodyexpect-error-as-expect-fieldexpect: {error: …}used to assert a failure, which belongs inexpect_errorEvery rule is a rename or a move the document already determines; none invents a value. A defect needing a judgement call is left broken and belongs upstream - a runner that guesses what a malformed conformance test meant is worse than one that reports it. Site counts are pinned, so when upstream fixes a defect the count drops, a test fails, and the rule gets deleted.
compat=Falseon any loader entry point shows the corpus exactly as shipped.Keeping the rules out of
schema.pyis the point of the split: the schema stays a statement of what the CDDL permits, so it can still tell a valid ACTS document from an invalid one.Notes
{status: {state: FOO}}(nested paths, exact match) syntactically identical to{type: array, count_gte: 1}(two operators). Only an evaluator holding a real response can tell them apart, soexpect.body,params,wire_payload,expect_parsedand friends stay as plain data.TransportBindingis separate fromtest_suite.transports.Transporton purpose - ACTS saysrestwhere the traversal engine sayshttp_json, and sharing one enum would silently mistranslate whichever suite lost.REST-PD-001asserts an RFC 7807 body where A2A §11.6 mandatesgoogle.rpc.Status;CLIENT-PARSE-006usesfile.bytesforfile.raw; a gRPC-only test asserts an HTTP status; and 23 tests taggedrunner-specialdescribe their real check only in prose, becauseexpect-blockhas noheaderskey.scenarios/acts/PROVENANCE.mdhas the register.