Repository navigation
refactor(agents): remove routine trace bookkeeping - #174836
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 changes before merge. What this changesThis PR removes routine agent trace bookkeeping and excludes provider-error previews and media paths from ordinary logs. Example: A provider returns HTTP 401 with an HTML error body.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this maintainer-authored cleanup open; the direction is accepted, but the assertion baseline needs shrinking and the fallback documentation needs updating. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe agent runtime prepares credentials, executes tools and model requests, and settles turns; these changes reduce diagnostic projections beside those operations while preserving their results and lifecycle events. flowchart LR
A[Agent turn] --> B[Auth and harness preparation]
B --> C[Model and tool execution]
C --> D[Turn settlement]
C --> E[Diagnostic classification]
E --> F[Ordinary logs]
D --> G[Client results and lifecycle events]
Technical reviewBest possible solution: Keep the accepted logging cleanup, shrink its assertion allowance, and document which fallback details remain available through returned results. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the stale assertion allowance and its deterministic failure branch, consistent with exact-head CI annotations; no target code or tests were executed. Is this the best way to solve the issue? Removing observer-only work at its producers is appropriate, and the inspected result, masking, lifecycle, readiness, and authority paths remain intact. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1956ba00b72b. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource -349, Tests -65. Total -414 across 44 files. Added test files: 0. View PR surface stats
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 Reviewed October 16, 2026, 7:55 PM ET / 23:55 UTC. |
|
Exact-head landing evidence for f15283c. The original source review completed independently scoped-clean through P2; the exact shrink-only baseline repair received its own scoped-clean review. Applicable exact-head CI is green. All check runs are enumerated immediately before submission; no failed, cancelled or pending check may remain on this head. The original baseline-ratchet failure on a9eb05b was ours and repaired (tools-start allowance5→2), not labelled inherited. Fresh pre-submission enumeration:141 check runs across both pages,86 success,54 intentionally skipped,1 neutral; zero failure/cancellation/pending. Effective writer verified as steipete; live PR head matches the reviewed SHA and is MERGEABLE.
Coordinator-authorized campaign rule10 applies after these two infrastructure failures: submit a squash through the exact-head SHA-guarded merge API. This bypasses broken workflow allocation, not review or CI. Production reduction:349 net lines. Client-visible masked failures, returned fallback detail, security, FIFO, caches and write settlement remain. No CI rerun or unchanged-head push was used to obtain green. |
* refactor(agents): remove duplicate diagnostic projections * chore(agents): shrink retired trace assertion allowance
What Problem This Solves
Agent turns repeatedly build routine trace projections, and ordinary error logs still retain arbitrary provider or media content already available through the intended result channels.
User Impact
Client-visible masked errors, fallback details, lifecycle events, operator warnings and turn behavior remain. Ordinary logs retain classifications, correlation hashes and IDs rather than message/error/path previews. Unread local-service stdout is drained without retaining a diagnostic copy; bounded stderr remains available.
Why This Change Was Made
Recover the agents area of withdrawn runtime/core cleanup (#174363 and #174383) without replaying their unrelated Gateway, channel or reply changes. Remove debug-only observer parameters, maintenance sequence fields, trace formatting and unused stdout retention together. Privacy changes preserve the actual result/error channels and structured diagnostic event consumers.
Best-effort tradeoffs accepted
Evidence
CI attribution
Initial exact head a9eb05b completed its applicable runtime, type, build, architecture and security jobs successfully. The sole failing leaf was checks-fast-baseline-ratchets (run 38982414981, job 117246585933): assertion-safety required the tools-start allowance to shrink from 5 to the remaining 2 assertions. This is caused by this cleanup, not inherited. The repair changes that row only; its fresh isolated review completed scoped-clean. Aggregate CI failures derive from that leaf. No CI rerun or unchanged-head push is requested.