GeezerVison is showing github.com — id(ci): just-recipes.json drifts from the justfile with no guard — crash-gate-sampled's doc is already stale on main, and a recipe added without `just lockfiles` silently gets no nix app · Issue #2729 · developing-today/code
id(ci): just-recipes.json drifts from the justfile with no guard — crash-gate-sampled's doc is already stale on main, and a recipe added without just lockfiles silently gets no nix app #2729Labels app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/ciCI/CD pipelines, workflows, and build automationpriority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests DescriptionProblem
pkgs/id/flake.nix generates every nix run .#<recipe> app from the checked-in
pkgs/id/just-recipes.json (justRecipes = builtins.fromJSON (builtins.readFile ./just-recipes.json),
flake.nix:255; apps generated at flake.nix:727-728 from publicRecipes, flake.nix:276-278).
pkgs/id/AGENTS.md makes the sync a rule: when adding or modifying justfile commands, add the
corresponding nix app — which in practice means re-running just lockfiles
(justfile:185-203, just-recipes recipe) so the JSON matches the justfile.
Nothing checks that sync, and the file has already drifted on main.
Evidence (verified this run, main a0625480bc9e692243b384e0edcb5cc96bc4fa27)
Regenerated the dump on the laptop (just 1.58.0, just --dump --dump-format json in
pkgs/id/, laptop clone at the same HEAD) and compared parsed JSON against the checked-in file:
recipes only in fresh: []
recipes only in checked: []
recipes differing: ['bench', 'crash-gate-sampled']
Why it matters
Today the drift is one stale description. The same silent path turns a future justfile change
into a missing or wrong nix app: a recipe added without just lockfiles gets no
nix run .#<recipe> at all, and a recipe whose parameters change keeps the old app signature —
exactly the Nix/justfile desync pkgs/id/AGENTS.md warns against, with no signal anywhere.
Acceptance criteria
-
pkgs/id/just-recipes.json is regenerated so crash-gate-sampled's doc matches the
current justfile (and any other semantic drift at the time is resolved).
- An automated check (flake check or CI job, in the style of the existing id checks)
fails when the justfile and just-recipes.json disagree on the semantic recipe fields
(presence, doc, parameters, dependencies, private flag).
- The check normalises the known generation noise — the absolute
source path and
just-version serialisation differences such as the bench body nesting — so it is
green on a correctly regenerated file regardless of which machine/just produced it.
- The check is demonstrated failing on the pre-fix tree (stale
crash-gate-sampled doc)
and passing after regeneration.
Related, distinct: #1797 (justfile formatting in CI / build hygiene) — this issue is only the
generated-file drift guard. Activityadded kind/ciCI/CD pipelines, workflows, and build automation task/triageQueue packet kind: verify, reproduce, and route this item app/idPackage/app: id (pkgs/ or apps/ in this repo) effort/sSmall: expected under 2 hours of work on Oct 30, 2026dezren39 commented on Oct 30, 2026 dezren39 commented on Oct 31, 2026 🤖 Agent note · parked — CI verification pending
- Agent: repo-worker-code (openchamber scheduled lane)
- Session / ID: queue task 4094 · ses_e5e6dcfb20bffeq9s2cEgWfiYi
- Progress: Review found false greens for parameter/dependency fields and projection errors. Regression fixes and targeted tests are committed and pushed on PR fix(id): guard just-recipes.json against justfile drift (#2729) #3054, head
1de77d40b98463ed5e1a587e7de3b0968d73c7d8; local shell regression tests and Nix drift check passed.
- Resume: Review the new commit and verify CI/checks on this head before merging; no GitHub checks were reported at park time. The id workflow previously appeared not to run on PRs. Branch
queue/4094-2729-just-recipes-drift, worktree /home/user/git/fleet/4094-2729-just-recipes-drift. At attempt cap; fleet cap repair may be needed.
dezren39 commented on Oct 31, 2026 🤖 Agent note · test evidence correction
- Agent: repo-worker-code (openchamber scheduled lane)
- Task: queue task 4094, PR fix(id): guard just-recipes.json against justfile drift (#2729) #3054 head
1de77d40.
- Correction: The Nix guard passed before the regression tests were wired into the flake. A subsequent Nix build failed before a test-script fix; a final Nix rerun was not yet confirmed at park time. Standalone regression test and guard passed. Verify the final Nix build before merging.
dezren39 commented on Oct 31, 2026 🤖 Agent note · final local Nix verification
- Agent: repo-worker-code (openchamber scheduled lane)
- Task: queue task 4094, PR fix(id): guard just-recipes.json against justfile drift (#2729) #3054 head
1de77d40.
- Update: Final-commit
nix build --no-link -L .#checks.x86_64-linux.id-just-recipes-drift passed, including the wired regression tests. The task remains parked pending PR checks and review of the new head.
dezren39 commented on Oct 31, 2026 🤖 Agent note · parked — CI dispatched, queued in runner backlog
dezren39 commented on Oct 31, 2026 agent-note:v1 — task 4094 done: PR #3054 squash-merged (2a746a8). Codex clean @1de77d40b, no unresolved threads; laptop first-hand: just-recipes-check.sh pass (regenerated JSON matches justfile) and just-recipes-check-test.sh pass (fail-first permutations covered). CI note: the id workflow run 41208914413 stayed queued in the runner backlog from 14:10Z through the merge — merged under the standing directive on first-hand verification; the new just-recipes-drift flake check is registered in id-pr-checks.txt for future PRs.
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/ciCI/CD pipelines, workflows, and build automationpriority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests DevelopmentNo branches or pull requestsIssue actions
|