Commit Graph
12 Commits
Author SHA1 Message Date
4f43d7422f feat(browser): accept mitmproxy 12.3.1 for native capture decode (#8088)
* feat(browser): accept mitmproxy 12.3.1 for native capture decode

Bump the offline adapter profile, provider identity, Linux verification archive, and docs so callers can use mitmproxy 12.3.1 instead of the 12.2.3 pin that blocks patched Brotli/cryptography. Keep SaveHar null postData admission for both producer versions.

Fixes #8078

* test(web): regenerate published HAR example identities

The HAR limitation now names both admitted mitmproxy profiles, which
changes the decoded capture's Evidence ID and both views' parent and
view digests. Update the published API surface and environment manifest
examples to the identities reproduced from their fixture bytes.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-22 09:26:35 +00:00
fd9cbeff74 feat(web): report value-free header names in the api-surface view (#9504)
* feat(web): report value-free header names in the api-surface view

The api-surface view could only say that a group had query names. Analysts
asking which endpoints are signed or session-bearing had to page complete
capture records and compare header values by eye, which copies the values
into the agent's context.

Add an opt-in include_request_header_names facet that lists the request
header, cookie and set-cookie names recorded for each group, with the
records that presented them. Values are never read: the reader walks only
name members, tolerates malformed members without dropping the rest, and
reserves its scratch before collecting anything.

Omitting the option leaves group output byte-identical, and the existing
sensitive-parent refusal still applies.

* style(web): format the route template view

The branch's own change to `webNetworkRouteTemplates.ts` did not match oxfmt, which is what failed `Static checks` on this PR independently of the main-side formatting break. Merged current main and formatted the file.

* fix(analysis): reserve header name lists before copying them

readRecordedHeaderNames derived the request, cookie and set-cookie names
with Array.map before the temporary-byte reservation, so a capture whose
arrays exceed the projection allowance still allocated three input-sized
arrays. Charge each array's names from the borrowed members first, then
materialize the lists only once the reservation succeeds.

Keep a recorded empty name: the pinned HAR schema accepts any string
name, so dropping it made a recorded empty spelling indistinguishable
from an omitted member. Report a member whose name is not a string as an
explicit unknown instead.

* fix(analysis): report a malformed header collection as an unreadable member

When a recorded request.headers, request.cookies or response.cookies member is
present but not an array, memberNames collapsed it to an empty list and only
the per-member scan could flag the record. A record whose collections are all
malformed therefore produced a complete-looking empty name list with no
unknown, while only an omitted collection is observed absence. Track a
non-array collection as unreadable so the name list is reported incomplete.

* test(web): compare unreadable header-name unknowns with their owner

Three regressions repeated the accumulator's unknown sentence, so a
wording change would fail them while the reported facts stay correct.
Export the sentence from the accumulator and assert against it.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-22 15:55:28 +08:00
Abhishek SharmaandClaude Sonnet 5.5 3c7ea1ce85 feat(browser): count credential-named members in HAR capture inspection (#8708)
* feat(browser): count credential-named members in HAR capture inspection

inspect_web_network_capture now runs the credential-name scan that
environment-build already applies over the selected HAR records and
reports matches as limitations by pointer, never by value, together with
the bodies the scan could not read. Values the decoder already excluded
are not counted, and nothing is excluded on a name.

Refs #8207

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(browser): bound the listed credential-name pointers

The limitation lists the pointers that fit within 1 KiB of text and says
how many counted names are not listed, so one long body member name
cannot inflate the limitation that summaries and record pages repeat.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(environment): bound the credential scan's values before parsing a body

A body under the scan's 4 MiB text limit could still expand into millions
of JSON values or form fields when parsed in the application process, and
the inspection now runs the scan on every HAR capture. The scan counts the
characters that can start a value (`[`, `{`, `,` for JSON, `&` for forms)
before parsing and skips a body that could hold more than 524288, reporting
it like a body over the text limit. Both consumers' messages and docs name
the bound.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(web): charge every body and name/value list to one credential-scan budget

The credential-name scan bounded each body's values on its own, so a
capture of many compact bodies still expanded millions of values in the
application process, and HAR header, query and form-parameter lists were
copied twice without any bound. One 524288-value budget now covers the
whole scan: a body's values are bounded from its text before it is parsed
and a list is charged by its length before it is read in place, so what
would pass the budget is reported as not scanned instead.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix(web): read credential names in place and charge nothing for empty text

The credential-name scan split each member, header and query name with
two regex replacements, a lowercase copy and a split into a segment
array before matching. A near-4 MiB alternating-case member name
(`x-aAaA…`) therefore expanded into about two million segments: more
than 192 MiB of heap in the application process after the decoder's
containment had ended. `credentialNamed` now reads the name once in
place with the same segmentation (case changes, digits, separators, and
`toLowerCase`'s KELVIN SIGN and dotted capital I), keeping at most two
segments no longer than the longest credential word, so a name of any
length allocates no copies.

`valueBound` started every text at one value, so an empty query, a bare
`?`, an empty form and whitespace-only JSON were each charged a value
they do not hold; once earlier content spent the budget, they were
reported as unscanned in `credential-scan-incomplete`. JSON now holds its
first value only after a non-whitespace character, and a form holds one
field per non-empty `&`-separated piece after an optional leading `?`,
as `URLSearchParams` and the query reader split it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(browser): point the environment build link at the physical guide

The guide lives at docs/agent-environments.md, so the relative link from
docs/guides/web must climb two levels. The Documentation job failed on the
dead link; vitepress build now completes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test: drop the hard-coded timeout from the heap-bound name test

The test finishes in about half a second, so the shared test deadline is
enough, and a literal 60_000 bypasses the CI and coverage deadline scaling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(web-network-capture): name an unavailable response source in the scan limitation

The credential-name scan counts a response body whose retained source is
unavailable as not scanned, and WebNetworkCaptureService reuses that scan. Its
limitation text still listed only a cut body, text over 4 MiB, or past the value
budget, so CLI and MCP reports gave none of those reasons for such a body.

Name the unavailable source in the text, matching the environment-build warning,
and cover it with a test that fails on the old wording.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-22 15:42:13 +08:00
morluto 587cca5c5c fix(capture): keep credential checks independent of body filters (#13215) 2026-11-21 21:27:18 +00:00
morluto 6152c02f3f fix(capture): retain credential checks across MIME conflicts (#13209) 2026-11-21 21:12:50 +00:00
morluto 088bc68b1c fix(capture): surface unsupported decoder requirements (#13203) 2026-11-21 20:38:10 +00:00
Lewis WangandClaude Opus 5.5 af0d69ee91 fix(har): keep Chromium DevTools captures that report an empty server address (#13027)
Chromium DevTools writes serverIPAddress from NetworkRequest.remoteAddress(),
which starts as "" and stays empty when a request has no remote endpoint,
such as a refused connection, an aborted request or an internal redirect.
har-schema requires an IPv4 or IPv6 value, so inspect_web_network_capture
refused the whole export at the first such entry.

For the declared WebInspector 537.36 profile, an empty serverIPAddress is
omitted from the validation copy only, as bracketed IPv6 already is. Reported
Evidence keeps the empty value, and the record gains a limitation that the
server address is unknown. Other producers' empty addresses still fail
validation.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 19:42:16 +01:00
morluto a1dec2d2d5 docs: remove tracked planning and architecture records (#12856) 2026-11-20 09:47:41 -05:00
morluto 2837de5159 fix(har): retain Playwright 1.64.1 bracketed IPv6 addresses (#12456) 2026-11-19 18:04:38 +00:00
morluto cb4e5cfbff feat(analysis): make resource budgets recoverable across CLI and MCP (#9706)
* refactor(analysis): centralize resource budgets and recovery facts

* feat(analysis): expose ASAR and Ghidra runtime admission controls

* feat(artifacts): expose reader admission and preserve limited recognition

* feat(javascript): expose recoverable semantic precision budgets

* feat(web): add recoverable source-map budgets and compact retained views

* feat(web): make historical capture decoding budgets recoverable

* fix(desktop): enforce selected view policies across capture and export

* feat(runtime): make Frida and LLDB retention budgets selectable

* feat(native): expose diagnostic budgets and preserve exhaustion causes

* feat(managed): expose recoverable snapshot and representation budgets

* feat(metadata): make Go and Rust inspection budgets recoverable

* feat(wasm): expose representation and producer admissions

* feat(evm): expose per-call worker resource budgets

* feat(android): make resource and string-pool omissions recoverable

* feat(producers): expose command and recorded-capture budgets

* docs(analysis): record recovery contracts and integrated validation

* fix(docs): link calibration oracle from published verification pages

* fix(docs): restore desktop task anchors and receipt links

* test(analysis): align fixtures with selectable budget contracts

* fix(analysis): remove source-location projector dependency cycle

* test(analysis): refresh budget recovery and verifier regressions

* test(analysis): preserve format and publication recovery expectations

* test(windows): align conformance with owned runtime admission

* fix(desktop): preserve selected alias kinds in exported state

* test(analysis): align provider fixtures with recoverable budgets

* test(desktop): validate emitted alias metadata structurally

* fix(ghidra): classify bounded Windows endpoint refusals

* test(cli): assert selectable artifact admission recovery

* fix(cli): preserve capture provenance in environment builds
2026-11-10 05:11:20 -05:00
morluto b1f473fcf8 docs: clarify publication recovery and Evidence ownership (#9654) 2026-11-09 08:39:20 -05:00
a67525cdf1 docs: organize canonical documentation layout and verify new pages (#2791)
* docs: organize canonical documentation layout (URGENTE)

Group all existing authored guides by domain and ownership, expose complete navigation, and preserve their public routes. Update physical path consumers and release configuration while retaining historical records. Document domain-based specs and ADR slugs without global numbering.

Co-Authored-By: Codex <noreply@openai.com>

* fix(docs): honor home layout in all-page route verification

* style: format reviewed source changes

* fix(docs): preserve routes and navigation cache inputs

* fix: repair the static-check failures on the default branch (#2895)

* fix: repair the static-check failures on the default branch

The default branch fails its own required `Static checks` job three ways, so
every pull request reports that job as failed regardless of its own change.

- `npm run format:check` reports `src/domain/functionComparison.test.ts` and
  `src/ida/IdaOperationRunner.ts`.
- `npm run lint` reports a duplicate `import { join } from "node:path"` in
  `tests/boundary/mcp/ghidraInventoryMcp.test.ts` (lines 4 and 17).
- `npm run typecheck` reports `format: "devin"` missing from the client format
  union in `src/application/SupportedClients.ts`, and an unchecked index in
  `tests/boundary/cli/clientProfileLifecycle.test.ts`, whose pair array is
  inferred as `string[][]`.

Apply the pinned formatter, drop the duplicate import, list the `"devin"` format
that its own definition already uses, and mark the pair array `as const`.

Validation: `npm run check:fast` and `npm run format:check` pass.

* fix(setup): keep Devin on the JSON configuration dialect

---------

Co-authored-by: 吴佳浩 <wujiahao@supremind.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>

* fix(docs): update links after guide relocation

* docs: correct verified documentation route counts

* fix(docs): update browser capture guide link after move (#2820)

Refresh gettext protected-link comments alongside the authored href.

Co-authored-by: Codex <noreply@openai.com>

* fix(docs): include http3 lab in stable routes

* fix(docs): preserve historical release evidence and links

* fix(ghidra): restore Windows verifier identity import

* docs(wakaru): preserve pinned upstream policy link

* docs(index): retain recently added guide links

* docs(mcp): preserve parent retention clarification

* fix(cli): preserve standalone import guidance

* fix(test): preserve translated guide link drift coverage

---------

Co-authored-by: Matheus Breguêz <matbrgz@gmail.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: morluto <17176810+morluto@users.noreply.github.com>
Co-authored-by: 吴佳浩Alben <35291372+XiaoBinGan@users.noreply.github.com>
Co-authored-by: 吴佳浩 <wujiahao@supremind.com>
2026-11-08 01:42:28 +08:00