GeezerVison is showing github.com — fix(pm-stack): aggregator install.sh does not restart a running service - deploys silently no-op · Issue #1150 · developing-today/code
fix(pm-stack): aggregator install.sh does not restart a running service - deploys silently no-op #1150DescriptionFinding
Found during the #1046 deploy (2026-10-26, flagged on that issue, never separately filed): install.sh's systemctl --user enable --now does not restart an already-running pm-aggregator - the first post-install check 404'd on new routes while the new code was on disk. A deploy that looks successful but serves old code is a coherence hazard for every future slice.
Proposal
install.sh restarts pm-aggregator when the deployed tree changes (hash or mtime comparison), then self-verifies: poll /api/health plus one route per newly shipped page (or a version marker the server exposes - e.g. build commit in /api/health) and fail loudly on mismatch.
Acceptance
- Re-running install.sh on unchanged code is a no-op; on changed code the service restarts and the version marker in /api/health matches the deployed commit.
Acceptance criteria
- Re-running
install.sh on unchanged code is a no-op (no restart).
- Re-running
install.sh after the deployed tree changes restarts pm-aggregator, and the version marker exposed by /api/health matches the deployed commit.
install.sh self-verifies after a deploy (polls /api/health plus one route per newly shipped page, or the version marker) and fails loudly on a mismatch instead of reporting success while old code serves.
Activitydeveloping-today commented on Oct 27, 2026 dezren39 commented on Oct 28, 2026 Intake review
Fleet monitor intake pass, 2026-10-28. Verified still live this run: the issue is open, and no merged PR references it.
Related: Found during the #1046 deploy (2026-10-26) and flagged there; no merged PR references this issue (checked this run), and the issue is still open with no comments — still live.
Notes / risks: A deploy that reports success while serving old code undermines every later verification: checks run against the new tree on disk while users hit the old process. The version-marker half matters as much as the restart half — without it the next silent no-op is undetectable.
Suggested approach: Compare a hash of the deployed tree (or the deployed commit) in install.sh; restart only on change; expose the build commit in /api/health if not already present and assert it post-restart with a short poll loop that fails the install on mismatch.
Labels normalized this pass and an ## Acceptance criteria section appended to the body (original text preserved verbatim above it), formalizing the acceptance prose already in the issue. Marked meta/enriched. dezren39 commented on Oct 29, 2026
🤖 Agent note · Codex P2 fixed and pushed; parked on CI/Codex re-review and the merge-queue freeze (#2403)
-
Agent: queue worker repo-worker-code, OpenChamber scheduled lane. Task 3042 (resume of the parked task).
-
PR fix(pm-stack): aggregator install.sh restarts on change and self-verifies deployed version (#1150) #2432 — queue/3042-1150-install-restart-verify, head d16655c2. basic: proxy port fallbacks SUCCESS, CodeRabbit neutral, mergeStateStatus: CLEAN.
-
What this shift added (the one review finding still open on the PR, a P2): the install no-op check hashed only the copied package files, so rerunning the installer with a different TAILNET_IP, a rotated credential in the SOPS file, or an edited service unit skipped .env rendering and the unit copy while still reporting a successful verification. deploy_inputs_hash now hashes those three inputs (TAILNET_IP, the SOPS file, the unit file), stores them in $DST/.deploy-inputs-hash, and a no-op requires both the tree hash and the inputs hash to match — otherwise the run re-renders .env, re-copies the unit and restarts. The SOPS file is hashed as ciphertext, so no value is decrypted or printed during change detection, and a missing file hashes as absent so the first run that gains one counts as a change.
-
Verification: bash -n passes; a harness on the extracted functions shows the inputs hash is stable across identical runs and changes on each of a tailnet-address edit, a SOPS content change and a unit edit. Replied on the Codex thread (PRRT_kwDOJWP4786xw4PT). The TypeScript tests are unaffected (install.sh is not exercised by them).
-
Blocked from merging by ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 (repo-wide merge-queue freeze) as well as by CI/Codex confirmation on the new head. Task 3042 is parked 30 min; on resume: confirm CI green and Codex clean on d16655c2, then re-enqueue fix(pm-stack): aggregator install.sh restarts on change and self-verifies deployed version (#1150) #2432, merge, and close this issue.
-
Links: PR fix(pm-stack): aggregator install.sh restarts on change and self-verifies deployed version (#1150) #2432 · ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 · task 3042
dezren39 commented on Oct 29, 2026
🤖 Agent note · parked (Lane C shift, re-claimed 22:47Z)
- Agent: queue worker (repo-worker-code), Lane C · Task: 3042 (small_fix, fix(pm-stack): aggregator install.sh does not restart a running service - deploys silently no-op #1150 aggregator install restart/verify)
- Verified fresh: PR fix(pm-stack): aggregator install.sh restarts on change and self-verifies deployed version (#1150) #2432 OPEN, MERGEABLE/CLEAN, head d16655c; required check
basic: proxy port fallbacks SUCCESS, no failing/pending checks. Codex gate (§5): all findings dispositioned — P1 health-marker serialization and P1 version parsing fixed in f85e929, P2 deployment-inputs no-op hash fixed in d16655c, each replied on its thread; latest Codex review at d16655c completed with no findings.
- Blocker: ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 merge-queue freeze (main push restriction excludes the merge-queue service; admin config decision pending).
- Action: parked 1h. Resume: re-enqueue PR fix(pm-stack): aggregator install.sh restarts on change and self-verifies deployed version (#1150) #2432 when ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 fix lands, verify merge, close fix(pm-stack): aggregator install.sh does not restart a running service - deploys silently no-op #1150.
dezren39 commented on Oct 29, 2026
Agent note — parked (queue task 3042, PR #2432)
PR #2432 (fix(pm-stack): aggregator install.sh restarts on change and self-verifies deployed version) is ready: head d16655c2, MERGEABLE/CLEAN, required check basic: proxy port fallbacks pass, Codex review on that head has_any_findings:false / has_unresolved_findings:false (the earlier P1s were fixed in f85e9291 and replied on-thread). No code work remains for #1150.
dezren39 commented on Oct 30, 2026
Agent note — picked up (resume, awaiting_ci) and re-parked: CI + Codex now complete, gate unchanged
- Queue task: 3042 (Lane A, repo-worker-code), PR fix(pm-stack): aggregator install.sh restarts on change and self-verifies deployed version (#1150) #2432 at d16655c.
- Fresh recheck: all checks COMPLETED (basic: proxy port fallbacks SUCCESS, full tier SKIPPED as designed), Codex re-review reports no unresolved findings. The PR is fully merge-ready.
- Only blocker unchanged: merge-queue stall ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403, main frozen at 5a34fa7 (last merge 2026-10-29T10:57Z). No enqueue attempted.
- Re-parked 4h. Resume when ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 is fixed / main moves: re-enqueue fix(pm-stack): aggregator install.sh restarts on change and self-verifies deployed version (#1150) #2432, verify merged, complete, close fix(pm-stack): aggregator install.sh does not restart a running service - deploys silently no-op #1150.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|