Repository navigation
fix!: restore caching, preserve failures, and verify fixture claims - #1211
Conversation
Retain native and managed observations when provider cleanup fails, preserve primary diagnostics, and correct the agent evaluator's claims and export-shape fixture. BREAKING CHANGE: agent evaluation report schema version 2 replaces completionQuality, authorityHonesty, contentCriteriaMet and qualityCriteria with explicitly named heuristic fields. Factual correctness is reported as not_assessed.
Allow explicit snapshot policy for deterministic reads that write private provider files while retaining mutation and live-state exclusions. Cover Ghidra profile binding, annotation invalidation, and composed workflow replay.
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Thanks for tracing these failures and adding the regression coverage. I’m reviewing the cache boundaries and cleanup paths, and adding a small real Ghidra cache/replay check. I’ve integrated current main so this also exercises the recent cleanup fix. |
Require closed known-answer manifests for packaged desktop and parser fixtures. Validate claim values and scope against intact successful tool Evidence, target identity, source selectors, and linked analyses. Keep routing and text heuristics separate, and reject factual failures in the evaluation gate. BREAKING CHANGE: evaluation reports use schema version 3. The top-level factualCorrectness is now a scoped summary, and scenario correctness can be passed, failed, or not_assessed.
|
The real Windows x64 Ghidra 12.1.4 MCP check passed on the unchanged cache/cleanup code: inventory 30.9 → 6.4 ms and function analysis 146.8 → 17.5 ms on repeat. A new MCP connection replayed the saved results in 7.6 / 28.4 ms without creating another Ghidra runtime. Target bytes were unchanged and both sessions cleaned up. Two-core affinity, 512 MiB JVM heap, sampled family peak 946 MiB. Local cache/cleanup/evaluation regressions passed (76 tests), and CI passed all 22 jobs on the integration head. I’ve now picked up the fixture-grading follow-up and approved its workflow; I’m reviewing that new scope before merging the final head. |
The evaluation runner imports its fixture helpers from compiled dist. Declare the matching source module as an entry so Knip recognizes that external use without weakening unused-export checks.
N0zoM1z0
left a comment
There was a problem hiding this comment.
Reviewed the cache eligibility, mutation invalidation, one-shot cleanup composition, and the added fixture-grading boundaries. The grading distinguishes configured facts from routing/text heuristics and checks the delivered Evidence, source identity, selectors, authority, and linked analyses.
Verified 126 distinct local tests across the two focused suites, build/typecheck/lint, and the real Windows Ghidra MCP repeat/export/import workflow. The later grading commit leaves the tested native code unchanged. The full live Codex agent evaluation and real Hopper/macOS annotation workflows were not run.
Added 4488557 to declare the compiled fixture module's source entry for Knip; the previously failing check now passes locally. Final-head CI is approved and running. Thanks for the thorough regression coverage.
…orluto#1211) Restore profile-bound Ghidra snapshot reuse, preserve direct-analysis results through cleanup failures, and grade configured agent fixture claims against returned evidence. Register the compiled agent-evaluation fixture entry for static analysis. Co-authored-by: YouWish <29498139+Y0UW1SH@users.noreply.github.com> Co-authored-by: N0zoM1z0 <161784452+N0zoM1z0@users.noreply.github.com>
Summary
Repeated Ghidra analysis bypassed reusable snapshots, one-shot cleanup discarded failures, and answer keyword/citation matching could accept fabricated claims. This PR fixes those paths and adds evidence-backed correctness checks for configured benchmark fixtures.
Based on
mainat5b769d3a, including its xrefs resolution and cleanup updates.Changes
Assessment scope and output
The desktop rubric covers the bridge API, members, world, IPC operations and resolved preload. The parser rubric covers the exact heading depth addition, discriminator, comparison coverage, and limits on runtime conclusions.
A factual pass establishes only these configured fixture claims. Native, managed, browser, navigation-context and address-context scenarios remain
not_assessed. Their routing and text checks remain active.Scenario results contain
factualCorrectnessand per-claim failure diagnostics. Factual failures fail the benchmark gate even when all keyword and citation heuristics pass. Correct structured claims do not need superficial prose cues to pass.CLI/MCP tool names and schemas are unchanged. Cleanup failures use the existing
cleanup_incompleteenvelope and retain observations or primary diagnostics. No bridge, installation, dependency, or generated-output changes.Tested
npm run build:cached: passed.npm run check:fast: build, strict typecheck and lint passed.Additional Ghidra client socket fixture suite: 5 passed, 19 failed, 1 skipped. The failed cases report
listen EPERM. The client, socket fixture and test code are unchanged by the evaluation fix.Not tested
Compatibility and migration
BREAKING CHANGE: evaluation reports use schema version 3. Top-level
factualCorrectnesschanges from a constant string to a summary containingstatus,scopeand scenario counts. Per-scenario correctness ispassed,failedornot_assessed, withconfigured_fixture_claimsscope.Report consumers must also migrate the earlier renamed fields:
completionQuality→answerHeuristicsMet,authorityHonesty→epistemicCuePresent,contentCriteriaMet→answerTermCoverageMet, andqualityCriteria→requiredAnswerTermGroups. These remain diagnostic heuristics, not factual assessments. Migration and benchmark scope are documented indocs/testing.md.Review