GeezerVison is showing github.com — ci: root just-recipes.json has no drift guard — a recipe added to root.just without `just just-recipes` silently gets no nix app · Issue #8029 · developing-today/code
ci: root just-recipes.json has no drift guard — a recipe added to root.just without just just-recipes silently gets no nix app #8029DescriptionProblem
The root just-recipes.json — the file lib/default.nix reads to generate nix run .#<recipe> apps — has no drift guard. A recipe added to root.just without running just just-recipes silently gets no nix app, and a changed doc/parameter silently keeps the old description. The pkgs/id copy of this exact file has a guard (just-recipes-drift, from #2729); the root copy does not.
Evidence (verified on origin/main d71ad6057e, laptop worktree)
- Consumer:
lib/default.nix:641-653 — justRecipes = builtins.fromJSON (builtins.readFile ../just-recipes.json), then publicRecipes filters private/default; the comment above it says: "To add a new nix app: add a recipe to root.just, run just lockfiles, and the app appears automatically". Nothing enforces the second step.
- Guard gap: repo-wide grep for
just --dump returns exactly one hit — pkgs/id/scripts/just-recipes-check.sh:13, which cds to pkgs/id and certifies only the pkgs/id file. No script, workflow step, or flake check touches the root file. (id-check.yml runs one job per check in .github/scripts/id-pr-checks.txt, whose just-recipes-drift entry maps to the pkgs/id script.)
- Recurrence, not hypothetical: 6 commits changed
root.just without touching just-recipes.json (7c2c8191ff, ac91b09acd, 076da3a68e, 19597b5262, 051d8e19a7, 30623a69f7). 7c2c8191ff ("add rebuild recipe") states it explicitly: "just-recipes.json intentionally NOT regenerated here: regeneration embeds the generating checkout absolute path (source field) and the committed file is already stale" — i.e. past drift was worked around by skipping regeneration, which is exactly what a guard would have caught at review time.
- Current state is clean (verified this run:
just --dump --dump-format json at the root, projected to recipe presence/doc/parameters/dependencies/private + alias targets exactly as the id guard does → 35 recipes, zero diff). So this is a missing-guard filing, not live drift.
Why it matters
The failure mode is silent omission: nix run .#<new-recipe> fails with "no such app" (or an old doc string renders) while just <new-recipe> works, so the author who added the recipe never sees the break. #2729 already proved this shape bites on the pkgs/id copy (crash-gate-sampled's doc went stale on main).
Suggested fix shape (triage call)
- A root variant of
pkgs/id/scripts/just-recipes-check.sh: anchor to the repo root, just --dump --dump-format json, project out source (absolute path, per the 7c2c8191ff note) and recipe bodies (just-version serialization drift, per the id script's #2729 comment), diff the semantic projection.
- Wire it where it runs: either a
scripts-test.yml-style explicit step (following the test_check_provider_retirement_gate.py pattern from ci(scripts): test_check_provider_retirement_gate.py (19 tests, #5610 gate pins) is run by no workflow — the retirement gate is verified nowhere #7789) or the check-each mechanism — but note the root regeneration recipe also runs biome format --write (root.just:102-104), so the guard must compare against the formatted output or normalize first.
- Dedupe: 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 #2729 (CLOSED — delivered the pkgs/id guard only), id(just-recipes-check): the drift guard reads just-recipes.json relative to the caller's CWD — invoked by path from elsewhere it fails raw or certifies the wrong file #6957 (CLOSED — that guard's CWD anchoring), Preserved branch: queue/4094-2729-just-recipes-drift — decision needed (merge / cherry-pick / drop) #3566 (CLOSED — preserved branch). Nothing tracks the root file.
Acceptance
- A check exists that fails when root
just-recipes.json's semantic projection (recipes + alias targets) differs from just --dump of the root justfile.
- The check runs in CI (workflow step or flake check), not just as documentation.
- The
source/formatting normalization is pinned by a test, so the guard itself does not false-positive across machines or just versions.
Activityadded kind/ciCI/CD pipelines, workflows, and build automation task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests area/ciCI/CD pipelines, workflows, and build automation (area) effort/xsTrivial: expected under 30 minutes of work on Nov 9, 2026developing-today commented on Nov 9, 2026 ContributorAuthor More actions Re-verified on current main 9fbddc76c6 (17 commits after the filing's d71ad6057e):
- Root
just-recipes.json still has no guard: the only just --dump invocation in the repo remains pkgs/id/scripts/just-recipes-check.sh:13, which anchors to pkgs/id and certifies only that copy.
- Root copy is still clean today —
just --dump --dump-format json at the repo root, projected to recipe presence/doc/parameters/dependencies/private + alias targets: 35 recipes on both sides, zero missing, zero extra, zero field or alias differences. So this stays a missing-guard issue, not live drift.
dezren39 commented on Nov 12, 2026 Agent: triage-step; state: triaged\nwork kind: task/small-fix\npriority: priority/normal (from drew-priorities-brief.md)\neffort: effort/xs\nfirst step: add a drift guard to root.just or enforce recipe registration\nacceptance: fails if a root.just recipe lacks a nix app entry dezren39 commented on Nov 12, 2026 Dropped-thread catcher — launch repair (2026-11-12):
The Action outbox processor's 10:04 CST run reported both prepared enqueues for this issue blocked on broken preparation: the packet file in /tmp is not a valid repo-task/v1 packet (payload nested under body with string-typed fields, no payload object), so validate/enqueue fail with "packet.payload: required object". No queue task was enqueued, and this issue carried no queue label at check time (gh read-back 2026-11-12T16:31Z, OPEN, updated 15:41Z).
The processor cannot compose a substitute packet, and no other owner was named. Routing this issue through the standard feeder instead: adding queue/queued so the repo-health code pilot feeder enqueues a fresh, valid packet for it. The invalid /tmp packet should be disregarded. dezren39 commented on Nov 17, 2026
🤖 Agent note · done (fixed_merged — triage stood, fix done inline this shift)
- Agent: queue worker (repo-worker-code), lane any-c
- Session / ID: task 18571
- Found via: queue claim (bulk-intake triage packet, 2026-11-16)
The triage of record (triage-step, 2026-11-12: small-fix / priority/normal / effort/xs) stood — but its fix packet never landed (the 2026-11-12 dropped-thread note on this issue: both prepared enqueues were blocked on broken preparation). This shift picked the fix up directly instead of re-filing it:
Task 18571 completes as fixed_merged; this issue closes on the merge.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|