Repository navigation
fix(qa): cache stability validation rejects native Codex truncation - #158454
Conversation
Recognize positive-count native history truncation markers in the correlated tool output while retaining read and follow-up evidence checks. Co-authored-by: RomneyDa <[email protected]>
|
🦞👀 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: blocked before merge. Reviewed September 25, 2026, 8:19 PM ET / September 26, 2026, 00:19 UTC (Revision 2). ClawSweeper reviewWhat this changesQA Lab's long-context cache scenario accepts positive-count native Codex truncation markers in correlated read output, with a new test covering its evidence checks. Merge readiness⛔ Blocked before merge - 3 items remain Keep open. Current main and the latest release still reject headerless native Codex truncation evidence. The patch has no actionable code finding, but the exact-head runtime-pair attempt stopped before the scenario ran, leaving proof sufficiency for the QA owner to decide. Priority: P2 Review scores
Verification
How this fits togetherQA Lab runs repository-defined scenarios against OpenClaw and Codex runtimes. This scenario reads a large fixture, inspects mock-provider tool and prompt traces, and reports whether capped output remains available on a later turn. flowchart LR
A[Large fixture] --> B[Runtime pair]
B --> C[Tool read output]
C --> D[Mock provider trace]
D --> E[Truncation and call check]
E --> F[Follow-up prompt check]
F --> G[QA pass or fail]
Decision needed
Why: The patch is narrow and focused checks pass, but the recorded transport failure prevented observation of its intended runtime-pair outcome; the acceptable release-validation proof threshold is an owner judgment. Before merge
Agent review detailsSecurityNone. PR surfaceTests +104, Other 0. Total +104 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the correction in the existing QA scenario and verify its native Codex read and follow-up prompt through the single runtime-pair scenario when sanctioned transport access works. Do we have a high-confidence way to reproduce the issue? Yes at the assertion boundary: current-main source requires a warning header that native Codex truncation need not supply, and the reported baseline replay rejected headerless markers. A full runtime-pair run has not completed. Is this the best way to solve the issue? Yes for the identified assertion defect: the change stays with the existing scenario and its test executes loaded assertion actions. The real runtime trace remains the useful final check. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f5f183dd9575. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Addressed the proof-confidence feedback with an exact-head runtime attempt and updated the PR evidence. Head remains The canonical single-scenario runtime-pair build passed, but execution stopped at QA transport readiness: native Node HTTP POST to the isolated QA bus returned HTTP 502, Timing clarification from the original log: 11.71 s is wrapper wall time; the 16 displayed test cases total 617 ms, including the 584 ms first case. Compiler-cache preparation was 5.266 s; Vitest attributed 75% to transform, 13% to imports, and 7% to tests. No test cases or assertions were weakened. The overall gold proof limitation remains accurately documented; no rating upgrade is claimed. |
* commit '66b812f26e725cd709e08860d2cb46ba496cd308': (70 commits) fix(gateway): preserve typed boxed-number coercion chore(ui): refresh control ui locales (#158689) fix(gateway): reset staged headers on authority errors (#158669) fix(workers): keep inbound staging stable during quota scans fix: preserve Telegram delivery after bot identity changes (#158612) fix(ui): keep automation starter prompts out of startup (#158482) fix(cli): distinguish configuration read failures from invalid input (#158671) test: remove retired progress coercion suppression allowance refactor(gateway): schedule worker placement maintenance (#158662) fix(daemon): keep native service checks within their timeout (#154565) fix(test): restore gateway steering fixture contracts (#158478) fix(acpx): use SDK filesystem publication boundary fix(agentsapi): load OpenClaw persona and workspace context (#158328) fix(gateway): drop progress snapshot coercion suppression fix(qa): accept native Codex truncation in cache evidence (#158454) fix(gateway): keep chat subscriptions stable during unrelated approvals (#158633) perf(gateway): release event payloads from live text guards (#158643) perf(sessions): reduce stalls when saving large chat messages (#158402) fix(qa): reject history-bearing utility requests without session affinity (#158496) test: allow intentional progress snapshot coercion ...
* fix(test): verify followup completion ordering Exercise the real presentation settlement helper with asynchronous cleanup, preserve continuation and admission semantics, and unconditionally release and join the held work. Remote proof covers the strengthened ordering contract and both missing-await faults. * fix(test): verify followup completion ordering * chore: retain followup test branch ancestry The current-main reconstruction preserves the original reviewed scope and supersedes its stale base. Keep the remotely qualified candidate tree unchanged while retaining the original PR ancestry for a non-force branch update. * commit 'ff35145de21cf6296bec05e86bee37b5ed53bcb8': fix(test): verify followup completion ordering * test(auto-reply): signal queued presentation entry * chore: refresh followup test on boundary fix * commit '66b812f26e725cd709e08860d2cb46ba496cd308': (70 commits) fix(gateway): preserve typed boxed-number coercion chore(ui): refresh control ui locales (#158689) fix(gateway): reset staged headers on authority errors (#158669) fix(workers): keep inbound staging stable during quota scans fix: preserve Telegram delivery after bot identity changes (#158612) fix(ui): keep automation starter prompts out of startup (#158482) fix(cli): distinguish configuration read failures from invalid input (#158671) test: remove retired progress coercion suppression allowance refactor(gateway): schedule worker placement maintenance (#158662) fix(daemon): keep native service checks within their timeout (#154565) fix(test): restore gateway steering fixture contracts (#158478) fix(acpx): use SDK filesystem publication boundary fix(agentsapi): load OpenClaw persona and workspace context (#158328) fix(gateway): drop progress snapshot coercion suppression fix(qa): accept native Codex truncation in cache evidence (#158454) fix(gateway): keep chat subscriptions stable during unrelated approvals (#158633) perf(gateway): release event payloads from live text guards (#158643) perf(sessions): reduce stalls when saving large chat messages (#158402) fix(qa): reject history-bearing utility requests without session affinity (#158496) test: allow intentional progress snapshot coercion ... Co-authored-by: Vincent Koc <[email protected]>
…58454) Recognize positive-count native history truncation markers in the correlated tool output while retaining read and follow-up evidence checks. Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]>
* fix(test): verify followup completion ordering Exercise the real presentation settlement helper with asynchronous cleanup, preserve continuation and admission semantics, and unconditionally release and join the held work. Remote proof covers the strengthened ordering contract and both missing-await faults. * fix(test): verify followup completion ordering * chore: retain followup test branch ancestry The current-main reconstruction preserves the original reviewed scope and supersedes its stale base. Keep the remotely qualified candidate tree unchanged while retaining the original PR ancestry for a non-force branch update. * commit 'ff35145de21cf6296bec05e86bee37b5ed53bcb8': fix(test): verify followup completion ordering * test(auto-reply): signal queued presentation entry * chore: refresh followup test on boundary fix * commit '622be54be3ffe0fce27d6a4b147c76d4b19c528c': (70 commits) fix(gateway): preserve typed boxed-number coercion chore(ui): refresh control ui locales (openclaw#158689) fix(gateway): reset staged headers on authority errors (openclaw#158669) fix(workers): keep inbound staging stable during quota scans fix: preserve Telegram delivery after bot identity changes (openclaw#158612) fix(ui): keep automation starter prompts out of startup (openclaw#158482) fix(cli): distinguish configuration read failures from invalid input (openclaw#158671) test: remove retired progress coercion suppression allowance refactor(gateway): schedule worker placement maintenance (openclaw#158662) fix(daemon): keep native service checks within their timeout (openclaw#154565) fix(test): restore gateway steering fixture contracts (openclaw#158478) fix(acpx): use SDK filesystem publication boundary fix(agentsapi): load OpenClaw persona and workspace context (openclaw#158328) fix(gateway): drop progress snapshot coercion suppression fix(qa): accept native Codex truncation in cache evidence (openclaw#158454) fix(gateway): keep chat subscriptions stable during unrelated approvals (openclaw#158633) perf(gateway): release event payloads from live text guards (openclaw#158643) perf(sessions): reduce stalls when saving large chat messages (openclaw#158402) fix(qa): reject history-bearing utility requests without session affinity (openclaw#158496) test: allow intentional progress snapshot coercion ... Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Fixes: the large-tool-result cache stability QA scenario rejects valid Codex tool-history truncation when its output has no warning header.
Maintainer-authorized follow-up to Full Release Validation run 36073359097 and its runtime-pair soak failure. Publication for hosted CI and review was explicitly requested after the local review connection failure; this is not a request to merge or restart release validation.
User Impact
No production behavior changes. Release validation recognizes genuinely capped Codex results while retaining positive truncation counts, read-call/tool/path correlation, fixture-content checks, and later prompt-retention evidence. No schema, timeout, budget, or migration changes; no user action.
Why This Change Was Made
Native Codex history truncation emits
…N tokens truncated…or…N chars truncated…without the separate formatted-output warning header. Accept that positive-count marker only in the correlated tool output. Existing OpenClaw cap markers remain supported. The regression executes the actual YAML assertion actions through the scenario flow runner instead of copying the predicate.Directly inspected sibling Codex source at
d47e5cc0e2bbd35774dff15c83570519735d2ac4:codex-rs/core/src/tools/handlers/dynamic.rs:156-168,codex-rs/core/src/context_manager/history.rs:570-581,codex-rs/utils/output-truncation/src/lib.rs:12-29,89-134, andcodex-rs/utils/string/src/truncate.rs:131-136. The dynamic handler returns content items; history truncation callstruncate_function_output_items_with_policyandtruncate_text, not the formatted wrapper.Evidence
large capped read cache evidence was not observed; the other 11 original cases passed. The scenario, runner, catalog, and test support remain unchanged between branch base0e56c40dcf6d96c0ca5acb30b98ed835e31da2f5and inspected mainb74bd07a2fb. No matching existing repair PR was found.git diff --check, and import-cycle checks passed. The broader changed-scope run passed its guards and core typecheck, then foundTS18046in the new test; final source narrows the unknown action before readingset. Final-source extension typecheck replay (node scripts/run-tsgo.mjs -b tsconfig.extensions.projects.json) passed; the full changed-scope run is not claimed green.34f3da3746f79304d60ef3ea72b30d5d62ff4829; the PRopenclaw/ci-gateis SUCCESS. The changed-extension shard passed; its individual test timing cannot be retrieved because the Actions log download is Forbidden.OPENCLAW_BUILD_PRIVATE_QA=1 pnpm build qaRuntimesuccessfully (44.5 s build phases), then ran the canonical single-scenario command below against actual built Gateway processes. The lockfile-managed released Codex binary is0.155.1(version probe passed). Blocked before scenario execution / before the Codex cell: QA channel polling received HTTP 502, bodySecret egress proxy refused the request.; its channel log reportsqa-bus /v1/poll: malformed JSON response. A same-route native Node HTTP POST reproduced that exact response. No proxy, credential, allowlist, provider route, or assertion was changed. The blocked suite and its isolated Gateway were stopped.770a8d48871591e77c86df70cadbe34e7c6299b7, do not expose a single runtime-pair scenario selector (release QA parity selects complete core/soak lanes; profile evidence selects whole profiles). No broad FRV/QA replacement was dispatched and no release priority was changed.This canonical mock-provider lane executes real runtimes and would exercise the changed correlated request/output assertion; it is distinct from both the synthetic 16-case replay and live-provider inference. No code change or test-case deletion was needed for this evidence update.
Contributor credit: @RomneyDa.