fix(acp): retire sessions safely and preserve terminal receipts - #3446
OrionArchitekton wants to merge 10 commits into
Conversation
Signed-off-by: OrionArchitekton <Dan.mercede@orionapexcapital.com>
Signed-off-by: OrionArchitekton <Dan.mercede@orionapexcapital.com>
Signed-off-by: OrionArchitekton <Dan.mercede@orionapexcapital.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 100e5b63f1
ℹ️ 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".
Signed-off-by: OrionArchitekton <Dan.mercede@orionapexcapital.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 77075bf9c4
ℹ️ 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".
Signed-off-by: OrionArchitekton <Dan.mercede@orionapexcapital.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c68236ea2a
ℹ️ 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".
Signed-off-by: OrionArchitekton <Dan.mercede@orionapexcapital.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6606a018a5
ℹ️ 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".
Signed-off-by: OrionArchitekton <Dan.mercede@orionapexcapital.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e2f4eaac24
ℹ️ 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".
Signed-off-by: OrionArchitekton <Dan.mercede@orionapexcapital.com>
Signed-off-by: OrionArchitekton <Dan.mercede@orionapexcapital.com> (cherry picked from commit ce8b16e54a1e69cf6e949c084511062378421118)
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Signed-off-by: OrionArchitekton <Dan.mercede@orionapexcapital.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
I have a small shutdown-notice patch prepared against current main and noticed a direct overlap here: The additional behavior in my patch is a channel reply anchored to the exact triggering request and classified from the worker's terminal result. Normal completion suppresses the notice, including when its result is buffered after the task join set empties. Stopped turns get conservative wording about checking the thread before retrying; missing results or failed cancellation are described as unknown outcomes. Neither message claims that no work completed or promises automatic replay. The local regressions capture signed notice events and cover threaded reply targets, both result-drain paths, cancellation failure, forced abort and Drop-mode retry behavior. Each relevant guard has a passing test that fails when the guard is removed. Would you prefer a notice-only follow-up on top of this lifecycle work, or a small PR against current main with merge order coordinated here? I want to preserve the process-ownership and cleanup guarantees in this PR when adding the notices. |
Summary
OK, with bounded reconnect, rate-limit, lag, replay, and retention handlingsent/recyclingprogress outside terminal retention, keep ordinary telemetry loss separate from terminal shutdown proof, and reset relay-scoped desktop proof claims on community changesVerification
cargo test -p buzz-acp— 791 unit, 9 lifecycle, 1 startup-cleanup test, and doc tests passedcargo fmt --all -- --checkcargo check -p buzz-acp --all-targetscargo clippy -p buzz-acp --all-targets --all-features -- -D warningsgit diff --check origin/main...HEADd7ac0d27fis byte-identical to the fully validated signed rebase tree atce8b16e54(b0000634450d156063ad37584f624e4239a7130e)just cireached the Tauri system-library step after workspace clippy and desktop static checks; this host lacks GTK/GDK/Cairo/Pango development packagesReview feedback
mainwithout rewriting the published PR history; d7ac0d2 makes the new upstream env-probe test honor the typed shutdown result.Coordination
!modelfront door to the existing owner switch path; this PR hardens the underlying session lifecycle and terminal-result delivery. It overlapsacp.rs,lib.rs, andpool.rs, so merge order may require conflict resolution, but it is not a duplicate.Boundaries and residual risk