Repository navigation
S3c: fail closed on a Tapis run while Tapis is unconfigured - #2168
Merged
neuromechanist merged 5 commits intoNov 14, 2026
Merged
neuromechanist merged 5 commits into
neuromechanist merged 5 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2168Version: 🤖 Updated on each push. |
neuromechanist
deleted the
feature/pc-s3c-tapis-unconfigured-fail-closed
branch
November 14, 2026 17:45
This was referenced Nov 14, 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.
Card S3c of the portable compute plan: with
COMPUTE_ENABLEDon and no usable Tapis configuration, a pipeline run whose executor istapisis now refused withtapis_unconfigured(503) before any stamp, hold, ledger entry, job row, record or audit row is written.The defect (S3a inventory, G1, G2 and G4): with the
pipelinespool funded and no Tapis credential, a run claimed a stamp, took a hold and made a job that no submit could send, because the submitter answersunconfiguredbefore it looks at how long the job has waited. Only an administrator's cancel released the hold.What changed:
tapisSubmitConfigured(env)inbackend/src/services/compute-lifecycle.ts(the one definition of "Tapis is usable",tapisAccess(env, TICK_READ) !== null, no request); the wordtapis_unconfigureddeclared once (contract status 503,PipelineRefusal, the route's sentence,STOPS_A_RUN,ENDS_THE_RUN); a check indispatchPipelineJobright after the runner-switch check (every caller: the route,dispatchEligible, the daily dispatcher) and a check in the route right aftercompute_disabled(a clean answer before the stamp sync and the audit row); a Tapis dry run'sconfiggainstapis_configured, and the CLI's needs line saysTapis configuredorTapis NOT CONFIGURED.Unchanged by construction: with Tapis configured every answer is as before, except the one
tapis_configuredkey of a Tapis dry run (the schema is open, so an older CLI ignores it). A runner run never calls the predicate and its dry run has no new key. No switch is added or touched,backend/wrangler-sccn.tomlis not edited,createJob, the ledger, the submit and cancel paths, the tick and the runner queue are untouched.P1 of S3a before the fix, over the real admin router with the pool funded and Tapis unset: 201,
submit: "unconfigured", one ledger row, one job, one stamp, one audit row and two records written. After the fix: 503tapis_unconfiguredwith the declared sentence, and the snapshot (ledger, jobs and stamps row counts,compute.pipeline.runaudit rows, every pool's totals, the records bucket listing, requests the Tapis stand-in saw) is equal.Gates run at the head, all passing:
bun run typecheck;bun run lint;bun test backend/test/compute-pipeline-tapis-unconfigured.test.ts backend/test/compute-pipeline-routes.test.ts backend/test/compute-pipeline.test.ts backend/test/compute-pipeline-dispatch.test.ts backend/test/compute-pipeline-caps.test.ts backend/test/compute-runner-jobs.test.ts backend/test/compute-tenant-ceiling.test.ts backend/test/compute-source-scan.test.ts test/compute-admin-contract.unit.test.ts test/admin-compute-pipeline-cli.test.ts(395 pass, 0 fail);bun test backend/test/compute-switches-flag.test.ts backend/test/compute-route-inventory.test.ts(64 pass, 0 fail); the leak check ofcards/README.mdover every added line (prints nothing).Mutations, each reverted with
git status --porcelainclean afterwards: the service check deleted fails (c) both cases and (d) both cases; the route check deleted fails (a) (the audit row appears) and (b) (200, not 503); the predicate returningtruefails (a) to (d);tapis_unconfiguredremoved fromSTOPS_A_RUNfails the two-dataset case of (c). Also: the dry run's key dropped fails (e) and the Tapis dry run key list incompute-runner-jobs.test.ts; the CLI needs line's Tapis part dropped fails its CLI case;tapis_unconfiguredout ofENDS_THE_RUNfails the pinned membership test; the Tapis check applied to a runner run too fails the new runner case.Two edits beyond the card's literal list, both pinned lists that must gain the new key: the Tapis dry run's exact config key list in
backend/test/compute-runner-jobs.test.tsgainstapis_configured, andtest/admin-compute-pipeline-cli.test.tsgains two cases (the live refusal and the needs line) and one assertion that a runner dry run says nothing of Tapis.Not run: the full
bun test(about 80 minutes); would check it at the epic gate (card S2). Card Q0b and S6 touch some of the same files; the second to merge takes the base in and reruns its gates.Card: S3c.