Skip to content

refactor: consolidate session input ownership and authority - #177698

Merged
jalehman merged 51 commits into
openclaw:mainfrom
enki:refactor/session-controller-steering-admission-20261019
Oct 22, 2026
Merged

jalehman merged 51 commits into
openclaw:mainfrom
enki:refactor/session-controller-steering-admission-20261019

Conversation

@enki

@enki enki commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Current integration and inherited CI (2026-10-21)

Current head e3a25eba1ae4737d69b913c8effc7455ee21195d preserves Jalehman's upstream integrations, prompt-snapshot resolutions, #178874's over-cap file splits and #179227's Control UI startup-budget repair. No unrelated test repairs have been added to this branch.

The four failed test jobs in CI run 39615810386 come from upstream fixture/assertion drift: retired heartbeat settings in restart, concurrent-stream and first-turn fixtures, plus the native-sidebar focus assertion left behind by #179214. Repairs stay separate: #179626 covers all three Gateway fixtures (#179592/#179594 are narrower alternatives), and #179574 covers the sidebar. Redundant #179621 is closed in favor of #179626. The older 390px account-menu case is already repaired by upstream #179307.

The CI attribution and preserved earlier integration evidence records the exact jobs, source comparison, executed head-versus-UI-revert result and upstream-base validation. With the separate test repairs, six selected Gateway cases and all eleven native-nav cases pass on upstream production base 53a236d; the exact 390px case passes too. This is synthetic isolated Gateway/browser evidence, not new native-Codex or operator-data proof, and does not make current-head hosted CI green.

Earlier 223d8959 validation remains explicitly historical: 170 affected tests, relevant type/lint checks, ten TUI tests after restoring already-pinned local dependencies, and all twelve scripted public-RPC Gateway scenarios from stacked #178985. Their full qualifications are preserved in the linked comment. #178985 remains separate and stacked; the separately investigated restart-before-recovery/new-input deadlock is not claimed fixed by those twelve cases.

Exact-head CI, maintainer security acceptance and the documented compatible same-requester human/completion-context decision remain open. The existing ClawSweeper exact-review artifact retry is separate from a source finding.

Earlier conflict repair (2026-10-20)

Upstream bd2dbfdeb4932c7cc8cefea45dee1cf4fe70a5b5 was integrated as 26d5d608da70226c95e584ce7c8bf875e3068761, adopting #178693's persisted-child-lineage continuation owner and removing the obsolete native-only caller argument. The recorded conflict validation retains its exact revision, canonical forks-project qualification, and 18 passing Gateway/recovered-child cases. This historical checkpoint is distinct from the latest validation above and the earlier combined deployment below.

Local deployment checkpoint (2026-10-20)

The operator explicitly opted into a combined local deployment containing main consolidation 7605b4fc8c28a628cd4d6b9a3e63bc9f1304ce10, reply-obligation candidate 66eea4b4ef10f196ba1640398d186884d5557cdd, reconnect candidate de1dfafe07c8f0762b9e5fc16d4dfc6b36a3fbeb, and selected-requester candidate 9600c93d45bbdb867ff738d258f25ea94a7f2f45, alongside existing local integrations and the separately restored saved-attempt UI work. The resulting local build is 764886a56987d82f3a3934e2dd7d6a2416ef98da.

Operational readback confirms the exact loaded build, readiness, health, Node 24, unchanged service environment, and all 25 previously active plugins. This is a combined integration deployment, not standalone validation of each PR or security/session-owner acceptance of any extracted policy. No new business-message, native-effect, revocation or reassignment proof is inferred from operational health. The earlier isolated traces below retain their recorded revisions, scenarios and failed-collector qualifications.

What Problem This Solves

Several bug-fix PRs address failures in the same session-input lifecycle: valid corrections queue, recovery substitutes the wrong source identity, accepted input becomes replayable, or queued completion work loses its scope before dispatch. Admission, execution, recovery and delivery have been reconstructing ownership differently.

This PR consolidates those repairs around the existing SessionController: capture one execution owner, authorize each incoming source independently, and give acceptance, consumption and settlement explicit outcomes. The purpose is to repair the shared lifecycle contract rather than keep patching each symptom.

User Impact

Compatible, authorized human corrections join the active execution at the runtime's supported boundary. The execution retains its tools, workspace and model-selection policy; the new message does not replace those permissions. Recovery waits for that same operation's replacement backend, while input captured against an old attachment remains fenced.

Accepted input retains its source identity and delivery custody through confirmation uncertainty. A deadline cannot authorize replay of input already accepted by the runtime. Settled completion wakes cannot block new input. A yielded cohort retains its one still-owed notification, including a cancellation report, until that notification is settled.

Ordinary peer messages, returned results and explicit followup retain their existing separate-turn scheduling and correlated replies. Existing narrow child/run-scoped exceptions retain their checks. No schema, dependency, configuration option or native Codex fork is introduced.

Ownership Contracts

  1. One captured execution. Preparation and delivery address the same operation and backend attachment; they cannot silently target a successor.
  2. Independent source and target validity. An ended target can allow followup by a still-authorized sender; revocation of the sender cannot authorize replay. Recovery preserves the original source identity.
  3. Explicit custody outcomes. Rejection, failed source authority, acceptance and unconfirmed consumption stay distinct. Accepted input is held until its owning delivery path settles.
  4. Accepted completion scope. Bind the existing one-use requester grant to the exact accepted run before ACK, reuse that binding at dispatch, and release it through joined cleanup. Restore reserves still-owed work, including retained yielded-cohort cancellation reports, while dropping retired ordinary waves.

The fourth item repairs an acceptance-to-dispatch gap in the existing accepted-continuation contract; it does not introduce general requester re-entry after a turn. Upstream #162299 already retains accepted replies independently of the original invocation. This PR preserves revocation, session/reset, run ownership and Gateway lifetime checks.

Host admission and receipt contracts are shared across bundled adapters; each runtime keeps its own supported delivery boundary. Released external harnesses retain their question contract. Human attribution alone cannot answer another requester's pending question. Types prevent some invalid combinations, while temporal changes still require checks at their effect boundary.

Policy Split

The consolidation no longer bundles these proposals:

Deferred behavior Focused follow-up
Accept a required human message into optional work and strengthen that execution's reply obligation #176245
Share verified cross-socket reconnect comparison identity, while keeping independently revocable sources #176972
Restore a personal-tool requester selection while delivering a returned peer result #178750 (draft; the latest review accepts the qualified effect proof; owner decision remains open)

The associated production machinery and feature-only positive tests are extracted together, with exact add-back patches retained. No dormant promotion flag, accounting owner or requester-reentry path remains in this PR. The neutral reply types remain a type-only leaf for the shared contracts.

Current recommendation: land the lifecycle consolidation separately from those behavior choices. A required human message against an optional owner retains followup custody, without injecting or promoting that owner. Compatible required-to-required human steering still works. Ordinary peers remain separate turns; adopting Codex's native peer mailbox requires a supported app-server API, not relabeling peers as human input.

Codex's native mailbox loop and human steer operation have distinct boundaries. OpenClaw uses supported human steering without forcing Stop/restart or an earlier interruption point. #160842's narrow peer exception is retained.

Security-owner review remains required for the authority-sensitive consolidation. Extracting the policy proposals does not claim approval, waive review, or turn historical evidence into exact-head proof.

Relationship to Earlier PRs

PR Relationship
#174967 Includes original source identity, native child/result handoff and ACK/custody repairs; excludes broader busy-peer/followup scheduling.
#175763 Consolidates frozen execution capability and current-caller projection through the actual fallback producer.
#175810 Inherits upstream's accepted native terminal-expectation publication and retains related regressions.
#176245 Includes transcript ordering and separate pending-question permission; does not replace its optional-work reply-promotion proposal.
#176972 Separate follow-up; verified reconnect cohort sharing is no longer included.
#177618 / #177661 Includes pre-ACK run-scope custody, cleanup and canceled-wake/direct-error repairs; personal-tool requester re-entry is excluded.

This is a consolidated alternative for the included fixes, not a prerequisite-only foundation. Already merged fixes are inherited. Open originals remain available for maintainer choice. Related #175845, #176086, #176087, #174900, #176311 and #177414 are adjacent recovery/native contracts checked for compatibility, not claimed as superseded.

Evidence

Current conflict integration at 7605b4fc8c28a628cd4d6b9a3e63bc9f1304ce10

Merged upstream c909114f55fc5889076bf4fbbb61f6ab32bf8146 to resolve the newly reported conflict. The only conflict is in the native completion contention regression: both parents release the held retirement write before readiness; the resolution adopts upstream's single readiness wait before joining retirement, preserving the receipt assertions and cleanup. The resolved file exactly matches incoming upstream. No manual production edit or extracted policy addition is introduced.

All 22 tests in the two affected native completion suites pass (94.37s canonical wrapper wall time, including 37.19s worker preparation). Core production and extension-test types, formatting and whitespace checks pass. A fresh independent P0–P2 review of the manual resolution against Git's automatic-merge snapshot reports scoped-clean; it is not a new review of every imported upstream change.

Existing native/runtime/compaction/upgrade evidence remains at its stated revisions. No new runtime capture or deployment is claimed for this test-only conflict resolution. Current hosted CI and exact-head security-owner approval remain separate gates; the latest completed contributor review had no findings or further proof asks.

Conflict integration at d7cfd0a504836854e7563e94f975f3069629865d

Merged upstream f629720edbb9f4b458adae30c7506c1dc5d1adc6 to resolve GitHub's reported conflict. The sole manual resolution combines upstream #178694's parent-first recovery with the consolidation's retired-obligation and frozen-cohort checks. Recovery preparation runs before the final live-cohort check, so a retired or replaced row cannot borrow the pre-await representative. No extracted reply-promotion, reconnect-comparison or personal-requester policy was reintroduced.

60 affected tests pass: 55 recovery-priority, mailbox, requester-settle and source-ownership cases across four files, plus all five Codex handoff/cancellation cases in the automatically merged test file. The upstream eight-child orphan recovery regression and existing mixed/retired-cohort controls are retained. Core production types, the owning agent-session test type graph, scoped typed lint, formatting and ordinary commit hooks pass. Wrapper wall times are 65.56s and 27.18s, respectively; most of that is worker/import preparation.

A fresh independent P0–P2 review of the single manual resolution reports scoped-clean. That review compares the resolved source to Git's automatic-merge snapshot with both parents supplied; it does not claim to re-review every imported upstream change. Earlier runtime, compaction and upgrade captures retain their original revisions and limitations. No new runtime build, native trace or operator deployment is claimed for this merge.

The previous PR context and evidence failure was caused by this body's renamed Current Validation heading. Restoring the required authored Evidence section passes the same production body-policy evaluator locally. The two failed status contexts both reported that a maintainer must approve the current revision; canceled jobs are not test failures. New-head hosted CI and security-owner acceptance remain gates.

Policy-split validation at d383dd4e9bb180d5dd880f21029ac7d586052130

Narrowed head: d383dd4e9bb180d5dd880f21029ac7d586052130, based on the previously reviewed 5d74c50003122fe40da34b36eac16e838e5857d3 over upstream 1429fd5487b508d59b0466fb83a9618c8022f162.

  • The split changes 29 files, with 197 additions and 2,229 deletions relative to the earlier proposal. Feature-only code and positive tests remain recoverable from its published parent and exact add-back patches. The complete narrowed PR remains 161 changed files, 7,423 additions and 1,700 deletions against the integrated upstream base; this is still a substantial consolidation.
  • 269 focused tests pass across 16 files, covering compatible human admission, strict optional-owner fallback, exact handoff, recovery readiness, pending-question contracts, accepted confirmation custody, requester automation scopes, device revocation and authenticated dispatch. After moving the unchanged advisory into the existing backend-resolution module to satisfy the line limit, all four affected controller/control-owner files pass again. The public import is preserved; no limit or assertion was weakened.
  • Core production types, all five affected test type graphs, scoped typed lint, formatting, whitespace and ordinary commit hooks pass. Fresh independent P0–P2 review of the complete split reports scoped-clean. The final export-order adjustment is mechanical. Test wrapper wall time: 142.67s core cohort and 126.96s Gateway cohort, run concurrently; each includes about 46s worker compilation. Exact-head CI timing is not yet claimed.
  • The exact committed runtime build succeeds (97s). It retains the startup-JS advisory: 318.6 KiB against 317.5 KiB; no budget was changed.
  • Fresh exact-head isolated Gateway proof: a scripted HTTP provider holds the genuine recovery-compaction summary. One human message is sent while it is held. After release, the original execution consumes that input in exactly one provider request and returns its reply; canonical history contains one human row and the stored queue is empty. Compaction start precedes release and completed end follows it, with one persisted compaction. Gateway exits zero; observer, proxy, provider and bus join normally; temporary state is removed, with no timeout or forced kill. All 20,035 frozen source/generated/fixture inputs are independently rechecked unchanged.

This is synthetic production-boundary proof using the built-in OpenClaw runtime and scripted external HTTP inference, not a new real-model or native Codex capture. The first collector attempt failed temporary-path canonicalization before starting the Gateway; the launcher was corrected to resolve the macOS alias, without changing product code or an authority guard. The passing run retains its QA-bootstrap busy-WAL warning as a qualification. No raw credentials, private endpoints, identities or user content are published. Earlier native and upgrade captures remain qualified below. No operator deployment was performed.

Earlier Revision-Qualified Evidence

The following captures retain their original revision, scenario and failure qualifications. Captures of optional promotion or cross-socket comparison support the extracted follow-ups, not behavior implemented by this narrowed head. Historical native traces have not been relabeled as a fresh execution of the split. Accepted-work scope and compaction traces remain bounded evidence for their named owners and revisions.

Recorded runtime, upgrade, recovery and CI evidence

Conflict integration at 5d74c500031

Merged upstream 1429fd5487b508d59b0466fb83a9618c8022f162. The sole manual conflict was upstream's test reorganization in agent-runner-core.test.ts; the resolution retains the shared error helper, per-test cleanup and existing cases, plus the claim-change error assertion. Fresh independent source review found no P0–P2 issue. The separate saved-history/outbox UI fix is excluded.

This integration also inherits #178645, which supplies explicit native-touch timestamps independently of CDP round-trip latency. The unchanged widget distance, inertia, direction and reader-preservation assertions pass in the focused Chromium run: text 475px total / 240px inertia; widget 474px total / 239px inertia. This macOS run validates integration; it does not establish the cause of the earlier Linux 235px sample.

The affected Bun runs pass all 9 error-handling tests and 21 embedded-maintenance tests, including unlimited maintenance. The original Linux maintenance failure remains unexplained; no production change or assertion weakening is claimed to fix it. Fresh hosted CI remains required. Earlier native/authority evidence retains its recorded revisions and limitations. No live Gateway or business session was changed or restarted.

Recovery-compaction follow-up at 24bb99cfcf9

A human message arriving during recovery compaction could be permanently downgraded to a followup: the same logical operation survived, but its detached backend left an already-resolved readiness promise behind. New input now waits for that exact operation’s next backend. Previously captured attachments remain fenced; Stop, cancellation, finalization, yield, and owner replacement still release or reject waiting input.

Recovery also now publishes its own compaction lifecycle, independently of optional hook text. Hidden runs deliver start/end through the existing authorized session subscription. Hook notices do not duplicate lifecycle/accounting or clear the UI status timer, and optional lifecycle-progress callbacks cannot block compaction.

Validation:

  • The old producer fails the human-admission regression. The old Gateway transport fails all three positive compaction-delivery assertions; the three exclusion controls pass. Empty-notice recovery and UI notice-timer regressions also fail before their fixes.
  • 174 focused tests pass across the affected owner/sibling suites. The affected controller/steering suites were rerun after the final lifecycle cleanup; 50 Gateway tests passed after extracting event selection into its existing admission module. Core/UI production types, typed lint, formatting, commit hooks, and the runtime/private-QA build pass. The existing startup-JS size advisory remains.
  • A real isolated Gateway running the built-in OpenClaw runtime received a scripted HTTP context-overflow response and held its actual summary request. A human message was submitted once while compaction was held. After release, one human-bearing provider request and the human’s reply occurred on the original execution; the canonical human row appeared once and the server pending-input queue was empty. Compaction start preceded release and successful end followed it; compaction was accounted once. The observer, Gateway, provider, proxy, and bus joined normally, with Gateway exit code zero and no forced containment.

All proof inputs and message content were synthetic. This is an actual Gateway/controller/compaction flow with a scripted external Responses provider, not real-model inference or a reproduction of the private live session. Raw captures remain private. The first collector attempt failed its temporary-path canonicalization guard before Gateway startup; it is preserved as setup-only evidence. Earlier native/Muse captures retain their recorded revisions and scenario scope; this change does not claim a fresh native-runtime capture or resolve maintainer/security-owner decisions.

At that earlier checkpoint, this revision had not yet been deployed to the operator Gateway.

Prior integration and CI diagnosis (186be068940)

Exact CI diagnosis and validation: the six red indicators on the earlier 0f784… head represent three test failures, the aggregate gate twice, and a security-approval status. Those failures predate the Muse proof publication. That recorded integration merges upstream e5302ee39c5, resolves the metadata conflict while retaining the read-only exact-session projection, and adopts upstream #178578's touch-emulator repair. Validation: 91 UI tests, 4 Chromium browser cases against the mocked Gateway, 21 maintenance and 12 Session Share tests under Bun, core/UI types, scoped lint/format and the canonical build pass. The build's startup-JS gzip advisory remains; no budget changed. The two original Linux backend failures remain unexplained; local passes are not claimed as a fix. New-head hosted CI and owner decisions remain gates. Native/Muse captures retain their recorded revisions and source-reuse qualifications.

Extracted Muse stream proof (historical)

The independent Muse repair and its Gateway stream evidence now belong to #178837, following the maintainer split at 6f5fca7d891. The historical capture below is not evidence of a Muse implementation retained in this consolidation.

The requested Gateway trace now runs 0f78424994631408fbeed838bb7df25991d7ba40 through authenticated chat RPC, the production Muse harness, official SDK 1.4.4, and a scripted external MSP subprocess. A genuine prefix frame arrives before the native command ACK; the collector requires the client-visible prefix before releasing the suffix, so saved-final correction cannot satisfy the live-stream check. Actual wire deltas are ["started:", " hello"], matching exactly one saved started: hello in two canonical history readbacks. Completion is normal, with no native interrupt; the QA Gateway stops and both external hosts have exit0 receipts and absent PIDs. An independent raw audit passes 91 checks.

This is a synthetic external-MSP Gateway capture, not an official Muse CLI/Meta-inference claim. The linked evidence preserves the first failed collector assertion, the history audit's volatile-timestamp correction, the later empty chat reset, and the unclassified QA-bootstrap checkpoint warning. All outgoing trace fields are whitelisted; no private raw capture is published. Earlier revision-qualified proof and security/session-owner decisions retain their stated scope.

Recorded pre-recovery source: 0f78424994631408fbeed838bb7df25991d7ba40, integrating upstream 5a0b5006d5fcb72f238c3c587395bf38591971ad. The sole new conflict adopts the title resolver already merged in #178510 verbatim; the transcript-metadata guard remains unchanged. Recorded c3 source: c3efd0744574c6920dda4af1066b6d6058053a54, after conflict integration eb409c37a0189c6842cb86d0dc05b1096ed44fc8 over upstream da0c2649a1cf94ae3facf061af791cab71c9d157, including the UI metadata and Muse repairs below. The sole manual conflict adopts upstream's narrowed two-argument local mutation wrapper while preserving both accepted-input custody guards. The earlier three-conflict integration 48e86662660 remains intact: unconditional source-bound preparation, separate source/target validity, and the reply-expectation, owed-wake and mixed-cohort regressions are retained.

At the recorded 48e86662660 integration, 110 steering/mailbox tests across six files, seven UI metadata tests and all three cold-load browser tests pass, together with core/UI production types, scoped typed lint/format, whitespace and independent review of the three applied resolutions. The title repair has a red-to-green regression: a current exact-session descriptor supplies the title when the bounded shared roster omits the session; deletion still clears it. The original failing CI job reported the same missing-title symptom. Its exact ordering was not captured, so the passing replay is not claimed to establish that ordering or prove a base failure. No assertion, timeout or retry was weakened.

The exceptional queued-authority captures below remain executions of e44f11ece93e98d89ca46d03e3dee67052e82ac0. At recorded head 0f784249946, all 44 source pins in that fixture were byte-identical; this was source-qualified reuse, not a fresh runtime execution of that merged binary. The recovery follow-up changes affected owners, so it does not extend that whole pin-equivalence claim to 24bb99cfcf9. Other native/upgrade captures retain their recorded revisions and limitations. Hosted CI is a separate landing gate; consult Checks for its current result. At that earlier checkpoint, this head had not yet been deployed locally.

The subsequent Muse CI failure is repaired in 291018c6442fd8a0513fc6023ac22e850c8ee50c. The SDK's delta iterator is live-only: attaching after the first chunk made the adapter interpret a suffix as the full prefix, corrupting live output while the saved final remained correct. The adapter now reads cumulative fields from the SDK's existing fold and removes its competing text accumulator. A real SDK Session/Turn regression reproduces the exact corrupted output before the fix, with a completed-before-attachment control. All 53 Muse harness/event tests pass under the pinned Bun runtime, including the CLI transport lifecycle case; extension production types, scoped typed lint/format, whitespace and fresh independent P0–P2 review pass. The later lint-only brace correction changes no test behavior.

The inspected Muse producer, lifecycle fixture, package dependency and shared event emitters are unchanged between the CI-tested base d1b8bccb9d5e273a17e9c76a1c38ab891e180623 and 48e86662660. This is source-attributed inherited code with an exact deterministic adapter reproduction, not a whole-base runtime reproduction. Automated main classification remains unknown because no matching main job was available. No retry, timeout, expected text or failure assertion was weakened. Hosted CI on the new head is still a separate gate.

The later cold-load UI failure reports missing completed-work duration while title, reply metadata and progress pass. The transcript owner suppressed cached metadata after observing a descriptor, but supplied no descriptor metadata when the bounded shared roster omitted the selected session. The repair projects only the existing read-only transcript fields from a current descriptor matching the displayed transcript incarnation; selected-session permissions, fresh-row precedence, snapshot ownership and observed-absence handling remain unchanged. A real-capability startup → bounded-list regression fails on the preceding producer and passes after repair, with different-incarnation and deletion controls. 44 focused UI tests and all three unchanged cold-load browser tests pass, together with UI production types, scoped typed lint/format, whitespace and fresh independent P0–P2 review. These synthetic local checks do not establish the exact ordering on the failed Linux CI run. No browser assertion, deadline or retry changed.

The same run's compact shard 29 remains unclassified: pinned Linux Bun exited with SIGABRT before reporting any test result or crash stack. Its selected 18-file group passes all 236 tests locally on macOS with pinned Bun and two workers; that is not a Linux reproduction or proof that the crash is unrelated. The available artifacts include no Bun crash/core trace. This repair does not change runner behavior, retries, test selection or the failure gate; current-head hosted CI remains required.

The recorded c3 conflict repair passes 125 focused authority/controller/mailbox tests across eight files, including retained mutation custody after an accepted-input confirmation failure and source revocation. All 91 UI metadata/duration/reply/cache tests and three unchanged cold-load browser tests also pass after integration, together with core/UI production types, the owning agents-tools test graph, scoped typed lint/format and whitespace. Independent inspection of the applied conflict found no actionable P0–P2 issue; the only change from the preceding steering helper is removal of the method argument now fixed by its canonical owner. All 44 recorded exceptional-retirement source pins still match; this remains source-qualified reuse, not a new merged-binary native execution.

The review's busy-peer guidance finding is corrected: placed-worker descriptions now state separately admitted ordinary peer turns, reply-wait timeout semantics and the narrow eligible zero-wait exception. The documentation correctly states that explicit followup retains a separate turn and reply. The three exact-paragraph routing assertions were removed as requested; behavioral routing/admission tests remain unchanged. The ten remaining description tests, scoped typed lint/format and fresh independent P0–P2 review pass. That guidance-only update did not close the completion-handoff native gap. The new exact-head captures below now cover the genuine completion-handoff native continuation and revoked-source rejection. Security-owner acceptance, optional-human reply-promotion and the separately recorded CI limitations remain open.

The new exact-head completion-handoff traces and browser comparison execute c3efd07, using source-declared official Codex 0.162.1 with no native/catalog/feature override. A genuine managed-child settle capability and retained canonical envelope select actual completion-handoff policy. The authorized human case has one native steer/ACK, one selected provider input and native echo, one saved human input/final and a normal final in the same completion turn. Independently revoking only the incoming device after original preparation blocks its native/provider/journal input while the original completion owner finishes normally. A cancelled admission receipt remains, with zero queued inputs at final readback; no later replay is claimed. Both raw audits pass, all four native processes exit zero/null after ordinary teardown, and complete one-row/all-18-column automation inventories remain unchanged. Scripted inference, requester-settlement/preparation scheduling holds, the initial yielding-parent interruption and the completion's new physical thread are disclosed in the linked receipt. No early-outbox-retirement, isolated automation commit guard, profile/model-policy or new optional-reply proof is claimed.

The off-page metadata repair is now separate #178839; its display-projection/current-incarnation scope is distinct from baseline title retention. The same comment records inspected controlled component browser evidence for that extracted UI repair: actual observed-descriptor/bounded-list owners and real Solid renderers receive an explicitly absent selected-row input. The exact same fixture records New session / Worked with only the two UI owners reverted to pre-repair e44, then passes exact title, duration and read-only metadata checks at c3. Full-app local baseline replays passed and are not represented as a failing-before reproduction. Inspected before/after images are now embedded in the linked evidence comment. Both hosted PNGs were downloaded and verified byte-identical to the original captures: before shows New session / Worked; after shows Synthetic observed conversation / Worked for 3 minutes. The same controlled-component and historical-ordering qualifications remain.

Recorded c3 CI also reports a Codex isolated-completion allowed-case deadline and Slack maintenance-scope / speech request-receipt failures. After fetching for the conflict repair, all seventeen inspected test/fixture/production owners also match the exact CI-tested base 4fd7cad3dcddfac0026d612842be23fafcc1342d. This is unchanged-base source attribution, not an executed base reproduction or cause: these failures remain unclassified, not declared unrelated or repaired. No timeout, assertion, retry, expected failure or CI gate was weakened. Security and maintainer decisions remain outstanding.

The 0f78424994631408fbeed838bb7df25991d7ba40 integration passes 76 affected UI tests across five files, the real-Chromium producer/renderer composition, core/UI production types, scoped typed lint/format and whitespace. Independent review found no actionable P0–P2 issue in the applied resolution. The new browser image is byte-identical to the inspected c3 after-capture. At that recorded 0f784249946 head, all 34 native completion-handoff source pins and 44 exceptional-retirement source pins matched. The native executions remain their recorded c3/e44 binaries: this is source-qualified reuse after integration, not a new merged-binary native run. The image-publication step is complete. Hosted CI for the recorded 0f784249946 head was still running with no failures in that earlier checked snapshot; the recorded older failures retain their cause-classification limits. Security-owner acceptance and maintainer decisions remain open.

Revision-scoped runtime traces, compatibility receipts and earlier validation

Recorded mixed-cohort and CI repairs: The restore owner retains complete frozen batch identity while selecting a current owed representative, including after requester lookup. Exact standalone tests reproduce both missing reservations before repair. After integration, 52 recovery/dispatch/mailbox/Stop tests and 75 placement-owner/sibling tests pass across seven files; core production and owning test types, scoped lint/format, whitespace and independent P0–P2 reviews pass. The CI test uses the existing exact claim settler and preserves stale-finally fencing; it changes no product logic. Hosted CI remains the broad gate.

Recorded prior integration: e44f11ece93e98d89ca46d03e3dee67052e82ac0, integrating the conflict-producing upstream 42a73b62bb18abd0dc6b68fca0daf50f62331f79 into 1571f81c8568eb819450e78996950df69917ed58. The sole manual conflict preserves the injected abort spy through upstream's handle factory, keeping the no-abort regression meaningful. The extracted steering cases and durable source-recorder checks remain. Upstream's recovery read-only restrictions and replay-safety metadata are retained.

77 affected tests across three files pass, with core production and owning agent-root test types, scoped typed lint/format, whitespace and independent review of the mechanical conflict resolution. The canonical private-QA runtime build passes at this exact revision. The build retains its UI gzip-size advisory; no budget was changed. The preceding 1571 integration's 111 checks retain their recorded revision. No new native/upgrade run or maintainer/security approval is claimed.

The separate public-package build, ordinary latest-stable upgrade and native human-steering trace below remain executions of 7ecc42f61a92bc58d5a097edf20bcf2c46c66b2c. Earlier queued-effect/native captures likewise retain their recorded revisions and limitations; they are not reruns of this integration. Inspectable aliased receipts and preserved qualifications remain in the existing evidence comment. That earlier integration checkpoint supplied no new queued-authority proof, owner approval or local deployment; the later e44 exceptional trace is recorded separately below.

Proof Result and scope
Recorded 7ecc hosted CI snapshot The 7ecc42f61a92 checks tested merge 6fb1184eb2da over base e1259a37e726. Production types fail on browser DOM/JSX ingress through an upstream Gateway test-support import chain; that helper and core project configuration match the tested base byte-for-byte. Compact shard 16 fails one long reply-tagged streaming threshold, 1197.260 ms against 1000 ms; its test, harness and stream implementation also match the tested base, and this PR does not change those streaming owners. These are source-attributed unchanged-base paths, not an executed reproduction on that CI base; the performance cause remains unestablished. Neither threshold nor type configuration was relaxed, and no workflow rerun was requested. The aggregate CI gate remains failed.
Recorded conflict integration at 7ecc42f61a9 Three conflicts are resolved: fallback tests retain same-profile/current-caller/client-capability assertions alongside upstream factories; admission retains early requester-scope binding and joined idempotent release while adding upstream plugin-subagent rejection and exact admitted-context cleanup; placement tests retain the canonical exact-claim settler and stale-finally fence. 191 tests across eight files pass, together with production and both owning test-type graphs, final scoped typed lint/format and whitespace. Fresh independent P0–P2 review found no actionable defect; the final factory-derived type annotation was separately typechecked/linted and changes no runtime expression. The supported private-QA runtime build passes; the recorded 7ecc human trace below passed, while the queued fixture remains unqualified. GitHub reported this head mergeable after push; review/CI blocking is distinct from conflicts.
Prior conflict integration at 918d0793534 The sole manual conflict retains upstream’s canonical Parameters-derived helper types while preserving the public execution-selection/queue adapter contract, current-caller reader, model-route refusal and binding. Upstream’s native-child independent-continuation selection is retained with inherited-authority/current-scope checks. Two equivalent option/type declarations are simplified without a new owner or lint exception. 109 authority/queue/accounting checks pass, followed by 7 targeted admission checks after the option cleanup; core and owning agent-session test types, final scoped typed lint/format and whitespace pass. Fresh independent P0–P2 review with complete authority-owner context found no actionable defect; the final factory-derived annotation is type-only. Hosted CI and current native behavior remain separate gates.
Recorded human steering at 7ecc42f61a9 Source-declared official Codex 0.162.1, with no native/catalog/feature override. Authenticated ordinary chat.send received an actual turn/steer ACK while the incumbent output item was unfinished. The provider consumed it once on the original thread/turn after response.completed; a normal final, one canonical input and one native echo are correlated, with zero foreign-marker frames or forced turn interrupts. Both app servers exited zero/null after normal teardown SIGTERMs. Root independently audited original wire/journals/readbacks, full cleanup and pins; redacted receipt below. This does not prove peer mailbox parity or optional-reply promotion.
Recorded native handoff at c33ca7e8d7c A source-owned canonical test exercised two real native processes with separate native threads sharing the original client. Controlled graceful retirement unsubscribed the exact old thread; its actual thread/closed preceded successor resume of that same physical thread/rollout while the other thread and original process remained active. The successor completed before the other response was released. All three normal finals persisted; both processes exited zero, with no native interrupt, forwarded signal or cleanup error. Root independently rechecked raw frames, source/fixture/binary hashes and readbacks. Existing production unload delay was zero; the global native 60-second default was not exercised. Native 0.163.0 override/source pin 0.162.1 and the earlier pre-native ESM setup failure remain disclosed. This is controlled lifecycle evidence, not public Gateway reconnect/authentication or native collaboration parent/child proof.
Prior integration at 6222f1e5429 Three prompt-fixture conflicts resolved through the canonical generator. Upstream retired-target projection handling is retained with the consolidated explicit failed-source outcome; its regression requires acceptance false, the exact source error and no sink call. 120 tests across nine affected files pass, together with core production/test types, format/whitespace and assertion ratchet. The prior CI repair batch had a fresh scoped P0–P2 review; a separate read-only integration review found no P0–P2 issue in the projection/error merge. Hosted CI is the broad current-head gate.
Conservative policy at 9014549758f Broader-routing parent: 11 failures/65 passes. Conservative revision: 143 affected tests pass, canonical types/lint/format and fresh review pass. Actual native ordinary peer and explicit followup each waited for the original normal terminal, then used a distinct correlated native turn and returned its reply. Human input was consumed once in the original native turn and finished normally. Six native processes exited zero; all isolated services/state cleaned up.
Genuine optional-result → human at 5c831c77681 A real zero-wait peer result arrived after the original sender finished, starting the default optional returned-result run. Actual human chat.send received a native ACK in that same turn; the same accounting object strengthened its reply obligation afterward. One selected provider input, one journal echo, one canonical input and a visible saved human final were verified. The final contains two existing visible segments, not an exclusively human-only reply. Independent raw/pin audit passed; normal teardown forwarded SIGTERM after all native turns ended, and both processes exited zero with no terminating signal.
Native confirmation → late consumption at 5c831c77681 Actual explicit peer steering persisted its input before native submission. The real five-second host confirmation deadline fired with the same accepted batch retained; the sender finished and the receiver stayed active. The original native turn later consumed the input once, and the unchanged correlated native receipt confirmed that batch. Stored user receipt and forwarded display row each remained exactly one; both native turns finished normally with zero pending input/replay/forced turn interruption. Independent raw/pin audit passed. Earlier two collectors remain failed because they incorrectly required the forwarded display row to retain the stored user role. This proves confirmation custody, not exact-thread shutdown/handoff.
Canonical profile reassignment at 5c831c77681 After actual queued ACK, a third keeper merged the original actor into a target with the same role/scopes/model policy. The exact original queued run canceled before native input; fresh original-identity authentication resolved the target. No continuation native input/removal occurred, and complete canonical/all-18-column inventories across both cron rows stayed unchanged. Three native processes exited zero; independent raw and root audits passed. Merge also invalidates assignment authority, so the equality guard is not isolated. The outbox stayed dispatching.
Canonical queued requester reset at 5c831c77681 A genuine managed-child result received a queued ACK before authenticated sessions.reset. Reset preserved the session ID and changed its lifecycle revision; the exact queued run cancelled before native input or automation effects. Both complete cron rows stayed unchanged across all 18 columns. Root audited raw receipts and pins; both app servers exited zero after normal teardown SIGTERMs. The first collector’s incorrect session-ID expectation remains a failed attempt. Full redacted receipt and source-qualified standalone mapping. This is not a runtime test of the current merge head or isolated commit-stage denial.
Authenticated queued policy effects at 139939f8165 Actual non-owner trusted-proxy profiles and real administrative grant. Allowed queued continuation removed one disabled job; canonical role reassignment and unrestricted→empty model-policy change denied the exact queued continuation before native input/removal, preserving complete canonical/all-18-column inventories. Six native processes exited zero; independent raw-receipt audit passed.
Genuine retired-wake restart at 5c831c77681 Actual native managed spawn/yield, externally authenticated cancellation and real held cancellation response produced a durable kill-intent plus pending wake. It survived intentional isolated Gateway SIGKILL and clean old-native joins. Same-state startup skipped that source; fresh human input completed once with no child replay. All four native processes exited zero; root’s independent 73-check raw/source/build/fixture audit passed. The interrupted HTTP request ended with 502; earlier shared-bearer 403 attempt remains unqualified. This is not the historical dispatching/suppressed shape, baseline runtime RED, owed-wake positive or exact-thread handoff proof.
Original native child and revocation at b579b5c49ca Original-child reconnect consumption and foreign-source rejection passed. Preparation revocation denied input with zero marker frames/rows, but native cleanup required SIGKILL, so that case is not a clean-final pass. Bounded attempted automation mutation had no durable effect after revocation; cancellation preceded preparation resumption, so this does not isolate the cron commit guard.
Earlier queued controls at b0d7186baf5 Actual allowed removal, exact queued-run Stop and original-device revocation with complete inventory readbacks. Outbox retained genuine dispatching custody and retired naturally after final; this does not prove an effect after earlier outbox retirement.
Stored-data compatibility at b0d7186baf5 Official packaged 2026.10.5 → candidate on the same synthetic state through canonical Doctor; 14 authenticated RPCs preserve session identity/label, the complete old assistant row and nested disabled job. Fresh create/update/inject/read works with zero pending inputs. Both Gateways cleanly stopped; Doctor warnings disclosed. Native binding/queued-child recovery-state migration is outside this particular capture.
Source-qualified shared storage upgrade at recorded 7ecc42f61a9 The separately packed #174900 stable-upgrade trace, tested at bed06fcbbbacc466799185b045611a023a633a89, used agent-schema 25→31 migrations, session JSON/transcript codecs, selected history readers and model-reference normalizers that were byte-identical in that recorded comparison. That run preserved all 23 checked identity fields across two sessions and all six old transcript rows, and exercised the documented model-reference prefix migration. Root independently verified the 49-file comparison map. This supports those named persisted-data owners, not an upgrade of the complete consolidated binary. It does not cover state-schema 29 credential extraction, changed actor-append/outer-read/native-settlement orchestration, pending-wake recovery or active steering. The related catalog-v3 feature is absent here and is not transferred as evidence. Earlier b0d7186baf5 same-state Doctor/14-RPC evidence separately exercised schema29, but did not prove migration of populated credentials or native binding recovery. The original Doctor warnings and unproven model/provider identifier equivalence remain qualified.
Complete packed-core/plugin ordinary upgrade at 7ecc42f61a9 Official stable 2026.10.5, native 0.160.0, stopped before the supported candidate Doctor-first migration; the installed 7ecc core/plugin then completed a real source-declared 0.162.1 native turn on the same synthetic state. Eight complete config checkpoints, 23 identity fields across two sessions, six old stored transcript rows, two appended rows and the original device/profile were verified. Common binding readback and normal final correlate; all 29 observed processes were absent after cleanup. Root and independent raw audits pass. Doctor warnings, absent backup-byte/native-exit instrumentation and differing native model/provider identifiers remain qualified in the detailed receipt below. This proves ordinary stopped-state compatibility, not protected recovery or queued authority effects.
Embedded cooperative wait at 980116042b1 Actual Agent loop → subagents wait → admitted input → next provider request. Both regressions fail before repair, then pass with input consumed once and child state/delivery unchanged. Six subagents and 40 stream/async-tool tests pass; this is not native mailbox parity or an authenticated Gateway trace.

Runtime captures use synthetic state and scripted local providers. Earlier native proofs explicitly use verified Codex 0.163.0 while leaving the source manifest at 0.162.1, with disclosed V2/non-lite QA metadata. The recorded 7ecc human control uses the source-declared 0.162.1 with no native/catalog/feature override. The recorded 7ecc packed ordinary upgrade also uses source-declared 0.162.1 without a native-version override, with the task-native isolation settings disclosed below. Native ACK alone is not credited as consumption: selected-turn provider input, journal echo, retained history and normal terminal are correlated. Peer runs may select a new physical native thread; human control retains the original turn.

Earlier wrong-model-ceiling, unsupported finite-policy route, field-expectation, import/observer and failed-collector attempts remain qualified in the evidence. The finite-policy route was correctly refused; no guard, authority source or backend result was replaced to make a capture pass. All prior proof is revision-scoped, including after newer upstream production changes.

Exact-revision ordinary stable upgrade

The ordinary latest-stable upgrade remains the recorded 7ecc42f61a92bc58d5a097edf20bcf2c46c66b2c execution. A direct source comparison to e44f11ece93e98d89ca46d03e3dee67052e82ac0 confirms all 18 actual source pins from its executed fixture are unchanged; its three generated build-metadata files are counted separately. The expanded storage/codec/Doctor map finds 81 unchanged files among 84 existing inspected owners. This supports reuse for the named session/transcript, agent-schema 31 migrations, native-binding readback, model-reference migration and unchanged Doctor orchestration—not a new full-binary upgrade run. Shared schema remains 29, but upstream added lazy sandbox persistence and changed a credential-migration verification step; those changed behaviors and populated credential variants are not proved by the earlier execution. The original warnings, failed attempt and protected-recovery/queued-authority limits remain.

A complete packed 7ecc42f61a92bc58d5a097edf20bcf2c46c66b2c core and Codex plugin passed an isolated, same-state upgrade from official 2026.10.5, using native 0.160.0 → source-declared 0.162.1 without a version override. Inference was scripted locally and all state was synthetic. The stable Gateway stopped before candidate Doctor performed the supported migration; plugin replacement and a second stopped Doctor followed.

Eight actual configuration checkpoints preserve the checked settings with the documented model-reference prefix migration, complete configured provider object and scoped Codex runtime selection. They are not a claim that every config byte stays unchanged. Agent schema 25→31 and shared-state physical/effective schema 20→29 were verified. All 23 checked identity fields across two sessions and every old stored value in six transcript rows survived both Doctor stages and the fresh candidate turn; two new rows were appended. Prior histories retained their fields apart from the named usage.contextUsage addition.

The candidate reused the stable-issued device credential and authenticated profile, retained the physical Gateway session, validated its common native binding and completed a correlated native final. Its single model POST carried native turn metadata; there were zero candidate host-utility POSTs. Native request, binding, journal, Gateway terminal and saved final correlate. The native physical thread rotated; no catalog-v3 feature is claimed. Proper task CA/server TLS and the unchanged exact proxy allowlist kept inference local; all 11 auxiliary connections were denied, with zero TLS errors. Launcher exit was zero, all four SDK clients closed, and Gateway/provider/state/workspace/private-key cleanup completed without timeout or forced kill. All 29 observed owned processes were absent.

Limits: The task-native configuration sets respect_system_proxy, shell_snapshot, code_mode and code_mode_only to false; this is not an unmodified-native-feature claim. Native model and provider identifiers differed; configured-route preservation does not prove their semantic equivalence or external-provider compatibility. Doctor completed while reporting failed original whole-state capture/schema inspection, local-archive provenance, checkpoint/resource-close and deprecation/listener warnings; Gateway stalls were also retained. The mandatory task-scoped migration backup custody is source-qualified through the real canonical Doctor and observed cutover; its backup bytes were not independently retained/reverified, and this is not a verified full-user backup. Individual native exit statuses were not instrumented.

The first consolidated attempt remains failed: plugin installation correctly refused migration without backed-up Doctor custody. The passing sequence ran Doctor first without weakening that guard. Earlier donor fixture failures and their raw/config gaps remain retained. This ordinary single-owner upgrade does not prove protected receiptless recovery, finite-policy routing, populated credential variants, active authority changes or maintainer approval. It is not a live deployment.

The companion JSON contains allowlisted receipt values plus explicitly derived comparisons/counts, not a verbatim complete raw receipt. Raw identities, model names, credentials, endpoints, local paths and content hashes remain private.

Redacted 7ecc ordinary-upgrade receipt
{
  "derivedSummaryWithAllowlistedReceiptValues": true,
  "candidateRevision": "7ecc42f61a92bc58d5a097edf20bcf2c46c66b2c",
  "stableRelease": "2026.10.5",
  "stableNativeVersion": "0.160.0",
  "candidateDeclaredNativeVersion": "0.162.1",
  "nativeVersionOverride": false,
  "syntheticOnly": true,
  "scriptedLocalInference": true,
  "externalInferenceForwarding": false,
  "sameStoppedStateUpgrade": true,
  "earlyCandidateDoctorBeforePluginReplacement": true,
  "postPluginDoctorCompleted": true,
  "originalConfigCheckpoints": 6,
  "addedCredentialDoctorCheckpoints": 2,
  "completeActualConfigCheckpoints": 8,
  "agentSchemaBefore": 25,
  "agentSchemaAfterEarlyDoctor": 31,
  "statePhysicalSchemaBefore": 20,
  "statePhysicalSchemaAfterEarlyDoctor": 29,
  "stateEffectiveContentVersionAfterEarlyDoctor": 29,
  "checkedStoredIdentityFields": 23,
  "checkedSessions": 2,
  "oldStoredTranscriptRowsPreserved": 6,
  "newStoredTranscriptRows": 2,
  "onlyNamedHistoryContextUsageAddition": true,
  "selectedSettingsPreservedWithDocumentedModelReferenceMigration": true,
  "completeConfiguredProviderObjectPreserved": true,
  "selectedCodexRuntimeRetained": true,
  "allConfigBytesUnchanged": false,
  "stableIssuedDeviceTokenReused": true,
  "sameAuthenticatedProfile": true,
  "samePhysicalGatewaySession": true,
  "commonNativeBindingReadbackValidated": true,
  "managedCatalogV3Present": false,
  "stableNativeMetadataRequests": 2,
  "candidateNativeMetadataRequests": 1,
  "candidateHostUtilityRequests": 0,
  "candidateNativeRequestBindingJournalTerminalAndNormalFinalCorrelated": true,
  "nativePhysicalThreadRotated": true,
  "nativeModelIdentifierUnchanged": false,
  "nativeProviderIdentifierUnchanged": false,
  "semanticNativeModelProviderEquivalenceProven": false,
  "properTaskCaAndServerLeaf": true,
  "permittedProxyConnections": 10,
  "auxiliaryProxyConnectionsDenied": 11,
  "allObservedAuxiliaryDestinationsDenied403": true,
  "tlsErrors": 0,
  "launcherExitCode": 0,
  "launcherTimedOut": false,
  "forcedProcessGroupKill": false,
  "sdkClientsClosed": 4,
  "observedOwnedProcessesConfirmedAbsent": 29,
  "cleanupErrors": 0,
  "taskStateWorkspaceAndTlsKeysRemoved": true,
  "individualNativeExitStatusesInstrumented": false,
  "originalWholeCaptureFailed": true,
  "doctorSchemaProvenanceCheckpointAndResourceCloseWarningsRetained": true,
  "doctorDeprecationListenerAndGatewayStallWarningsRetained": true,
  "scopedBackupCustodySourceQualified": true,
  "backupBytesIndependentlyVerified": false,
  "fullUserBackupProven": false,
  "failedConsolidatedAttemptRetained": true,
  "donorHistoricalFailuresRetained": true,
  "protectedReceiptlessRecoveryProven": false,
  "finiteModelPolicyProven": false,
  "authorityChangeProvenByThisCapture": false,
  "populatedCredentialVariantsProven": false,
  "liveDeploymentClaimed": false,
  "taskNativeRespectSystemProxy": false,
  "taskNativeShellSnapshot": false,
  "taskNativeCodeMode": false,
  "taskNativeCodeModeOnly": false,
  "unmodifiedNativeFeatureConfigurationClaimed": false
}

Recorded 7ecc human steering receipt

This is an isolated Gateway/public-RPC and real native app-server trace using synthetic input and scripted local inference. It asserts original-execution consumption and durable receipt, with no claim of earlier output preemption. Root independently rechecked the original receipts and all source/generated/fixture/native pins after cleanup.

Redacted 7ecc human receipt
{
  "sourceRevision": "7ecc42f61a92bc58d5a097edf20bcf2c46c66b2c",
  "nativeVersion": "0.162.1",
  "nativeOverride": false,
  "syntheticOnly": true,
  "scriptedLocalProvider": true,
  "nativeAckWhileItemUnfinished": true,
  "consumedInOriginalNativeTurn": true,
  "providerConsumptionPhase": "after-response-completed",
  "foreignMarkerFrames": 0,
  "canonicalHumanInputs": 1,
  "nativeAttributedEchoes": 1,
  "normalFinalCorrelatedWithGatewayReceipt": true,
  "forcedTurnInterrupts": 0,
  "appServerProcesses": 2,
  "nativeExitsZeroWithNullExitSignal": 2,
  "teardownSIGTERMsAfterTargetNormalFinal": 2,
  "gatewayProviderStateAndBootstrapCleaned": true,
  "sourceRuntimeFixtureNativePinsRechecked": true,
  "optionalPromotionProven": false,
  "peerMailboxParityClaimed": false
}

The separate 7ecc queued-effect attempt remains failed and unqualified: it produced no native wire, and its proxy socket-bookkeeping and empty-wire qualification checks failed. Gateway/provider/launcher joins completed. A source investigation identified a fixture finite-model ceiling that differs from the QA owner’s remapped selected model; the actual initial terminal was not captured, so this is a correction proposal rather than an established runtime cause. It is not credited as successful 7ecc queued-effect evidence.

Recorded e44 exceptional queued authority

Two isolated Gateway/real native traces at e44f11ece93e98d89ca46d03e3dee67052e82ac0 now cover the previously unproved outer-exception lifetime. After actual scope binding, queued acceptance, predecessor cleanup and native execution start, a disclosed neutral outer delivery-observer exception reaches the unchanged production catch and canonical retirement. Raw and decoded reads confirm the whole old child row is absent before the actual native automation call. The allowed continuation removes only the selected disabled job, preserves every other stored column and finishes normally on the exact accepted run/session/native turn. The negative control canonically revokes the original device at the actual cron.get return gate after retirement; the exact accepted run is cancelled, its native tool receipt is aborted/unsuccessful, and both jobs remain identical across all 18 stored columns. All four observed native processes exit zero with null signals and task-owned cleanup completes. Root and independent raw/source audits pass. Full allowlisted evidence and qualifications.

This is deliberately injected outer observation failure, not a natural public-RPC or healthy early-cleanup producer. The actual prepared policy is current-request. Native 0.163.0 explicitly overrides manifest 0.162.1 for these synthetic/local-inference captures. Cancellation is recorded before effect-gate release, so this does not isolate the final cron commit guard. The failed inner-observer attempt instead retained pending custody; its cleanup-time mutation and lack of normal-final proof remain explicit. No authority, guard or delivery outcome was replaced, and no record was manually deleted. Profile/model-policy changes and the separate completion-handoff policy after retirement are outside these captures. Security-owner acceptance remains required.

Remaining Work Before Merge

  • Security/session-owner review of the retained authority and accepted-custody contracts. The extracted reply-promotion, reconnect-comparison and personal-requester-reentry proposals are separate decisions.
  • Exact-head hosted CI and mergeability. Earlier local passes do not resolve the recorded unexplained Linux failures.
  • Keep stored-data compatibility and native/queued final-effect evidence qualified to their recorded source owners, revisions and scenarios. No unobserved final-effect, populated-credential, protected-recovery or live-deployment claim is inferred.

No operator Gateway or business session was restarted or changed for this split.

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

✅ Maintainer security changes approved

A maintainer approved this revision with an explicit security approval comment.

A later push requires a fresh approval comment for an external contributor's PR.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates steering authorization, recovery readiness, accepted-input custody, and completion handoffs around the existing SessionController.

Example: A user sends “Correction sent during compaction.” while recovery compaction is running.

  • Before: The original run never receives the correction, which becomes a later turn.
  • After: The original execution receives the correction once, history records one input, and the pending queue empties.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong product-path and authority evidence supports the retained fix; the broad lifecycle change and revision-qualified coverage warrant a measured correctness rating.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): Published isolated Gateway and real native traces exercise same-requester steering, completion-handoff input, queued automation effects, and revoked-source rejection before I/O; public-RPC recovery-compaction proof is also recorded at the integrated 223d revision, with historical source, scripted-inference, native-version, and fault-injection qualifications preserved.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Valid corrections can miss the active execution, and accepted continuation work can lose its source or delivery custody before dispatch.
Reason: Current-source defects and public-Gateway evidence establish user value, and the maintainer's recorded decision resolves the retained completion-context behavior.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs meaningful session-input failures that remain on main, and the bounded completion-context policy now has maintainer approval; no actionable introduced defect was identified.

Priority: P2
Reviewed head: 7ee4c15b521b6e78396b7aad75bdf27a90af9d1d

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway RPCs, channel input, and session tools feed the SessionController, which checks requester authority and execution compatibility before delivering input through embedded or plugin runtimes and settling its transcript and reply custody.

flowchart TD
  A[Human and session tool input] --> B[Gateway source authorization]
  B --> C[SessionController]
  C --> D[Captured execution policy]
  D --> E[Embedded or plugin runtime]
  E --> F[Transcript and reply settlement]
  F --> C
Loading

Technical review

Best possible solution:

Retain the existing controller as the single lifecycle owner, with independent incoming authorization, exact-target delivery, and receiver-held custody through settlement.

Do we have a high-confidence way to reproduce the issue?

Main's backend-detachment path retains resolved readiness, and the linked public-Gateway comparison records the correction missing its original run on main; this read-only review executed no target code.

Is this the best way to solve the issue?

The retained consolidation addresses the shared ownership boundary, preserves ordinary peer and explicit-followup scheduling, and keeps optional-reply promotion and reconnect-policy proposals separate.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9819d4db1c86.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 67433ff adds extensions/codex/src/app-server/run-attempt-active-turn.ts:393 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 67433ff43813; files: extensions/codex/src/app-server/run-attempt-active-turn.ts)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Labels

Label changes:

  • add merge-risk: 🚨 security-boundary: The patch changes caller-policy projection and transfers requester authority into accepted run custody; the bounded policy tradeoff is explicitly accepted, and current-authority checks remain essential.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The consolidation repairs bounded steering, recovery, and continuation failures without evidence of an emergency runtime outage.
  • merge-risk: 🚨 security-boundary: The patch changes caller-policy projection and transfers requester authority into accepted run custody; the bounded policy tradeoff is explicitly accepted, and current-authority checks remain essential.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-20T15:49:46.295Z sha c3efd07 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-20T17:22:02.778Z sha 0f78424 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-20T19:18:21.190Z sha 24bb99c :: blocked before merge. :: none
  • reviewed 2026-10-20T19:43:52.595Z sha 5d74c50 :: blocked before merge. :: none
  • reviewed 2026-10-20T20:43:39.891Z sha d7cfd0a :: needs maintainer review before merge. :: none
  • reviewed 2026-10-20T21:12:25.503Z sha 7605b4f :: needs maintainer review before merge. :: none
  • reviewed 2026-10-20T22:40:39.664Z sha 26d5d60 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-21T05:38:50.148Z sha 223d895 :: blocked before merge. :: none

Reviewed October 21, 2026, 6:18 PM ET / 22:18 UTC (Revision 14).

@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Oct 19, 2026
@enki

enki commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review please at 0878af08a11a8b7b1ef7b7d79bd9af6d3b9e682e.

This revision completes the five-PR alternative, including the missing busy-peer/returned-result, explicit-followup, source-turn identity, deadline and exact-thread handoff paths. It repairs the reported CLI, TUI and custody consumer regressions and preserves Stop's pending-wake retirement separately from restart recovery eligibility.

The updated description includes inspectable synthetic native correlation receipts for authenticated reconnect and real native ordinary/followup sessions_send: original-turn ACK, correlated input echo, subsequent provider consumption and the original turn's completed terminal. Reduced scopes refuse input. All three positive proofs and the reduced-scope control stop their isolated processes. Committed revocation also refuses input, but its recorded containment exit is not claimed as a clean pass. The remaining native security gaps and the optional-work/followup behavior decisions remain explicit; this is not security-owner approval.

Focused checks and fresh independent review pass; hosted CI must assess this pushed head. Related recovery/native PRs remain independent, and the five originals stay open for maintainer choice.

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

steipete added a commit that referenced this pull request Oct 19, 2026
Requester origins intentionally omit undefined fields so their live and
persisted forms retain the same replay identity. Compare sender values
without requiring absent properties, while still requiring both the
runtime and transcript origins to exist.

This mirrors the requester-identity assertion fix from Paul Bohm's
PR #177698, extracted byte-identically so main does not stay red while
the larger steering refactor is pending. Production attribution and
requester authority behavior are unchanged.

Validation: 129 cases pass in the full affected test file with one worker;
targeted test typecheck, lint, formatting, and P2 review pass.

Co-authored-by: Paul Bohm <[email protected]>
@enki

enki commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

Review follow-up at 037088628992b70246dd3443fe5a454433786459:

  • Restored sessions.send at all three steering mutation/caller assertions, preserving merged fix: let session-scoped operators steer their own sessions #177565's creator-bound session-write contract. The four existing authorization cases fail before the repair; all 24 Gateway steering/session-send admission tests pass afterward. Core types, scoped lint/format, canonical runtime build and fresh independent P0–P2 review pass.
  • Added current-revision native-child reconnect consumption and the distinct foreign-device child-source control. The original child consumed attributed input in its original turn and completed normally; the control reached the actual source guard and completed unchanged. The body preserves the positive collector's receipt-accounting failure separately from the independently verified captured effect.
  • Added the disclosed scheduling-instrumented preparation-revocation trace: real preparation, committed device revocation, original source denial, zero native-input frames and zero canonical transcript marker rows. Its failed collector assumption and native containment remain explicit.

The body now explains the original #160842 followup decision, the concrete coordination problem motivating this alternative, and the limits of the pinned Codex comparison. It requests an explicit maintainer choice on busy followup delivery and accepted human reply obligations; it does not imply prior approval. The security-owner rationale distinguishes reconnect comparison identity from separately revocable execution authority.

Retained automation-effect proof and the named profile/model-policy variants remain open. All newly published behavioral evidence is synthetic; raw credentials, endpoints, identifiers and captures remain private. The complete consolidation has not been deployed.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…#177698)

* refactor: preserve the active execution when admitting steering

* fix: complete controller steering and peer delivery consolidation

* test: refresh consolidated steering prompt snapshots

* fix: skip retired completion sources during mailbox restore

* fix(sessions): retain session-write steering authorization

* test: repair consolidated steering CI fixtures

* test(xai): fix device polling response fixture

* test(ui): settle reconnect before module recovery retry

* fix(codex): report descendant cancellation mismatch fields

* fix(agents): wake subagent waits on admitted input

* fix(codex): deduplicate accepted reply expectation after merge

* fix(agents): preserve peer scheduling pending native mailbox support

* test: align consolidated steering fixtures with conservative peer policy

* fix(agents): retain restored mixed-cohort mailbox reservations

* test(gateway): settle exact local claim before reclaiming run id

* docs(agents): clarify admitted requester scope lifetime proof

* fix(ui): retain the current descriptor title outside the roster

* fix(muse): retain streamed prefixes when attaching to a turn

* fix(ui): retain off-page transcript lifecycle metadata

* docs(agents): align busy-peer guidance with separate turns

* fix: retain steering readiness through compaction recovery

* refactor: separate policy proposals from session ownership

* fix(agents): keep owed yielded cohort wakes and best-effort compaction notices

Restore and main-session recovery treated a retired child as a retired
requester wake. A yielded cohort keeps a retired member's wake so its one
continuation reports the cancellation (retireSubagentObligationsInContext);
live dispatch reserves it. Restore now selects the wake owner the same way,
and recovery no longer marks the main session while that wake is owed.

Recovery compaction hook notices awaited the serialized agent-event queue,
so a held optional progress callback blocked compaction until its safety
timeout. Notices are now best-effort like recovery start/end.

Also drop three unused exports flagged by the dead-export scan.

* chore: move unrelated fixes out of the session consolidation

The Muse streamed-prefix fix, off-page chat metadata fix, xAI OAuth test
cleanup and UI reconnect test settle are independent of the SessionController
lifecycle. They move unchanged to their own PRs against main.

* fix(agents): align compaction notice fixtures and document announcement steering

---------

Co-authored-by: jalehman <[email protected]>
@enki

enki commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

Two independent follow-up bugs now have narrow fixes on top of this merged consolidation:

The PRs cross-link and include synthetic regression and isolated built-Gateway restart evidence. They do not depend on one another or introduce the separated messaging, requester-selection, or reply-obligation policies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation extensions: codex extensions: copilot gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security-sensitive-changed size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants