Skip to content

Expose residue policy in compute steps#12

Merged
intel352 merged 3 commits into
mainfrom
feat/residue-policy-plugin-surface
May 24, 2026
Merged

Expose residue policy in compute steps#12
intel352 merged 3 commits into
mainfrom
feat/residue-policy-plugin-surface

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Summary

  • accept task-level residue_policy in step.compute_dispatch and step.compute_map
  • pass residue policy through to submitted protocol.Task while leaving provider/product authority resolution in workflow-compute
  • bump workflow-compute protocol dependency and add provider-catalog residue tests
  • align local wfctl validation/build metadata for this plugin repo

Verification

  • GOWORK=off go test ./internal -run 'Residue|ProviderCatalog' -count=1
  • GOWORK=off go test ./...
  • ./scripts/check-workflow-compute-alignment.sh /Users/jon/workspace/workflow-compute
  • wfctl validate --allow-no-entry-points workflow.yaml
  • GOWORK=off wfctl build --config workflow.yaml --no-push --tag local
  • git diff --check

TDD proof

With fix removed:
GOWORK=off go test ./internal -run 'TestDispatchStepSubmitsResiduePolicy|TestMapStepSubmitsPerTaskResiduePolicies|TestDispatchStepRejectsImplicitWorkerBoundResiduePolicy' -count=1 failed with json: unknown field "residue_policy".

With fix restored:
GOWORK=off go test ./internal -run 'TestDispatchStepSubmitsResiduePolicy|TestMapStepSubmitsPerTaskResiduePolicies|TestDispatchStepRejectsImplicitWorkerBoundResiduePolicy' -count=1 passed.

@intel352 intel352 merged commit 6706779 into main May 24, 2026
5 checks passed
@intel352 intel352 deleted the feat/residue-policy-plugin-surface branch May 24, 2026 07:10
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