Repository navigation
test: align matrix preview and Codex hook-order tests with current contracts - #173108
Conversation
Commit 912a3e0 intentionally replaced Matrix message previews with character counts. Require the 205-code-unit diagnostic and reject the former content preview. Commit 8da316f intentionally placed changing Codex hook context after stable system policy. Preserve exact context order, hook-call counts, continuity projection, and turn input assertions in the fallback fixture. Both stale assertions failed in broad CI run 38729325262 and reproduced on main 8b15f79. The repaired files pass locally: Matrix 61/61 and Codex 2/2. Targeted lint, formatting, whitespace, and P0-P2 autoreview pass.
|
🦞👀 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 SummaryThis 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR updates Matrix diagnostic and Codex hook-order assertions to match intentional production changes. Example: A Matrix fixture receives 199 ASCII characters followed by 🚀tail.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open for landing: both test-oracle repairs match current production contracts, exact-head CI passed, and no actionable defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThese suites exercise the Matrix inbound handler and Codex attempt pipeline using synthetic events and hook results, then inspect diagnostics and outgoing protocol requests. flowchart LR
A[Matrix event fixture] --> B[Matrix inbound handler]
B --> C[Diagnostic assertions]
D[Prompt hook fixture] --> E[Codex attempt pipeline]
E --> F[Thread request assertions]
Technical reviewBest possible solution: Land these focused expectation repairs while retaining the existing production contracts and surrounding regression assertions. Do we have a high-confidence way to reproduce the issue? Current-main production code contradicts both original expectations, and the PR records matching pre-repair failures; no tests were executed during this read-only review. Is this the best way to solve the issue? The narrow assertion changes follow independently verified production intent and preserve hook counts, continuity projection, exact turn input, and llm_input coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8bc4915e29bc. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -2. Total -2 across 2 files. 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 15, 2026, 8:31 AM ET / 12:31 UTC. |
|
Merged via squash.
|
…w#173108) Commit 42b2fff intentionally replaced Matrix message previews with character counts. Require the 205-code-unit diagnostic and reject the former content preview. Commit 729743d intentionally placed changing Codex hook context after stable system policy. Preserve exact context order, hook-call counts, continuity projection, and turn input assertions in the fallback fixture. Both stale assertions failed in broad CI run 38729325262 and reproduced on main 4590c4a. The repaired files pass locally: Matrix 61/61 and Codex 2/2. Targeted lint, formatting, whitespace, and P0-P2 autoreview pass.
What Problem This Solves
Fixes two inherited test failures exposed by broad CI run 38729325262 for the package.json-only dependency PR #172381.
User Impact
No production behavior changes. Matrix diagnostics retain character counts without message previews, and Codex retains stable system policy before changing hook context.
Why This Change Was Made
912a3e0df69d(fix(channels): keep message and voice content out of diagnostics #172944) intentionally removed message content from diagnostics. Update the long Unicode-message fixture to requirechars=205and reject the former body preview.8da316f85d87(fix(codex): allow follow-up replies while background listeners run #171963) intentionally moved changing hook context after stable policy. Update the no-relay fallback expectation to require system policy, wrapped prepend context, then wrapped append context. Hook-call counts, continuity projection, exact turn input, andllm_inputassertions remain intact.Both are test-oracle repairs. No test is skipped or deleted, and no runtime, configuration, SDK, or persisted-data contract changes.
Evidence
8b15f79f4f44:extensions/matrix/src/matrix/monitor/handler.test.tshad 1 failure / 60 passes;extensions/codex/src/app-server/run-attempt.bounded-continuity.test.tshad 1 failure / 1 pass, with the same assertions as CI.node scripts/run-vitest.mjs extensions/matrix/src/matrix/monitor/handler.test.ts extensions/codex/src/app-server/run-attempt.bounded-continuity.test.ts --maxWorkers=1passed all 63 tests. Matrix: 61/61, 18.83 seconds; Codex: 2/2, 38.21 seconds; combined wrapper wall time 62.65 seconds. These are existing production-boundary suites, with most file duration in transformation/imports.3493a6f08917, both files passed again at PR headec26410dfc08b0bf2a48c696dc9d330b73af8543: Matrix 61/61 (55.18 seconds) and Codex 2/2 (117.91 seconds), with 209.14 seconds combined wrapper wall time.oxfmt,oxlintwithextensions/tsconfig.json, line-cap ratchet, andgit diff --checkpassed. Independent isolated Codex autoreview completed one P0–P2 pass: scoped-clean, no accepted/actionable findings.ec26410dfc08b0bf2a48c696dc9d330b73af8543: 23 jobs passed, includingopenclaw/ci-gate, and 31 jobs were scope-skipped. Hosted lint, test types, architecture, baseline ratchets, and smoke checks passed.