Skip to content

refactor(tee): consume the shared SNP report layout from agent-manifest 0.10 - #81

Merged
imran-siddique merged 1 commit into
mainfrom
feat/tee-union-snp-adopt
Aug 2, 2026
Merged

refactor(tee): consume the shared SNP report layout from agent-manifest 0.10#81
imran-siddique merged 1 commit into
mainfrom
feat/tee-union-snp-adopt

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

Phase B2 of the TEE consolidation, the sibling of cmcp#466. This removes the last of four mirrors of the SEV-SNP ABI table that the org was carrying — two of them lived inside cmcp alone.

What moves

The offsets cA2A exports (REPORT_SIZE, SIG_OFFSET, REPORT_DATA_OFFSET, MEASUREMENT_OFFSET) are now derived from agent_manifest.SNP_OFFSETS rather than declared locally, and SevSnpReport.parse() delegates the byte reading to parse_snp_report.

What does not move

SevSnpReport stays as cA2A's public surface. It keeps its error contract and the signature_rs helper, and SnpVerificationError is translated to AttestationFailed at the boundary — the same idiom already used for parse_tpmt_signature and verify_tpm_quote. Callers see no change.

The duplication worth removing was the ABI table and the parse, not the convenience API on top of it.

Testing

251 passed, 3 skipped with agent-manifest 0.10.0 resolved from PyPI, not an editable checkout.

🤖 Generated with Claude Code

…st 0.10

Phase B2 of the TEE consolidation, matching cmcp#466. The SEV-SNP ABI table and
parse now come from agent-manifest, so cA2A stops defining its own.

Between them the org carried four mirrors of one ABI table, two of them inside
cmcp alone. This removes the last one. The offsets cA2A re-exports
(REPORT_SIZE, SIG_OFFSET, REPORT_DATA_OFFSET, MEASUREMENT_OFFSET) are now
derived from the shared table rather than declared locally.

SevSnpReport stays as cA2A's public surface and keeps its error contract and
the signature_rs helper; only the byte reading moves. Callers still catch
AttestationFailed, and SnpVerificationError is translated at the boundary, the
same idiom used for parse_tpmt_signature and verify_tpm_quote.

Verified against the published wheel rather than an editable install:
251 passed, 3 skipped with agent-manifest 0.10.0 resolved from PyPI.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit 566e587 into main Aug 2, 2026
12 checks passed
@imran-siddique
imran-siddique deleted the feat/tee-union-snp-adopt branch August 2, 2026 04:39
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