Repository navigation
refactor: remove unused durable agent-run diagnostics - #177694
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR removes durable ACP parent-stream and message-tool outcome recording while preserving parent notifications, incognito outcomes, and historical data handling. Example: An ACP child named main streams progress and completes run-1.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This maintainer-authored PR is a coherent cleanup of unused diagnostic writers; the prior findings are fixed, no new blocking defect was found, and current-head CI remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherAgent events feed the ACP parent relay, and completed turns feed outcome bookkeeping; parent notifications continue through session-event delivery, while incognito outcomes remain with the memory actor. flowchart LR
A[ACP child events] --> B[Parent stream relay]
B --> C[Session event delivery]
D[Completed agent turn] --> E[Outcome adapter]
E --> F[Incognito memory actor]
Technical reviewBest possible solution: Remove the unused durable producers and their machinery while retaining existing delivery owners, memory outcomes, and historical storage contracts. Do we have a high-confidence way to reproduce the issue? This is a cleanup rather than a bug report; source inspection confirms the durable producers exist on main and their semantic readers are absent from the audited references. Is this the best way to solve the issue? The patch follows the existing owners and removes the unused paths completely; retained schema metadata and historical-data handling have concrete compatibility purposes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9e7f4d345645. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -594, Tests -596, Docs -2, Other -4. Total -1196 across 22 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 19, 2026, 7:00 PM ET / 23:00 UTC (Revision 2). |
|
Merge-order hold: please wait for #174599 (R10 PR1b, Postgres local credential store) to merge before landing this PR. The two PRs overlap on four files:
#174599 has lost several roughly 1.5-hour exact-head CI windows to main drift at merge time. It is now finishing a conflict reconciliation and will start a fresh CI run. After it merges, rebase this PR and regenerate the shared baselines/inventory. Thanks! |
0bb09aa to
bee4f58
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bee4f589d9
ℹ️ 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".
PR177694 exact-head inherited CI evidenceHead: bee4f589d95415dbe03f27fd051e0ee1716252e3. CI39323283032, attempt1, completed failure. No CI rerun. Security-fast118303276037 passed. Actual checkoutPreflight job118302539656 log: 2026-10-19T20:55:47.3812964Z HEAD is now at 7c7fe0c9f Merge bee4f589d95415dbe03f27fd051e0ee1716252e3 into 34f6f1b Run API independently records PR177694, headbee4f589, base34f6f1ba. The exact merge object was fetched and its ordered parents verified. Prior scheduled main0548086 is an ancestor of34f6f1ba. The raw prior-main-to-head delta includes forward-main differences; the actual tested merge retains those main changes and contains the reviewed PR cut. Every failed leaf job
Failed file blob is cb50eabba3e6638baad1a3860e8f602449757f75 on the scheduled-main head0548086, PR headbee4f589, actual merge baseline34f6f1ba and tested merge7c7fe0c9. It is absent from all19 changed PR paths. This is deterministic source failure, not a load-only timeout or a speculative import-graph inference. The automated failure table marks types pre-existing with matching signatures. It marks lint unknown because signature extraction was incomplete; the independently inspected main and PR lint diagnostic above settles that attribution. Aggregate openclaw/ci-gate118323162337 failed solely on check-lint-hosted-core-shard and check-test-types-hosted-core-shard, corresponding to these two roots. The older cancelled PR-context job118302525141 has successful same-head replacement118302641835; it is superseded metadata, not missing behavioral proof. Main repair b6bd9e8 restores the deferred import and is an ancestor of current origin/main. No changed path or assertion was dropped and no rebase was performed for inherited failures. The coordinator main-flake ledger and latest six completed scheduled main runs were inspected before attribution:39320267109,39311481040,39304330137,39294792872,39286736487,39278710829. Attribution uses exact matching scheduled-main job logs, not a generic flake label. Each failed PR/main job log and the preflight/gate log was retrieved once via the completed-job API; initial gh run view attempts returned logs-unavailable while the workflow was in progress and fetched no log. |
bee4f58 to
51e4cb6
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 51e4cb67a6
ℹ️ 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".
|
Fixed the obsolete registrations in Focused registry, test-project routing and lint-suppression checks passed 291/291. Syntax, focused scripts lint, formatting and independent isolated correction review passed. Runtime code and its 594-net-line reduction are unchanged; current-head PR CI remains the broad gate. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* refactor: remove unused durable agent-run diagnostics * test: prune removed ACP recorder mock baseline * test: remove retired diagnostics registrations
Remove redundant observation and audit forwarding paths and the obsolete message-tool-outcome schema module. Preserve synchronous warm dispatch, cold input capture before recovery, receiver binding, no-replay behavior, and the existing audit writer ownership. SQL, transactions, schemas, request counts, public SDK surfaces and effect-authority checks are unchanged. Production +22/-45 (net -23); total net -25. Direct commands allocate one fewer adapter and forwarding closure; no timing claim. Validation: focused schema, audit, Workboard/observation and wrapper-inventory tests; type-aware lint, types, source/architecture guards, Knip/Madge and database ratchets. All three exact-head PostgreSQL conformance shards passed. The CI owner-selection assertion introduced on newer main by #180844 reproduces identically on main dfe0396; recorded for main repair. Independent component reviews and exact-head coordinator/PostgreSQL review approved the change. Source provenance: #170138, #165561 and #177694 (Peter Steinberger).
…w#180928) Remove redundant observation and audit forwarding paths and the obsolete message-tool-outcome schema module. Preserve synchronous warm dispatch, cold input capture before recovery, receiver binding, no-replay behavior, and the existing audit writer ownership. SQL, transactions, schemas, request counts, public SDK surfaces and effect-authority checks are unchanged. Production +22/-45 (net -23); total net -25. Direct commands allocate one fewer adapter and forwarding closure; no timing claim. Validation: focused schema, audit, Workboard/observation and wrapper-inventory tests; type-aware lint, types, source/architecture guards, Knip/Madge and database ratchets. All three exact-head PostgreSQL conformance shards passed. The CI owner-selection assertion introduced on newer main by openclaw#180844 reproduces identically on main d41e3f8; recorded for main repair. Independent component reviews and exact-head coordinator/PostgreSQL review approved the change. Source provenance: openclaw#170138, openclaw#165561 and openclaw#177694 (Peter Steinberger).
What Problem This Solves
Agent runs write two separate diagnostic histories that no production reader consumes, along with their workers, queues, retries, and shutdown bookkeeping.
User Impact
No change to parent progress, stall/failure/completion notices, message-tool-only delivery, transcripts, or the in-memory session backend. New runs stop accumulating ACP parent-stream diagnostics and durable message-tool outcome rows. Existing tables, rows, archive handling, and schema compatibility remain unchanged; no migration or operator action is required.
Why This Change Was Made
Remove the ACP diagnostic recorder and the durable message-tool outcome adapter, their workers/registrations, and orphaned implementation helpers/tests. Keep the entire in-memory outcome route and all memory-backend operations/contracts/tests. The remaining recorder reports whether it actually recorded an outcome so the caller does not log false durable success.
The source reference audit found only producers, pruning, schema metadata, and historical archive/copy/delete handling—not a semantic reader. #109427 explicitly describes ACP diagnostics as rebuildable with no importer. #124830 calls message-tool outcomes “pure diagnostic collection feeding a future default-flip decision,” with no runtime impact. No open activation reader or human-filed incident requiring these diagnostic writes was found. The public parent-stream feature from #34310 is retained.
Production: 594 net lines removed (+35/-629), excluding tests, fixtures, support, generated files, and declarations. Tests/support: 594 net lines removed, exclusively persistence-mechanism coverage; historical ACP cascade assertions move into the existing migration suite, and delivery/archive/memory behavior keeps its coverage.
Best-effort tradeoffs accepted
Evidence
Local proof runs serially with one Vitest worker, lowered CPU priority, and task-owned HOME/config/state/XDG paths. Exact-head PR CI is the broad proof; no live Gateway or personal state was touched.
Collision notes: optional recorder-only ACP input attributes remain temporarily because #122849 owns the spawn caller. The overlapping narrative worker-access documentation is deferred. Inventory changes are shrink-only generated metadata and removal of the stale worker-only classification for the worker deleted here; no retained worker classification changes.
Current-head hosted proof
Head
58c3c3e39353d83768c0f21ba20a161eda1214aa: CI 39337040997, attempt 1, completed successfully. Native completed-hosted verification also passed for that exact head, including build-artifact and workflow-sanity proof. No CI rerun or push for green.All 154 check runs were enumerated: 90 successful, 61 skipped, one neutral, and two superseded metadata cancellations. Neither cancellation is missing behavioral proof: PR-context job 118349013716 is replaced by successful same-head 118349027208; dispatch 118349012439 is replaced by successful same-head 118349028102. No failed, timed-out, or action-required job remains. Skipped checks are not claimed as executed. Current dependency and security review statuses are successful.
Prior-head inherited CI failures (superseded by conflict-only rebase)
The native inherited-failure attempt below sent no merge request: main advanced during admission, and GitHub reported a conflict in the generated worker inventory. That inventory was regenerated on main
9417a7224806920a1b7233ca1e9c6e478d51870f. New head51e4cb67a68f4d79dfcf579b597641f5f52b2e34is patch-identical outside the generated inventory. Frozen installation and targeted types passed again; current-head CI is required separately. The following table is historical attribution, not a claim about the new head's checks.Exact head
bee4f589d95415dbe03f27fd051e0ee1716252e3, CI 39323283032, attempt 1, completed with two inherited leaf failures and their downstream gate. All selected behavioral jobs passed; security-fast passed. The 141-check census contains 81 successes, 55 skipped checks, one neutral, three failures below, and one superseded metadata cancellation with a successful same-head replacement. Skipped checks are not claimed as executed.local-http-probe.test.ts:178:53: rejection reason must be an Error.createDeferredCoreimport at line 154; consequent implicit-any parameter at line 178.Preflight identifies tested merge
7c7fe0c9fd919edb4fc6f406e2f0776ed94fd93dwith ordered parents34f6f1ba01cec96639031a47e736849b14bc072aand the prior PR head. The failing file is byte-identical on scheduled main, that baseline, the prior PR head, and the tested merge. Main repairb6bd9e8bd0cad400b31a223a0c44f8494f5cfb87already restores the import. Lint's automated classification was unknown because extraction was incomplete; the independently inspected matching main diagnostic resolves it. No changed files were dropped and no CI rerun was requested. The later rebase was solely for GitHub's reported conflict, not to obtain green. Any landing exception must qualify its own exact head; failed CI is not relabeled green.