Skip to content

fix(core): reclaim acknowledged command observations safely - #391

Merged
lg2m merged 4 commits into
feat/native-command-environmentfrom
feat/command-observation-retention
Oct 21, 2026
Merged

lg2m merged 4 commits into
feat/native-command-environmentfrom
feat/command-observation-retention

Conversation

@lg2m

@lg2m lg2m commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

The persistent worker could refuse all future commands after retaining 10,000 observations. Trusted SDK consumers can now acknowledge terminal results after saving or deliberately discarding them, reclaiming their output and result rows while retaining compact IDs and request hashes that prevent replay. Acknowledgements are bounded, atomic and idempotent; running work and unacknowledged results are preserved across restart.

Verified: 60 focused command-owner/custody/server tests, including capacity reclamation at 10,000 rows, replay prevention after restart, atomic rejection, journal migration and cancellation during saturated reclamation. The real SDK example runs, reopens its result and acknowledges it. Formatting, repository lint and core/server Clippy including tests/examples pass; platform CI runs on this PR.

Stacked on #388; prerequisite for #389's session integration. This PR adds the reclamation API and its SDK caller. Session-result persistence must be wired before acknowledging ordinary agent commands. Compact retired identities still grow with history. Does not add filesystem or network containment.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T09:49:24.314507Z d496653 Manual request
ℹ️ 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: 6c8cf0b94e

ℹ️ 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 crates/qq-core/src/command_owner.rs Resolved
Comment thread crates/qq-core/src/command_owner.rs Resolved
@lg2m lg2m added the ci:full label Oct 21, 2026
@lg2m
lg2m force-pushed the feat/command-observation-retention branch from 3858e17 to 083a2be Compare October 21, 2026 08:45

@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: 083a2be304

ℹ️ 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 crates/qq-core/src/command_owner.rs Resolved
@lg2m
lg2m force-pushed the feat/command-observation-retention branch from 083a2be to a781579 Compare October 21, 2026 09:14
@lg2m

lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: a781579eec

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

@lg2m
lg2m force-pushed the feat/command-observation-retention branch from a781579 to d496653 Compare October 21, 2026 09:34
@lg2m

lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: d496653be4

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

@lg2m
lg2m merged commit 3d3aad8 into main Oct 21, 2026
8 checks passed
@lg2m
lg2m deleted the feat/command-observation-retention branch October 21, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant