Feat/nix integration #6104
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 335 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.348
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #6104"
general
weight: 0.35
jjmata
Problem
Sure ships as a container image and expects Postgres, Redis and a worker next to
it. On a NixOS host that means hand-managed compose files, a mutable gem
directory inside the image, and no way to pin the toolchain a developer actually
uses. Reproducing a bug or cutting a release then depends on whichever Ruby and
Node happened to be on the machine.
What this does
nix developprovides the exact toolchain (ruby, node, postgres, valkey,libvips, poppler, sqlcipher) instead of a manual setup, pinned by the flake
lock.
packages.defaultbuilds the application with precompiled assets from asingle derivation;
packages.imageandpackages.image-workerproducethe OCI images from that same derivation, so the packaged app and the shipped
images cannot drift apart.
nixosModules.defaultruns web, worker and migration units natively withsystemd hardening, secrets via
LoadCredential, and an optional boot-timemigration. The container path stays available; nothing forces the switch.
architectures, with an allow-list install and
VERSIONstamping, and.sure-versioncarries aGem::Version-parseable, dot-separated releaseidentity.
nix flake checkis the CI gate: lint (rubocop, brakeman, biome), buildsmoke tests, gemset drift, a source-entries classifier that accounts for every
top-level entry, install-shape and closure-size targets, and a KVM boot test.
nix/tag-release.shderives the release tag fromnix/VERSIONplus thecommit, resolves the tag to the commit it names, and asserts that before
pushing.
Validation
nix flake checkis the branch's own gate: the checks listed above, includingthe KVM boot test.
nix build .#packages.defaultproduces the app; the packaged binary isasserted to run with
BUNDLE_GEMFILEpointing atshare/bundle.at;
nix/README.mddocuments deployment,README.mdstates that aarch64 isexplicitly not a goal of this branch.
current
main; no Nix code was changed in it, so the flake checks were notre-run here.
Notes for review
main(7e86933) in 17 linear commits andcontains only Nix glue, packaging scripts and docs — no application or test
code — so it can be reviewed on its own.
nix/is kept out of the application source tree, so the app itself staysproject-generic and the flake consumes it as a package.