8000 feat(execution): preserve durable stop evidence by dominicnunez · Pull Request #209 · dominicnunez/agentos · GitHub
[go: up one dir, main page]

Skip to content

feat(execution): preserve durable stop evidence - #209

Merged
dominicnunez merged 5 commits into
mainfrom
feat/execution-stop-evidence
Sep 19, 2026
Merged

dominicnunez merged 5 commits into
mainfrom
feat/execution-stop-evidence

Conversation

@dominicnunez
@dominicnunez dominicnunez commented Sep 12, 2026 •
Copy link
Copy Markdown
Owner

A model handler that ignored cancellation could occupy the submission service and delay durable stop evidence. Task supervision now atomically records a stop request and suspension before waiting for acknowledgement. An uncertain stop frees the service for unrelated work; a late handler return retains usage and local completion evidence without publishing a result or resuming the task.

Live admission and replay bind the exact execution, original stop cause, suspension, and acknowledgement evidence. Stopped executions cannot reserve new inference or publish ordinary activity. Suspended tasks cannot begin a new protected effect, while already attempted effects retain their reconciliation path. Runtime cancellation and listener failure cancel adaptive planning, task supervisors, and active HTTP normalization before request draining. Task result admission remains cancellable until completion verification commits; finishing that already-verified task projection remains permitted. Shutdown drains stop evidence after closing providers.

The Codex adapter requires a matching terminal turn notification to confirm cooperative interruption. Otherwise it attempts owned-process termination and retires that process and transport. A later independent request creates a fresh isolated client under its own context; the interrupted request is never replayed. Deliberate shutdown prevents recreation. Handler return, local turn/process termination, and remote uncertainty remain separate facts.

Refs #178. Suspended-task reconciliation/resumption, planning and normalization acknowledgement, and the remaining complete action/timeline audit stay open under that issue.

Validation: Linux build, vet, lint (0 issues), module consistency, the full pre-commit hook (all unit tests, AIMS document checks, formatting, and architecture boundaries), race tests for the changed app/ledger/events/projections/recovery/execution/command packages, and dependency vulnerability checks passed. Regression coverage includes noncooperative handlers and unaffected tenants, active shutdown through real HTTP listeners, planning cancellation and admission, interruptions across post-handler result writes, already-verified completion recovery, late usage, transaction rollback and retry, exact live/replay bindings, file-backed recovery, stopped-task effect admission, and Codex interrupt/process lifecycle failures. No live provider calls were used.

@chatgpt-codex-connector
chatgpt-codex-connector Bot commented Sep 12, 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-09-19T20:50:21.169456Z 1117cfa New commits
🔒 Security Review ✅ Completed 2026-09-19T21:01:35.910270Z 1117cfa Manual request

Security findings

Advisory findings (1)

ℹ️ 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: 809d05838c

ℹ️ 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 cmd/agentos/main.go Resolved
@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment
8000
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 Security Review · Automatically triggered

Here are some automated security review suggestions for this pull request.

Reviewed commit: 809d05838c

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@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: b199371047

ℹ️ 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 internal/app/stop_execution.go Resolved
Comment thread internal/app/service.go Resolved
@dominicnunez
Copy link
Copy Markdown
Owner Author

@codex security review

@chatgpt-codex-connector
Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 1117cfa7ed

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@dominicnunez
dominicnunez merged commit b943f6c into main Sep 19, 2026
5 checks passed
dominicnunez added a commit that referenced this pull request Sep 19, 2026
PR #209's review findings exposed gaps between helper-level tests and the complete shutdown lifecycle. Engineering guidance now traces owners and phases through durable completion and requires cancellation checks at the real runtime/transport and admission boundaries, preserving accounting and already-committed decisions.

Planning agents must use Astra. Other delegation keeps the existing quality, security, speed, and cost criteria.

Validation: committed documentation and diff checks pass. Documentation-only change; runtime code and threat model are unchanged.
@dominicnunez
dominicnunez deleted the feat/execution-stop-evidence branch September 27, 2026 05: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.

2 participants

0