Skip to content

feat: share hardware placement validation#22

Merged
intel352 merged 1 commit into
mainfrom
feat/hardware-placement-core
May 26, 2026
Merged

feat: share hardware placement validation#22
intel352 merged 1 commit into
mainfrom
feat/hardware-placement-core

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Summary

  • add public hardware placement capability structs to compute-core
  • add helpers for required hardware class derivation and verified attestation placement satisfaction
  • cover confidential CPU/GPU and custom hardware class placement behavior

Verification

  • RED: GOWORK=off go test ./protocol -run 'TestHardwareCapabilitiesSatisfyPlacementRequirements|TestRequiredHardwareClass' -count=1 failed with undefined helper/types before implementation
  • GREEN: GOWORK=off go test ./protocol -run 'TestHardwareCapabilitiesSatisfyPlacementRequirements|TestRequiredHardwareClass' -count=1
  • Regression proof: with protocol/types.go implementation reverted, the focused tests failed with undefined helper/types; restored implementation passed
  • GOWORK=off go test ./... -count=1
  • git diff --check

Adversarial review

  • Fixed date-sensitive positive attestation tests by injecting explicit Now.
  • Kept trust-root, signature verification, and attestation bundle ingestion out of compute-core for this slice.
  • Helper accepts placement/capability data only, so workflow-compute can delete local placement fallback logic in the consumer PR.

@intel352 intel352 merged commit fea39a2 into main May 26, 2026
4 checks passed
@intel352 intel352 deleted the feat/hardware-placement-core branch May 26, 2026 05:23
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