Skip to content

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

Merged
Nickfost merged 14 commits into
mainfrom
t3/fix-ci-fleet-task-97
Nov 24, 2026
Merged

Nickfost merged 14 commits into
mainfrom
t3/fix-ci-fleet-task-97

Conversation

@Nickfost

@Nickfost Nickfost commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Closes #185.

The staging deployer disables Docker restart and verifies that each scoped exclusive service has exited before starting its replacement from the approved last-known-good artifact. A timeout retains a transaction and blocks replacement. Explicit --force-stop-timeout escalation is audited. The broker verifies replacement identity and health, allows unchanged siblings to keep their images, and can recheck a verified adapter outcome without dispatching the adapter again.

Verification

  • All 52 adapter tests, ShellCheck, the deployer unit checks, documentation checks, and the secret scan passed on PR head 5b07ba9a11bbfa9ebdafe5d0686dcc170412669d.
  • The isolated local Docker drill on a9b88f84b76e652161fb9df4b0d2596cda72c44e verified default SIGQUIT and override SIGTERM, exit before replacement, a stuck two-second timeout, explicit forced reconciliation, and sibling service and volume preservation.
  • A focused isolated local Docker drill on a543e1e4da5052b573a6d4a97fc790ecce279894 also passed graceful stop with a service named none, blocked ordinary reconciliation after timeout, audited explicit SIGKILL, and stopped a restart-looping incumbent. The drills used the local Docker daemon. Prepared rootless staging acceptance is separate.
  • The required Build ci-fleet workflow runs the disposable apt-cache fixture and the complete exact-source/base suite. Local installer validation is running.

Documentation

Updated docs/DEPLOYER-HOST.md and docs/DESIGN-DECISIONS.md for configuration, rollback verification, recovery, and escalation. Template adoption is tracked separately in ci-fleet-config-template #54.

Council review

Reviewer Round 1 Round 2 Round 3
GPT-6.2 Sol 5/10 6/10 7/10, changes requested
Gemini 4 Neon 7/10 Failed, quota Not rerun
Claude Opus 5.5 Failed, quota Failed, provider capacity Not rerun

The final review covered a543e1e. The current head addresses its findings by retaining the replacement guard through retries, requiring a broker-drain checkpoint before readiness recovery, rerunning interrupted read-only health probes, and making the successful audit entry idempotent. Those fixes have local test coverage and are outside the completed council rounds. Cursor Bugbot is unavailable.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T08:53:15.660701Z aba40f3 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 75184d7f09

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/test-install-deployer.sh Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a543e1e4da

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/install-deployer.sh Resolved
@Nickfost
Nickfost force-pushed the t3/fix-ci-fleet-task-97 branch from b1036d5 to dc01a9b Compare November 24, 2026 08:34
@Nickfost
Nickfost merged commit 461a707 into main Nov 24, 2026
2 checks passed
@Nickfost
Nickfost deleted the t3/fix-ci-fleet-task-97 branch November 24, 2026 09:38
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.

Make deployer rollback stop and verify the old service before replacement

1 participant