Skip to content

feat(ci): add the 1.0 TCK row and the native reader gate to run-tck - #1515

Open
kuangmi-bit wants to merge 2 commits into
a2aproject:mainfrom
kuangmi-bit:native-consumer-gate
Open

kuangmi-bit wants to merge 2 commits into
a2aproject:mainfrom
kuangmi-bit:native-consumer-gate

Conversation

@kuangmi-bit

@kuangmi-bit kuangmi-bit commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Consumer half of the split agreed in #666: the reader and every refusal condition stay with probityai; the consumer job in run-tck.yaml is here.

What this adds

Piece What it does
job tck-1-0-jsonrpc a2a-tck at 104a7b4 (version 1.0.0, requires-python = ">=3.15"), run through uv --python 3.15, jsonrpc transport, --level must
job native-consumer produces the six-attempt native JSON-RPC packet with the pinned A2A profile (SDK 1.2.1), selects inputs outside the packet, then invokes the reader
.github/scripts/a2a-native-selection.py builds the probity-native-consumer-selection-v1 manifest

Two things forced the shape:

  • Separate job, not a matrix entry. 104a7b4 needs Python 3.15 while the existing matrix runs 3.10/3.13, and the 1.0 runner takes --sut-host / --transport / --level instead of --sut-url / --category / --transports. Wiring the 1.0 row into tck-test would have silently run the 0.3 runner against the wrong flags.
  • The selection cannot be hand-written. The reader rejects a manifest whose reader_sources / installed_sources differ from its own checkout, and whose native_pins do not match the packet's retained sources. The script asks the reader for the source maps (--describe-sources a2a) and digests the seven retained source files, so the manifest is derived, not typed.

Refusal is not overridable here: the reader step has no continue-on-error, and the packet, the selection and the full receipt directory are uploaded with if: always() so a failed gate still leaves its evidence.

What I actually ran (locally, offline)

The gate half is executed end-to-end: pinned observer at eb1376ab, Python 3.12, producer profile interop/a2a-native-2026-10-02.

Run Result
produce packet 23 retained artifacts, SDK 1.2.1 @ 041c17bb, six planned attempts
build selection sha256 685d3f42…5a50, 23 artifacts
reader, expected-pass status: valid, exit 0 — planned 6 / started 5 / scored 2 / task_passed 1 / task_failed 1 / unknown_start 1
reader, wrong selection-sha256 status: refused, exit 1
reader, one artifact tampered in the packet status: refused, exit 1

So the gate does block, and it blocks for the two reasons that matter (pin mismatch, byte mismatch).

What I did not run: the tck-1-0-jsonrpc job. There is no Python 3.15 interpreter on this machine, so I verified that 104a7b4 declares requires-python = ">=3.15", that the runner's flags are as used above, and that 3.15 is available to setup-python/uv — but I have not seen the row execute. It is set continue-on-error: true for that reason, and because whether the SUT declared in this repository speaks 1.0 is a separate question I cannot answer from here.

Two things I need from you rather than deciding myself

  1. Which SDK should produce the packet? The pinned profile installs the released a2a-sdk==1.2.1, so the packet currently attests the released SDK, not the tree under test. I can install this repository into the profile instead if the gate is meant to reflect the PR — but that changes what the packet is evidence of, so it is your call.
  2. Selection authority. The manifest is derived from the producer's own retained declarations, which docs/NATIVE-CONSUMER-CI.md classes as a reproduction-grade selection. Getting to an accepted pin set needs your channel; the script is written so the pins can be injected by a reviewer instead.

⚠️ Found while wiring this: run-tck.yaml is disabled in this repository

GET /actions/workflows reports state: "disabled_manually" for .github/workflows/run-tck.yaml (workflow id 225618664). Its last run is 2026-04-20, and the last five runs there are all failure — including the push to main. No Run TCK run was scheduled for this PR, which is why the two new jobs have not executed in CI; the gate evidence above is from my local run only.

So as it stands these jobs are inert. Three ways to settle it, and I have not picked one for you:

  1. A maintainer re-enables the workflow (gh workflow enable run-tck.yaml) and the consumer job starts running beside the TCK row — closest to what we agreed in [Task]: 1.0: Run TCK tests against 1.0 implementation #666.
  2. The consumer job moves to a live workflow instead, if run-tck.yaml is intentionally retired (the 0.3.0.beta3 pin in it suggests it predates the 1.0 work).
  3. It stays in run-tck.yaml for the record and gates nothing until the workflow is restored — I would close the PR rather than leave a gate that cannot fire.

Say which and I will follow it; option 1 needs no code change from me.

If the split was meant differently — e.g. the 1.0 row should gate as well — say which and I will adjust the blocking flags.

Consumer half of the split agreed in a2aproject#666: the reader and every refusal condition
belong to probityai, the consumer job belongs here.

- tck-1-0-jsonrpc: a2a-tck at 104a7b4 (version 1.0.0, requires-python >=3.15) run
  through uv on Python 3.15 with the 1.0 runner flags (--sut-host/--transport/
  --level). Kept outside the 3.10/3.13 matrix; non-blocking until the SUT declared
  in this repository supports 1.0.
- native-consumer: produces the six-attempt native JSON-RPC packet with the pinned
  A2A profile (SDK 1.2.1), builds the consumer selection outside the packet, and
  invokes probityai/probity@eb1376ab with no continue-on-error, so
  a refusal fails the job.
- .github/scripts/a2a-native-selection.py generates the selection manifest: the
  reader rejects one that does not match its own checkout and the packet's retained
  sources, so it cannot be hand-written.
Q000/I001/D/S603 from the pinned ruff config; re-ran the gate afterwards
(reader exit 0, status valid) to confirm the manifest still verifies.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant