Skip to content

feat(lastcode): add durable remote update drain state - #60

Merged
lastobelus merged 4 commits into
lastcode/mainfrom
lastcode/remote-update-drain
Aug 22, 2026
Merged

lastobelus merged 4 commits into
lastcode/mainfrom
lastcode/remote-update-drain

Conversation

@lastobelus

Copy link
Copy Markdown
Owner

Part of #38.

Remote Intel updates need one durable, inspectable drain intent before later work can close admission and wait for active clients. Without that state boundary, retries or a server restart could lose which update request is active.

This adds typed start, status, and cancel RPCs backed by an event-and-receipt repository and SQLite migration. Commands are serialized, idempotent by command ID, reject conflicting or stale requests, survive restart, and expose cancelled terminal state without treating a different cancelled request as active. The RPCs require the existing update-administration authorization scope.

This PR records and reports drain intent only. It does not close admission, disconnect clients, install or activate an update, schedule work, stop or restart LastCode, or change remote exposure.

Focused validation passed 139 tests across contracts, migration, authorization, drain state, repository orchestration, and server routing. Contracts and server typechecks, targeted lint/format checks, exact patch-identity verification after rebase, and the normal four-stage LastCode quick-CI push guard also passed.

Built with GPT-5.6 in the Codex harness.

@lastobelus

ghost commented Aug 22, 2026

Copy link
Copy Markdown
Owner Author

@codex review

ghost 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: d598066e9d

ℹ️ 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".

@lastobelus

ghost commented Aug 22, 2026

Copy link
Copy Markdown
Owner Author

@codex review

ghost 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: 8b097275f7

ℹ️ 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".

@lastobelus

ghost commented Aug 22, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

ghost commented Aug 22, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 5d5757d7bb

ℹ️ 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".

@lastobelus
lastobelus force-pushed the lastcode/remote-update-drain branch from 5d5757d to adcf395 Compare August 22, 2026 08:51
@lastobelus

ghost commented Aug 22, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

ghost commented Aug 22, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: adcf395167

ℹ️ 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".

@lastobelus
lastobelus force-pushed the lastcode/remote-update-drain branch from adcf395 to 54f14e5 Compare August 22, 2026 09:44
@lastobelus

ghost commented Aug 22, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

ghost commented Aug 22, 2026

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 54f14e537f

ℹ️ 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".

@lastobelus
lastobelus merged commit 01822dc into lastcode/main Aug 22, 2026
@lastobelus
lastobelus deleted the lastcode/remote-update-drain branch August 22, 2026 09:58
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