Repository navigation
refactor(logging): remove private transport test controls - #174646
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 private file-transport controls and moves fault injection into test-owned filesystem interception. Example: Queue 4,098 records before the file logger drains.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored cleanup removes unused test controls while preserving production logging behavior; no actionable correctness or security defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe process-wide file transport receives serialized log records, batches secured filesystem appends, rotates files, reports failures, and settles queued writes during shutdown. flowchart LR
A[Logger callers] --> B[Serialized records]
B --> C[Singleton file queue]
C --> D[Batch and rotation owner]
D --> E[Secured filesystem append]
F[Shutdown lifecycle] --> C
Technical reviewBest possible solution: Retain this focused removal of private test controls and complete the normal exact-head CI gates. Do we have a high-confidence way to reproduce the issue? No user-facing defect is claimed; source inspection confirms the removed controls served test callers. Is this the best way to solve the issue? The change follows the existing filesystem owner and singleton lifecycle, removing production injection machinery without adding a competing implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bc18ffb3c37b. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -35, Tests +51. Total +16 across 8 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 Reviewed October 16, 2026, 4:49 PM ET / 20:49 UTC. |
…74646) Remove private append/queue-bound/reset controls from the file-log transport. Production calls the same secured file owner directly; tests exercise the real queue bound and intercept task-owned native I/O. Retain batching, ordering, rotation, singleton identity, symlink/hardlink checks, forced-exit rescue and ordinary shutdown settlement. Public SDK/config/CLI/protocol/data shapes remain unchanged. Best-effort tradeoffs accepted: none newly introduced; existing already-issued append behavior at abrupt forced exit is unchanged. Production: 35 net lines removed; tests/support grow51. Exact reviewed head0cfcea6d0aa212f6faf66595386ceee705b585f4. Focused types, lint, formatting, required suppression suite and full independent review passed. Hosted exact-head CI38962956279 passed without reruns. All218 exact-head checks enumerated:90success126skipped1neutral, zero failures or pending; the sole canceled job117182166270 is Auto response metadata, superseded by same-head successful117182182567. No canceled runtime proof is counted as passing. Dependency/security/CI status contexts pass.
What Problem This Solves
The shared file-log transport carried replaceable appenders, a configurable test queue bound and a reset API that no production caller used.
What Changed
Call the same secured file owner directly, use the existing 4,096-record bound and remove the orphaned test controls. Tests intercept their own native file paths and exercise the actual bound. Held appends release and settle before mock restoration. The QA scenario flushes the real owner rather than resetting it.
Async batching, ordering, rotation, symlink/hardlink protection, failure-warning bounds, singleton identity, process hooks, forced-exit rescue and graceful shutdown settlement remain. Raw log/egress-redaction contracts, public SDK, config, CLI, protocol, persisted shapes and dependencies are unchanged. Phase E is untouched.
This is the logging owner slice of a widely imported seam-removal family. Against pinned main
24f9be0a7c945c70ad216399cfab085147e2f698: eight files; production +2/-37 = 35 net lines removed. Tests/support +119/-68 = 51 net lines added; overall 16 lines added. Fixture growth moves controls to the native I/O boundary without deleting existing behavioral coverage.Best-effort tradeoffs accepted
None newly introduced. The transport's existing already-issued-append tradeoff at abrupt forced exit is retained, not expanded. No security, durability, concurrency, recovery or bounded-resource guard is removed.
Evidence
Release-note context: internal cleanup; logging behavior and public contracts are unchanged.