Skip to content

feat: add runtime adapter contract#11

Merged
intel352 merged 1 commit into
mainfrom
feat/runtime-adapter-contract
May 24, 2026
Merged

feat: add runtime adapter contract#11
intel352 merged 1 commit into
mainfrom
feat/runtime-adapter-contract

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Summary

  • add host-independent runtime adapter declaration contracts to compute-core
  • add adapter kind and workspace policy enums for future runtime plugins
  • validate runtime descriptor identity, adapter capability, service workload alignment, residue policy, and conformance declarations

TDD

  • RED: GOWORK=off go test ./protocol -run 'RuntimeAdapterContract' -count=1 failed on undefined adapter contract symbols
  • RED: GOWORK=off go test ./protocol -run 'RuntimeAdapterContractRequiresServiceWorkloadForServiceAdapters' -count=1 failed because service-session adapters could omit service workload kinds
  • GREEN: focused runtime adapter contract tests pass

Verification

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

Adversarial review

  • Kept this declarative: no task, lease, workspace path, mount, network callback, or verifier state enters compute-core
  • Added explicit workspace policy for workspace-less adapters such as WASM-style runtimes
  • Fixed the service adapter/workload consistency gap before PR

@intel352 intel352 merged commit f65771b into main May 24, 2026
4 checks passed
@intel352 intel352 deleted the feat/runtime-adapter-contract branch May 24, 2026 20:53
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