Repository navigation
Phase A8: Revocation cascade and ACCESS gateway attribution - #2046
Merged
neuromechanist merged 20 commits intoNov 5, 2026
Conversation
4 tasks
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2046Version: 🤖 Updated on each push. |
neuromechanist
force-pushed
the
feature/issue-2013-phase8-revocation-cascade-and-access
branch
from
November 5, 2026 05:39
aede7a0 to
297761f
Compare
neuromechanist
merged commit Nov 5, 2026
cf34441
into
feature/issue-2005-epic-compute-core
17 of 19 checks passed
neuromechanist
deleted the
feature/issue-2013-phase8-revocation-cascade-and-access
branch
November 5, 2026 05:40
This was referenced Nov 5, 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.
Phase issue: #2013 (epic #2005). Base: the epic branch. Depends on A5 (#2010, merged). Opus checkpoint requested before merge.
What changed
Ending an account now ends its compute in the same batch as the other credential cascades, and ACCESS is told the pseudonymous gateway user of every Slurm job, once, from a production-only cron. Twenty commits: the four slices the brief names, a by-id revoke test, the ADR and notes and a records-copy test (round 0), nine commits for the Opus checkpoint's round 1, then four for the Sonnet delta's round 2 (both next).
ACCESS_GATEWAY_API_KEYto the issue'sACCESS_GATEWAY_ATTRIBUTES_KEYeverywhere (bindings, status view, pin tests, toml comment block, notes) and pinACCESS_RESOURCE_NAMEabsent from every table ofwrangler-sccn.toml. The status view still reports only presence.0119_compute_access_reports.sqland the Slurm id hook:INSERT OR IGNORE INTO compute_access_reportsis written in the batch of BOTH writers ofslurm_job_id(the live transition and the terminal transition ofapplyTapisJob).computeReleaseStatements(userId)inservices/compute-release.ts, run byfinalizeRevocationandtombstoneUserCascade(two callers; the issue's count).services/access-attributes.ts(sendAccessReport,runAccessReportCron) wired into the 30-minute tick's production block.Rebase
Rebased onto the epic branch at 405ec3b (the A2 follow-up, #2044) with one force-with-lease push of this branch, so every hash in this PR changed. Three conflicts, all in documents, none in code: the ADR index row (both clauses kept, the follow-up's first) at two of this PR's commits, and
implementation-notes.mdsection 7 once (the follow-up's budget semantics kept word for word, with this PR'sfrozensentence in place of the old "has no writer yet" line). The ADR 0118 file merged without conflict: the follow-up's inline superseded markers and amendment paragraph are untouched, this PR's amendment items are not renumbered and nothing was deleted. Re-run after the rebase: typecheck, biome on touched files,migrations:d1-check(pass again, 190 objects, 54 tables), the A8 suites,compute-end-callers,admin-credential-cascade,compute-lifecycle, everycompute-ledger*suite,compute-lifecycle-money,compute-pool-routes, the status, CLI and contract suites,adr-index.unit, and two mutations (the compute statements removed fromfinalizeRevocation: 10 tests fail across the cascade and scan suites; the stop-claiming rule removed: 1 fails).Round 1 (Opus checkpoint) fixes
One commit each, tests first and watched red, each guarded line mutated alone (table below).
Retry only answers that show no processing). Finding 1: a 500, 502 or 504 (a gateway in front of a server that already stored the request), every 3xx (303 is the usual reply to a POST that created something) and 409 (which may mean "already recorded") are no longer retried: they endfailedwithoutcome_unknownand are never resent, like no answer. Only an answer that shows the request was not processed is retried: a 4xx other than 409 (refused), 408 and 429 (busy), 503 (unavailable). An exhaustive test over statuses 100 to 599 holdsclassifyAnswerto that table, and each class boundary was mutated. The file header, ADR item 5, the README clause and notes section 11 say it (the notes' "any non-2xx means nothing was recorded" was false and is gone). At-most-once for transport unknowns stays (ruling a). Owner action: ask ACCESS whetherjob_attributesstores one record per (job id, resource); if it does,classifyAnsweris the one function to switch to retry the unknowns.Leave partner reservations out of driveCancel, thenLeave a partner reservation to its contract). Finding 2: "never reached Tapis" is vacuously true of asource = 'partner'job (NEMAR never writes a launch specification or takes a lease for one). The cascade's SQL cancel, release and stamp now carrysource <> 'partner'and its intent statement skips a partner reservation with no Tapis job; A5'sdriveCancelreturns before it can end one, andCANCEL_ROWS_SQLleaves such a row out (likeCREATED_ROWS_SQL) so it cannot hold a sweep slot for ever. This is a small A5 change with its own tests incompute-lifecycle.test.ts. A partner job that HAS a Tapis job is still cancelled there. The cascade test covers a reservation, a bound partner job and two already-cancelled unsettled reservations (one with an open hold, one released), and the docblock says so.Pin compute to the credential batch). Finding 3: for each caller, a trigger makes one compute statement abort; the test asserts sessions, the mask (tombstone), compute and the pool freeze are all unchanged and the account is still approved, drops the trigger, retries, and asserts all ended. On bun:sqlite and on Miniflare's D1. Mutated: a seconddb.batchfor compute infinalizeRevocation, and intombstoneUserCascade.Report the ACCESS resource name and log waits). Finding 4:GET /admin/compute/statusandnemar admin compute statusreportresource_name_configuredbesidekey_configured(presence only; optional in the open schema so an older Worker still parses, and the CLI prints "unknown (this Worker does not report it)" then), the CLI says "ACCESS reports wait until both are set", and the tick logs one error-level line whenever any row waits for the key or the resource name. Route, CLI, contract and redaction tests updated.Bound the wait for a submission time). Finding 5: a row whose record has no scheduler submission time endsfailedwithno_submit_timeseven days after the Slurm id first showed, so A7 lists it and it stops returning to the ten-row window every hour. Tested with time moved in SQL, and both boundaries mutated.Hold the two callers to the code by a scan). Finding 6:COMPUTE_END_CALLERSandCOMPUTE_END_EXCEPTIONS(the role demotion and the emailed key regeneration, each with a reason) incompute-release.ts, held to the code bycompute-end-callers.test.tson the syntax tree: through aliased and namespace imports, namespace element access, local aliases (including chains and aliases declared before what they copy), destructuring and value-passing uses; a dynamic import, a re-export and a module-level reference are refused as unfollowable; a function counts as satisfied when it runs the set or delegates, at any depth, to one that does; "ends every credential" is found by what the SQL does (including constants and helpers resolved by value), not by name. It does not depend on PR Phase B5: OIDC revocation cascades and back-channel logout #2045. Planted files show each rule fires. One sentence added to AGENTS.md's "Revocation cascades, always" rule, appended after the docs and private caller sentence so a conflict with B5's paragraph is trivial.Stop claiming reports after the tick budget). Finding 7: the tick stops claiming new rows 20 seconds after it starts (ACCESS_REPORT_TICK_BUDGET_MS; injectable clock in the test); unclaimed rows staypendingfor the next tick; the tick result and log line countskipped.Record the round 1 decisions in ADR 0118): ADR items 1, 2, 3, 6, 7, 8, new item 9 and the open points; notes section 11. The key-revocation docblocks (compute-release.ts,docs-auth.ts) now say a stolen key's already-submitted jobs keep running until a cancel or an administrative revoke.Round 2 (Sonnet delta) fixes
One commit each, tests first and watched red, each guarded line mutated alone.
Stop claiming after the first unknown outcome). Finding 1: the tick kept claiming rows after anoutcome_unknown, so a bad minute at ACCESS (a deploy's 502, a 500, a 301 from a wrong address) permanently ended up to ten reports at once. The tick now stops claiming after the FIRSToutcome_unknownand counts the rest asskipped(they staypending, attempts 0, no lease), so a systematic fault loses one report per 30-minute tick and the error-level line has a margin to be noticed in. Tested with a 502, a 500, a 308 and a 409 on every request and with no answer at all (exactly onefailed, fivependingwith attempts 0, and the next healthy tick sends the five); arefused/busy/unavailableretry outcome does NOT stop the tick (503, 429 and 400 each on four rows: all four are retried). ADR item 5 and notes section 11 say it.Log persistent refusals at error level). Finding 3: a persistent 401, 403 or 404 showed only info-levelretrylines for about 79 hours. The tick now counts pending rows with three or more attempts and a retry class (persistent=N, fixed words and counts only) and logs one error-level line on EVERY tick while any exists, whether or not a row is due (the count is taken at the end of every tick, due rows or none). Tested over three refused attempts (info, info, error, and the error line stays on a tick with nothing due), over what does and does not count (two attempts, a sent row, a failed row,no_submit_time,unconfigured), with no key, address or id in the line; mutated: threshold 2 and 4, the class filter, the state filter, the count skipped when nothing is due, the log ignoring it.Widen the credential scan, scope its names). Finding 2. The token rule now acceptsuser_idequal to a placeholder (?,?1),IN (...)or a subselect anywhere in the WHERE clause, in either order of the predicates, with the table double-quoted, backtick-quoted, bracketed, schema-qualified orOR-prefixed, in any case; a WHERE clause that also names one key (id,api_key_hash,api_key_prefix, qualified or not) is a one-key revocation and is NOT an end. The session rule also countsDELETE FROM web_sessions WHERE user_id ...(a delete of expired sessions or of one session by cookie is not an end). Every missed shape the reviewer planted, and each shape listed above, is planted and shown caught; the one-key shapes are shown not to be. A helper is now resolved in the module it is imported from (the file's own named, aliased and namespace imports, and its own top-level declarations, throughresolveImport), never by its bare name: a helper calleda, or one named likerevokeDocsCredentials, in another file no longer makes an unrelated function an "end" (planted, and the real tree's result is unchanged). Known limit, documented in the scan's header: a name reached through a barrel file or an object's method is not followed, and SQL assembled from parts the scan cannot fold is not recognised. The three over-promising claims (AGENTS.md, thecompute-release.tsheader and theCOMPUTE_END_CALLERSdocblock, ADR item 9 and the notes) now say "through the statement shapes the scan recognises" and name them; the scan is described as a tripwire for the shapes the Worker uses, not a proof. (The mutation that drops the digits of?\d*is an equivalent mutant: the pattern is a prefix match.)Record the round 2 points in ADR 0118): the persistent-refusal sentence, the D4 reservation points and the two accepted residuals, in the ADR amendment and notes section 11.Hook (the issue's "fill #2010's hook")
A5 left an after-commit function (
noteSlurmJobId, empty) and not a place inside a batch, and the live write was a single.run(), so there was no batch to add to. I did what the brief allows: the live transition became a two-statement batch (the transition, then the report insert) when the record carries a Slurm id, andcommitTerminal's batch gained the same insert. The empty hook and its callercallSlurmHookare removed. The insert reads the JOB ROW (SELECT id FROM compute_jobs WHERE id = ?1 AND slurm_job_id IS NOT NULL), so it is idempotent and a lost writer that runs it adds nothing a winner did not.The guarantee towards ACCESS (decision for the Opus checkpoint)
At most once for every outcome the sender cannot judge. What it is: the row is claimed by ONE conditional UPDATE (
pendingtoattempting, a lease stamp, the attempt counted) BEFORE the POST, so two overlapping ticks cannot both send; the POST is made between two statements and never inside a batch; the outcome is written only under the sender's own stamp. Only an answer that shows the request was NOT processed is retried: a 4xx other than 409, 408, 429 and 503, with an hour's delay doubling to a day andfailedafter 8 attempts. Every other outcome is treated as no answer and ends the rowfailedwithoutcome_unknown, which no code sends again: no answer at all (a timeout, a lost or refused connection), a 500, 502 or 504, any 3xx, a 409, and a sender that died holding its 10-minute lease.What it is not: a promise that every job is reported. A report that may have been recorded and is not known to have been is LOST and never doubled. The unavoidable residual, stated plainly: (1) a request ACCESS recorded whose answer never arrived (or arrived as one of the unknown statuses) is
failedfor a person to resolve; (2) a Worker that dies between the claim and the POST also endsoutcome_unknownthough nothing left (the safe direction); (3) a duplicate can still happen only if ACCESS records a request and then answers with one of the statuses that read as "not processed" (a 4xx other than 409, 408, 429 or 503), which a server does not normally do; a 503 that a proxy answers after the upstream had processed the request (an upstream reset behind a gateway) would do it, which is rare and accepted; (4) if the runtime stopswaitUntilwork about 30 s afterscheduled()returns, the 20 s budget plus a 15 s POST can exceed it, and the reaper then ends the claimed rowoutcome_unknown(lost, never doubled). I chose at-most-once because the design page says a second report double-counts a person and nothing about the interface (unverified) promises that a duplicate is ignored. The tick also stops claiming after the first unjudgeable outcome (round 2), so a systematic fault at ACCESS loses one report a tick, not ten. Owner action (ruling a): ask ACCESS whetherjob_attributesstores one record per (job id, resource); if it does,classifyAnsweris the one function to switch to retry the unknowns.The issue's migration lists three states; the claim needs a fourth (
attempting) and a lease column (claimed_at), as the driver's brief preferred. Two more CHECKs keep them honest (attemptingif and only if a lease stamp;failedalways has a word).Every path that ends a credential today
Found by grep of the writers of
tokens.revoked_at,web_sessions.revoked_atandusers.deleted_at. "Compute" iscomputeReleaseStatements.POST /admin/revoke/:usernameandPOST /admin/revoke/by-id/:id(finalizeRevocation)mailReleaseStatements, scope all)admin-credential-cascade.test.ts(sessions and grants; compute: "ends the account's compute in the same batch"),compute-release-cascade.test.ts(both routes, the lifecycle, the sweep),mail-ticket-cascades.test.ts,private-site-cascade.test.tsDELETE /admin/users/by-id/:id(owner soft delete,tombstoneUserCascade)admin-credential-cascade.test.ts(tombstone block, compute),compute-release-cascade.test.ts,user-soft-delete.unit.test.ts,mail-ticket-cascades.test.ts,private-site-cascade.test.tssweepCiTestAccounts(non-production sweep of the live tests' accounts)onlyIfEmail: every statement is guarded by the maskcompute-release-cascade.test.ts("scheduled sweep's call", and each release statement alone under a false guard),test-account-sweep.test.tsPOST /admin/users/:username/role(demotion)admin-credential-cascade.test.ts("a demotion does NOT end compute", mutation: add it to the batch),compute-release-cascade.test.tsDELETE /auth/keys/:id,DELETE /auth/keys/current, ownerDELETE /admin/users/:username/keys/:id, emailedGET /auth/confirm-key-regeneration(revokeDocsCredentials)compute-release-cascade.test.ts(owner route leaves jobs and pools alone),admin-keys-routes.test.tsPOST /auth/logoutprivate-site-cascade.test.ts,docs-auth-routes.test.tsThe caller-count sentences are updated where they apply:
ticket-assignment.ts(mailReleaseStatementskeeps its three callers; the compute counterpart has two, and a demotion is not one) anddocs-auth.ts(therevokeDocsCredentialsdocblock now says two of its three "end every credential" paths also run the compute statements). TheDOCS_GRANTS_PURGE_SQL(five callers) andPRIVATE_GRANTS_PURGE_SQL(three callers) counts do not change: this phase adds no caller of either.What to look at (Opus checkpoint)
finalizeRevocation(routes/admin/users.ts) andtombstoneUserCascade(db/user-tombstone.ts, throughstep, so the mask guard is appended).compute-release.tsis the whole of the logic.driveCancelalready proves safe (A5 amendment item 4): no Tapis job, nolaunch_spec_digest(a submit whose answer was lost writes it BEFORE the call, and a Tapis job may exist that no search can see) and no live submit lease. Ending any other job in SQL would release a hold for a job that then runs. Those jobs recordaccount_endedand the intent, and the retried sweep ends them (tested with a real lost submit answer and with a revoke that lands while a submit is in flight).?placeholders; each is run alone under the real mask guard (MASK_APPLIED_SQL, now exported fromuser-tombstone.ts) and changes nothing.compute-access-reporter.test.ts) asserts no function that runs.batch(also makes a network call in the lifecycle, the reporter, the release statements and the tombstone cascade, and was shown to fire on a plantedfetch.Decisions inside the issue's freedom
COALESCE), so a person's earlier cancel staysuser.retention.recordsYearsread in SQL (default 7 when there is no policy row), ascommitTerminaldoes.frozen = 1on every pool whose holder is the account; the platform's and partners' pools are never reached; nothing unfreezes (hand-off to Epic D, ADR item 3).unconfigured,no_submit_time,no_gateway_user,refused,busy,unavailable,outcome_unknown(declared once inshared/compute-state.ts, compared by test).failedwithno_gateway_userat once. A record with no scheduler submission time waits (no_submit_time), costs no attempt and goes to the back of the line for an hour.submittimeis sent as ISO 8601 UTC with aZ;debug: trueis a body field outside production only. Both are UNVERIFIED (below).Deviations from the issue
attemptingand aclaimed_atcolumn in the migration, and two extra CHECKs (driver's brief).driveCanceland the sweep's list (round 1, finding 2), a small change to merged A5 code with its own tests.ACCESS_RESOURCE_NAMEpresence is now part of the status answer and the CLI output (round 1, finding 4), where the brief for the rename said to keep the status view's behaviour.MASK_APPLIED_SQLis exported fromuser-tombstone.ts(a rename of a local constant; no behaviour change) so a test runs each statement under the real guard instead of copying it.access-attributes.tsalso holds the report row's insert, socompute-lifecycle.tsimports it;compute-release.tsimportsSUBMIT_LEASE_MINUTESfromcompute-lifecycle.ts(no cycle: the Worker entry bundles, and a fresh process importing the tombstone module first loads).Mutation evidence
Each run alone, the test file as its own argument, the mutation confirmed applied, then restored. Counts are the tests that failed when it was run; the two caller rows were re-run against the final test files, and a few test files gained cases afterwards, so the other counts are lower bounds.
ACCESS_RESOURCE_NAMEset in a toml[vars]compute-switches-flag.test.ts1OR IGNOREcompute-access-reports.test.ts5 (replay throws on the primary key, on both engines)commitTerminaljob_idnullable /attemptingremoved /sent_iffdropped / index no longer partial /failed_says_whydroppedcompute-access-reports-migration.test.ts1 eachfinalizeRevocation(final run)compute-release-cascade.test.ts8 andadmin-credential-cascade.test.ts1tombstoneUserCascade(final run)compute-release-cascade.test.ts2 andadmin-credential-cascade.test.ts1admin-credential-cascade.test.ts1launch_spec_digest IS NULLterm / without the lease termCOALESCE/ release without the open-hold checkcompute-access-reporter.test.ts2 / 2 / 1 / 1debug/ neverdebugstate = 'pending'/ newest due first /unconfigurednot recorded / attempts not countedfetchplanted in a batch functionscheduled()/ self-fence removed / wiring entry removedcron-sweep-wiring.test.ts2 /cron-dev-safety.test.ts2+ /cron-sweep-wiring.test.ts2compute-access-reporter.test.ts2 / 2 / 3 / 2 / 2 / 2 / 6 / 2 / 10driveCancelwithout the partner return / sweep list without the partner term / the partner return moved above the Tapis-job checkcompute-lifecycle.test.ts1 / 1 / 1compute-release-cascade.test.ts1 eachdb.batchafter the credential batch, infinalizeRevocation/ intombstoneUserCascadecompute-release-cascade.test.ts1 / 1unconfigured/ CLI wait line hidden / CLI shows unknown as no / schema field requiredcompute-status-route.test.ts4 / 1,compute-access-reporter.test.ts1,admin-compute-status-cli.test.ts2 / 1,compute-admin-contract.unit.test.ts1compute-access-reporter.test.ts3 / 2 / 1finalizeRevocation/ fromtombstoneUserCascade/ a new function that revokes every key and sessioncompute-end-callers.test.ts4 / 4 / 1compute-end-callers.test.ts1 eachskippedoff by one />=to>/>=to>= budget - 1compute-access-reporter.test.ts1 / 2 / 1 / 1 / 1skippedoff by one / stop on a retry as wellcompute-access-reporter.test.ts1 eachpersistentcompute-access-reporter.test.ts2 / 2 / 1 / 1 / 2 / 1INdropped / subselect dropped / one-key predicate dropped / qualified id not seen / hash predicate dropped / case sensitivity / quoted tables not seencompute-end-callers.test.ts2 / 1 / 3 / 1 / 2 / 1 / 2compute-end-callers.test.ts1 / 1 / 3Gates
Run in this worktree after round 2:
bun run typecheck: pass (also run by the pre-commit hook on every commit).bun run migrations:d1-check: not re-run, the migration is unchanged since the one run in round 0 (pass: "All migrations applied on real D1", catalog matches bun:sqlite, 190 objects, 54 tables).bunx biome check src shared backend/src: 5 errors and 1 warning, all inbackend/src/services/zenodo.tsanddoi-orcid-discovery.ts, which nothing here touches (baseline). Every.tsfile this PR touches is clean (38 files, warnings only, all in older test code).compute-access-reports-migration15,compute-access-reports9,compute-access-reporter45,compute-release-cascade20,compute-end-callers15,admin-credential-cascade13,compute-lifecycle107,cron-sweep-wiring194,cron-dev-safety70,compute-switches-flag39,compute-status-route21,admin-compute-status-cli10,compute-admin-contract.unit19,compute-state.unit59,private-site-cascade28,mail-ticket-cascades10,compute-source-scan4,compute-ledger63,adr-index.unit8. The round 1 run also coveredtest-account-sweep,admin-revoke-route,user-soft-delete.unit, the othercompute-lifecycle-*,compute-jobs*,compute-webhook,compute-job-callbacks,compute-full-path,compute-route-inventory,admin-keys-routesanddocs-auth-routes; round 2 changed none of what they read.bun testand CI, andtest/account-copy-parity.test.tsstays a known baseline failure.Unverified (nothing here has seen the real interface)
The header that carries the key (
ACCESS_KEY_HEADER, set toXA-API-KEY, the one ACCESS accounting interfaces use; a guess), the body's field spelling and the time format (ACCESS_BODY_FIELDS,accessSubmitTime), whetherdebugis a body field, what the interface answers for a duplicate, whether it accepts the pseudonymous gateway user, and the resource name. Each is one constant, and the interface may want further headers (for example a resource header): the owner checks when the key is issued. The tests pin the issue's spelling and say so, and the ACCESS stand-in (helpers/access-standin.ts, a realBun.serve) says no response was recorded from the real service.Open points for later briefs (rulings of round 1, nothing to decide here)
createdwith its hold open, and a later partner bind is refused becauseBIND_TAPIS_JOB_SQLrequirescancel_requested_at IS NULL; (c) a partner that launches under an ended account's reservation runs unchallenged under a frozen pool, because the cascade records no intent on a reservation (it fails open): consider recording the intent so the bind refuses (fail closed); (d) a way to list stuck reservations for A7 (the status view does not count them). Earlier text of this bullet: supply a pseudonym for account-less partner jobs (for example per client and Tapis owner), because such a job endsfailedwithno_gateway_usertoday (ruling b); and "a partner reservation of an ended account": the cascade anddriveCancelnow leave such a reservation as it is (hold open, row live), so the partner contract must say how it ends and who releases its hold.frozenfrom the access state, so that lifting one cause does not lift the other (ruling c).failedreport rows by word (outcome_unknown,no_gateway_user,no_submit_time,refused,busy,unavailable), and add an owner-only re-queue that requires an explicit "confirmed not recorded at ACCESS" acknowledgement (ruling d). Also open for A7, both pre-existing in A5: the cancel queue can stall becauseCANCEL_ROWS_SQLtakes the oldest ten rows, and staging never cancels at Tapis.job_attributesstores one record per (job id, resource) (switchesclassifyAnswerto retry unknowns), and check the key's header name and any further headers when the key is issued.For the docs repo ("when merged")
Design section 7, cancellation and revocation, as shipped: "Revoking or deleting an account records the cancellation of every live job in the same batch as the other credential cascades: a job that provably never reached Tapis (no Tapis job, no launch specification written, no live submit lease) is cancelled there and its hold released; every other live job records the reason
account_endedand the intent, and the retried sweep cancels it at Tapis and charges what it used; every pool of the account is frozen, and nothing unfreezes it but a later grant of compute access. A role demotion and a key revocation do not end compute." Design section 9, attribution: "The batch in which a job's record first shows a Slurm id inserts a pending report row. The 30-minute tick sends it (production only, ten rows a tick): the row is claimed by a conditional update before the POST, an answered refusal is retried with an hour's delay doubling to a day and the row is failed after 8 attempts, and a request with no answer, or a sender that died, ends failed for a person to resolve and is never sent again by code. The body carries the Slurm id, the scheduler's submission time, the resource name and the stored pseudonym, never a name or an email;debugis added outside production." Systems inventory runbook: "runAccessReportCron, every 30 minutes, production only, ten due rows, log prefix[access-report], secretsACCESS_GATEWAY_ATTRIBUTES_KEYandACCESS_RESOURCE_NAME;failedrows need a person."