refactor(debug): unify debug output through DebugTracer#542
refactor(debug): unify debug output through DebugTracer#542nextlevelshit merged 1 commit intomainfrom
Conversation
Route all [DEBUG] stderr prints in executor.go through structured e.trace() calls with typed event constants. Add functional options to DebugTracer (WithStderrMirror), new trace event types (prompt_load, artifact_write, artifact_preserved, etc.), and SetDebugVerbosity on NDJSONEmitter. Wire --debug flag to enable stderr mirror and emitter verbosity.
Code Review (Wave Pipeline)Overall Assessment: APPROVEThis PR is a clean, well-structured refactor that replaces 8 unstructured No critical or high-severity issues were found across both security and quality review passes. Critical IssuesNone. Issues to Address1. Orphan temp file leaked by scrubber initialization (MEDIUM)
Fix: Extract the credential regex compilation into a standalone helper (e.g., 2.
|
Summary
Unifies debug output across Wave through a centralized DebugTracer mechanism. Resolves #537.
Changes
Testing
go test -race ./...