Repository navigation
perf(test): parse the Mantis resolver workflow once - #189801
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR parses the immutable Mantis resolver workflow once while retaining separate execution state for every test request. Example: The existing candidate-selection test exercises five request strings.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a focused test optimization, preserves resolver coverage, and has no actionable findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe workflow test loads GitHub Actions YAML, executes its resolver script with synthetic request metadata, and checks emitted candidate references. flowchart LR
A[Workflow YAML files] --> B[Suite source preparation]
B --> C[Immutable resolver script]
D[Five request cases] --> E[Fresh VM and output map]
C --> E
E --> F[Candidate reference assertions]
Technical reviewBest possible solution: Keep resolver source preparation at suite scope and retain request-local execution state and existing assertions. Do we have a high-confidence way to reproduce the issue? Source shows five helper invocations each parsing the same resolver workflow on main; no target code was executed during review. Is this the best way to solve the issue? The smallest complete change is to hoist the immutable script string while preserving fresh VM contexts and outputs, which this diff does. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 603106d1a96a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 31, 2026, 6:14 PM ET / 22:14 UTC. |
|
Merged via squash.
|
…ed-backup-search-exports-20261101 * commit 'cde4bfe4f10ce470ded7264c68d9a72ae03594cc': fix(ci): keep backup and chat search internals private (#189894) fix(codex): recover unused native threads without dropping history (#189900) fix(oc-path): use last duplicate JSON key to match runtime parsing (#189855) perf(test): parse the Mantis resolver workflow once (#189801) fix(agents): revert default hard context admission (#189891) refactor(test): use canonical tracked temp paths (#189800) chore(ui): refresh control ui locales (#189898) improve: show gateway commit and build time on About refactor(test): share SDK export fixture JSON writes (#189799) fix: restore Files navigation from unavailable previews (#189879) refactor(test): share raw ratchet fixture writes (#189798) fix(ai): honor Model Studio compatible-mode output limits (#189870) fix: hold queued messages through inline edits (#189869) perf(test): reuse the baseline fixture Node resolver (#189790) test(qa): correlate handoff replies by run identity (#189885) fix(ui): normalize canonical Unicode in local search comparisons (#189874) fix(ui): explain unsupported browsers without module scripts (#189883) # Conflicts: # ui/src/pages/chat/components/chat-search-highlight.browser.test.ts
The Mantis workflow test reparses the same immutable resolver workflow on every simulated request. Parse it once beside the existing chat workflow, while keeping a fresh VM context, output map and API result per request.
Owner:
test/scripts/mantis-web-ui-chat-proof-workflow.test.ts. Workflow execution, candidate trust, capture allocation, and explicit candidate assignment behavior remain unchanged; only the test's immutable source preparation moves.Validation: the complete owner passes 3 tests under Node and Bun; original owner controls pass on both. Instrumenting the actual workflow reader observes six total parses before and two after (resolver five to one), with five VM executions in both versions. Removing explicit candidate assignment support from the actual resolver script produces one expected test failure. Relevant test types, targeted lint, formatting and
git diff --checkpass.LOC: tooling/production 0; tests/support 0. No workflow runtime, child-process, elapsed-time, billed-minute, or native Windows saving is claimed.
Independent source review: scoped clean, confidence 0.99. Required hosted and native landing gates remain authoritative.