Repository navigation
feat(browser): capture correlated network content and lifecycle evidence - #797
Merged
Merged
Conversation
Keep request identities and redirect relationships across ordered scenario events. Capture selected browser-exposed bytes and duplicate headers through modular readers, settle bounded reads before cleanup, and preserve unavailable states. Keep content-selection mismatches and legacy network coverage unknown during comparison. Verify real CLI/MCP, installed package, and browser lifecycle paths. Refs #774 Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis) Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
Correct the complete documented request and legacy default expectation caught by CI. Cover and redact encoded declared values in captured body media types. Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis) Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
Accept incomplete event coverage only when the continuously polling fixture has explicit unfinished requests; retain failures for other missing or truncated sections. Include actual completeness and unfinished transactions in diagnostics. Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis) Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
This was referenced Oct 6, 2026
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…nce (morluto#797) * feat(browser): capture correlated network content and lifecycle evidence Keep request identities and redirect relationships across ordered scenario events. Capture selected browser-exposed bytes and duplicate headers through modular readers, settle bounded reads before cleanup, and preserve unavailable states. Keep content-selection mismatches and legacy network coverage unknown during comparison. Verify real CLI/MCP, installed package, and browser lifecycle paths. Refs morluto#774 Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis) Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing) * fix(browser): align capture defaults and redact encoded media metadata Correct the complete documented request and legacy default expectation caught by CI. Cover and redact encoded declared values in captured body media types. Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis) Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing) * test(browser): verify polling capture cutoff completeness Accept incomplete event coverage only when the continuously polling fixture has explicit unfinished requests; retain failures for other missing or truncated sections. Include actual completeness and unfinished transactions in diagnostics. Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis) Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
12 of 19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First implementation batch for the website reverse-engineering roadmap. Refs #774; the roadmap remains open for captured assets and later integrations.
capture.network. Defaults keep metadata alone; selected content also enables network observation.src/browser/network/, separate from event orchestration and provider-neutral evidence schemas.unknownwith recovery guidance.Example (CLI and MCP use the same object)
{ "browser": { "mode": "launch", "executable_path": "/absolute/path/to/chromium" }, "start_url": { "url": "http://127.0.0.1:3000" }, "actions": [{ "step_id": "ready", "action": "wait_for", "locator": { "kind": "css", "selector": "#done" }, "state": "visible", "timeout_ms": 10000 }], "capture": { "network": { "request_body": true, "response_body": true, "header_values": true } } }Content records link to observed request/response events through
transaction_idandsource_event_sequence. Request bytes reflect what Playwright exposes;not_exposeddoes not prove absence or multipart file completeness. Responses contain browser-decoded bytes. Playwright scenario capture has no initiator-stack API; passive CDP retains its separate initiator evidence.Verification
Linux x64, locally installed Chrome 153.0.8010.12, Node 24.18.0. Commands ran with one CPU and a bounded Node heap.
npm run test:focused -- tests/boundary/mcp/toolSchemaValidity.test.ts tests/boundary/mcp/browserScenarioMcp.test.ts tests/boundary/cli/browserCli.test.ts: 8 tests passed, including every advertised canonical JSON Schema.npm run check:fast,npm run docs:check, andgit diff --check: passed./tmp, with lifecycle scripts disabled. This checked the final selection metadata, actual binary and gzip-decoded bytes, form/encoded-header redaction, redirects, streaming cutoff, no refetches, and profile cleanup through CLI/MCP.The focused installed-package verifier observed zero live descendants at completion. The mixed full browser verifier's in-run lineage report was explicitly unavailable because a Chrome descendant omitted its run token; that recorded PID was gone after cleanup. These reports establish different observations.
Real Hopper/Ghidra verification was not run for this browser change.
CI follow-up