Skip to content

Phase A5: Job lifecycle, webhooks, settlement and results - #2041

Merged
neuromechanist merged 23 commits into
feature/issue-2005-epic-compute-corefrom
feature/issue-2010-phase5-job-lifecycle-webhooks-settlement
Nov 5, 2026
Merged

neuromechanist merged 23 commits into
feature/issue-2005-epic-compute-corefrom
feature/issue-2010-phase5-job-lifecycle-webhooks-settlement

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Phase A5 of the compute program (epic #2005, issue #2010, ADR 0118 and its amendments). A job row becomes a running, settled, verified Tapis job without anyone watching: NEMAR submits idempotently, follows the job by webhook hint and a 30-minute backstop, settles its charge, serves the launcher's three callbacks behind a per-job token, verifies the upload before finished, copies the launcher's files and logs into the records, mails the person a link to a page, and cancels on request.

The owner decisions of 2026-11-04 are built in: NEMAR owns every Tapis job (the owner is the NEMAR service identity from configuration), no failure is refunded automatically (consumed units stay consumed, a job that never started is released, isPlatformFailure is an information flag on the row), and the people budget records consumption only (no path of this phase credits it).

This body was rewritten after round 1 of the review (an Opus checkpoint and two Sonnet reviewers). The first section says what round 1 changed; the rest is the original description, corrected where round 1 changed it.

Round 2: what changed (delta review of 1287fdd9)

Memory clamped to the queue (the review's first finding, 6db4bda3). The memory a submit carries was the memory the charge pays for, and a whole compute node is 262,144 MB, its nominal physical memory. The program's own Tapis execution system (nemar-process, deploy/tapis/systems/exec.json.tmpl) declares maxMemoryMB 249,208 for the shared, compute, debug and preempt queues, 2,048,000 for large-shared and 377,308 for the four GPU queues, so every whole-node CPU job (and a debug or preempt job of 122 cores or more that named no memory) would have been refused at submit and ended tapis_submit_failed as a platform failure. The Tapis stand-in models no queue limits, so every test passed. Now compute-queues.ts declares QUEUE_MAX_MEMORY_MB once, in the backend (the contract has no slot for it and its schema, golden vector and checksum are untouched; submitMemoryMb stays as it was), and the submit sends the derived figure clamped to it. compute-queues.test.ts pins the figures as literals and, when NEMAR_PROCESS_DIR names a nemar-process checkout, compares them with that file's maxMemoryMB for every queue (it skips visibly without it; run against the C5 branch it passes). A 128-core compute job, a 128-core debug job and a whole GPU node (376,832 MB, under 377,308) each submit within their maximum, and a test asserts that for every partition at its largest shape the figure is within its queue. OWNER ITEM: the queue figures come from the public Expanse user guide through C5, are UNVERIFIED, and need confirming with the site.

A cancel during an in-flight submit (the review's second finding, e2de0fcf). While a submitter held the lease with the digest written, a cancel's tag search could run before Tapis had persisted the job, find nothing and end the row and release the hold; if the submitter's answer was then lost, tapis_uuid and orphan_tapis_uuid were both NULL, the row was terminal and nothing ever searched again, so the Tapis job ran uncharged and uncancelled. Now driveCancel, in the branch for a row with no Tapis job, returns and leaves the intent when the submitter's lease is younger than SUBMIT_LEASE_MINUTES; the submitter's bind already turns a pending cancel into an orphan cancel, and once the lease ends the sweep's tag search is authoritative. The reproduction is a test (the Tapis job is hidden from the cancel's search, the submit's answer is dropped, and the Tapis job still ends CANCELLED with the ledger [hold, release]), and the older test that asserted an immediate cancelled now takes a sweep step.

Smaller items:

  • The release of a lease is holder-checked (e2de0fcf): the claim writes the submitter's own stamp (to the millisecond) and the release clears the lease only while it is still that stamp, so an attempt that outlives its five minutes cannot clear its successor's lease. A test makes an attempt's lease be taken over mid-flight and asserts the successor's survives.
  • The links route reads its body through readBoundedJsonObject with a 4 KiB cap (LINKS_BODY_MAX_BYTES); an oversize body, declared or not, is invalid_spec with status 413, and an empty body or Content-Length: 0 is still the first page.
  • compute_jobs_examined served no query, because ORDER BY COALESCE(examined_at, '') hid the column from the planner (the plan was a walk of every row that ever had a Tapis job). The three tick queries now order by the bare column (SQLite sorts NULL first, so the order is unchanged) and a test reads EXPLAIN QUERY PLAN and pins that the live-row query uses the index. The migration did not change, so migrations:d1-check was not run again.
  • ADR 0118's A5 amendment now records the round 1 rules that decide money and concurrency: the charge rules for a job with no start time, an unparsable start and a release; the submit lease, the orphan record and the cancel that leaves its intent for the sweep; the memory clamp; and the tick's rotation by examination with a quota for each kind of row.

Round 1: what changed

Migration 0116_compute_lifecycle.sql is unreleased and was edited in place: it now adds nine columns (launch_spec_digest, results_verified_at, outputs_completed_at, results_bytes, result_records_at, platform_failure, examined_at, submit_claimed_at, orphan_tapis_uuid) and the indexes compute_jobs_results and compute_jobs_examined.

Money and state (items 1 to 6, commit e1ae47a9):

  • A job that RAN is never released: a release closes the hold, so a released job can never be charged. Only a job nothing shows ran is released; Tapis FINISHED without a start time, a launcher that claimed bytes or completed an upload, and a start time that is not a time are each charged (the minimum, or the hold) and flagged mismatch. A time that runs backwards is zero seconds.
  • The 30-minute tick cannot starve: the live lists rotate by examined_at (a row is stamped before its step, whether or not the step succeeds), and the bound rows and the created rows have a quota each.
  • Two submitters cannot both reach Tapis (a lease on the row), a submitter whose bind lost does not cancel the Tapis job another path bound to the same row, and a Tapis job no row owns is recorded, flagged and cancelled again by the tick.
  • A cancel of an unbound job whose submit may have reached Tapis asks Tapis by tag first and releases the hold only when nothing is there.
  • A terminal hint that loses to a concurrent live write is applied again against the fresh row, and a job found by tag is applied from its full record so its exit code is checked.

Results, records, links and callbacks (items 7 to 13):

  • A tapisjob.out over 5 MiB is copied as its first 5 MiB and the object records that it was cut (truncated metadata); a log that could not be read for any reason but not existing leaves the whole copy owed, so it is never stamped done without it. A4's client gained an additive downloadOutputPrefix (downloadOutput is unchanged).
  • Result links page: an optional { "after": "<output path>" } body, next_after in the answer, 1,000 at a time.
  • An output path whose object key cannot be signed (over 1,024 bytes of UTF-8, or a lone surrogate) is invalid_spec naming the output BEFORE the claim; it used to claim the bytes and answer 500, then 409.
  • The launcher's own files are capped (documents at the outputs-body bound, the log at 16 MiB), and the follow-up claim after a refusal skips only the person's share: the platform's total still applies.
  • COMPUTE_RUNTIME_IMAGE is one digest-pinned reference, validated when read (compute-runtime-image.ts), with the digest and the Singularity file name derived by the contract's functions; GET /admin/compute/status and nemar admin compute status report whether it is set, whether it is valid and its digest, never the reference.
  • Read-only maintenance mode lets the three launcher callbacks through by an exact pattern (POST, a well-formed job id); cancel and links stay blocked, and full refuses all.
  • The Tapis webhook token is redacted from the Worker's own access log and from the maintenance refusal line (middleware/access-log.ts); the entry point mounts that logger and not Hono's own.

Tests (items 14 to 18): the verification checks that had no failing test now have one each (manifest path, size, checksum, one entry more and one fewer; an output's stored SHA-256; a launcher file replaced after complete; records_unavailable for a deleted and for a mismatched spec.json and for an unbound records bucket); verification pagination at 999, 1,000, 1,001 and 2,500 outputs; the one-batch claim and the settlement gate through the flow; a source scan that pins timingSafeEqual(token, expected) and the single gating read of computeEnabled(, each shown to fire on a planted violation; terminal paths with compute off through the webhook and the tick; the exact timeouts asked for (8 and 10 seconds); the 7-day lifetime written out; a route-driven full path (compute-full-path.test.ts: hold, submit, every status by the stand-in's own webhook, the launcher through the real routes and presigned PUTs, verified, settled once, copied, mailed once, linked) and an entry-point race. The fixture header no longer claims that nothing is stood in for: playLauncher is named as the one played step.

Types, declared once, docs (items 19 to 21): the plan's failure code and detail are ComputeFailureCode and ComputeFailureDetail (a closed union plus one branded slot for a launcher word the table does not declare, which stays deliberate); VERIFY_REASONS and records_unreadable moved to shared/compute-state.ts; the route refusal sentences, NO_NONCE, the SQL state lists, the reporting states and the job-token header are each declared once; dead test code is gone; the tick's cost comment is rewritten (two attempts, about 800 subrequests worst case, whether binding calls count is stated as unverified); ADR 0118 carries inline superseded markers on body decisions 4 and 13 and unambiguous references; implementation-notes.md no longer calls option A "open"; the CLI help for jobs advance says its submit is refused while compute is off.

One item that arrived mid-batch (from the C5 checkpoint): every Tapis submit now carries memoryMB, maxMinutes, nodeCount and coresPerNode. Tapis always passes a memory to the scheduler (its default is 100 MB), so a whole-node job that named none would have been charged for a node and limited to 100 MB. submitMemoryMb in the contract derives it from the same rate table the hold is priced with: a whole compute node is 128 x 2,048 MB, a whole gpu node 4 x 94,208 MB, a per-core or per-GPU job uses its own memory_mb else its cores' or GPUs' share. The partition table has no per-node memory field, so a whole node's memory is derived from the rate table (the figures are the design's reading of the node sizes, unconfirmed). A test covers every partition in the contract's table. Round 2 clamps this figure to each queue's maximum (see above). implementation-notes.md used the invented field name archiveIncludeLaunchFiles; it now names the real one, parameterSet.archiveFilter.includeLaunchFiles.

Commits of round 1

e1ae47a9 fix release, starvation and submit races; 6b7a943f a truncating Tapis output download; 82dd30d3 copy log prefixes, leave unread logs owed; 7252b047 page result links; 7cc56472 refuse unsignable keys and cap launcher files; 32ba7193 keep the launcher open read-only and redact the hook token; 79c49ee1 validate the runtime image and report it in status; 9406f6a1 test every verification check; 18795849 test listing pagination through verification; ae69506e pin the switch, compare and timeout claims; 2be30c2e route-driven full path and entry-point race; d24d0575 always send memory in a submit, and type the failure words; 7d7b30dc declare the shared compute words once; 1287fdd9 ADR, notes and help. Round 2: e2de0fcf leave a cancel for the sweep while a submit holds the lease (and holder-check the release); 6db4bda3 clamp a submit's memory to its queue's maximum; 9003c6c3 bound the links route body; 49968d44 order the tick by the bare examined_at column; 0fdb4476 record the round 1 money and concurrency rules in ADR 0118.

What changed (original description, corrected)

  1. Submit and advance. Migration 0116, compute-lifecycle.ts (submitComputeJob: the one place the compute switch is read, a tag search before any submit, the digest of the exact launch specification bytes written before the call, no archive fields, the memory always sent; applyTapisJob: the one transition function; the terminal transition and its settlement as one batch; copyResultRecords; cancel; advanceComputeJob), compute-verify.ts, compute-advance.ts (runComputeAdvanceCron, sweepComputeCancellations, on the 30-minute tick's production block and in neither allowlist), compute-tokens.ts, gated settleStatements and releaseStatements in compute-ledger.ts, the refusal word results_incomplete, the binding COMPUTE_RUNTIME_IMAGE.
  2. Webhook and outputs. POST /webhooks/tapis/:jobId/:token (a hint: the body is ignored, the job is read back from Tapis), and the launcher's POST /compute/jobs/:id/bundle, .../outputs and .../outputs/complete, mounted as computeRoutes at /compute.
  3. Results and links. mintResultLinks and the results-ready mail, POST /compute/jobs/:id/cancel and .../links (owner only), POST /admin/compute/jobs/:id/cancel and .../advance, nemar admin compute jobs cancel|advance <id>, the inventory pins.
  4. ADR 0118 amendment (supersedes the refund wording of decisions 4 and 13, now with an inline marker on each; no number or text is deleted), its README index row, and section 10 of the implementation notes.

Gates (run on 0fdb4476)

  • bun run typecheck: clean.
  • bunx biome check on the 8 .ts files round 2 changed: 0 errors, 2 warnings (the existing noExplicitAny in compute-results-routes.test.ts). The known baseline errors in doi-orcid-discovery.ts and zenodo.ts are not touched.
  • A5 targeted backend suites (lifecycle, submit, money, migration, webhook, job callbacks, results routes, admin job routes, route inventory, tokens, full path, source scan, access log, maintenance, runtime image, status route, queues): 328 pass, 2 skip, 0 fail across 17 files. The 2 skips are the drift comparison in compute-queues.test.ts, which needs NEMAR_PROCESS_DIR; run against the C5 branch's checkout it passes (9 pass, 0 skip).
  • The A4 client suite and the neighbours (Tapis client, cron wiring and dev safety, switches flag, jobs, records, S3, ledger, buckets config): 803 pass, 0 fail across 9 files.
  • Contract, compute state, admin contract, header, export surface, the three admin-compute CLI suites and the ADR index: 622 pass, 0 fail across 9 files. The contract file's schema, golden vector and checksum were not touched in round 2 (nothing under shared/ changed).
  • bun run migrations:d1-check: not run in round 2, because the migration did not change; the round 1 run (118 migrations, 188 objects, 53 tables) stands.
  • Not run: the full bun test and CI (the driver decides), and anything against a real tenant or a real R2.

Mutation evidence

Each mutation was applied to one place, the test file named run on its own as its own argument, and the file restored (the script aborts unless the old text matches exactly once). The count is the number of tests that failed.

Round 1, the items the review asked for:

Item Mutation Failing tests
1 release a job whatever shows it ran 4
1 only Tapis FINISHED shows a run (drop the claimed-bytes and completed-upload evidence) 3
1 a time that runs backwards is not clamped to zero 1
2 order the live list by the last good read 1
2 rows are not stamped as examined before their step 3
3 no submit lease 2
3 a lease that never expires 1
3 the bind does not refuse a row with a cancel pending 1
4 a cancel ends an unbound row at once, without asking Tapis 2
5 a terminal hint that lost to a live write is not retried 1
7 the log bound moved from 5 to 6 MiB 2 (it SURVIVED at first: the test imported the code's own constant; it now writes 5 MiB out)
7 a launcher document over its bound is copied 1
7 any Tapis error, not only "no such file", is swallowed 4
7 the truncation is not recorded 1
8 the cursor is ignored 3
8 the cursor is inclusive (>=) 2
8 truncated is computed over all outputs, not the remainder 3
8 the page is 999 1
8 the cursor is not validated as a path 1
9 the well-formed-text check is removed 1
9 the object-key check is removed (the test reproduced the 500 first) 1
10 the follow-up claim skips the platform total too 1
10 the launcher-file cap is removed 1
10 the log cap is 17 MiB, and a document cap off by one 1 each
11 a tag is accepted as a runtime image; status reports valid for any set value; status echoes a digest for an invalid value 1, 1 and 3
12 the launcher callbacks are not allowed in read-only (unit, and through the real routes) 3 and 1
12 the whole /compute/jobs/ prefix is allowed 6
12 any method is allowed; the job id is not checked 1 and 3
13 the redaction does nothing (access log, and the webhook suite with the real logger) 4 and 1
13 the maintenance refusal line is not redacted; the entry point mounts Hono's own logger again 1 each
14 the manifest count, path, size and checksum checks removed one at a time 1 each
14 the output SHA-256 check removed; an absent checksum treated as a mismatch 1 and 11
14 the launcher-file size check removed; the unreadable-specification check removed 1 each
15 the terminal statements run one after the other instead of one batch 2
16 the settlement gate always true; the EXISTS guard of the settled stamp removed 1 each
16 the listing reads the first page only 2 (the 1,001 and 2,500 cases; 999 and 1,000 correctly pass)
17 the token compare is === 2
17 computeEnabled( is called in the terminal commit (the scan, and the behaviour) 1 and 4
17 the link lifetime is 4 hours; REQUEST_READ is 40 seconds; TICK_READ is 40 seconds 1 each
memory the submit drops memoryMB; a whole node uses the row's memory; a per-core share is halved 10, 1 and 2

Round 2 (each run on its own test file as its own argument; the count is the failing tests):

Item Mutation Failing tests
1 the clamp removed (the queue tests, and the submit tests) 3 and 3
1 compute's maximum set to the node's nominal 262,144 3
1 the clamp uses the GPU queue's maximum for every partition 3
1 a queue literal moved while the C5 checkout is named 1 (the drift comparison)
2 driveCancel ignores a live lease 2 (the reproduction and the live-lease-before-digest case)
2 the lease counts as always expired; the lease counts as live for ever 2 and 1
4 the links body bound removed (1e9); the bound shrunk to 64 bytes 1 and 2
5a the release of a lease without the holder check 2
5b ORDER BY COALESCE(examined_at, '') restored in the live-row query 1 (the plan test)

Not killed, stated plainly: the entry-point race in compute-full-path.test.ts did NOT kill the mutants that drop state = <from> from the live transition or make the settlement gate always true (the interleaving they need is not one real entry points reach reliably, even with every statement taking a round trip). Those two mutants are killed by compute-lifecycle.test.ts (1 failure) and compute-lifecycle-money.test.ts (1 failure), which hand a writer a stale row. What the race adds is that the real entry points keep the invariants under overlap; its header says so.

Original run (before round 1), kept:

Mutation Result
skip the tag search 5 tests fail
drop state = <from> from the terminal UPDATE 3 fail
ignore the detail in isPlatformFailure 2 fail
the launch digest is never written 8 fail
the records copy overwrites 1 fails
the webhook trusts the body's status; skips the token check; skips the nonce check; does not bound the body 1 fails each
bundle signs a caller-supplied path 1 fails
the quota is read in a separate query before the UPDATE 5 fail

Decisions made inside the issue's freedom

  • The Tapis owner is tapisConfig(env).username; a service-strategy configuration without it leaves jobs created. compute_jobs.tapis_owner is not written (it stays the partner column).
  • The dataset-selection limits stay constants (LAUNCH_DATASET_LIMITS: 1,000,000 files, 1 TiB), as the owner decided; a datasetLimits key belongs to a later revision of the policy, because the policy schema lives in the frozen contract. They bound the dataset selection and are never the results limit.
  • A job whose launch specification cannot be built (a recipe job names no entry or command, or a row with no memory to ask for) is failed tapis_submit_failed with the detail invalid_spec and its hold released. Recipe resolution before createJob is phase A6; the builder stays a pure function of the recorded specification and keeps refusing a recipe-only one.
  • The webhook is subscribed once after a bind and never retried; the backstop poll carries a job whose subscription failed.
  • complete, the verification and the quota use listings (1,000 objects a call) rather than one head each; the facts compared are the same (key and size).
  • The quota counts a job's declared bytes until the job ended longer ago than retention.resultsDays.
  • After a refusal, the launcher's follow-up with no outputs is accepted; the person's share is not applied to its four own files, the platform's total is, and each is capped. failure_detail is never cleared and outputs named after a refusal are refused again with the recorded word (before complete) or bad_state (after it).
  • Verification failures store a fixed word in failure_detail. The per-output checksum counters that were computed and never read are deleted rather than recorded: nothing reads a count, and the size-only residual is stated below.
  • The administrator's advance also submits a created job (otherwise nothing submits in development), and says so when compute is off.
  • Links are bounded at 1,000 a call and page with a cursor; an invalid cursor is invalid_spec (400), not the uniform job_not_found, because the caller is the authenticated owner of a job that exists.

Deviations from the issue and from round 1's own wording

  • The issue's migration adds failure_detail; migration 0115 already has it, so 0116 adds platform_failure and the round 1 columns instead.
  • A terminal job's callbacks are the uniform refusal (the job token stops at any terminal state), over the issue's "answers its stored outcome".
  • Output keys use the contract's path predicate, not assertValidS3Key (the A3 amendment forbids it for output keys).
  • The issue's "platform failure refunded" tests are replaced by the owner decision.
  • Round 1: commit d24d0575 holds two topics (the failure-word types and the always-sent memory), because the memory item arrived after the types were written and the two edit the same file.
  • Round 1: the invalid_spec sentence is now one, shared (it was two different sentences in the two routes).
  • Round 1: a whole node's memory comes from the rate table because the partition table has no per-node memory field (the coordinator's wording allowed the row's request as the fallback; the row's request is what a per-core or per-GPU job uses).
  • Round 1: the launcher-log cap of 16 MiB is a new Worker constant (LAUNCHER_LOG_MAX_BYTES); the records keep the first 5 MiB. A launcher that legitimately writes more than 16 MiB of log would now fail results_too_large; nemar-process should truncate its own log well below that.
  • Round 1: a follow-up claim that the platform total cannot hold is refused (results_quota_exceeded, the four files still presigned, no declared.json); when the platform's results budget is full, nothing is stored for a failing job either.
  • compute-route-inventory.test.ts first appeared in the third original commit (a shell chain dropped it from the second).
  • Round 2: e2de0fcf holds two topics, the cancel-during-lease rule and the holder-checked release, because both change the same lease code in compute-lifecycle.ts and its tests.
  • Round 2: a job's own memory_mb above its queue's maximum is now sent the maximum and not refused (the hold was priced at what it asked for, so it is charged for memory it is not given). Refusing such a request when the job is created, with a per-queue memory ceiling in the policy, belongs to a later phase.
  • Round 2: the claim stamp is the submitter's own clock (to the millisecond) and not the database's; the lease's five minutes make a skew of seconds irrelevant, and a row whose stamp cannot be read does not hold a cancel back.
  • Round 2: a cancel of a row that has no Tapis job and a live lease now answers cancel_requested with the state still created (it used to end the row at once); the sweep, which runs every 30 minutes, finishes it. A cancel that meets an expired or absent lease is unchanged.

Unverified (nothing here was run against a real tenant or a real R2)

  • Every Tapis shape (the stand-in is built from the published specifications and says so): whether Tapis takes archiveFilter.includeLaunchFiles from the request, what remoteResultInfo holds for a failed job, the webhook retry policy, the --gpus spelling, and whether the memory and the other request fields a job asks for are taken as written.
  • The queue memory maximums (QUEUE_MAX_MEMORY_MB): they come from the public Expanse user guide through the Tapis execution system and are marked unverified there; confirming them with the site is an owner item. Whether Tapis or Slurm enforces them as a refusal at submit is also unverified (the stand-in models no queue limits).
  • Whether a JSON launch specification, with its quotes and braces, survives an environment variable value to the launcher unaltered.
  • Presigned multipart UploadPart (the 5 GB per-file cap stands), R2's error on a locked delete, and a signed checksum header on a presigned PUT (deferred).
  • Whether R2 returns a SHA-256 on a listing for an object the launcher uploaded through a presigned PUT. It does for an object stored with one (Miniflare shows both cases and the tests cover both); where it does not, verification of an output is by size alone, and nothing counts how many.
  • The global logger: the redaction covers what this Worker prints (the access logger and the maintenance refusal line). Cloudflare's own request logs record the URL before any of this code runs and are outside it; the token is bound to the job's nonce, expires a day after the job ends and can only make the Worker read the job back from Tapis, so a leaked one is a nuisance and not a breach. A new route that carries a token in a path must be added to redactSecretPaths.
  • Dropped logs: a console line is not a record (Workers logs may be sampled or dropped under load), so nothing in the lifecycle depends on a line being kept. State, the ledger and the records are in D1 and R2; lines carry job ids and fixed words for people to read.
  • Whether D1 and R2 binding calls count toward the per-invocation subrequest allowance (the tick's cost comment counts them as if they do, about 800 in the worst case against 1,000).
  • Not signed into the presigned PUT: the content length (a note, not done). A launcher can send a body of another size; the verification reads sizes back through the binding and refuses a mismatch.

Open points for phase A7 (tenant reconcile)

  • The 30-minute tick against the policy's default 30-minute reservation wait: a created row can pass its deadline just before a tick, so submit_timeout may land up to a tick later than the policy says.
  • The tick's two terminal lists, UNSETTLED_TERMINAL_SQL and UNCOPIED_TERMINAL_SQL, still order by age with no rotation: a copy that fails on every attempt holds a slot for three days, and ten or more such rows delay newer copies.
  • ORPHAN_ROWS_SQL orders by examined_at, which is static for a terminal row (nothing stamps it), so the order of orphan retries does not rotate; and SET_ORPHAN_SQL records only one orphan per row.
  • Permanently unreadable terminal rows: a terminal row whose Tapis job can never be read again stays owed its settlement or copy (the copy is retried for three days, the settlement for as long as the row exists); A7 should decide what ends that.

Design page sections that need the matching docs PR (the driver writes it)

  • Section 5: the closing paragraph "A failure NEMAR caused ... is refunded automatically" (superseded: no refund; the flag), and the default-grant wording.
  • Section 6: step 4 "Submit to Tapis as the person" (NEMAR owns every Tapis job; the owner is a NEMAR service identity from configuration).
  • Section 7: the state table as shipped (the uploading state is never written by A5), the failure-code paragraph, the refusal table (26 words), "Status updates", "Results" (listings, declared.json, links bounded at 1,000 with a cursor, the verification checks and their reason words, the 5 MiB log copy), "Cancellation" (a running job is charged what it used), and the memory every submit carries.
  • Section 9: the records table (launcher files and tapisjob.out copied after the terminal commit, retried three days).
  • The systems inventory runbook: the two new crons, the Worker variable COMPUTE_RUNTIME_IMAGE (one digest-pinned reference, reported by status), read-only mode and the launcher, and the unverified items above.

Answered in round 1

  1. NEMAR's runtime image is the Worker variable COMPUTE_RUNTIME_IMAGE, one digest-pinned reference (the uri of the image workflow's launch_image), validated when read.
  2. The dataset-selection limits stay constants; datasetLimits is a later policy revision.
  3. The A2 budget crediting of refundJob and adjustPool is a separate small PR; this PR does not touch A2 code.
  4. Read-only maintenance mode allows exactly the three launcher routes; a person's cancel and links stay blocked.
  5. Recipe resolution is phase A6.

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR2041

Version: 0.10.28-PR2041.0fdb447
Commit: 0fdb447


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit 220856d into feature/issue-2005-epic-compute-core Nov 5, 2026
17 of 19 checks passed
@neuromechanist
neuromechanist deleted the feature/issue-2010-phase5-job-lifecycle-webhooks-settlement branch November 5, 2026 01:27

This branch was previously deployed

1 inactive deployment
npm — 0fdb4476 Deployed Nov 5, 2026 by neuromechanist via publish #4186
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