fix(auto-update): remove recovered dfhack pin and consume standalone cloudflare-cli flake #362

Merged
nimmo merged 3 commits from fix/auto-update-remediation-262-353 into main 2026-10-17 20:07:11 +01:00
Owner

Closes #262
Closes #353
Closes #356

Summary

  1. Remove obsolete DFHack GCC 15 compatibility pin & support reversed file creations/deletions in pin-lifecycle (#262):

    • Upstream nixpkgs (f20cd90e28fe0403873f473b29e42662cd86e8c4) now sets stdenv = gcc15Stdenv; directly for dfhack in pkgs/games/dwarf-fortress/default.nix and removed gccStdenv from its top-level lambda arguments, causing packages/dwarf-fortress-full/default.nix to fail evaluation on newer nixpkgs candidates.
    • Reverse remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.remove.patch, remove the pin metadata/patch files along with packages/dwarf-fortress-full/default.nix, the overlay entry in modules/common/nix-settings.nix, and the temporary note in README.md, and advance flake.lock nixpkgs to f20cd90e28fe0403873f473b29e42662cd86e8c4.
    • Fix publish_removal() in scripts/nixos-pin-lifecycle.py so tracked paths deleted or recreated when reversing a forward pin patch that created or deleted a file (" D <path>" / "?? <path>" with --untracked-files=all) are accepted and staged with git add -A, and extend tests/nixos-pin-lifecycle-integration.py to cover reversed file creations and deletions.
  2. Consume standalone cloudflare-cli.nix flake with automated GitLab CI upstream updates (#353, #356):

    • forge.nimmog.uk/nimmo/cloudflare-cli.nix now strips non-runtime workspace devDependencies and pkg.pr.new preview URLs before pnpm2nix lockfile parsing (069e5ec), and runs a guarded GitLab CI update-upstream pipeline (ci/update.sh) on daily schedule (23 4 * * * UTC) with a project-locked nix-docker-x86_64 runner and job-token repository push enabled.
    • Scheduled GitLab pipeline #14 on nimmo/cloudflare-cli.nix validated and published chore: update cf to v1.0.0-beta.18 (af63ae5447d204f63c9a6a2fb447bcea39f77d14) automatically.
    • Replace in-tree modules/profiles/cloudflare-cli/, scripts/update-cloudflare-cli-release.sh, tests/cloudflare-cli-release-regressions.sh, and the cloudflare-cli-release/cloudflare-cli-source/pnpm2nix inputs with the single cloudflare-cli input locked at af63ae5447d204f63c9a6a2fb447bcea39f77d14.

Validation

  • ./tests/nixos-update-remediation-regressions.sh and ./tests/nixos-pin-lifecycle-regressions.sh (including tests/nixos-pin-lifecycle-integration.py): pass
  • nix build .#nixosConfigurations.electra.pkgs.dwarf-fortress-full at f20cd90e28fe0403873f473b29e42662cd86e8c4: /nix/store/jsaf1pqwv2nqsff4zmg7hrh7xl85zap9-dwarf-fortress-full-53.16
  • nix flake check on nimmo/cloudflare-cli.nix (GitLab pipelines #13 and #14, including cf-updater-regressions, tests/update-job.py, Sharp native image check, and local Miniflare Worker smoke test on 1.0.0-beta.18): pass
  • nix flake check on nimmo/nixos-config at d93eb57adee8d837d3c867aaea864dae81c83533 and Forgejo CI attic-cache.yml (run #1338) + ai-review.yml (run #1337, verdict Ready to merge with 0 findings): pass
Closes #262 Closes #353 Closes #356 ## Summary 1. **Remove obsolete DFHack GCC 15 compatibility pin & support reversed file creations/deletions in `pin-lifecycle` (#262):** - Upstream `nixpkgs` (`f20cd90e28fe0403873f473b29e42662cd86e8c4`) now sets `stdenv = gcc15Stdenv;` directly for `dfhack` in `pkgs/games/dwarf-fortress/default.nix` and removed `gccStdenv` from its top-level lambda arguments, causing `packages/dwarf-fortress-full/default.nix` to fail evaluation on newer `nixpkgs` candidates. - Reverse `remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.remove.patch`, remove the pin metadata/patch files along with `packages/dwarf-fortress-full/default.nix`, the overlay entry in `modules/common/nix-settings.nix`, and the temporary note in `README.md`, and advance `flake.lock` `nixpkgs` to `f20cd90e28fe0403873f473b29e42662cd86e8c4`. - Fix `publish_removal()` in `scripts/nixos-pin-lifecycle.py` so tracked paths deleted or recreated when reversing a forward pin patch that created or deleted a file (`" D <path>"` / `"?? <path>"` with `--untracked-files=all`) are accepted and staged with `git add -A`, and extend `tests/nixos-pin-lifecycle-integration.py` to cover reversed file creations and deletions. 2. **Consume standalone `cloudflare-cli.nix` flake with automated GitLab CI upstream updates (#353, #356):** - `forge.nimmog.uk/nimmo/cloudflare-cli.nix` now strips non-runtime workspace `devDependencies` and `pkg.pr.new` preview URLs before `pnpm2nix` lockfile parsing (`069e5ec`), and runs a guarded GitLab CI `update-upstream` pipeline (`ci/update.sh`) on daily schedule (`23 4 * * *` UTC) with a project-locked `nix-docker-x86_64` runner and job-token repository push enabled. - Scheduled GitLab pipeline `#14` on `nimmo/cloudflare-cli.nix` validated and published `chore: update cf to v1.0.0-beta.18` (`af63ae5447d204f63c9a6a2fb447bcea39f77d14`) automatically. - Replace in-tree `modules/profiles/cloudflare-cli/`, `scripts/update-cloudflare-cli-release.sh`, `tests/cloudflare-cli-release-regressions.sh`, and the `cloudflare-cli-release`/`cloudflare-cli-source`/`pnpm2nix` inputs with the single `cloudflare-cli` input locked at `af63ae5447d204f63c9a6a2fb447bcea39f77d14`. ## Validation - `./tests/nixos-update-remediation-regressions.sh` and `./tests/nixos-pin-lifecycle-regressions.sh` (including `tests/nixos-pin-lifecycle-integration.py`): pass - `nix build .#nixosConfigurations.electra.pkgs.dwarf-fortress-full` at `f20cd90e28fe0403873f473b29e42662cd86e8c4`: `/nix/store/jsaf1pqwv2nqsff4zmg7hrh7xl85zap9-dwarf-fortress-full-53.16` - `nix flake check` on `nimmo/cloudflare-cli.nix` (GitLab pipelines `#13` and `#14`, including `cf-updater-regressions`, `tests/update-job.py`, Sharp native image check, and local Miniflare Worker smoke test on `1.0.0-beta.18`): pass - `nix flake check` on `nimmo/nixos-config` at `d93eb57adee8d837d3c867aaea864dae81c83533` and Forgejo CI `attic-cache.yml` (run `#1338`) + `ai-review.yml` (run `#1337`, verdict `Ready to merge` with 0 findings): pass
Refs #262

Upstream nixpkgs now sets stdenv = gcc15Stdenv directly for dfhack in
pkgs/games/dwarf-fortress/default.nix and removed gccStdenv from its
top-level arguments, causing packages/dwarf-fortress-full/default.nix
to fail evaluation on newer nixpkgs revisions.

Also allow publish_removal() in scripts/nixos-pin-lifecycle.py to stage
and commit tracked paths deleted when reversing a forward pin patch that
created a file.
feat(cloudflare-cli): consume standalone cloudflare-cli.nix flake input
All checks were successful
Build and Push Attic Cache / test (pull_request) Successful in 1m35s
Build and Push Attic Cache / build (pull_request) Has been skipped
Build and Push Attic Cache / pin-lifecycle (pull_request) Has been skipped
Build and Push Attic Cache / remediate (pull_request) Has been skipped
Build and Push Attic Cache / notify-remediation (pull_request) Has been skipped
Build and Push Attic Cache / record-remediation-notify-failure (pull_request) Has been skipped
AI pull-request review / review (pull_request) Successful in 16m37s
41cda57595
Refs #353
Refs #356

Replace in-tree cloudflare-cli packaging, release-resolution adapter,
and coupled cloudflare-cli-release/source/pnpm2nix inputs with the
standalone forge.nimmog.uk/nimmo/cloudflare-cli.nix flake input. The
standalone repository owns release metadata, non-runtime pnpm-lock.yaml
sanitization, smoke checks, and scheduled GitLab CI upstream updates.
clankbot left a comment

Automated code review

Reviewed commit: 41cda57595d91df9dfd709274fa0aebaec672f73

Verdict: Requires further work

Resolve the blocking or important findings and investigate failed deterministic checks before merging.

Overall assessment

Two independent changes were reviewed. (1) The manually approved DFHack GCC 15 compatibility pin is reversed by hand (overlay entry in modules/common/nix-settings.nix, the packages/dwarf-fortress-full/default.nix overlay target, the pin JSON/reverse-patch pair, and the README note), and publish_removal() in scripts/nixos-pin-lifecycle.py is widened so tracked paths deleted when reversing a forward pin patch that created a file (porcelain ' D ') are accepted and staged with git add -A; tests/nixos-pin-lifecycle-integration.py adds a created-file fixture for that case. (2) The in-tree cf CLI packaging, its release-resolution adapter, its regression test and the coupled cloudflare-cli-release/cloudflare-cli-source/pnpm2nix root inputs are replaced by a single cloudflare-cli git input; modules/profiles/ai-agents.nix now consumes inputs.cloudflare-cli.packages..default, and flake.nix re-exports the external smoke check. I traced the affected callers: modules/profiles/gaming.nix still resolves dwarf-fortress-full through pkgs (all hosts are x86_64-linux, so the system-indexed lookup in ai-agents.nix is not a defect), lib/auto-update-policy.nix groups and the generated rootInputs in flake.nix are mutually consistent with the new single input (no group names a removed input, and no root input is left unclassified), and no stale references to the deleted scripts, tests, inputs or packaging internals remain anywhere in the checked-out tree (only flake.lock's now-transitive cloudflare-cli-source/pnpm2nix nodes). tests/nixos-pin-lifecycle-regressions.sh guards remediation/pins with [ -d ... ], so the now-empty pin directory does not break it, and the widened classifier matches the extended fixture. Two gaps remain: the pin reversal has no build-level evidence, which its own removalCondition and the lifecycle controller require, and the widened classifier is asymmetric for the mirror case (a forward patch that deleted a file).

Blocking findings

None.

Important findings

  • DFHack pin reversed by hand without the build evidence its own removalCondition demands (modules/common/nix-settings.nix:12; medium confidence)
    The deleted pin record states removalCondition: "A fresh nixpkgs candidate builds every affected host and passes flake checks after reverse application removes the DFHack GCC 15 override." and rationale: "DFHack 53.16-r1.1 rejects GCC 16.2.0 ... Full candidate fleet build and deployment remain pending". scripts/nixos-pin-lifecycle.py only publishes a removal after succeeded = all(item.returncode == 0 for item in builds) and checks.returncode == 0 (line 495), i.e. host builds plus flake checks; docs/auto-update-remediation.md:137 says manually approved compatibility pins use the same contract so "the scheduled lifecycle job retests them and can prepare the same review-only removal PR", and .forgejo/workflows/attic-cache.yml:597 restricts that job to github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' while the host-building job is gated by if: ${{ github.event_name != 'pull_request' }} (line 169). The supplied diff reverses the pin directly in a pull request and does not change flake.lock's nixpkgs node (locked rev 8edc0c72e3a38faf5434e40d1f19431125fe4b30, neither the pin's brokenRevision b6c8664d... nor its lastKnownGood f45c6f04...), so no build result for the affected hosts (electra, lena, vega, lyra) is present in the supplied material. dwarf-fortress-full is consumed only through modules/profiles/gaming.nix:20 under with pkgs;, i.e. it is realised at build time, not at evaluation.
    Impact: Removing the overlay drops the dwarf-fortress-full = import ../../packages/dwarf-fortress-full override, so the package now resolves to whatever nixpkgs supplies at the currently locked revision. If upstream has not adopted a compiler default that DFHack 53.16-r1.1 accepts, evaluation and nix flake check stay green and the failure surfaces only as a failed Electra (and any other gaming-profile host) build after merge - re-opening issue #262 and blocking the pull-only auto-update hosts.
    Suggested fix: Supply the build-level evidence the pin record itself requires before merging: build the affected hosts' toplevels (at minimum Electra's igpu/dgpu specialisations, which carry the DFHack closure) at the nixpkgs lock being merged, and record the result on the MR; or let the scheduled pin-lifecycle job publish its review-only removal PR instead of reversing the pin in this change.

Suggestions

  • Widened removal classifier still rejects pins whose forward patch deleted a file (scripts/nixos-pin-lifecycle.py:392; medium confidence)
    The new classifier accepts only " M "/" D " into actual_model_paths and "D " into actual_removed_paths; every other porcelain form falls through to else: raise LifecycleError("removal candidate contains files beyond the bound pin") (line 393). scripts/nixos_update_remediation/validation.py:36-56 derives modelPatch paths from git apply --recount --numstat, which reports a file deletion as 0\tN\t<path> (only binary hunks print -), so a pin patch may legitimately delete a tracked file. Reversing such a patch recreates the file in the working tree only, which git status --porcelain reports as ?? <path>, so the widened check still fails closed for that mirror case while it now succeeds for the created-file case exercised by the new fixture in tests/nixos-pin-lifecycle-integration.py.
    Impact: Asymmetric support: a bound pin whose forward patch removed a file can never be auto-removed, and the scheduled lifecycle job aborts with 'removal candidate contains files beyond the bound pin' instead of producing the review-only removal PR. The current tree contains no such pin, so this is latent rather than an observed failure.
    Suggested fix: Accept ?? <path> for a path listed in metadata["modelPatch"]["paths"] into actual_model_paths (the following git add -A -- <paths> already stages it), or state in docs/auto-update-remediation.md that pin patches never delete files so the fail-closed branch is intentional.

Tests and validation

  • No configured deterministic checks.

Questions

  • Is there build evidence (not evaluation) that dwarf-fortress-full/DFHack now builds with the default nixpkgs compiler at rev 8edc0c72e3a38faf5434e40d1f19431125fe4b30 - e.g. an Electra igpu/dgpu build or the post-merge attic-cache build job, which is skipped for pull-request events?
  • Does the standalone flake at forge.nimmog.uk/nimmo/cloudflare-cli.nix expose exactly packages.x86_64-linux.default and checks.x86_64-linux.smoke? flake.nix re-exports that single smoke check as the fleet's cf CLI gate, and the removed in-tree smoke.cjs (sharp native addon plus a local Miniflare Worker) is no longer exercised here.
  • Does the external flake keep the removed flake.nix assertion that the cf release metadata URL is versioned (not latest), which previously applied to host builds as well as checks?

Review limitations

  • The standalone nimmo/cloudflare-cli.nix flake is not part of the supplied checkout, so its packages.x86_64-linux.default and checks.x86_64-linux.smoke attribute names, its smoke-check coverage, and its release-metadata guard could not be verified.
  • Upstream nixpkgs was not inspected, so I could not confirm that pkgs.dwarf-fortress-full resolves without the overlay or that its bundled DFHack now uses a compiler default that 53.16-r1.1 accepts.
  • No Nix or Git execution was available, so all evaluation, lock-consistency and test-passing claims are read from the supplied diff and checked-out files, not from a run.
  • The pinned nixos-auto-update package (nixos-update-common.sh group adapter) is external; I inferred that as_user() in scripts/attic-cache-build.sh is the hook it calls and could not confirm that from the supplied files.
  • flake.lock retains cloudflare-cli-source and pnpm2nix nodes referenced only through the new cloudflare-cli node; this matches the normal transitive-input shape but was not validated against a real nix flake run.
  • No pull-request description, CI run log, or issue thread was supplied, so the absence of build evidence is an absence of supplied evidence, not a verified negative result.

Diff coverage

  • .forgejo/workflows/attic-cache.yml: reviewed — included in a context-limited batch
  • README.md: reviewed — included in a context-limited batch
  • flake.lock: reviewed — included in a context-limited batch
  • flake.nix: reviewed — included in a context-limited batch
  • lib/auto-update-policy.nix: reviewed — included in a context-limited batch
  • modules/common/nix-settings.nix: reviewed — included in a context-limited batch
  • modules/profiles/ai-agents.nix: reviewed — included in a context-limited batch
  • modules/profiles/cloudflare-cli/default.nix: reviewed — included in a context-limited batch
  • modules/profiles/cloudflare-cli/smoke.cjs: reviewed — included in a context-limited batch
  • packages/dwarf-fortress-full/default.nix: reviewed — included in a context-limited batch
  • remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.json: reviewed — included in a context-limited batch
  • remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.remove.patch: reviewed — included in a context-limited batch
  • scripts/attic-cache-build.sh: reviewed — included in a context-limited batch
  • scripts/nixos-pin-lifecycle.py: reviewed — included in a context-limited batch
  • scripts/update-cloudflare-cli-release.sh: reviewed — included in a context-limited batch
  • tests/cloudflare-cli-release-regressions.sh: reviewed — included in a context-limited batch
  • tests/nixos-pin-lifecycle-integration.py: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: strata/strata
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md
  • Commits considered: 2
  • Previous automated review: none found
  • Findings: 2
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `41cda57595d91df9dfd709274fa0aebaec672f73` ## Verdict: Requires further work Resolve the blocking or important findings and investigate failed deterministic checks before merging. ### Overall assessment Two independent changes were reviewed. (1) The manually approved DFHack GCC 15 compatibility pin is reversed by hand (overlay entry in modules/common/nix-settings.nix, the packages/dwarf-fortress-full/default.nix overlay target, the pin JSON/reverse-patch pair, and the README note), and publish_removal() in scripts/nixos-pin-lifecycle.py is widened so tracked paths deleted when reversing a forward pin patch that created a file (porcelain ' D <path>') are accepted and staged with git add -A; tests/nixos-pin-lifecycle-integration.py adds a created-file fixture for that case. (2) The in-tree cf CLI packaging, its release-resolution adapter, its regression test and the coupled cloudflare-cli-release/cloudflare-cli-source/pnpm2nix root inputs are replaced by a single cloudflare-cli git input; modules/profiles/ai-agents.nix now consumes inputs.cloudflare-cli.packages.<system>.default, and flake.nix re-exports the external smoke check. I traced the affected callers: modules/profiles/gaming.nix still resolves dwarf-fortress-full through pkgs (all hosts are x86_64-linux, so the system-indexed lookup in ai-agents.nix is not a defect), lib/auto-update-policy.nix groups and the generated rootInputs in flake.nix are mutually consistent with the new single input (no group names a removed input, and no root input is left unclassified), and no stale references to the deleted scripts, tests, inputs or packaging internals remain anywhere in the checked-out tree (only flake.lock's now-transitive cloudflare-cli-source/pnpm2nix nodes). tests/nixos-pin-lifecycle-regressions.sh guards remediation/pins with [ -d ... ], so the now-empty pin directory does not break it, and the widened classifier matches the extended fixture. Two gaps remain: the pin reversal has no build-level evidence, which its own removalCondition and the lifecycle controller require, and the widened classifier is asymmetric for the mirror case (a forward patch that deleted a file). ### Blocking findings None. ### Important findings - **DFHack pin reversed by hand without the build evidence its own removalCondition demands** (modules/common/nix-settings.nix:12; medium confidence) The deleted pin record states removalCondition: "A fresh nixpkgs candidate builds every affected host and passes flake checks after reverse application removes the DFHack GCC 15 override." and rationale: "DFHack 53.16-r1.1 rejects GCC 16.2.0 ... Full candidate fleet build and deployment remain pending". scripts/nixos-pin-lifecycle.py only publishes a removal after `succeeded = all(item.returncode == 0 for item in builds) and checks.returncode == 0` (line 495), i.e. host builds plus flake checks; docs/auto-update-remediation.md:137 says manually approved compatibility pins use the same contract so "the scheduled lifecycle job retests them and can prepare the same review-only removal PR", and .forgejo/workflows/attic-cache.yml:597 restricts that job to `github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'` while the host-building job is gated by `if: ${{ github.event_name != 'pull_request' }}` (line 169). The supplied diff reverses the pin directly in a pull request and does not change flake.lock's nixpkgs node (locked rev 8edc0c72e3a38faf5434e40d1f19431125fe4b30, neither the pin's brokenRevision b6c8664d... nor its lastKnownGood f45c6f04...), so no build result for the affected hosts (electra, lena, vega, lyra) is present in the supplied material. dwarf-fortress-full is consumed only through modules/profiles/gaming.nix:20 under `with pkgs;`, i.e. it is realised at build time, not at evaluation. Impact: Removing the overlay drops the `dwarf-fortress-full = import ../../packages/dwarf-fortress-full` override, so the package now resolves to whatever nixpkgs supplies at the currently locked revision. If upstream has not adopted a compiler default that DFHack 53.16-r1.1 accepts, evaluation and `nix flake check` stay green and the failure surfaces only as a failed Electra (and any other gaming-profile host) build after merge - re-opening issue #262 and blocking the pull-only auto-update hosts. Suggested fix: Supply the build-level evidence the pin record itself requires before merging: build the affected hosts' toplevels (at minimum Electra's igpu/dgpu specialisations, which carry the DFHack closure) at the nixpkgs lock being merged, and record the result on the MR; or let the scheduled pin-lifecycle job publish its review-only removal PR instead of reversing the pin in this change. ### Suggestions - **Widened removal classifier still rejects pins whose forward patch deleted a file** (scripts/nixos-pin-lifecycle.py:392; medium confidence) The new classifier accepts only `" M "`/`" D "` into actual_model_paths and `"D "` into actual_removed_paths; every other porcelain form falls through to `else: raise LifecycleError("removal candidate contains files beyond the bound pin")` (line 393). scripts/nixos_update_remediation/validation.py:36-56 derives modelPatch paths from `git apply --recount --numstat`, which reports a file deletion as `0\tN\t<path>` (only binary hunks print `-`), so a pin patch may legitimately delete a tracked file. Reversing such a patch recreates the file in the working tree only, which `git status --porcelain` reports as `?? <path>`, so the widened check still fails closed for that mirror case while it now succeeds for the created-file case exercised by the new fixture in tests/nixos-pin-lifecycle-integration.py. Impact: Asymmetric support: a bound pin whose forward patch removed a file can never be auto-removed, and the scheduled lifecycle job aborts with 'removal candidate contains files beyond the bound pin' instead of producing the review-only removal PR. The current tree contains no such pin, so this is latent rather than an observed failure. Suggested fix: Accept `?? <path>` for a path listed in metadata["modelPatch"]["paths"] into actual_model_paths (the following `git add -A -- <paths>` already stages it), or state in docs/auto-update-remediation.md that pin patches never delete files so the fail-closed branch is intentional. ### Tests and validation - No configured deterministic checks. ### Questions - Is there build evidence (not evaluation) that dwarf-fortress-full/DFHack now builds with the default nixpkgs compiler at rev 8edc0c72e3a38faf5434e40d1f19431125fe4b30 - e.g. an Electra igpu/dgpu build or the post-merge attic-cache build job, which is skipped for pull-request events? - Does the standalone flake at forge.nimmog.uk/nimmo/cloudflare-cli.nix expose exactly `packages.x86_64-linux.default` and `checks.x86_64-linux.smoke`? flake.nix re-exports that single smoke check as the fleet's cf CLI gate, and the removed in-tree smoke.cjs (sharp native addon plus a local Miniflare Worker) is no longer exercised here. - Does the external flake keep the removed flake.nix assertion that the cf release metadata URL is versioned (not `latest`), which previously applied to host builds as well as checks? ### Review limitations - The standalone nimmo/cloudflare-cli.nix flake is not part of the supplied checkout, so its `packages.x86_64-linux.default` and `checks.x86_64-linux.smoke` attribute names, its smoke-check coverage, and its release-metadata guard could not be verified. - Upstream nixpkgs was not inspected, so I could not confirm that `pkgs.dwarf-fortress-full` resolves without the overlay or that its bundled DFHack now uses a compiler default that 53.16-r1.1 accepts. - No Nix or Git execution was available, so all evaluation, lock-consistency and test-passing claims are read from the supplied diff and checked-out files, not from a run. - The pinned nixos-auto-update package (nixos-update-common.sh group adapter) is external; I inferred that `as_user()` in scripts/attic-cache-build.sh is the hook it calls and could not confirm that from the supplied files. - flake.lock retains cloudflare-cli-source and pnpm2nix nodes referenced only through the new cloudflare-cli node; this matches the normal transitive-input shape but was not validated against a real `nix flake` run. - No pull-request description, CI run log, or issue thread was supplied, so the absence of build evidence is an absence of supplied evidence, not a verified negative result. ### Diff coverage - `.forgejo/workflows/attic-cache.yml`: **reviewed** — included in a context-limited batch - `README.md`: **reviewed** — included in a context-limited batch - `flake.lock`: **reviewed** — included in a context-limited batch - `flake.nix`: **reviewed** — included in a context-limited batch - `lib/auto-update-policy.nix`: **reviewed** — included in a context-limited batch - `modules/common/nix-settings.nix`: **reviewed** — included in a context-limited batch - `modules/profiles/ai-agents.nix`: **reviewed** — included in a context-limited batch - `modules/profiles/cloudflare-cli/default.nix`: **reviewed** — included in a context-limited batch - `modules/profiles/cloudflare-cli/smoke.cjs`: **reviewed** — included in a context-limited batch - `packages/dwarf-fortress-full/default.nix`: **reviewed** — included in a context-limited batch - `remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.json`: **reviewed** — included in a context-limited batch - `remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.remove.patch`: **reviewed** — included in a context-limited batch - `scripts/attic-cache-build.sh`: **reviewed** — included in a context-limited batch - `scripts/nixos-pin-lifecycle.py`: **reviewed** — included in a context-limited batch - `scripts/update-cloudflare-cli-release.sh`: **reviewed** — included in a context-limited batch - `tests/cloudflare-cli-release-regressions.sh`: **reviewed** — included in a context-limited batch - `tests/nixos-pin-lifecycle-integration.py`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: strata/strata - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md - Commits considered: 2 - Previous automated review: none found - Findings: 2 </details>
Author
Owner

Response to Automated Review (commit 41cda57595d91df9dfd709274fa0aebaec672f73)

Implemented in follow-up commit d93eb57adee8d837d3c867aaea864dae81c83533:

  1. Important finding — DFHack pin removal & nixpkgs lock coupling (modules/common/nix-settings.nix / flake.lock):

    • Root cause: At the prior locked nixpkgs revision (8edc0c72e3a38faf5434e40d1f19431125fe4b30), pkgs/games/dwarf-fortress/default.nix still defaulted gccStdenv to GCC 16.2.0, which failed to build dfhack-53.16-r1.1 without the overlay pin. Conversely, upstream nixpkgs (f20cd90e28fe0403873f473b29e42662cd86e8c4) fixed dfhack internally to use gcc15Stdenv and removed the gccStdenv parameter, causing the pin's pkgs.dwarf-fortress-packages.override { gccStdenv = pkgs.gcc15Stdenv; } to fail evaluation (called with unexpected argument 'gccStdenv') and blocking main from advancing nixpkgs while the pin was present.
    • Fix & build evidence: Updated flake.lock's nixpkgs input to f20cd90e28fe0403873f473b29e42662cd86e8c4 alongside the pin removal.
      • Verified local build of .#nixosConfigurations.electra.pkgs.dwarf-fortress-full without the pin at f20cd90e28fe0403873f473b29e42662cd86e8c4 -> /nix/store/jsaf1pqwv2nqsff4zmg7hrh7xl85zap9-dwarf-fortress-full-53.16 (including /nix/store/cfw8s0g0m9473v2m4gba19l9g2fpxpq4-dfhack-53.16-r1.1 and /nix/store/pyxk76vnmgalkmkw7h3wcd0v0d801z3r-dwarf-therapist-42.1.21).
      • In Forgejo Actions run #1334 (job 5296 on Nova), scripts/nixos-pin-lifecycle.py also built all four affected host toplevels (.#nixosConfigurations.{electra,lena,lyra,vega}.config.system.build.toplevel) and passed nix flake check with the pin reversed against f20cd90e28fe0403873f473b29e42662cd86e8c4.
  2. Suggestion — Symmetric handling of recreated files in publish_removal() (scripts/nixos-pin-lifecycle.py:382-391):

    • Fix: Updated publish_removal() to pass --untracked-files=all to git status --porcelain and accept "?? " alongside " M " and " D " into actual_model_paths. Extended tests/nixos-pin-lifecycle-integration.py with a deleted-file fixture (modules/services/leaf-app-legacy.nix) so modification, creation, and deletion reversals are all exercised.
  3. Answers to reviewer questions on nimmo/cloudflare-cli.nix (af63ae5447d204f63c9a6a2fb447bcea39f77d14):

    • The standalone flake exposes packages.x86_64-linux.{default,cloudflare-cli} and checks.x86_64-linux.{default,smoke,updater,update-job}.
    • checks.x86_64-linux.smoke executes the same package/smoke.cjs check (verifying cf --version, loading sharp, and booting a local workerd Worker via miniflare).
    • package/default.nix retains the versioned tarball assertion (assert lib.hasInfix "/-/cf-${release.version}.tgz" release.tarballUrl;) on every package evaluation, and tests/updater.sh / tests/update-job.py enforce it in GitLab CI (de.nimmog.uk pipelines #13 and #14 passed).
  4. Validation run on d93eb57adee8d837d3c867aaea864dae81c83533:

    • ./tests/nixos-update-remediation-regressions.sh: passed
    • ./tests/nixos-pin-lifecycle-regressions.sh: passed
    • nix flake check: passed (all checks passed!)
### Response to Automated Review (commit `41cda57595d91df9dfd709274fa0aebaec672f73`) Implemented in follow-up commit `d93eb57adee8d837d3c867aaea864dae81c83533`: 1. **Important finding — DFHack pin removal & `nixpkgs` lock coupling (`modules/common/nix-settings.nix` / `flake.lock`):** - **Root cause:** At the prior locked `nixpkgs` revision (`8edc0c72e3a38faf5434e40d1f19431125fe4b30`), `pkgs/games/dwarf-fortress/default.nix` still defaulted `gccStdenv` to GCC 16.2.0, which failed to build `dfhack-53.16-r1.1` without the overlay pin. Conversely, upstream `nixpkgs` (`f20cd90e28fe0403873f473b29e42662cd86e8c4`) fixed `dfhack` internally to use `gcc15Stdenv` and removed the `gccStdenv` parameter, causing the pin's `pkgs.dwarf-fortress-packages.override { gccStdenv = pkgs.gcc15Stdenv; }` to fail evaluation (`called with unexpected argument 'gccStdenv'`) and blocking `main` from advancing `nixpkgs` while the pin was present. - **Fix & build evidence:** Updated `flake.lock`'s `nixpkgs` input to `f20cd90e28fe0403873f473b29e42662cd86e8c4` alongside the pin removal. - Verified local build of `.#nixosConfigurations.electra.pkgs.dwarf-fortress-full` without the pin at `f20cd90e28fe0403873f473b29e42662cd86e8c4` -> `/nix/store/jsaf1pqwv2nqsff4zmg7hrh7xl85zap9-dwarf-fortress-full-53.16` (including `/nix/store/cfw8s0g0m9473v2m4gba19l9g2fpxpq4-dfhack-53.16-r1.1` and `/nix/store/pyxk76vnmgalkmkw7h3wcd0v0d801z3r-dwarf-therapist-42.1.21`). - In Forgejo Actions run `#1334` (job 5296 on Nova), `scripts/nixos-pin-lifecycle.py` also built all four affected host toplevels (`.#nixosConfigurations.{electra,lena,lyra,vega}.config.system.build.toplevel`) and passed `nix flake check` with the pin reversed against `f20cd90e28fe0403873f473b29e42662cd86e8c4`. 2. **Suggestion — Symmetric handling of recreated files in `publish_removal()` (`scripts/nixos-pin-lifecycle.py:382-391`):** - **Fix:** Updated `publish_removal()` to pass `--untracked-files=all` to `git status --porcelain` and accept `"?? "` alongside `" M "` and `" D "` into `actual_model_paths`. Extended `tests/nixos-pin-lifecycle-integration.py` with a deleted-file fixture (`modules/services/leaf-app-legacy.nix`) so modification, creation, and deletion reversals are all exercised. 3. **Answers to reviewer questions on `nimmo/cloudflare-cli.nix` (`af63ae5447d204f63c9a6a2fb447bcea39f77d14`):** - The standalone flake exposes `packages.x86_64-linux.{default,cloudflare-cli}` and `checks.x86_64-linux.{default,smoke,updater,update-job}`. - `checks.x86_64-linux.smoke` executes the same `package/smoke.cjs` check (verifying `cf --version`, loading `sharp`, and booting a local `workerd` Worker via `miniflare`). - `package/default.nix` retains the versioned tarball assertion (`assert lib.hasInfix "/-/cf-${release.version}.tgz" release.tarballUrl;`) on every package evaluation, and `tests/updater.sh` / `tests/update-job.py` enforce it in GitLab CI (`de.nimmog.uk` pipelines `#13` and `#14` passed). 4. **Validation run on `d93eb57adee8d837d3c867aaea864dae81c83533`:** - `./tests/nixos-update-remediation-regressions.sh`: passed - `./tests/nixos-pin-lifecycle-regressions.sh`: passed - `nix flake check`: passed (`all checks passed!`)
fix(auto-update): advance nixpkgs for dfhack pin removal and support recreated files
All checks were successful
Build and Push Attic Cache / test (pull_request) Successful in 1m30s
Build and Push Attic Cache / build (pull_request) Has been skipped
Build and Push Attic Cache / pin-lifecycle (pull_request) Has been skipped
Build and Push Attic Cache / remediate (pull_request) Has been skipped
Build and Push Attic Cache / notify-remediation (pull_request) Has been skipped
Build and Push Attic Cache / record-remediation-notify-failure (pull_request) Has been skipped
AI pull-request review / review (pull_request) Successful in 16m17s
d93eb57ade
- Advance flake.lock nixpkgs to f20cd90e28fe0403873f473b29e42662cd86e8c4 alongside the DFHack pin removal so the locked revision includes upstream's internal gcc15Stdenv fix for dfhack (verified build: /nix/store/jsaf1pqwv2nqsff4zmg7hrh7xl85zap9-dwarf-fortress-full-53.16, plus all 4 host toplevels electra/lena/lyra/vega built on Nova in Forgejo run #1334).
- Widen publish_removal() in scripts/nixos-pin-lifecycle.py with --untracked-files=all and accept '?? <path>' into actual_model_paths so pins whose forward patch deleted a tracked file can also be auto-removed symmetrically; extend tests/nixos-pin-lifecycle-integration.py with a deleted-file fixture.

Refs #262
clankbot left a comment

Automated code review

Reviewed commit: d93eb57adee8d837d3c867aaea864dae81c83533

Verdict: Ready to merge

No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.

Overall assessment

Both halves of the change are internally consistent in the checked-out tree, and I found no defect attributable to the supplied diff. (1) DFHack pin removal: the three files named by the pin's reverse patch (the README note, packages/dwarf-fortress-full/default.nix, and the modules/common/nix-settings.nix overlay entry at the removed line) are deleted together; modules/profiles/gaming.nix:20 still names dwarf-fortress-full only through with pkgs, so it now resolves from nixpkgs instead of the repository overlay, and a tree-wide search for dwarf-fortress/dfhack/gcc15 returns no other reference. remediation/ now contains only nova-policy.json and worker-prompt.md, so the [ -d "$ROOT/remediation/pins" ] guard in tests/nixos-pin-lifecycle-regressions.sh skips its per-pin reverse-patch proof, and scripts/nixos-pin-lifecycle.py:566 already guards with if (repo / PINS_DIRECTORY).is_dir() else []. (2) Cloudflare rework: cloudflare-cli-release, cloudflare-cli-source and pnpm2nix occur nowhere outside flake.lock (they survive only as nodes re-bound under the new cloudflare-cli node at flake.lock:75/79, which is legitimate for subflake inputs); flake.nix removed the two let bindings (lock, release) and the versioned-URL assertion together, and no remaining flake.nix text references lock.nodes or release.locked. scripts/update-cloudflare-cli-release.sh and tests/cloudflare-cli-release-regressions.sh are deleted along with the checks.x86_64-linux.cloudflare-cli-release derivation that ran them, and no workflow, script, or test still names them. lib/auto-update-policy.nix now lists 23 groups whose inputs plus the single pinned entry (nixpkgs-sbomnix-176) exactly cover the 24 root inputs named at flake.nix:102-125, so the new cloudflare-cli input is classified and nothing became unclassified; flake.nix:443 regenerates rootInputs from the flake's argument set, so no second list drifted. The hosts list for the cloudflare-cli group matches the four hosts that import modules/profiles/ai-desktop.nix (hosts/{electra,lena,vega,lyra}). (3) The publish_removal widening in scripts/nixos-pin-lifecycle.py is coherent with its fixture: reverse application of the new multi-path fixture patch yields ?? for the recreated modules/services/leaf-app-legacy.nix, D for the working-tree deletion of packages/leaf-app-pin/default.nix, M for the reverted leaf-app.nix, and D for the two git rm-ed pin files; the new classifier accepts exactly those five states, the count plus set comparisons still reject any path outside modelPatch.paths ∪ {metadataPath, removalPath}, and git add -A stages the recreated file and the deletion. --untracked-files=all is required to see a single-entry recreated directory, and the fixture's expected diff-tree order matches git's byte-wise path sort ('-' 0x2D < '.' 0x2E, so leaf-app-legacy precedes leaf-app.nix). modelPatch.paths remains valid against the validator at scripts/nixos-pin-lifecycle.py:214-235 (non-empty, sorted, no remediation/pins/ prefix), and the new git(...) call form matches the helper at line 134.

Blocking findings

None.

Important findings

None.

Suggestions

None.

Tests and validation

  • No configured deterministic checks.

Questions

  • scripts/attic-cache-build.sh:763 now defines as_user() as a bare cd "$REPO_ROOT"; "$@" passthrough, and a tree-wide search finds no remaining caller of as_user in this checkout (the only occurrence is the definition). Please confirm from the pinned nixos-auto-update package (nixos-update-common.sh, sourced at attic-cache-build.sh:772) that it still invokes as_user; if it does not, the function is now unreachable in this repository.
  • The cloudflare-cli group in lib/auto-update-policy.nix names only the outer input, while flake.lock:75/79 re-binds the subflake's cloudflare-cli-source and pnpm2nix nodes. Confirm from the pinned nixos-auto-update package that a single nix flake update cloudflare-cli refreshes that whole subtree (the flake.lock diff bumps cloudflare-cli-source to rev 6fdb57383a… alongside cloudflare-cli rev af63ae5447…, which suggests it does); the updater package is not in this checkout, so the group adapter's behaviour cannot be inspected here.
  • tests/nixos-pin-lifecycle-regressions.sh's production-pin contract loop (jq bindings, sha256 equality, git apply --reverse --check) is now vacuous because remediation/pins/ no longer exists. Is that acceptable as-is, or is a fixture expected to keep that guard non-vacuous? The integration fixture in tests/nixos-pin-lifecycle-integration.py does cover the reversed-creation path end-to-end.

Review limitations

  • No commands were executed and no files edited: nix flake check, nix flake eval, the two named test scripts, and the git apply --reverse --check proof were read, not run, so evaluation-time failures in the new flake attributes are not observable here.
  • The external flake at forge.nimmog.uk/nimmo/cloudflare-cli.nix is not in this checkout, so cloudflare-cli.packages.x86_64-linux.default and cloudflare-cli.checks.x86_64-linux.smoke (flake.nix:191-192) could not be confirmed to exist with those attribute names, nor could its smoke check be compared with the deleted in-tree modules/profiles/cloudflare-cli/smoke.cjs; likewise its input names (cloudflare-cli-source, pnpm2nix) implied by flake.lock:75/79 are unverified.
  • Whether nixpkgs at rev f20cd90e28fe0403873f473b29e42662cd86e8c4 exposes a buildable pkgs.dwarf-fortress-full with the default compiler is taken from the diff's intent only; the nixpkgs tree is not in this checkout.
  • The pinned nixos-auto-update package (nixos-update-common.sh, nixos-update-incident-bundle.sh) and scripts/nixos-update-remediation.py's controller implementation are not supplied, so group-update and incident-eligibility behaviour after the policy change could not be inspected.
  • Host deployment state and the Forgejo CI result for this change were not observable here.

Diff coverage

  • .forgejo/workflows/attic-cache.yml: reviewed — included in a context-limited batch
  • README.md: reviewed — included in a context-limited batch
  • flake.lock: reviewed — included in a context-limited batch
  • flake.nix: reviewed — included in a context-limited batch
  • lib/auto-update-policy.nix: reviewed — included in a context-limited batch
  • modules/common/nix-settings.nix: reviewed — included in a context-limited batch
  • modules/profiles/ai-agents.nix: reviewed — included in a context-limited batch
  • modules/profiles/cloudflare-cli/default.nix: reviewed — included in a context-limited batch
  • modules/profiles/cloudflare-cli/smoke.cjs: reviewed — included in a context-limited batch
  • packages/dwarf-fortress-full/default.nix: reviewed — included in a context-limited batch
  • remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.json: reviewed — included in a context-limited batch
  • remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.remove.patch: reviewed — included in a context-limited batch
  • scripts/attic-cache-build.sh: reviewed — included in a context-limited batch
  • scripts/nixos-pin-lifecycle.py: reviewed — included in a context-limited batch
  • scripts/update-cloudflare-cli-release.sh: reviewed — included in a context-limited batch
  • tests/cloudflare-cli-release-regressions.sh: reviewed — included in a context-limited batch
  • tests/nixos-pin-lifecycle-integration.py: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: strata/strata
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md
  • Commits considered: 3
  • Previous automated review: none found
  • Findings: 0
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `d93eb57adee8d837d3c867aaea864dae81c83533` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment Both halves of the change are internally consistent in the checked-out tree, and I found no defect attributable to the supplied diff. (1) DFHack pin removal: the three files named by the pin's reverse patch (the README note, packages/dwarf-fortress-full/default.nix, and the modules/common/nix-settings.nix overlay entry at the removed line) are deleted together; modules/profiles/gaming.nix:20 still names `dwarf-fortress-full` only through `with pkgs`, so it now resolves from nixpkgs instead of the repository overlay, and a tree-wide search for `dwarf-fortress`/`dfhack`/`gcc15` returns no other reference. `remediation/` now contains only nova-policy.json and worker-prompt.md, so the `[ -d "$ROOT/remediation/pins" ]` guard in tests/nixos-pin-lifecycle-regressions.sh skips its per-pin reverse-patch proof, and scripts/nixos-pin-lifecycle.py:566 already guards with `if (repo / PINS_DIRECTORY).is_dir() else []`. (2) Cloudflare rework: `cloudflare-cli-release`, `cloudflare-cli-source` and `pnpm2nix` occur nowhere outside flake.lock (they survive only as nodes re-bound under the new `cloudflare-cli` node at flake.lock:75/79, which is legitimate for subflake inputs); flake.nix removed the two `let` bindings (`lock`, `release`) and the versioned-URL assertion together, and no remaining flake.nix text references `lock.nodes` or `release.locked`. `scripts/update-cloudflare-cli-release.sh` and `tests/cloudflare-cli-release-regressions.sh` are deleted along with the `checks.x86_64-linux.cloudflare-cli-release` derivation that ran them, and no workflow, script, or test still names them. lib/auto-update-policy.nix now lists 23 groups whose inputs plus the single `pinned` entry (nixpkgs-sbomnix-176) exactly cover the 24 root inputs named at flake.nix:102-125, so the new `cloudflare-cli` input is classified and nothing became unclassified; flake.nix:443 regenerates `rootInputs` from the flake's argument set, so no second list drifted. The `hosts` list for the cloudflare-cli group matches the four hosts that import modules/profiles/ai-desktop.nix (hosts/{electra,lena,vega,lyra}). (3) The publish_removal widening in scripts/nixos-pin-lifecycle.py is coherent with its fixture: reverse application of the new multi-path fixture patch yields `?? ` for the recreated modules/services/leaf-app-legacy.nix, ` D ` for the working-tree deletion of packages/leaf-app-pin/default.nix, ` M ` for the reverted leaf-app.nix, and `D ` for the two `git rm`-ed pin files; the new classifier accepts exactly those five states, the count plus set comparisons still reject any path outside modelPatch.paths ∪ {metadataPath, removalPath}, and `git add -A` stages the recreated file and the deletion. `--untracked-files=all` is required to see a single-entry recreated directory, and the fixture's expected diff-tree order matches git's byte-wise path sort ('-' 0x2D < '.' 0x2E, so leaf-app-legacy precedes leaf-app.nix). modelPatch.paths remains valid against the validator at scripts/nixos-pin-lifecycle.py:214-235 (non-empty, sorted, no `remediation/pins/` prefix), and the new `git(...)` call form matches the helper at line 134. ### Blocking findings None. ### Important findings None. ### Suggestions None. ### Tests and validation - No configured deterministic checks. ### Questions - scripts/attic-cache-build.sh:763 now defines `as_user()` as a bare `cd "$REPO_ROOT"; "$@"` passthrough, and a tree-wide search finds no remaining caller of `as_user` in this checkout (the only occurrence is the definition). Please confirm from the pinned nixos-auto-update package (nixos-update-common.sh, sourced at attic-cache-build.sh:772) that it still invokes `as_user`; if it does not, the function is now unreachable in this repository. - The `cloudflare-cli` group in lib/auto-update-policy.nix names only the outer input, while flake.lock:75/79 re-binds the subflake's `cloudflare-cli-source` and `pnpm2nix` nodes. Confirm from the pinned nixos-auto-update package that a single `nix flake update cloudflare-cli` refreshes that whole subtree (the flake.lock diff bumps `cloudflare-cli-source` to rev 6fdb57383a… alongside `cloudflare-cli` rev af63ae5447…, which suggests it does); the updater package is not in this checkout, so the group adapter's behaviour cannot be inspected here. - tests/nixos-pin-lifecycle-regressions.sh's production-pin contract loop (jq bindings, sha256 equality, `git apply --reverse --check`) is now vacuous because remediation/pins/ no longer exists. Is that acceptable as-is, or is a fixture expected to keep that guard non-vacuous? The integration fixture in tests/nixos-pin-lifecycle-integration.py does cover the reversed-creation path end-to-end. ### Review limitations - No commands were executed and no files edited: `nix flake check`, `nix flake eval`, the two named test scripts, and the `git apply --reverse --check` proof were read, not run, so evaluation-time failures in the new flake attributes are not observable here. - The external flake at forge.nimmog.uk/nimmo/cloudflare-cli.nix is not in this checkout, so `cloudflare-cli.packages.x86_64-linux.default` and `cloudflare-cli.checks.x86_64-linux.smoke` (flake.nix:191-192) could not be confirmed to exist with those attribute names, nor could its smoke check be compared with the deleted in-tree modules/profiles/cloudflare-cli/smoke.cjs; likewise its input names (`cloudflare-cli-source`, `pnpm2nix`) implied by flake.lock:75/79 are unverified. - Whether nixpkgs at rev f20cd90e28fe0403873f473b29e42662cd86e8c4 exposes a buildable `pkgs.dwarf-fortress-full` with the default compiler is taken from the diff's intent only; the nixpkgs tree is not in this checkout. - The pinned nixos-auto-update package (nixos-update-common.sh, nixos-update-incident-bundle.sh) and scripts/nixos-update-remediation.py's controller implementation are not supplied, so group-update and incident-eligibility behaviour after the policy change could not be inspected. - Host deployment state and the Forgejo CI result for this change were not observable here. ### Diff coverage - `.forgejo/workflows/attic-cache.yml`: **reviewed** — included in a context-limited batch - `README.md`: **reviewed** — included in a context-limited batch - `flake.lock`: **reviewed** — included in a context-limited batch - `flake.nix`: **reviewed** — included in a context-limited batch - `lib/auto-update-policy.nix`: **reviewed** — included in a context-limited batch - `modules/common/nix-settings.nix`: **reviewed** — included in a context-limited batch - `modules/profiles/ai-agents.nix`: **reviewed** — included in a context-limited batch - `modules/profiles/cloudflare-cli/default.nix`: **reviewed** — included in a context-limited batch - `modules/profiles/cloudflare-cli/smoke.cjs`: **reviewed** — included in a context-limited batch - `packages/dwarf-fortress-full/default.nix`: **reviewed** — included in a context-limited batch - `remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.json`: **reviewed** — included in a context-limited batch - `remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.remove.patch`: **reviewed** — included in a context-limited batch - `scripts/attic-cache-build.sh`: **reviewed** — included in a context-limited batch - `scripts/nixos-pin-lifecycle.py`: **reviewed** — included in a context-limited batch - `scripts/update-cloudflare-cli-release.sh`: **reviewed** — included in a context-limited batch - `tests/cloudflare-cli-release-regressions.sh`: **reviewed** — included in a context-limited batch - `tests/nixos-pin-lifecycle-integration.py`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: strata/strata - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/hermes-fleet-ssh.md, docs/nova-remote-builder.md, README.md - Commits considered: 3 - Previous automated review: none found - Findings: 0 </details>
Author
Owner

Answers to Informational Review Questions (commit d93eb57adee8d837d3c867aaea864dae81c83533)

  1. as_user() in scripts/attic-cache-build.sh: Confirmed against .#nixos-auto-update (share/nixos-auto-update/nixos-update-common.sh lines 118, 125, 203, 204, 208, 210, 236, 237, 243) — nixos-update-common.sh invokes as_user for nix eval, mktemp, cp, and nix flake update, so the hook definition in scripts/attic-cache-build.sh remains required.
  2. nix flake update cloudflare-cli subtree refresh: Confirmed — nixos_update_input_group() calls as_user nix flake update "$input", which updates the cloudflare-cli root node and refreshes its transitive cloudflare-cli-source and pnpm2nix lock nodes from the subflake's locked flake.lock.
  3. tests/nixos-pin-lifecycle-regressions.sh when remediation/pins/ has no active pins: Intentional — the [ -d "$ROOT/remediation/pins" ] guard allows the production-pin check to be a no-op when no temporary pins are active on main, while tests/nixos-pin-lifecycle-integration.py always exercises the hermetic modification, creation, and deletion pin fixtures end-to-end.
### Answers to Informational Review Questions (commit `d93eb57adee8d837d3c867aaea864dae81c83533`) 1. **`as_user()` in `scripts/attic-cache-build.sh`:** Confirmed against `.#nixos-auto-update` (`share/nixos-auto-update/nixos-update-common.sh` lines 118, 125, 203, 204, 208, 210, 236, 237, 243) — `nixos-update-common.sh` invokes `as_user` for `nix eval`, `mktemp`, `cp`, and `nix flake update`, so the hook definition in `scripts/attic-cache-build.sh` remains required. 2. **`nix flake update cloudflare-cli` subtree refresh:** Confirmed — `nixos_update_input_group()` calls `as_user nix flake update "$input"`, which updates the `cloudflare-cli` root node and refreshes its transitive `cloudflare-cli-source` and `pnpm2nix` lock nodes from the subflake's locked `flake.lock`. 3. **`tests/nixos-pin-lifecycle-regressions.sh` when `remediation/pins/` has no active pins:** Intentional — the `[ -d "$ROOT/remediation/pins" ]` guard allows the production-pin check to be a no-op when no temporary pins are active on `main`, while `tests/nixos-pin-lifecycle-integration.py` always exercises the hermetic modification, creation, and deletion pin fixtures end-to-end.
nimmo merged commit 68d12d80a5 into main 2026-10-17 20:07:11 +01:00
nimmo deleted branch fix/auto-update-remediation-262-353 2026-10-17 20:07:12 +01:00
Sign in to join this conversation.
No reviewers
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config!362
No description provided.