Repository navigation
Epic: the NEMAR compute gateway (#2005) - #2063
Merged
Merged
Conversation
* docs: add ADR 0118, the compute gateway * feat: add compute state machine and words * feat: add compute contract and launch schema * feat: add inline job header parser * docs: note where compute words now live * fix: refuse a trailing newline in launch schema * test: exempt compute documents from strict guard * fix: drop over_ceiling and pin state words * fix: refuse an unknown header kind * fix: tighten rates, GPU rule and default pins * fix: name the launch digest, write ASCII JSON * fix: open the launcher's response schemas * fix: a valid job always fits the launch spec * fix: tighten image uri and sif, move schema id * fix: pin every bound from one table, strict Ajv * docs: spell out ADR 0118 terms, add the digests * test: leave each launcher file out in turn * test: type the launch budget cases * Refuse lone surrogates in a job spec * Guard catches every way to import a strict schema * Classify schemas held in arrays and unions * Pin every launchSpecFits worst-case field
* Declare launcher details and who pays * Name the image file for its digest * Carry the data-plane tag in the launch spec * Declare entry and include semantics * Record the A1b launcher contract decisions * Reword the launch invariant, name the tag field * Cap the data-plane tag at the staging limit * Refuse empty classes and inverted ranges * Pin the image reference to the digest * Record eligibility, cancel and drift rules * State that a class never matches a slash
* feat: add compute ledger migration 0114 * feat: add compute admin route contract * feat: add compute allocation ledger service * feat: add compute policy and pool routes * feat: add nemar admin compute commands * refactor: drop BigInt from availableMilli * refactor: drop a dead platform key check * test: close gaps found by mutation checks * docs: record the ledger design in ADR 0118 * refactor: drop an unused hold constant * test: one hold per job under a race on D1 * feat: declare guard_refused and ledger reasons * feat: add request cap and open schema tests * feat: make the table enforce ledger rules * feat: settle once, replay steps, derive keys * feat: scope admin keys and owner-gate charges * fix: validate platform keys, drop dead reader * docs: ledger table rules, retention, owner rule * test: pin table rules found by mutation * refactor: drop a redundant prior-pool check * test: pin job-own charge, replay kind, overflow * test: scan sees quotes escaped in strings * style: use a plain string for a literal key * fix: a replayed hold that was closed is refused * fix: leave refund budget crediting to code
* Add compute_jobs and gateway users tables * Add compute R2 bindings and S3 signer * Add job records service and createJob * Test createJob and the job records * Race tests take a round trip both ways * Test the pseudonym table has one writer * Record phase A3 in ADR 0118 and the notes * Scope the 0114 trigger test to its tables * Reject NULL job ids and keep first pseudonyms * Take partner hold bodies as sent; bound keys * Test hold bodies, key bounds and write fences * Record round 1 rules in ADR 0118 and notes
* Add dark compute switches and Tapis bindings * Add Tapis client and stand-in server * Add GET /admin/compute/status * Add nemar admin compute status * Note the Tapis client in implementation notes * Tidy Accept header in the Tapis client * Make the compute switches true only for the string 1 * Harden the Tapis client after review round 1 * Test status route response checks and timeout * Update Tapis notes: roles, archive, outcome, caps * Say isOne changes no behaviour * Pin Tapis client findings from review round 2
* Add compute job submit and advance * Add Tapis webhook and job callbacks * Add result links, cancel and admin jobs * Record the A5 lifecycle decisions * Fix release, starvation and submit races * Add a truncating Tapis output download * Copy log prefixes, leave unread logs owed * Page result links past the first 1,000 * Refuse unsignable keys and cap launcher files * Keep launcher open read-only; redact hook token * Validate runtime image and report it in status * Test every verification check * Test listing pagination through verification * Pin the switch, compare and timeout claims * Add route-driven full path and entry-point race * Always send memory in a submit; type failure words * Declare the shared compute words once * Update ADR 0118, notes and help for round 1 * Leave a cancel for the sweep while a submit holds the lease * Clamp a submit's memory to its queue's maximum * Bound the links route body * Order the tick by the bare examined_at column * Record the round 1 money and concurrency rules in ADR 0118
* Never credit the people budget back Delete refundJob and its statement (no production caller), refuse a charge correction that lowers a charge and names the budget, and have the admin route name it only when the charge rises. Final settlement stays the one entry that may lower the budget. Tests show the budget does not move. * Document budget rule in pool adjust help The help said the people budget follows a charge correction; it now says raising counts against it and lowering does not. The CLI test also checks the budget after a decrease. * Fix option B wording in migration 0114 Comment-only edit: the owner chose option A, so the table comments say the code owns the rule and no longer call it open. * Record owner decision of option A in docs ADR 0118 gets inline superseded markers and one amendment line, implementation notes say the code implements option A, and the invented archive field name is replaced by the real Tapis one. * Say refund kind has no writer Comment-only: the ledger kind and reason lists keep refund for the table vocabulary, and the comments now say nothing writes it. * Note the A2 follow-up in the ADR index The ADR 0118 index row says the ledger code is option A now. * Make the refund scan catch every kind shape The scan flags any refund literal in a shipped ledger insert that is not a comparison, and a kind that is not a plain literal in the kind column's position. Planted shapes cover a later column, a SELECT list, and a bound kind. * Say exactly what lowers the people budget The help and route doc said only a final settlement lowers it; the owner's own correction of the platform budget does too. Help gains the sentence on undoing a raise made by mistake, and the route comment says what the owner rule settles. * Carry the budget rule in the adjust statement ADJUST_INSERT_SQL now writes nothing for a budget with a charged change that does not raise it, so a caller that binds it directly cannot credit the budget. A test binds it directly. The budget test header lists the guards.
* Rename ACCESS key secret, pin resource name * Add ACCESS report table, fill the Slurm hook * End an account's compute in both cascades * Add the ACCESS reporter and its cron * Test the by-id revoke twin ends compute * Record the A8 decisions in ADR 0118 * Test the tick copies a cascaded job's records * Retry only answers that show no processing * Leave partner reservations out of driveCancel * Leave a partner reservation to its contract * Pin compute to the credential batch * Report the ACCESS resource name and log waits * Bound the wait for a submission time * Stop claiming reports after the tick budget * Hold the two callers to the code by a scan * Record the round 1 decisions in ADR 0118 * Stop claiming after the first unknown outcome * Log persistent refusals at error level * Widen the credential scan, scope its names * Record the round 2 points in ADR 0118
* Encode the launch spec as base64url * Send the launch spec to Tapis as base64url * Test launch spec round trip through a shell * Drop a redundant length floor on the launch value * Look for the failed submit's secrets in the logs * Reword the launch schema for the wire form * Say the digests are over the launch spec text * Record the A1c wire format in the ADR and notes * Require printable ASCII in the launch spec text * Drop the encoder's unreachable bound check * Refuse a launch spec value that is not canonical * Derive the alphabet check from the constant * Share the decoder's rule with the Tapis schema * Brand the launch value and rename its field * End a job whose request NEMAR will not send * Look for every form of the token in leak checks * Reword the launch schema for the new rules * Attribute the scheduler rule; document the rules * Name the fixture helper for the text it returns * Make the shell test fail loudly and say why * Keep one copy of the refused launch values * Tidy two comments in the launch contract * Name the function that escapes DEL in ADR 0118 * Say the brand works in one direction only * State the unit of the length bound * Add the unset-variable and padding rules * Correct the shell test's corpus comment * Forbid token windows in the leak helper * Assert the digest on a job ended before submit
* Add the pipeline recipe registry Import-free table of nemar-floor and nemar-ica: version, engine, application, resources, and the argument vector that carries the image digest. Reads the recipe's own record for the stamp. Tested: registry shape and digest argument (21 pass); one mutation killed. * Add pipeline stamps table and delete cascade Migration 0117 holds one stamp per dataset version, recipe, recipe version and engine, with a partial unique index so a live or succeeded tuple is claimed once. Deleting a dataset deletes its stamps and keeps the job rows. Tested: migration on two engines (19 pass); one mutation killed. * Add the pipeline eligibility predicate One list of named terms, SQL and TypeScript side by side: active, public, not anonymous (anonymous = 0, decided from the row), first published, not withdrawn, DOI not tombstoned, has a version, EEG as a whole modality token, real nm or on id outside the fixture band. Also the version helpers a run reads. Tested: 24 pass; two mutations killed. * Verify a recipe job's image digest A recipe passes its image digest as an argument and cannot check it, so the Worker compares the value the job passed with the digest the launcher's provenance says it ran, and fails the job as image_digest_mismatch on a difference, a missing flag or a second one. Tested: 5 new, 108 lifecycle pass; one mutation killed. * Add pipeline dispatch and stamp sync dispatchPipelineJob resolves a recipe into a complete image job before createJob, claims the tuple's stamp first, takes the hold on the platform pipelines pool, links the stamp and submits. syncPipelineStamps moves stamps to succeeded (rewritten from the recipe's own record) or failed, and recovers a job whose link was lost by its key. Tested: 45 pass on SQLite and Miniflare D1 (race, eligibility, sync, cascade); six mutations killed. * Add the pipeline queue and dry run pipelineCandidates lists the eligible datasets whose newest version holds no live or succeeded stamp for the recipe's tuple, skipping a version no launcher can stage. pipelineDryRun reads only and reports the estimate and what blocks each term. dispatchEligible runs the next n datasets and stops at a refusal that would repeat. Tested: 18 queue tests pass; four mutations killed. * Add the admin pipeline run and status routes POST /admin/compute/pipeline/run takes a recipe, then one dataset with an optional version or the eligible queue with a limit, plus dry_run; the body is strict and the Worker supplies every fact itself. A dry run reads only and works in every environment; a live run refuses compute_disabled unless compute is on and is audited with counts. GET /admin/compute/pipeline/status syncs the stamps and pages them. Tested: 32 route tests, contract and inventory pass; four mutations killed. * Pin the pipeline reads of the compute switch The scan allowed one gating read of COMPUTE_ENABLED. The dispatch and its route now refuse new pipeline work with compute off, and the dry run reports the switch; each is named in the scan. Tested: source scan 4 pass. * Add the daily pipeline dispatcher runComputePipelineDispatchCron is wired into the production-only daily block. It returns null outside exact production, does nothing and touches no table until compute and the pipelines switch are both 1, dispatches automatic recipes only within the daily cap and the live cap per pool and a bound per tick, stops at a refused hold, and holds back a recipe whose registry disagrees with a recent success. Tested: 39 new tests and the cron wiring pass; five mutations killed. * Add nemar admin compute pipeline run and status run takes a recipe and one dataset with an optional version, or the eligible queue with a limit, plus --dry-run; wrong arguments are refused before anything is sent and a refused dataset exits 1 with the Worker's word and the terms that block it. status lists and pages the stamps. Every command takes --json. Tested: 33 CLI tests against the real routes pass; three mutations killed. * Record the pipeline dispatch in ADR 0118 Amendment for phase A6: the recipe resolved before createJob, the stamp and its claim, the stamp rewritten from the recipe's record, the image digest check, eligibility, the dispatcher's caps and the dry run. Tested: compute-state unit suite passes. * Cool down and cap failed pipeline tuples A tuple whose stamp failed is not a candidate for 7 days (initial) and not after 3 failed attempts (initial), decided in the candidate SQL, so failing datasets at the head cannot starve the queue. Tested: 4 new queue tests failed before the change; queue, dispatch, route suites pass. * Refuse a placeholder recipe on every path nemar-ica is marked a placeholder and every dispatch path (single, queue, dry run, route) refuses it with recipe_placeholder, writing nothing. Tested: 3 new tests failed before the change; pipeline suites pass. * Build the job specification before the claim A specification the job schema refuses is now invalid_spec with nothing written, and ends a run over the queue, instead of a throw that left a dispatched stamp and aborted the cron. Tested: 2 new tests failed before the change; pipeline suites pass. * Keep the stamp open when the key lookup fails If createJob throws after its batch committed and the lookup of the job by its key fails too, the stamp stays dispatched and the failure is logged, so the sync links the job instead of a later attempt making a second one. Tested: new test failed before the change; compute-pipeline suite passes (48). * Refuse an engine string the stamp cannot hold A record whose package@version exceeds the 64-character engine column is unreadable, so the stamp ends failed (record_unreadable) instead of staying dispatched when the update throws. Tested: 2 new tests failed before the change; pipeline and recipe suites pass. * Label a stamp collision truthfully, keep jobs on audit failure A rewritten tuple that is already stamped now ends the stamp failed as tuple_already_stamped and is logged; the run itself may be good. A failed audit write after a dispatch returns the job ids with audit_pending instead of a 500. Tested: 4 new or changed tests failed before the change; pipeline, route and contract suites pass. * Make the pipeline sync loud and fair Every open stamp the sync visits goes to the back of the line, every outcome that leaves a stamp open for later logs the stamp, dataset and reason, and a run over the queue that throws reports the jobs it already made so the cron logs the partial count. Tested: 4 new tests failed before the change; pipeline suites pass. * Sync the stamps once per cron tick dispatchEligible no longer syncs again when the cron has just done so, and the cost comment and ADR state the true bound of a tick (about 510). Tested: new test failed before the change; dispatch and state suites pass. * Hold a tuple by result, not by a seven-day window When a job finishes, a record that names another tuple than its stamp claimed holds the claimed tuple on every path (single dispatch, queue, cron, dry run) with registry_drift; a version bump is never held. The seven-day comparison is gone. The ADR records the remaining exposure of jobs in flight. Tested: 9 new or rewritten tests failed before the change; pipeline, dispatch, queue and route suites pass. * Test the recipe digest check on its own The submit records the image digest on the job row, so a provenance naming another image was refused by the older check. The test now clears the row digest first, so only the recipe check can fail it; with that check mutated away it now fails (it passed before). Tested: verify suite passes (5). * Fix test and comment nits T3 to T5 The rewrite test no longer promises an assertion it lacks, the compute-off test now proves the gate comes before the dataset read, and the prose uses canceled. Tested: pipeline and migration suites pass. * Record a tick_cap skip when the tick bound cuts a recipe A recipe cut by the 10-job tick bound is reported as tick_cap in the result and the log line, not as having nothing eligible. Tested: the bound test and a below-the-bound test pass; the first failed before the change. * Count only dataset-caused failures toward the cap Platform, cancel and registry failure words no longer count toward the retry cooldown or the failed-attempt cap, so transient errors cannot shut a dataset out. The ADR also says a single-dataset admin dispatch bypasses both. Tested: new test failed before the change and fails with the word list emptied; queue and pipeline suites pass. * State accurately when a tuple hold clears The hold does not clear by time. It clears on a registry bump or when its rows are deleted with their dataset; the next mismatch holds the tuple again, bounded by the live cap. Wording only, in the ADR and two comments. * State the per-stamp sync cost as 5 to 9 The comment and the ADR gave 5 per stamp; a stamp costs 5 to 9, so the tick is bounded at about 510 usually and 710 at the worst. Wording only. * Tell the two stamp collisions apart A rewritten tuple refused by the attempt index (history only) is tuple_attempt_taken; one refused by the live index stays tuple_already_stamped. Neither counts toward the cooldown or the cap. Tested: new test failed before the change and fails with the match removed; pipeline suite passes. * Document updated_at as last examined On a dispatched stamp the column is when the sync last looked, since the sync touches every open stamp it visits. Comments in the migration, the contract and the route; no behavior change.
* Add observer and hold tables (0118) Migration 0118 (observer runs, queue snapshots, sacct rows, legal holds, sweep bookkeeping columns and indexes) and the shared words the later commits use. Tested with the suites that follow; the migration is also run by migrations:d1-check on real D1. * Charge unreserved use to a partner pool An overrun entry on the tenant partner pool with the people budget, once per job, never to a person. Tested: ledger-unreserved suite against the real triggers. * Rotate repair, orphan and cancel lists The two terminal repair lists, the orphan list and the cancel list rotate by last examination; a second orphan is logged; an unreadable terminal row is settled without its record; advance carries out a recorded cancel on staging. Tested: rotation suite, with mutations. * Add the observer, report and hold routes Per-run observer token and ingest with final settlement against Expanse figures; admin reporting, legal holds, ACCESS report re-queue and the observer mint route. Tested: observer, reporting route and contract suites, inventories. * Add the tenant sweep Lists the tenant, binds the submit race, cancels duplicates, and indexes, cancels and charges jobs that skipped the reservation. Tested: sweep suite against the Tapis stand-in, source scan. * Add the retention sweep and anonymising update Deletes due records and logs honouring holds, counts any refusal as locked, reconciles results, and anonymises a deleted account's pools and ledger actors (migration 0130). Tested: retention suite on both SQL engines, with mutations. * Wire the tenant and retention sweeps Tick and daily production-only calls. Tested: cron wiring suite. * Add compute reporting commands jobs list, record, report, access-report, hold, release-hold, holds, access-reports, requeue-access-report, observer mint. Tested: CLI suite against the real routes. * Add the compute end-to-end proof Pipeline run to observer-settled record, an account revoked mid-run, and an unreserved job, with the real CLI leg. Tested. * Record phase A7 in ADR 0118 and notes Amendment of 2026-11-05 and implementation notes section 12. * K6: only a 409 means a cancel is over Test failed before the change (a 400 was silent), passes after. * K8: trust a nemar_job tag only on the service identity Test failed before the change (a stranger tag got the job cancelled unrecorded), passes after. * K1: never cancel a job a row bound since the snapshot Two tests failed before the change (bound-after-snapshot and conflicting insert), pass after. * K9: count only real transitions as finished Test failed before the change, passes after. * K10: age a followed row from its last good read Two tests failed before the change, pass after. * K2: replace a stored sacct row until it is ended or applied Test failed before the change, passes after. * T3: take the first word of a sacct state Test failed before the change, passes after. * T4: test the per-node pricing of a two-node row New test; it fails when the division by nodes is removed. * K7: reopen a run whose store failed, settle apart Two tests failed before the change, pass after. * K3: a cut-off prefix is incomplete, never reduced Two tests failed before the change, pass after. * K4: keep the class of a refusal, alarm on an overdue lock Four tests failed before the change, pass after. * K5: count the due rows a capped stage leaves Two tests failed before the change, pass after. * K12: leave an account with only open-hold entries out of the window Test failed before the change, passes after. * K11: classify a refused owner by the statement's own rule Test failed before the change, passes after. * T8: pin the owner check before the body (already so) The route already ran requireOwner as middleware before the handler; this test pins it and fails if the middleware is removed. * T2: test the Tapis list order, paging and the five-page cut-off New tests; they fail when the regex check or the page bound is removed. * T5: pin the mode each cron call passes to the tenant sweep New test; it fails when the daily call is made with live. * T6: assert flag_overrun stays 0 on an unreserved row New assertion; it fails when the stamp sets flag_overrun. * T7: remove a filler assert, assert the negative balance, fix a title Test cleanups; the new assertion fails if available is not -2000. * T9: correct the source-scan comment about what the sweep moves Comment only; the scan test passes unchanged. * T10: pin the 0130 pool trigger to a body that only raises The A2 guard now names the two migrations and requires the one new trigger to be BEFORE UPDATE with a raise-only body. * T1: table-test every column of the anonymising update Each column of a pool and of a ledger entry changed alone beside the anonymisation is refused; 23 single-term mutations are each killed. The trigger also pins created_at and updated_at of a pool now. * Prose: American spelling, writer count, migration range wording Comments, strings, the ADR amendment and the notes; identifiers and file names kept. Tested: retention, ledger and state suites pass. * Record the review rules in the ADR 0118 amendment Docs only. * Item 4: test the give-up counter counts a real close once New test; it fails when the counter always counts. * Item 6: pin that each bound job is counted once The branches were already single-counted (a race-bound job is not in the snapshot set); the new test passes before and after and locks it. * Item 5: test that a suspended owner gets not_owner from the re-queue New test; it fails when the re-queue classifies by role alone. * ADR 0118: record the owner decisions of 2026-11-06 Docs only; ADR index test passes.
* Delete harness bucket keys in batches * Give lifecycle hooks a 60 s timeout * Give the end-callers scan test 60 s * Give the declared-outputs paging test 60 s
# Conflicts: # .context/decisions/README.md # .rules/revocation.md # backend/src/index.ts # backend/src/middleware/maintenance.ts # backend/src/routes/admin/users.ts # test/admin-route-inventory.unit.test.ts # test/api-export-surface.unit.test.ts
* Give scan-test planted cases 60s timeouts * Say no route moves a tenant charge; add table row * Say a released hold is flagged, not corrected * Move Epic D's migration range to 0131 and up * State what the owner merge command ends * Add compute switches hard rule to AGENTS.md
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2063Version: 🤖 Updated on each push. |
* Add the observation document schema and TRES parser * Ingest the observer's nemar.observation.v1 post * Record the observer wire change in ADR 0118 * Give the six-state settlement test a 60 s timeout * Refuse an allocation with elapsed time and no node item * Never echo a key the sender chose in a refusal, and test the five-path cap * Assert the race loser's body is the uniform refusal * Derive the allocation bounds from the sacct column bounds and test them against the migration * Say that a job lost to a cut export stays provisional * Record the whole-day refusal and the row-cap gap in the ADR amendment * Hold every bound of the document at its limit and one past it * Compare the observation copies with nemar-process in CI * Name the observation drift variables apart
neuromechanist
marked this pull request as ready for review
November 7, 2026 01:45
This was referenced Nov 7, 2026
* Count the ACCESS report by remote submit time * ADR 0118: say where the dataset gate runs * Print why a record summary field is absent * Show unsettled jobs and open holds in the report * Type the report's flag columns once * Report launch prerequisites in compute status * README: ordered owner checklist for first launch * Document that one secret signs every compute token * Type pipeline refusal words against one union * Declare cancel, links and observer responses * Document compute under each maintenance mode * Say when the active holds list is cut * CI: require the queue drift check, note test seams * Fix stale compute docs, help text and ADR index * Fix CI: read the compute switch once, pin new wording
* Count consumed pipeline failures toward cap * Retry an ACCESS report that never left * Tenant sweep: cut only matters if live may hide * Tenant sweep: owe the ACCESS report * ADR 0118: review fixes, limits and re-mint * Retention: read the hold between prefixes * Tapis: 408 and 3xx are transient * Orphan cancel: only 409 or a confirmed 404 clears * Count failed Tapis cancels, loud when stuck * Unknown Tapis status ages to unreported * Lost Tapis records end the job, no charge * Count copies abandoned after three days * Tick log: warn on unreachable, honest repairs * Count pipeline sync later and errored * Outputs: policy fault is not compute_disabled * Mark unwired compute code and unused column * ADR 0118: review fixes of 2026-11-06 * Lost record: charge a job that ran, 404 only * ADR 0118: lost-record rules, status wording * Status: count stuck cancels, abandoned copies * jobView returns the contract type and flagsOf * Pipeline: a stamp deleted mid-dispatch is refused * Docs: tapis_record_lost for the owner
4 of 5 tasks
This was referenced Nov 10, 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 #2005: the NEMAR compute gateway (ADR 0118). Draft until the integration review and the owner's approval; merge as a merge commit (no squash, no admin bypass), per the epic issue.
What lands
nemar.launch-spec.v1).failed/tapis_record_lost(charged if there is evidence it ran, released if not, only on a Tapis "not found"); failed cancels, unknown Tapis statuses and abandoned records copies are visible in the cron lines andnemar admin compute status; the ACCESS quarterly report counts what ACCESS was told;jobs recorddistinguishes missing and unreadable.nemar.observation.v1document withAuthorization: Bearer; one shared JSON Schema with drift tests in both repositories; nemar-process Upload should use backend-provided S3 credentials, not user environment variables #13 and fix: use backend-provided AWS credentials for S3 upload #14).Everything stays dark:
COMPUTE_ENABLEDandCOMPUTE_PIPELINES_DISPATCH_ENABLEDare absent frombackend/wrangler-sccn.tomland pinned bycompute-switches-flag.test.ts; every compute cron is production-only.Definition of done
backend/test/compute-e2e.test.tspasses at the epic head:cd backend && bun test ./test/compute-e2e.test.tsgives 3 pass, 0 fail, 77 expects. It runs the real Worker over real D1 and Miniflare R2 with the Tapis, S3-API and ACCESS stand-ins: an admin pipeline run is held, submitted, uploaded through the outputs routes, advanced by a webhook and a cron tick, settled, finalized by an observer post and shown bynemar admin compute record; revoking a test account mid-run records cancellation, freezes pools and cancels at Tapis after the retried sweep.bun run typecheck,bun run migrations:d1-check(127 migrations on real D1, catalog matches) and lint pass; the full Tests workflow is green on the epic head (run 42303613010).finalizeRevocationandtombstoneUserCascade, and the OIDC route-table test now covers the compute routes.Open for the observer-dispatch phase (recorded in ADR 0118)
A fresh one-hour token per post; the 5,000-row cap against the 1 MiB byte cap; one unreadable accounting row refuses the whole day's post (fail-closed, owner to confirm); the memory and TRES formats were never captured from a real cluster, so check one real document before any switch is turned on. Exit codes 3, 4 and 7 of the recipe are retried as failures (#2065). Also open: a deadline for a job stuck in Tapis BLOCKED or PAUSED; a backstop on staging for a swallowed webhook failure (crons are production-only); the Workers subrequest limit is taken as 10,000 (owner), to be confirmed from the observability counts in the first week.
Owner actions that gate real use
Create the two R2 buckets per environment with their lock and lifecycle rules and set the three
COMPUTE_R2_*secrets; set the Tapis and ACCESS secrets; create thenemar-pipelinesservice account; fund the pipelines pool; then turn onCOMPUTE_ENABLEDandCOMPUTE_PIPELINES_DISPATCH_ENABLED. None of it is part of this PR.