Skip to content

feat: add runtime execution contracts#10

Merged
intel352 merged 1 commit into
mainfrom
feat/runtime-execution-contracts
May 24, 2026
Merged

feat: add runtime execution contracts#10
intel352 merged 1 commit into
mainfrom
feat/runtime-execution-contracts

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Summary

  • add host-independent runtime execution request/result contracts to compute-core
  • add service runtime result, SLO evidence, and service status evidence contracts
  • validate result timing, preview size, resource limits, and canonical evidence hashes

TDD

  • RED: GOWORK=off go test ./protocol -run 'RuntimeExecutionRequest|RuntimeExecutionResult|RuntimeServiceResult' -count=1 failed on undefined runtime execution contracts
  • RED: GOWORK=off go test ./protocol -run 'RuntimeServiceResultValidatesStatusEvidenceHashes' -count=1 failed because invalid status evidence hashes were accepted
  • GREEN: focused protocol runtime execution/service tests pass

Verification

  • GOWORK=off go vet ./...
  • GOWORK=off go test ./... -count=1
  • git diff --check

Adversarial review

  • Kept leases, tasks, workspace paths, mounts, network callbacks, and supervisor concerns out of compute-core
  • Checked secret-flow risk: Env is already-resolved runtime environment; secret resolution and authorization stay host-owned
  • Fixed validation gap for service status evidence hashes before PR

@intel352 intel352 merged commit b9905f6 into main May 24, 2026
4 checks passed
@intel352 intel352 deleted the feat/runtime-execution-contracts branch May 24, 2026 18:18
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