Repository navigation
feat(fiddler): inspect native SAZ captures - #2409
Conversation
Read Fiddler Everywhere SAZ sessions directly through the existing CLI/MCP capture workflow. Retain HTTP fields, stored body bytes, XML metadata and archive coordinates with credential exclusions and bounded offline decoding. Share the Node decoder lifecycle with HAR and expose SAZ in the contracts and provider catalog. Add concise Fiddler Everywhere capture, MCP and public-skill guidance across the documentation and website. Preserve REA's existing skill description. Validation: 135 focused tests passed (3 platform skips), including public CLI/MCP parity, malformed archives, redaction and HAR memory exhaustion. Static checks, documentation checks/build, test discovery and all 18 translation catalogs passed. SAZ coverage uses synthetic documented-layout fixtures; real Everywhere exports and its live MCP server remain unverified. The full website build is blocked by the host's missing native Cairo library.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Technical Review & Findings1. Rejection of Compressed or Unsized Members in Valid SAZ Archives (
|
|
Thanks for the SAZ work — I've taken this through a follow-up review and pushed fixes to this branch. The integration scope is the bounded, offline raw HTTP/XML SAZ layout, using explicitly selected local files and owned decoder processes. It includes retained Evidence summaries and record pages. It does not add live proxy capture/replay, a Fiddler MCP wrapper, or software installation. Current Fiddler Everywhere UI exports and exporter versions remain unverified; the guide now states that limit and does not claim a tested product/version matrix. The follow-up fixes LF-header/body separation and XML declaration text inside CDATA, preserves actual DTD rejection, avoids a full-body UTF-8 roundtrip allocation, and refuses SAZ decoding on runtimes without an enforceable memory bound. Existing complete delivery remains available; opt-in summary and preview/complete pages reuse the historical parent without decoding again. Verification so far: independent Python ZIP/XML/byte checks against three public recorded corpora (356 sessions, 713 exact body/message fields), real CLI/stdio SDK parity and schema validation, source preservation, source-deletion/retained-page behavior, malformed input and capacity checks. 64 focused checks passed with one expected unsupported-runtime skip; check/docs passed, duplication is 2.98%, and test discovery passed. After syncing current main, the targeted checks are running again. The website translation conflict was merged by gettext identity while retaining both sides' translations and reviewer comments. A completed two-page inspection task has identical ten-record facts. Counting the complete advertised input catalog, every request and MCP text result gives an o200k estimate of 348,610 → 138,083 tokens. This is a static estimate, not live agent billing; task-prompt/reasoning costs are unmeasured. I'm doing an isolated timing comparison and watching the CI on the final head before merging. |
|
Thanks for checking these cases. I traced the size value to the producer: The admitted raw member list follows Telerik's documented SAZ layout. The The current response pattern accepts empty/trailing-space reason phrases, multiple spaces, and Latin-1 reason text. The streaming-ZIP probe also retained The isolated same-main timing comparison is now complete (three alternating pairs, fresh MCP sessions, warm filesystem caches). Both tasks returned identical first-ten-record facts: median wall time 16.76s → 12.78s; median CPU 19.20s → 15.00s; sampled peak process-family RSS 942.89 → 906.90 MiB. The final input-catalog + request + MCP-text token estimates remain 348,610 → 138,083 in o200k. Cold disk, live model reasoning and billing were not measured. |
REA can now inspect recorded SAZ archives directly through the existing historical-capture CLI/MCP workflow, preserving archive coordinates, HTTP fields, stored bytes and Session XML. The admitted profile is the documented raw HTTP/XML layout; producer product/version attribution remains unverified. This is offline analysis of caller-selected files.
The follow-up also adds opt-in
detail: "summary"and retained preview/complete record pages. Complete selected Evidence is retained once, and subsequent pages work after the source is removed without launching another decoder. Existing complete replies remain available.Correctness fixes include the earliest HTTP header/body separator, format-aware XML DTD rejection that permits declaration text inside CDATA/comments, and fail-closed SAZ admission when the runtime cannot enforce a decoder memory bound. UTF-8 validation avoids a redundant full-body copy. ZIP integrity and unsupported-layout checks remain enforced.
Validation on final head
92884580bccecd6cc75c32dfff2859638b5cdbfc:Performance: three isolated alternating pairs on the same main compared reading the same first ten record descriptors in two pages. Summary plus retained previews reduced task-call/response text from 217,939 to 7,065 estimated o200k tokens; including the full advertised input catalog, 348,610 to 138,083. Median task wall time was 16.764 s to 12.784 s; sampled process-family peak 942.89 to 906.90 MiB. These are bounded local workflow measurements on the pinned comparison heads, not agent billing or a general speed claim. All heavy local verification used two CPU cores and an 8 GiB process-family guard; no OOM or guard stop occurred.
Scope decision: maintainers accept this bounded historical raw HTTP/XML capability. Live capture/replay, automatic network activity, undocumented layouts and bypassing protection are outside this change. Current Fiddler Everywhere GUI export and actual Bun/macOS/Windows producer workflows remain unverified; no broader support is claimed.
Original implementation by @zahhak; follow-up review, corrections and real-data verification by @N0zoM1z0. Captures and private verification artifacts are not committed.