Repository navigation
Epic: portable compute, workstation runners (#2145) - #2167
Merged
Merged
Conversation
* 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
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2167Version: 🤖 Updated on each push. |
* docs: reword the changelog lead for runners * docs: S3a status note and Zarr read omission
neuromechanist
marked this pull request as ready for review
November 14, 2026 20:11
This was referenced Nov 18, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Epic into
devfor issue #2145 (portable compute, workstation runners): registered workstation runners pull pipeline jobs over HTTPS behind the dark switchCOMPUTE_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 intodevis 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):image_unverifiedlauncher detail (C2W)CHANGELOG.mdentry for the epictapis_configuredkey in two dry run expectations)CHANGELOG.mdlead and the S3a inventory (merged into the epic, c31b369); the ADR 0118 amendment is a docs-only pull request into the epic, docs: ADR 0118 amendment, the registration block and runner-only deployments #2176, open for the owner's review: if it is not merged before this pull request, it rides todevwith the next round of the epicdev(squash b9c8f4a)Inventory, read on 2026-11-14 at the epic head c31b369 and
devhead 2f95da0:git rev-list --left-right --count origin/dev...origin/feature/portable-compute-epicprinted4 22:devis 4 commits ahead of the merge base and the epic 22 ahead, andgit merge-tree --write-tree --name-onlyreports no conflict (exit 0).dev's newest is0130_compute_anonymise.sql; the epic adds0140_compute_runners.sqlonly and keeps 0140 to 0149 (owner decision).package.json,backend/package.jsonandbackend/wrangler-sccn.tomlare untouched, so no version is bumped and no switch is added.dev: Epic: Third-party compute: access, user API, nemar compute, partner contract (#2021) #2116 (CONFLICTING; migrations 0131, 0132, 0134; edits to ADR 0118 and 0119), Add a local Zarr reader: shared read core, engine and nemar zarr read #2144 (MERGEABLE; adds ADR 0120, edits ADR 0050, edits the ADR index), Zarr scratch admission design note (draft; ADR number to be taken) #1641 (draft, CONFLICTING; edits ADR 0030, ADR 0085 and the ADR index). Phase P3 of Compute: live-job limits and NEMAR's own queue (design, phases and open questions) #2121 has no pull request yet.devwhen this was written.TOLERATED_GAPSintest/adr-index.unit.test.tsis{120}and fails as stale once ADR 0120 exists.proposed: merging does not accept them. The ADR index test passes with the gap at 120.Gates, re-run on the current head merged (uncommitted, aborted afterwards) with the current
dev, epic 23edcfa plusorigin/dev2f95da0:bun install --frozen-lockfile, root andbackend: 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-pureandprocess-tierand all shards. The earlier run on head 23edcfa (run 43625110529) failed once in unit-pure shard 1 onbackend/test/oidc-keys.test.ts(a chance match ofktyin 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 plusdev2f95da0.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) endedfinishedwith 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):
resolveRunparameter order,executor = 'tapis'outside the partner OR inCANCEL_PENDING_FAILED_SQL, theJOB_INSERT_SQLpin,ABANDONED_UPLOADS_SQL) is posted at Epic: Third-party compute: access, user API, nemar compute, partner contract (#2021) #2116 (comment)TOLERATED_GAPSand keeps both ADR index rows, posted at Add a local Zarr reader: shared read core, engine and nemar zarr read #2144 (comment)executor = 'tapis', keepadmitted_atto itself and take a migration number above 0149, posted at Compute: live-job limits and NEMAR's own queue (design, phases and open questions) #2121 (comment)Owner items before and after the merge:
.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.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 theauto-bump-dev.ymlworkflow (deploy-backend.ymlshows production runs only):gh run list -R nemarOrg/nemar-cli --workflow auto-bump-dev.yml --limit 3, thengh run view <id>. Dev's last Auto Bump Dev run (43620796185) failed its test gate on a flaky 5 second timeout intest/identifier-scrub.test.ts(issue #2174) and passed on its one rerun; if the gate flakes again after the merge, rerun it withgh run rerun <id> --failed.Card: S2 (round 1).