Skip to content

Epic: portable compute, workstation runners (#2145) - #2167

Merged
neuromechanist merged 23 commits into
devfrom
feature/portable-compute-epic
Nov 14, 2026
Merged

neuromechanist merged 23 commits into
devfrom
feature/portable-compute-epic

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Epic into dev for issue #2145 (portable compute, workstation runners): registered workstation runners pull pipeline jobs over HTTPS behind the dark switch COMPUTE_RUNNERS_ENABLED, and a job records its executor and accounting class while runner jobs write no ledger entry. This pull request is a draft until every check and the full Tests run are green on its head and the integration review is done; the merge into dev is the owner's.

Merged pull requests of the epic, one line each (22 commits ahead of dev: 20 pull requests and 2 direct plan-pack commits):

Inventory, read on 2026-11-14 at the epic head c31b369 and dev head 2f95da0:

Gates, re-run on the current head merged (uncommitted, aborted afterwards) with the current dev, epic 23edcfa plus origin/dev 2f95da0:

  • bun install --frozen-lockfile, root and backend: no changes (193 and 53 installs checked).
  • bun run typecheck: exit 0 (tsc --noEmit && tsc --noEmit -p backend, no output).
  • bun run lint: Checked 185 files in 282ms. No fixes applied.
  • bun run migrations:d1-check: Catalog matches bun:sqlite (241 objects, 67 tables). OK.
  • bun test backend/test/compute-*.test.ts test/admin-compute-*.test.ts test/adr-index.unit.test.ts backend/test/dataset-id-partition.test.ts: 2161 pass, 2 skip, 0 fail, Ran 2163 tests across 67 files.

Full Tests run on the current head: run 43633328565, head c31b369, attempt 1, conclusion success: every job passed or was skipped, including the required checks lint, unit-pure and process-tier and all shards. The earlier run on head 23edcfa (run 43625110529) failed once in unit-pure shard 1 on backend/test/oidc-keys.test.ts (a chance match of kty in base64 ciphertext, issue #2172, not touched by the epic) and passed on its rerun. Only documentation files changed between 23edcfa and c31b369 (#2175). The gates listed above were run on 23edcfa plus dev 2f95da0.

Definition of done, run end to end on the local control-plane stack: backend/test/compute-local-stack-runner.test.ts (DM-17) drives a runner job through the real routes, and a recorded run on a workstation (DM-15, 2026-11-14) ended finished with provenance and manifest status ok, results verified, and no job directory left on the runner.

Cross-epic notes (Q5: whichever epic is green first lands, and this epic keeps migrations 0140 to 0149):

Owner items before and after the merge:

  • ADR 0118's amendment of 2026-11-04, item 8 ("registration stays blocked"), still binds every environment and every executor, so the owner must apply the amendment before ANY switch is set, staging included; the draft is section 5 of .context/plans/portable-compute/s3a-switch-inventory.md, and a docs-only pull request into this epic carries the draft: review it with this pull request.
  • A dev-to-main release is needed before card S1F.
  • The Tapis go-live stays parked (the owner's decision); nothing in this pull request sets a switch or a credential.

Owner commands: gh pr merge 2167 -R nemarOrg/nemar-cli --merge (a merge commit, never a squash). The dev deploy that applies 0140 to the dev database runs under the auto-bump-dev.yml workflow (deploy-backend.yml shows production runs only): gh run list -R nemarOrg/nemar-cli --workflow auto-bump-dev.yml --limit 3, then gh run view <id>. Dev's last Auto Bump Dev run (43620796185) failed its test gate on a flaky 5 second timeout in test/identifier-scrub.test.ts (issue #2174) and passed on its one rerun; if the gate flakes again after the merge, rerun it with gh run rerun <id> --failed.

Card: S2 (round 1).

* feat: add the runner words and runner_lost

* feat: declare the runner contract once

* test: pin the word grammar of runner names

* test: guard the runner request schemas
* test: tolerate the reserved ADR 0120 gap

* docs: add ADR 0121 and ADR 0122 for runners

* docs: point ADR 0118 to ADR 0121

* docs: fix ADR 0121 and 0122 after review

* docs: point ADR 0118 and 0049 to the new ADRs

* docs: apply last review edits to the ADRs

* docs: soften host wording in ADR 0122
…2149)

* feat: add runner registry migration 0140

* feat: add runner registry service and switch

* feat: add runner routes and refuse their tokens

* feat: end runners in the revocation cascade

* feat: add nemar admin compute runners

* docs: name the runners switch and cascade

* fix: runner jobs are pipeline only; index runner_id

* fix: guard runner owner standing and cancels

* fix: write revoked status in the cascade batch
* Add persistent database and loopback S3 helpers

* Add the local compute control-plane stack

* Check the bound address through lsof in the stack test

* Check the spawned stack's bound addresses

* Test the catalog seed on a restart

* Keep example hosts out of the stack prose

* Guard Host, pin download origin, harden paths and signals

* Keep IP literals out of the stack tests
…, view (DM-06) (#2152)

* feat: runner recipe, executors, runners policy

* feat: create runner jobs with no hold

* feat: select rows by executor and accounting

* feat: dispatch runner jobs from the pipeline

* test: runner jobs, selections and CLI

* fix: Zarr runs need the newest ready copy

* fix: ACCESS, release and copy select by class

* fix: a key belongs to one executor

* feat: show runner jobs and unwritten records

* test: review round 1 for runner jobs
* Check the Zarr copy's source commit on dispatch

* Wire the local stack for the Zarr source check

* Test the index body bound with a chunked answer

* Read the tag as a tag, carry reasons, bound launch bytes

* Drop an unreachable reason from the run line
…2154)

* feat: settle none-accounting runner jobs

* feat: runner queue service and lease sweep

* feat: runner claim, heartbeat and complete routes

* test: runner queue, attention words, wiring

* test: lease compare and usage-once cases

* fix: carry the lease into terminal writes

* fix: bound claims, own sweep budgets, defer slow work

* test: races, give-backs, starvation, capacity

* fix: no stale outputs write, fail-closed lease

* fix: claim faults, replay throttle, declared claims

* test: round 2 races, throttle, give-up, retry
* test: local stack runs a runner job end to end

* test: harden stack runner flow teardown and notes
* docs: add the demo brief (DM-16)

* docs: fix the demo brief after review (DM-16)
* feat: recipe Zarr base from the environment

recipeZarrBase gives the production host unless the Worker is outside production and ZARR_HOSTNAME is a bare lower-case host name. recipeZarrArguments takes the base as an input; recipeJobSpec derives it from the Worker bindings. Tested: runner-jobs, runner-queue and zarr-source-check suites.

* feat: compute fixture eligible outside production

A second, precomputed pipeline predicate widens the real_dataset term to name nm099996 (never an exemplar). The claim, the candidate listing, the dispatch re-check and the dry run pick the text by ENVIRONMENT through isNonProductionEnv; unset or misspelled is production, whose three statement texts are unchanged (pinned against the base commit). Tested: new compute-fixture-eligibility suite and the pipeline, queue and runner suites.

* Use American spelling and a placeholder host in tests
* docs: S3a compute switch inventory

* docs: S3a review round 1 fixes
* docs: unspell the unpublished W1 page URL

* test: keep the stand-in idle timeout above stalls
* feat: add tapisSubmitConfigured predicate

* feat: refuse a Tapis run when unconfigured

* feat: report tapis_configured in dry run

* test: pipeline runs fail closed without Tapis

* docs: correct the predicate's docblock
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR2167

Version: 0.10.34-PR2167.c31b369
Commit: c31b369


🤖 Updated on each push.

* docs: reword the changelog lead for runners

* docs: S3a status note and Zarr read omission
@neuromechanist
neuromechanist marked this pull request as ready for review November 14, 2026 20:11
@neuromechanist
neuromechanist merged commit 26d1d0e into dev Nov 14, 2026
27 checks passed
@neuromechanist
neuromechanist deleted the feature/portable-compute-epic branch November 14, 2026 20:11

This branch was previously deployed

1 inactive deployment
npm — c31b369a Deployed Nov 14, 2026 by neuromechanist via publish #4470
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