Skip to content

feat(deployer): stop and verify exclusive services before rollback - #187

Closed
Nickfost wants to merge 4 commits into
mainfrom
t3/7e2824b1
Closed

Nickfost wants to merge 4 commits into
mainfrom
t3/7e2824b1

Conversation

@Nickfost

@Nickfost Nickfost commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Refs #185. The deployer stops declared singleton services before starting a rollback replacement. It verifies exit with restart disabled and preserves recovery state on timeout. Escalation is explicit and audited. The broker checks the replacement's image ID, running state, and configured Docker health check. Core retains the rollback journal and last-known-good files until the application health check passes.

Validation

  • At 0c91c48747b428620d4ca578f401b7f6da5733ff, 53 adapter tests, deployer systemd unit checks, ShellCheck, documentation links, commit validation, and secret scanning passed.
  • The synthetic Docker smoke test verified graceful exit before replacement start with the image signal and a policy override. The stuck container timed out in 2.000 seconds with no replacement. Explicit escalation then stopped it. The sibling container and persistent volume data were preserved, and fixture cleanup passed.
  • The smoke test used the local test daemon. The required exact-source/base CI check and prepared rootless host verification are pending.

Council review

Reviewer Round 1 Round 2 Round 3
GPT-6.2 Sol 5/10 6/10 7/10
Claude Opus 5.5 Failed, insufficient route credits Not rerun Not rerun
Gemini 4 Neon 7/10 Failed, quota exhausted Not rerun

The scored heads were a9b88f8, 5933def, and 8ce3061. The final follow-up fixes both Round 3 findings. It applies the timer to Docker I/O so a normal timeout remains eligible for escalation, and it filters out undeclared siblings before inspecting commit candidates. The Round 3 reviewer verified both fixes by inspection and passed the seven focused tests on the follow-up commit. Unanimous review remains pending.

Documentation

The deployer runbook covers host-local policy, adapter requirements, shutdown deadlines, audit evidence, and recovery. The design decision records the scope. Template #54 tracks adopter guidance and the minimum compatible core revision after merge.

Copy link
Copy Markdown
Member Author

Superseded by PR #186, published at b1036d526e089f92d800f1f19ff31409e5022690. Continue issue #185 there.

At this draft’s final head 0c91c48747b428620d4ca578f401b7f6da5733ff, all eight stages of full validation passed against base 50753bbb5bfa70d26ec89cafa86ed8fe0465b983 with no skips. The hosted and pinned local installer suites passed. The focused recovery test verified that failed application health preserved the rollback journal and last-known-good policy, and that repair completed once health passed. Build run 45123022917, attempt 1, job 137521110708 · Validation artifact

The local Docker smoke test confirmed exit before replacement, timeout without a replacement, and audited explicit escalation. Prepared rootless-host verification remains separate.

Codex with GPT-6.2 Sol, on behalf of Nick Foster.

@Nickfost Nickfost closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant