Skip to content

Compute fixture nm099996 eligible outside production (card S1) - #2164

Merged
neuromechanist merged 4 commits into
feature/portable-compute-epicfrom
feature/pc-s1-fixture-eligibility
Nov 14, 2026
Merged

neuromechanist merged 4 commits into
feature/portable-compute-epicfrom
feature/pc-s1-fixture-eligibility

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Outside production, the pipeline eligibility predicate now lets the compute fixture nm099996 through (never an exemplar, every other term still applies), and a Zarr recipe job's --zarr-base names the environment's own Zarr host. Production is unchanged: its three statement texts are pinned character for character against the base commit.

The widened predicate is a second, precomputed text (PIPELINE_ELIGIBLE_SQL_NONPROD); the claim, the candidate listing, the dispatch re-check and the dry run pick the text with isNonProductionEnv(env), so an unset or misspelled ENVIRONMENT is production. isPipelineEligible, failedPipelineTerms and loadPipelineRow take the environment with no default.

recipeZarrBase (shared) gives the production host unless the Worker is outside production and ZARR_HOSTNAME is a bare lower-case host name; recipeZarrArguments takes the base as an input and refuses any other origin. The host comes from the Worker's configuration only.

Functions touched on files that cards S6 and Q0b also touch: claimable, CLAIM_RUNNER_JOB_SQL (now built from claimSql), claimRunnerJobs and rebuiltSpec in compute-runner-queue.ts; recipeZarrArguments (new zarrBase input and a check) in shared/compute-recipes.ts.

Gates run, each alone and in sequence: bun run typecheck, bun run lint, bun run migrations:d1-check (all pass); the five acceptance suites (223 pass, 0 fail); compute-route-inventory and zarr-source-check (91 pass); the related compute suites, including the two switch flag tests and the local stack (377 pass).

Mutations, each failing the new suite and then reverted: isNonProductionEnv(env) replaced by true in pipelineEligibleSql; the is_exemplar clause dropped (SQL form and TypeScript form separately); recipeZarrBase returning ZARR_HOSTNAME without the check; plus the claim text, the candidate text, the term list and the Zarr base forced to the widened or non-production branch, a production term touched, one form widened alone, and the base check removed.

Not run: the full bun test (about 80 minutes; the epic gate of card S2 owns it). The fixture declaration list in datasetId.ts is not touched (card S1a).

Existing tests changed only for the new signatures: compute-pipeline-queue.test.ts (29 call sites pass env instead of env.DB), zarr-source-check.test.ts (one zarrBase input), compute-pipeline-eligibility.test.ts and compute-runner-jobs.test.ts.

Card S1.

recipeZarrBase gives the production host unless the Worker is outside production and ZARR_HOSTNAME is a bare lower-case host name. recipeZarrArguments takes the base as an input; recipeJobSpec derives it from the Worker bindings. Tested: runner-jobs, runner-queue and zarr-source-check suites.
A second, precomputed pipeline predicate widens the real_dataset term to name nm099996 (never an exemplar). The claim, the candidate listing, the dispatch re-check and the dry run pick the text by ENVIRONMENT through isNonProductionEnv; unset or misspelled is production, whose three statement texts are unchanged (pinned against the base commit). Tested: new compute-fixture-eligibility suite and the pipeline, queue and runner suites.
@github-actions

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR2164

Version: 0.10.34-PR2164.39f28c2
Commit: 39f28c2


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit 25f3dab into feature/portable-compute-epic Nov 14, 2026
1 check passed
@neuromechanist
neuromechanist deleted the feature/pc-s1-fixture-eligibility branch November 14, 2026 16:46

This branch was previously deployed

1 inactive deployment
npm — 39f28c2c Deployed Nov 14, 2026 by neuromechanist via publish #4453
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