Skip to content

test(perf): evaluate larger and non-HTTP packet workflows - #3232

Merged
N0zoM1z0 merged 5 commits into
mainfrom
perf/3130-packet-fields-20261014
Oct 14, 2026
Merged

N0zoM1z0 merged 5 commits into
mainfrom
perf/3130-packet-fields-20261014

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Public packet workflows need evidence about whether field discovery and paging improve larger/non-HTTP investigations. Add pinned PostgreSQL (4.9 MB), DNS and DHCP recordings, an independent header oracle, measured SDK workflows, actual Codex trials and reproducible fact/plan grading. Document how caller-selected input limits, fields and output windows bound a concrete question.

Results:

  • 19 real non-HTTP SDK workflows preserve the independent requested facts. Focused reply JSON decreases 42.29% / 53.71% / 12.71% for PostgreSQL / DNS / DHCP. Discovery adds engine work and increases the small DHCP reply 44.08%.
  • Two eligible real Codex baseline/focused pairs show total input -9.86% and +1.82%, elapsed +37.70% and -19.30%. This does not establish stable total-token or speed gains.
  • Six real model attempts all establish the requested facts; five follow the fixed plan. One discovery attempt omits discovery and remains a workflow failure with its actual cost retained. The earlier rejected-approval preflight is also reported separately.
  • Eight current-runtime HTTP-control workflows preserve useful facts and remain negative summary/page controls. Historic model results retain their original runtime pin.

Production APIs, default delivery, provider limits, Evidence identity and cleanup ownership remain unchanged. No provider cache is introduced. Raw captures, results, credentials and client configurations stay outside Git. A separate large-error-context concern is recorded privately for later repair.

Validation: 47 Python experiment regressions; initial 19 relevant MCP/packet-output/comparison tests plus 10 focused comparison/page regression tests after strengthening the experimental checks; complete typecheck with the supported single-thread option; lint, format, knip and metadata checks. Actual-transcript negative grading checks reject changed counts/order/citations and distinguish missing limitations from wrong facts. An actual 24-row SDK Evidence replay proves fact/plan separation; an independently parsed second page rejects skipped matches. The named comparator preserves delivery observations across the three new packet questions. Architecture and docs checks pass. Three actual post-rebase SDK workflows on 099b549af0ed5fed3385bf0b54cc0020b23c6717 preserve the independent PostgreSQL/DNS/DHCP facts; those integration checks are separate from the immutable measurement cohort. All heavy runs are serial under an owned one-CPU scope with 3 GiB early stop / 4 GiB hard ceiling. Payload-exit observations are verified; final whole-scope counters remain unknown.

Measured runtime: ec67aebed02dbd20fa5c7703fcd183ad0b1c343c, Linux TShark/capinfos 4.0.17, Node 24.18.0, Codex CLI 0.161.0, requested gpt-5.6-terra / high. Native Windows/macOS and larger DNS/DHCP performance remain unverified. See the curated packet checkpoint for all measurements and limitations.

Closes #3130

CI attribution: the initial CI merge included newer main 3f5b7033. An independently built pure-main checkout reproduces the same binary_session accessor rejection as the SQLite/recorded-crash lanes; that repair is outside this PR. The packet workflow also passes against that newer pure-main runtime. All four substantive review findings are addressed and their focused checks pass.

Latest-main integration verification: rebased all four experimental commits onto 29d3dcb7ea85b3be37cd81e977ae4e09cebdd2fc; head c4782eca59de8873a9978a52b870b789ad1b9108. Locked dependencies are unchanged. Build and 60 focused tests pass (2 platform skips), including the existing process CLI depth and EVM cleanup cases that failed before the new upstream fixes. Actual PostgreSQL/DNS/DHCP SDK workflows preserve input digests and match the independent raw-capture facts. Four actual-Evidence citation replays cover later/reordered/repeated captures and wrong-page-only citations; regrading all six original model records preserves their outcomes and recorded costs. These are compatibility and grading checks, separately from the published original ec67aeb measurement cohort.

Final grader-only follow-up 8358ebcc3e227e4ba7043d9a628cf3b760c46d99: individual failed or malformed calls now affect workflow correctness without discarding authenticated observations used by a recovered answer. Nine failure-injection/answer-shape replays and four actual-Evidence paging/citation replays pass, with all six original actual model outcomes/costs unchanged. Complete typecheck and lint pass; the runtime/source integration verification above remains unchanged because this follow-up changes only the experiment grader and its documentation.

@N0zoM1z0 N0zoM1z0 self-assigned this Oct 14, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issue remains from this review.

Summary

This PR adds larger and non-HTTP packet experiments without changing production APIs or defaults.

  • Packet experiments compare focused requests with independently checked facts.
  • Codex packet trials check facts and planned calls separately.
  • Packet-capture guidance shows how to bound a question.

GitHub access was unavailable, so whether another PR supersedes this one could not be confirmed.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Read completed calls] --> B{Call provides valid Evidence?}
  B -->|No| C[Record workflow failure]
  B -->|Yes| D[Keep capture facts by Evidence ID]
  C --> E[Check final answer]
  D --> E
  E --> F{Facts and cited capture match oracle?}
  F -->|No| G[Fail factual grading]
  F -->|Yes| H[Pass factual grading]
  H --> I[Grade call plan and answer shape separately]
Loading

Reviews (6) · Last reviewed commit: "test(perf): preserve authenticated facts..." · Reviewed by Greptile

@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

CI attribution: this run checks merge 221170ab10c67e289e879452a9affecd6c305ac9, integrating head 099b549a into newer main 3f5b7033; it does not test only the original 500e3239 branch base.

SQLite matrix failures and the recorded-crash verifier stop at binary_session; the latter exposes JSON objects cannot contain accessors. I built a detached pure main checkout at exactly 3f5b7033799f9fe993ad5b81fb51c8f822173817 with identical locked dependencies and reproduced that same public SDK binary_session error without any packet experiment changes. Production src/, scripts/, bridge, package/lock, workflows and existing tests have no differences attributable to this packet PR. The earlier 500e3239 main CI was green.

The independent product regression and private raw reproduction are recorded in the team's /tmp bug document. I am keeping its repair out of this PR. Own experimental review findings are being corrected with focused regressions and actual packet replays; no whole-model cohort rerun is needed.

@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

The current Apple job (run 38520865056, job 115711931349) tests merge 11f123fa against main 7375ab6e. Its only failure is the existing production process JSON-depth diagnostic at tests/boundary/process/processCli.test.ts:295: expected maximum nesting depth, received Maximum call stack size exceeded. It occurs in the production process-comparison CLI, not the experimental packet comparator. Neither that product path nor its test is changed here.

This Linux host cannot establish an exact pure-main macOS reproduction; the raw CI failure and that limitation are recorded in the private team bug document. I am keeping the independent repair outside this packet PR, as requested. Current own static/source/build/docs checks, focused regressions and packet provider evidence pass.

@N0zoM1z0
N0zoM1z0 force-pushed the perf/3130-packet-fields-20261014 branch from c67308b to 6cbd2aa Compare October 14, 2026 06:47
@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

Rebased onto current main 877d40408b0d9a670fa19a53440b7e75022ca14a; new PR head is 6cbd2aa89056a1bed6f36dca33ce6e92851723a2. Build, 47 Python experiment regressions, 23 focused packet/comparison/page/MCP tests, complete single-thread typecheck and lint pass. Actual PostgreSQL, DNS and DHCP SDK workflows agree with the independent raw-capture oracles and preserve source digests. The measured performance cohort stays pinned to its original runtime, separately from these latest-main compatibility checks.

The fresh CI run is https://github.com/morluto/rea/actions/runs/38524280569. Cancelled only the superseded CI run belonging to this PR; its completed failure logs remain recorded.

N0zoM1z0 and others added 4 commits October 14, 2026 07:01
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Kaoru0822 <[email protected]>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Kaoru0822 <[email protected]>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Kaoru0822 <[email protected]>
Preserve authenticated capture facts by Evidence identity so later pages do not overwrite observations supporting a correct answer. Extra calls remain workflow failures. Reject citations that only support a different page.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

Co-authored-by: Kaoru0822 <[email protected]>
@N0zoM1z0
N0zoM1z0 force-pushed the perf/3130-packet-fields-20261014 branch from 20728a1 to c4782ec Compare October 14, 2026 07:06
@N0zoM1z0

Copy link
Copy Markdown
Collaborator Author

Fetched again after the 877d404 CI attempt: newer main includes 713163e64 (Evidence authentication depth), 07540cbcd (EVM cleanup/output) and 778114a1a (browser cleanup). Rebased onto 29d3dcb7ea85b3be37cd81e977ae4e09cebdd2fc; head c4782eca59de8873a9978a52b870b789ad1b9108. Build, complete single-thread typecheck and lint pass. All 60 focused tests pass (2 platform skips), including the exact process CLI depth and EVM cleanup cases that failed on the earlier base. Actual PostgreSQL/DNS/DHCP SDK workflows again match independently parsed facts and preserve byte identity. Citation grading replays pass and preserve all six original model outcomes/costs. No product/API changes were added to this PR.

Current CI: https://github.com/morluto/rea/actions/runs/38526271054. Earlier results belong to superseded heads; the published performance cohort keeps its original runtime pin.

Collect only authenticated observations. Failed or malformed extra calls affect workflow grading without discarding independently supported cited facts. Conflicting Evidence identities cannot become valid citations. Treat answer-shape deviations separately from wrong or unsupported facts.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

Co-authored-by: Kaoru0822 <[email protected]>
@N0zoM1z0
N0zoM1z0 merged commit ca7450b into main Oct 14, 2026
38 checks passed
@N0zoM1z0
N0zoM1z0 deleted the perf/3130-packet-fields-20261014 branch October 14, 2026 08:18
@morluto morluto added area: tests Test suite and verification area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(perf): evaluate larger and non-HTTP captures with existing field discovery

2 participants