Repository navigation
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 41 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Drew ruled 2026-11-08 (Option A): "nixos for now... unify for all nixos but understand we might move all to compose right after. ruling is unify first, not making a permanent ruling." Provisional unification, not a permanent compose-vs-NixOS settlement. - pm-apps declares pm-postgres + pm-kaneo as oci-containers, mirroring pm-grist/pm-pad: same images (tag + digest pins of the images the compose stack was verified running), same port (127.0.0.1:5173), same .env file, same named volume pm-stack_postgres_data mounted in place. - Networking fix the 2026-10 attempt lacked: Kaneo resolves its database as host "postgres"; both containers attach to the pm-stack_default network with pm-postgres aliased "postgres", and a pm-stack-network oneshot creates the network (compose down deletes it). - pm-stack module: pm-kaneo.service + pm-kaneo.timer removed, so the compose manager cannot resurrect against the volume (the 2026-11-01 two-postmaster fight, code#3849). - Cutover order: verified backup -> compose stack stopped -> switch -> verify all four servers + single postmaster.
dfebbbd to
8c057ea
Compare
|
Do not merge this ahead of the cutover sitting. Status (full record on #1752):
|
|
agent-note:v1 |
|
agent-note:v1 |
|
Program tending — stalled PR check-in (tracking: #1352)
|
|
Closed as superseded. Closed by queue task 17267 as superseded by the NixOS-managed compose service on current main; not merged. #1752 requires a NixOS/flake service following the pm-stack shape, which is already provided by pm-kaneo.service and its timer in nixos/services/pm-stack/default.nix. The OCI proposal in this PR conflicts with current main and would reintroduce the documented dual-manager/two-postmaster risk on pm-stack_postgres_data. PR #3847 removed the duplicate OCI declarations. If OCI migration is again required, it needs a new planned cutover from current main with verified backup/snapshot, compose shutdown, switch, and post-switch checks in one operation. Evidence/decision recorded on #1752. |
Completes the #1752 unification for Kaneo + PostgreSQL under Drew's 2026-11-08 ruling (Option A): "nixos for now... unify for all nixos but understand we might move all to compose right after. ruling is unify first, not making a permanent ruling." Provisional — this unifies all four PM servers under NixOS; it does not settle compose-vs-NixOS permanently.
What changes
pm-postgres+pm-kaneoas oci-containers, mirroring pm-grist/pm-pad: same images (tag + digest pins of the images the compose stack was verified running at cutover time), same loopback port 5173, same~/pm-stack/.env, same named volumepm-stack_postgres_datamounted in place — no data moves.postgres(upstream default; no DATABASE_URL). Both containers attach to thepm-stack_defaultnetwork,pm-postgrescarries--network-alias=postgres, and a newpm-stack-networkoneshot creates the network at boot (docker compose downdeletes it; nothing else recreates it). In 2026-10 both containers sat on the default bridge with no alias and the oci Kaneo never connected (zero client connections on the oci postmaster).pm-kaneo.service+pm-kaneo.timerremoved, so the compose manager/self-heal cannot resurrect the stack against the same volume (the 2026-11-01 two-postmaster incident, Two postmasters on the PM data volume + docker-pm-kaneo start-limit loop — dual Kaneo/PostgreSQL managers (pm-apps oci vs pm-stack compose) #3849).deploy.shcompose actions are documented as retired;deploy.sh renderremains the .env/tunnel.env re-render path.Cutover sequence (executed with this PR)
nixos-rebuild switchfrom the primary checkout.Refs #1752.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.