Repository navigation
Compute review fixes: contracts, reporting, CLI, docs (B) - #2069
Merged
neuromechanist merged 15 commits intoNov 7, 2026
Merged
neuromechanist merged 15 commits into
neuromechanist merged 15 commits into
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR2069Version: 🤖 Updated on each push. |
neuromechanist
merged commit Nov 7, 2026
fcaa76a
into
feature/issue-2005-epic-compute-core
31 checks passed
8 of 9 tasks
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.
Review fixes for PR #2063 (epic #2005), implementer B: contracts, reporting, CLI, docs and CI hygiene. Targets the epic branch, not
dev. Money loops and the compute services are implementer A's separate PR.Items
slurm_job_id IS NOT NULLandremote_submitted_atin the quarter (UTC), what the reporter sends; comment and help fixed. Both reviewer scenarios tested.ComputeRecordResponseSchemadeclaresprovenance_status,manifest_status,retention_until,launcher_files(open, optional);recordprintsmissingandunreadableapart from a present empty value. A provenance that reads but is not an object is nowunreadable, notok.settledandopen_hold_milli; totals and by-pool carryunsettledandopen_hold_milli; table and CSV print them.prerequisites(callback secret, API base address, pipelines account, policy, people and pipelines pool grants) as booleans,reconciliation.paused, andattention(a record of counts built from a one-line-per-count table).printStatusandSTATUS_HELPupdated, including the ACCESS resource-name line.bindings.ts,compute-tokens.ts,.rules/revocation.mdand ADR 0118 (A5 item 5), with the safe rotation.COMPUTE_PIPELINE_REFUSAL_STATUSis derived from the ledger's table plus the pipeline-only words and typed against the union; the route's sentences are checked againstPipelineRefusalat compile time and there is no 422 fallback;run_failedadded (500).COMPUTE_PIPELINE_STAMP_STATESis now the registry's own list.compute-job-flags.ts); the cast is gone. ThejobViewside is for A (see below).shared/contract/compute-responses.tsholds open schemas for cancel, links and the observer answer; real route output is parsed in tests.sacctRowsandsettlementFailedare nowsacct_rowsandsettlement_failedon the wire (the observer reads only the status code, checked in nemar-processobserve.py; nothing else consumes them). The rename is done in the route, not the service.LAUNCHER_CALLBACK_REleft unchanged: the launcher usesAPI_BASE_URLwithout a prefix, and the miss is in the safe direction; documented and pinned by a test.truncated; route, contract and CLI.exec.json.tmpl, setsNEMAR_PROCESS_DIRandNEMAR_REQUIRE_PROCESS_QUEUES=1; the queue drift test fails instead of skipping when required. Theflakyseam is declared incompute-jobs.test.ts.compute-sweep.test.tsis left as a simulated interleaving, now labeled: forcing a real two-run order is not deterministic.api/compute.tsheader,ACCESS_REPORTS_HELP, ADR decisions 8 and 10, the ADR index (A6, A7, Launch specification: shell-inert wire encoding (contract follow-up A1c) #2043, 2026-11-06 and the owner decisions), implementation notes,heldSql, and the Epic D mail-link hand-off (README and a comment on website#495).compute-pipeline.ts: A owns that file; routed in the report.Tests and mutation checks
Targeted only; the full suite was not run.
Each behavior change has a test through the real route or the real CLI, and a mutation run (the mutation was confirmed applied by
diffbefore the run, then reverted):remote_submitted_at/slurm_job_idterm back tosubmitted_atcompute-reporting-routes2 failnoneformissing; Worker never saysunreadableadmin-compute-jobs-cli1 fail eachopenHold = 0; unsettled never countedcompute-reporting-routes2 fail eachmismatch->flag_overruncompute-reporting-routes1 failsentcompute-status-route3, 1, 1, 1 failPipelineRefusal; droprun_failed's status; set it to 422tscfails (2 errors);tscfails; contract unit test 1 failsacctRows; revertssettlementFailed; dropstotal; renames the cancel outcomecompute-observer7 fail; 1 fail;compute-person-responses1 fail eachLIMITwithout+1;truncatedalways falsecompute-reporting-routes1 fail;admin-compute-jobs-cli1 failNEMAR_REQUIRE_PROCESS_QUEUES=1the queue test fails (2 fail); with the real template from nemar-process it passesCounts on the final head: backend
compute-reporting-routes23,compute-status-route23,compute-pipeline-routes36,compute-observer51,compute-person-responses3,maintenance42,compute-queues7,compute-e2e3,compute-route-inventory5,compute-jobs-admin-routes7; rootadmin-compute-jobs-cli30,admin-compute-status-cli11,admin-compute-cli27,admin-compute-pipeline-cli33,compute-admin-contract.unit37,compute-responses-contract.unit6,compute-contract.unit454,contract-schemas63,adr-index.unit10. All pass.bun run lintandbun run typecheckare clean on the head (commits usedHUSKY=0);actionlintreports the same 3 findings with and without this change.Notes
result_upload_failedrests on the code path and the review, not on a run.nemar admin docs(checked with the systems inventory), but the pages that exist say nothing about compute.