FUTURE-TS Sealed Runner
Status
MVP implemented in future_ts/sealed_runner.py; production hosted isolation is
still future work. The local runner signs manifests, enforces CPU/wall-clock
budgets, applies best-effort memory limits, and attempts Linux network
namespace isolation. On non-Linux hosts the CLI prints a prominent warning:
environment scrubbing is not structural isolation and raw sockets are not
blocked.
Why it matters
Two capabilities in the benchmark only become credible once the runner is enforced:
- Efficiency (
E). The capability vector's E dimension comes from per-predictionruntime_ms/memory_mbreports against each task'sresource_budget. Without a sealed runner, those numbers reflect whatever hardware the submitter used. They are not comparable across models and should not feed a capability vector that users read as cross-model. - Live tier integrity (
blind_archive,live). The validation layer already requiresplatform_received_at <= earliest prediction issue_time, but that only checks timestamps the submitter declared. A sealed runner stamps those timestamps from the platform clock and the issue-time boundary is enforced by the platform, not self-reported.
Contract
A sealed runner MUST satisfy all of:
Fixed hardware class. Each task's
resource_budgetdeclares ahardware_classtier. The runner provisions exactly that class — same CPU model / GPU class / RAM / swap — for every submission evaluated against the task. Submissions that exceed the budget fail coverage, not silently run slower.No network egress. The container has no outbound network. Tasks that require retrieval must provide a pinned retrieval snapshot mounted read-only; submissions that declare
uses_external_retrieval=truewithout consuming a provided snapshot are rejected. The local subprocess runner only enforces this structurally on Linux withCLONE_NEWNET; macOS/Windows runs should use Docker/Kubernetes--network=nonebefore treating a result as production-sealed.Timestamps signed by the platform.
platform_issued_atandplatform_received_atare written by the runner, not the submission.platform_received_atis the wall-clock time the runner accepted the submission artifact.platform_issued_atis the wall-clock time the runner handed the task to the submission's forward function.Deterministic seeding. The runner injects a fixed random seed derived from
source_snapshot_id. Non-deterministic submissions (e.g. models that sample without respecting the seed) are rerun N times and the mean is reported with its own standard deviation.Tamper-evident prediction log. Each prediction is appended to a log the runner signs before writing. The signed log is what
prediction_hashis computed against. Submissions cannot retroactively edit predictions.Resource-budget enforcement. Per-prediction
runtime_msis the platform-measured wall-clock for the forward call, not a submitter report. Exceedingtask.resource_budget.latency_mson more than X% of predictions fails the task (not just penalised via efficiency_score), where X is task-declared.Archive-by-default. The runner uploads the predictions, run_manifest, and a bit-exact container digest to an artifact bucket. Any score can then be recomputed against the archived predictions (see
future_ts recompute-metric) without re-running the model.
Submission surface changes
No new submission fields are required. The existing execution_mode
enum already separates sealed from self_attested. What changes is the
validator's interpretation:
self_attested: accepted forpublic_devtier. Submitter-declared timestamps. Submitter-reported runtime_ms/memory_mb may be used for E but must carry aself_attestedprovenance flag on any leaderboard surface.sealed: required forblind_archiveandlivetiers. Platform-signed timestamps and platform-measured resource usage. Leaderboard surfaces for E comparing across models SHOULD filter tosealedrows only.
The validation layer enforces sealed for the non-dev tiers today via
requires_sealed in validation.validate_submission. That check gates the
file format. What it does NOT enforce is that the numbers inside a
sealed submission actually came from a sealed runner. Implementing that
is the work this document frames.
Operational levels
The repository uses two file-format values (self_attested, sealed) but
reviewers should distinguish four operational levels:
| Level | Meaning |
|---|---|
self_attested |
Submitter ran the model and supplied timestamps/runtime. Useful for public development only. |
local_sealed_mvp |
The current subprocess runner: hashes, platform timestamps, CPU/wall-clock limits, best-effort memory, Linux network namespace when available. |
hosted_sealed |
Evaluator-run container or job with fixed hardware, no egress, immutable artifacts, and platform-measured telemetry. |
hosted_attested_live |
Hosted sealed execution plus pre-registered live waves and labels that did not exist at submission time. |
Only the last two levels should be used for public claims about comparable E scores or externally attested live integrity.
Implementation sketch
Stage 1 (current MVP): a local subprocess runner that takes a Python entry
point, mounts task windows in a scratch workspace, writes predictions to a
signed output file, and produces the run_manifest from platform state.
Linux attempts CLONE_NEWNET; other platforms warn that the network seal is
not structurally enforced.
Stage 1b: optional Docker local backend. This should run the same contract in
a --network=none container and use container or cgroup memory limits instead
of Python resource limits. This is the recommended local path for macOS and
Windows users who need enforceable isolation.
Stage 2: Kubernetes job per submission, with resource quotas enforced by
the cluster (not just the container). Required for production
blind_archive / live runs because local Docker cannot guarantee GPU
isolation across tenants.
Memory limits in the MVP
The MVP uses resource.setrlimit for CPU and memory. It prefers RLIMIT_DATA
for memory and falls back to RLIMIT_AS only when RLIMIT_DATA is not
available. RLIMIT_AS caps virtual address space and can fail Python ML
runtimes during interpreter startup or shared-library loading even when RSS is
small. Production runs should rely on cgroups/Docker/Kubernetes memory limits
instead.
Stage 3: a public submission endpoint. Accepts a container image URL +
artifact_uri, provisions a runner, runs the evaluation, produces a
signed BenchmarkReport, uploads predictions to the archive bucket,
returns the report to the submitter. Until this stage lands, submissions
are produced by the evaluator (TSFM.ai) running models on behalf of authors
— which is how the reports/tsfm_ai_empirical_v2_multi_budget run was produced.
Open questions
- Should submitters be permitted to provide fine-tuning datasets inside
the sealed container, or must PEFT/FT adaptation happen at submission
time using a provided train split? (Currently ambiguous; the
adaptation_budgetscontract says the budget is part of the submission but does not pin where data came from.) - What minimum hardware class does
public_devrequire to produce comparable E numbers? Current submissions run on whatever the author has. The sealed-runner work should pin this explicitly. - How does the runner expose task-level actuals to the submission without leaking labels to models that might memorize them? One option: the runner hands the submission only historical context and an issue_time, never the future label; labels are matched post-hoc by the scorer.