Repository navigation
feat(pcap)!: read capture Evidence through the current result schema only - #10879
Merged
morluto merged 1 commit intoNov 15, 2026
Merged
Conversation
…only Delete the pcap read-compatibility schema that defaulted executable identity for historical capture Evidence, and require query_labels_hex (null when unknown) now that every producer writes it. Evidence from an earlier format is refused at the bundle format owner; a record that omits these fields is reported as malformed instead of defaulted. BREAKING CHANGE: inspect_pcap_capture results always carry query_labels_hex, and analysis views no longer default missing tshark/capinfos identity fields.
Codex Review Summary: ✅ CompletedThis 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. |
Contributor
[Medium impact] The PR appears safe to merge with the stated breaking change for older capture records. SummaryThis PR makes
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
P[PcapProvider] --> S[pcapResultSchemas]
E[Retained or inline Evidence] --> S
S -->|Valid current shape| V[Summary or fact page]
S -->|Missing required fields| X[AnalysisInputError]
Reviews (1) · Last reviewed commit: "feat(pcap)!: read capture Evidence throu..." · Reviewed by Greptile |
19 tasks
morluto
added a commit
that referenced
this pull request
Nov 15, 2026
…only (#10879) Delete the pcap read-compatibility schema that defaulted executable identity for historical capture Evidence, and require query_labels_hex (null when unknown) now that every producer writes it. Evidence from an earlier format is refused at the bundle format owner; a record that omits these fields is reported as malformed instead of defaulted. BREAKING CHANGE: inspect_pcap_capture results always carry query_labels_hex, and analysis views no longer default missing tshark/capinfos identity fields.
morluto
added a commit
that referenced
this pull request
Nov 15, 2026
… module (#10861) * feat(evidence)!: give Evidence bundles a format revision owned by one module `src/domain/evidenceFormat.ts` owns Evidence format evolution. Bundles now carry `evidence_format: 1`; every bundle reader admits only the current revision and refuses an unmarked or other-revision bundle once, with the single recreate-observations guidance, instead of admitting earlier shapes one optional field at a time. The 6.7-era artifact inventory summary identities are no longer rebuilt: compare_artifacts checks the current projection only and reports a mismatch with the owner's guidance. The pre-6.6 identity diagnosis uses the same guidance. SQLite `worker_timeout_ms` and Dart AOT `string_pool.policy`, optional only for historical Evidence, are now required. BREAKING CHANGE: Evidence bundles written by REA 6.x (no `evidence_format`) are refused by import, comparison, reconstruction and analysis-snapshot readers as an integrity mismatch telling the caller to recreate the observations; re-exporting an earlier bundle does not update its format or identities. Bundles constructed by hand must include `"evidence_format": 1`. 6.7-era artifact summaries are refused by compare_artifacts, and SQLite and Dart AOT Evidence without the newly required fields fails validation. * fix(evidence): let the ledger application admit its bundle's format build_reconstruction_obligation_ledger registered the full bundle schema with the SDK, so an unmarked or other-revision bundle was refused as invalid_request before the format owner ran. Register it like coverage: the application parses the request envelope and admits the bundle. * feat(pcap)!: read capture Evidence through the current result schema only (#10879) Delete the pcap read-compatibility schema that defaulted executable identity for historical capture Evidence, and require query_labels_hex (null when unknown) now that every producer writes it. Evidence from an earlier format is refused at the bundle format owner; a record that omits these fields is reported as malformed instead of defaulted. BREAKING CHANGE: inspect_pcap_capture results always carry query_labels_hex, and analysis views no longer default missing tshark/capinfos identity fields. * feat(desktop)!: require the effective view policy in desktop state Evidence (#10886) inspect_desktop_application_state always records the complete policy it used, including sqlite_view_bytes. Drop the optional historical shape and the task draft's absent-policy branch. BREAKING CHANGE: desktop application state results without effective_view_policy, or with a policy missing sqlite_view_bytes, are refused as malformed. * feat(android)!: require component declaration facets and reference aggregates in Android Evidence (#10904) * feat(android)!: require component declaration facets and reference aggregates in Android Evidence The JADX producers always write the manifest component projection with every declaration facet, target_definition and direct_invokes_coverage. Require them, delete the duplicate observed component schema, drop the unknown declaration coverage that only described historical omission, and give manifest view results their explicit facet. BREAKING CHANGE: Android package, component and reference results missing these fields are refused as malformed; component declaration_coverage and its summary counts no longer include unknown; manifest view results always carry facet manifest. * refactor(android): parse package results with the domain schema directly * feat(browser)!: require the DOM length unit and redirect-scoped prior-hop facts (#10897) * feat(browser)!: require the DOM length unit and redirect-scoped prior-hop facts Both CDP producers always declare node_value_length_unit, and the observation session writes redirect_response on every redirect event and no other. Require the unit, drop the diff's absent-unit branch, and admit redirect_response exactly on redirect rows. BREAKING CHANGE: DOM snapshots without node_value_length_unit and redirect timeline rows without redirect_response are refused as malformed, including inline inspections passed to compare_web_captures. * docs(browser): drop the historical redirect_response omission note * feat(native)!: require native Evidence fields that were optional only for historical Evidence (#10946) Mach-O encryption, slice malformed cause, symbol runtime names and import facts; ELF export encoding facts and visibility; value-flow limits; load-image permissions and relocation symbols; Swift type-reference kind and GPU AMD target metadata are required. Legacy enum values (unrecorded, unknown visibility, undecodable, modinfo_field_exceeds_limit) and the retained schemas, view defaults and reinterpretations that served historical Evidence are deleted. BREAKING CHANGE: native records missing these fields are refused as malformed; recreate the observation.
This was referenced Nov 15, 2026
Closed
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
Delete the pcap Evidence read-compatibility schema. Analysis views now read
inspect_pcap_captureEvidence through the same result schema the provider writes, and DNSquery_labels_hexis required (nullwhen wire identity is unknown).Refs #10510. Stacked on #10861 (per-site decision row
pcap/pcapAnalysis.ts legacyClientIdentity / pcapEvidenceSchemas, analysisView/pcapCaptureView.ts:44).Problem and expected behavior
pcapEvidenceSchemas.inspect_pcap_captureexisted only to defaulttshark_*/capinfos_*identity fields (resolved_path,sha256,identity_status) for capture Evidence written before executable identity was recorded, andquery_labels_hexwas optional so historical DNS rows without it stayed readable. #10861 makes the bundle format owner refuse earlier-format bundles, so this per-field compatibility no longer has a reader to serve.Expected after this PR:
pcapCaptureViewparses withpcapResultSchemas.inspect_pcap_capture; a record missing executable identity fields is reported as malformed (AnalysisInputErroratsource.normalized_result.client.*) instead of defaulted tounresolved.query_labels_hexis required and nullable in results; a row omitting it is malformed. Thedns-addressesview selector stays optional (omit to match any identity,nullselects unknown identity).Change and scope
src/domain/pcap/pcapAnalysis.ts: deletelegacyClientIdentityandpcapEvidenceSchemas;query_labels_hexdrops.optional().src/domain/analysisView/pcapCaptureView.ts: read with the result schema; the selector applies.optional()itself; matching no longer maps omission tonull.src/pcap/PcapOutput.ts:TsharkFieldsrow type requiresquery_labels_hex(the producer already writes it,nullwhen labels are unknown).PcapOutput.tsis the only producer ofdns_queriesrows and always writesquery_labels_hex;PcapProvideralways writes all twelveclientidentity fields throughpcapResultSchemas.Not included: the other per-site decisions from #10861 (separate slices); the
historical-referenceauthority on pcap Evidence (an authority about the capture, not a format compatibility).Contract and boundary impact
pcapResultSchemas(domain) is now the only pcap capture shape;pcapCaptureViewconsumes it. Superseded:pcapEvidenceSchemas,legacyClientIdentity.inspect_pcap_captureoutput schema now requiresdns_queries[].query_labels_hex;inspect_analysis_viewpcap selector description no longer mentions historical records.Expected effects:
Evidence and regression coverage
Tests added or updated:
pcapCaptureView.test.tsreplaces the two "historical" read tests with a refusal test for a record omittingclient.tshark_identity_statusordns_queries[0].query_labels_hex(issue path asserted); fixtures inpcapMcp.test.tsandpcapParentIssuePath.test.tsnow write what the provider writes.Base reproduction or other evidence: executed — with the two source files restored to the base, both new refusal cases fail (the base defaults identity and admits the omitted labels).
User-visible CLI/MCP output:
inspect_analysis_viewreturnsinvalid_requestwith the issue path undersource.normalized_resultfor a malformed retained record.Remaining proof gaps: tshark-gated acceptance tests skipped locally (no tshark on this machine).
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npm run check:fast— passes.npm run docs:check— passes.npm run test:focusedover every test file referencing pcap capture Evidence (24 files) — all pass after fixture updates; tshark-gated cases skipped locally.Compatibility, safety, and release
inspect_pcap_capturerecord withouttshark_resolved_path/tshark_sha256/tshark_identity_status(and capinfos equivalents) or withoutquery_labels_hexwas previously read with defaults; it is now refused as malformed. Such records come only from REA 6.x bundles, which feat(evidence)!: give Evidence bundles a format revision owned by one module #10861 already refuses; recreate the capture observation with the current release.Author readiness
Human owner:
Before merge
type(scope): outcome.