Skip to content

fix(agents): hold automatic settlement for unfinished Actions without manual setup - #582

Merged
lastobelus merged 2 commits into
lastcode/mainfrom
lastcode/action-settlement-protection
Nov 2, 2026
Merged

lastobelus merged 2 commits into
lastcode/mainfrom
lastcode/action-settlement-protection

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Agents running a resumable Project Action workflow stopped to ask the user to turn off automatic settlement first. #520 retained that manual step to the parent-mediation instructions, but ordinary Actions don't need it. This PR makes the server hold settlement by itself and removes the step.

What changes

  • Settlement hold. A small runtime SQL change (45 lines) in the shared outstandingOwnedWork predicate keeps a thread from settling automatically while it owns an unfinished or recoverable ordinary Action, or that Action's exact retained or queued follow-up. There is no new state machine, table or API.
  • Release. A hold ends when the exact follow-up completes, as confirmed by exact native or legacy V1 records. Unrelated later turns do not release it.
  • Unknown history. Historical continuations that can't be matched to exact evidence stay held, which is the conservative choice. Explicit Settle remains available; reopening retains the conservative hold.
  • Carry placement. Both contributions stay in Incubator because they extend its existing settlement predicate and command guard. Same-base carry compilation now reproduces the exact source tree; the correction changed commit metadata only.
  • Instructions. The manual "disable automatic settlement" setup is gone. The guidance now says which Actions belong to a parent and when a delegated child returns a handoff instead of launching. The installed-ownership gate in Delegated tasks finish before resumable Action continuations complete #482 is unchanged.

Validation

Head 092e2312f8d341025a3c2350cb250d112832c330 on base 0670c8aa4dd1c7b61f2800d445ba4d47c0579c9d.

  • The changed-file gate passes on this head by reusing its passing source cache: 80 tests across 8 files and 25 package typechecks. The saved Automatic Quick CI Action produced a new exact-head/base passing receipt using normal task caches. No new test execution is claimed for the metadata-only correction.

  • Instruction-delivery and grader checks passed 431 tests, plus the one context-budget test. All eight Action replay requests build.

  • Terra 6.1 xhigh source review and the fresh carry-metadata delivery re-check are clean. The earlier source/runtime evidence retains its original pins; both replacement commit trees are identical to their originals.

  • An isolated running-server matrix covered ordinary Actions, Pause, disposal and explicit choice. It passed. This change has no visual UI, so the evidence is a short normalized server transcript:

    Ordinary Action starts without a settlement-setting change.
    Automatic settlement is rejected while the Action runs.
    Exact follow-up held by Pause: automatic settlement is rejected.
    Exact follow-up completes: automatic settlement succeeds.
    Terminal disposal ends the obligation: automatic settlement succeeds.
    Explicit Settle remains available for unknown historical continuations.
    

Not proven

  • Neutral parent/helper model check: partial. The first sample launched the Action from the wrong owner. After I clarified the wording, one rerun of the same neutral task had the parent own the Action and relay its result without asking about a setting. That rerun skipped the required pre-launch check of the saved command and registered target, and the helper sent an extra early message. This is neither acceptance, reliability, nor causal proof of the wording fix.
  • API replay produced no model samples because the configured proxy is absent.
  • No installed acceptance and no live V1 replay. Nothing here advances the child-owned rollout gate in Delegated tasks finish before resumable Action continuations complete #482.

Implemented and validated with GPT-6.1 Sol through Codex; reviewed by GPT-6.1 Terra xhigh through Codex. Claude Opus 5.5 high performed the guidance writing pass; Claude Sonnet 5.5 high performed the PR wording pass, both through Claude Code.

Unfinished ordinary Project Actions and their exact queued continuations now
block automatic settlement. Parent mediation no longer requires a manual
settlement-setting change. Exact native and legacy completion evidence releases
the hold without relying on unrelated later work.

Carry-Group: incubator
Carry-Fix: #520
Carry-Observation: Preserve explicit lifecycle choices and the installed-acceptance gate for child-owned Actions.
Co-Authored-By: Codex <[email protected]>

Carry-Observation: This repair depends on the Action continuation, settlement, test and guidance contributions currently delivered together in Incubator; preserve their ordered replay.
An unaccepted delegated child must return a final Action request instead of launching or waiting. Scope the no-setting instruction to top-level and parent-launched Actions, and retain the ambiguous ownership brief as a sanitized model regression.

Carry-Group: incubator

Co-Authored-By: Codex <[email protected]>

Carry-Observation: This repair depends on the Action continuation, settlement, test and guidance contributions currently delivered together in Incubator; preserve their ordered replay.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 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-11-02T21:31:22.573439Z 092e231 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.

@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@lastobelus lastobelus changed the title fix(agents): remove manual settlement setup for Actions fix(agents): hold automatic settlement for unfinished Actions without manual setup Nov 2, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 4b166df1af

ℹ️ 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/action-settlement-protection branch from 4b166df to 092e231 Compare November 2, 2026 21:28
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 092e2312f8

ℹ️ 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 1efd2d4 into lastcode/main Nov 2, 2026
20 checks passed
@lastobelus
lastobelus deleted the lastcode/action-settlement-protection branch November 2, 2026 21: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