Repository navigation
Description
Problem
A client can discover TES capabilities and proTES can rank backends by distance, but neither gives a caller a binding answer to: which site may receive this data, what transfer is planned, and which resource/cost assumptions can be relied on at submission time? Native platforms already combine region controls and explicit provisioning policies. The useful portable layer is a reviewable decision envelope, not another cloud scheduler.
Proposed scope
Build an experimental placement/admission contract with one cooperating TES backend and an optional proTES/FOCA adapter. The SDK only consumes the typed contract.
A plan binds explicit input identities, executable, selected backend, caller, policy version and expiry. It reports allowed data movements, expected transferred bytes, resource constraints, and compute/storage/transfer estimates with source timestamps and uncertainty. Missing size, location or runtime remains unknown. DRS access metadata is an input, not proof of authorization or trustworthy physical location. Do not derive a hard residency guarantee from IP geolocation.
Separate advisory estimates from server-enforced constraints. Hard constraints are advertised individually: allowed execution/storage domains, prohibited transfers, supported resource profile and any real quota/reservation. A cost estimate must never be described as a guaranteed invoice ceiling.
Submission validates the plan and task fingerprint at the cooperating service. Changed or expired plans require re-evaluation. Backend failure cannot silently route work to a forbidden site. Existing accounting can later supply actual measurements without creating a second usage ledger.
Acceptance criteria
- A CPU-only demonstrator uses two real execution targets, public fixed input data and explicitly synthetic rate metadata. One case chooses more expensive compute because its total transfer estimate is lower.
- A no-export rule excludes a cheaper remote target. Controlled network/storage enforcement demonstrates rejection of a forbidden transfer, not merely omission from a client-side list.
- Unknown location or size produces an explicit uncertainty or strict-policy rejection, never zero cost or assumed eligibility.
- Reusing a plan for another principal/task, or after policy change/expiry, is rejected or replanned before execution.
- Failure and fallback preserve policy; the decision trace explains eligibility, estimates and rejection reasons without credentials.
- The report distinguishes admission-only checks from constraints enforced throughout execution. Predicted and observed quantities remain separate.
Relationship to existing work
Consume SDK #130 preflight; reuse foca-plugins #8 routing and #21 lookup cache. Extend proTES #459 accounting when observations become available, preserve #285 task-count quotas, and coordinate with undecided #391 recorder/thin-gateway work. Do not implement a new broker, pricing crawler, carbon optimizer or GPU fleet.
Primary prior art: https://docs.seqera.io/platform-cloud/compute-envs/intelligent-compute/ ; https://documentation.dnanexus.com/developer/api/regions ; https://ga4gh.github.io/data-repository-service-schemas/docs/ .
The first enforcement scope is approved backend selection and managed input/output staging. A no-export claim for arbitrary application traffic requires actual operator network/storage controls. Report that boundary explicitly; the SDK alone cannot enforce it.
Linked work
- feat(sdk): expose service capabilities and advisory submission preflight ga4gh/ga4gh-sdk#130
- feat(tes/routing/distance): add distance routing foca-plugins#8
- feat(distance): use plugin store for cache, budget foca-plugins#21
- feat: limit tasks per user (opt-in) protes#285
- feat: account resource usage per user protes#459
- feat!: make proTES a thin gateway (proposal) protes#391
Activity