Repository navigation
chore(ci): run Gateway prompt-cache validation separately - #143012
vincentkoc wants to merge 2 commits into
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: blocked before merge. Reviewed October 4, 2026, 7:41 AM ET / 11:41 UTC (Revision 8). ClawSweeper reviewWhat this changesThe PR adds a separate Gateway conversation cache check to the existing live workflow, validates historical suite availability, and excludes unrelated Docker jobs from cache-only runs. Merge readiness⛔ Blocked before merge - 3 items remain Keep open: current main still lacks the distinct Gateway cache validation, and no introduced correctness defect was found. This maintainer-authored draft remains dependent on unresolved coverage qualification. Priority: P2 Review scores
Verification
How this fits togetherThe live validation workflow runs provider-backed checks against a selected OpenClaw revision. This integration separates synthetic cache results from persisted Gateway conversation and tool-continuation results used for release confidence. flowchart TD
A[Selected OpenClaw revision] --> B[Trusted suite availability check]
B --> C{Complete suite available}
C -->|Yes| D[Gateway conversation cache matrix]
C -->|Authorized historical absence| E[Explicit not run result]
A --> F[Synthetic cache validation]
D --> G[Live and release results]
E --> G
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceTests +361, Config +35, Other +63. Total +459 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Integrate a qualified Gateway cache matrix into the existing live lanes while preserving current main's runtime selection and release policy. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR integrates validation rather than repairing runtime behavior; the captured live runs demonstrate execution but not successful main-based qualification. Is this the best way to solve the issue? Yes, separating the Gateway matrix from synthetic retries is a focused integration, provided the dependency is qualified and current-main workflow behavior is preserved. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 214bb47b4ec0. LabelsLabel changes: No label 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 (7 earlier review cycles)
|
d5046af to
5ae7905
Compare
|
@clawsweeper re-review Please review exact head The historical-target availability finding is addressed with the existing frozen-target authorization contract and canonical committed-source reader. Only an authorized historical commit genuinely lacking both command and suite records explicit NOT RUN. Partial, malformed, unreadable, mismatched, or unauthorized absent targets fail. The helper comes from the validated workflow SHA, not selected target code. The cache-only selector now excludes unrelated Docker image/provider jobs and preserves blank/full selection. The runtime cache step remains outside the unchanged synthetic retry loop and still runs after synthetic failure. Normal/fast CI does not call live models. Proof: all 28 new availability cases passed; the final combined three-file run passed 77 tests unfiltered with zero skips. All 10 focused workflow guards passed, including the two cache-only cases that failed before the fix. Fresh scoped P0-P2 autoreview and independent CI review passed; the final restacked tree matches that candidate. One bounded, exact-stack, cache-only daily E2E invocation is authorized but not yet run. No live model-access, red-baseline, cache-efficiency, or repaired-runtime result is claimed. This PR stays draft until the coverage dependency lands, then its integration-only delta will be retargeted to main and requalified. The runtime repair remains separate. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
5ae7905 to
0de073e
Compare
|
@clawsweeper re-review Please review exact head This is a content-identical restack of the previously reviewed CI delta. The historical-target finding remains resolved through the existing frozen-target authorization contract and canonical committed-source reader. Only genuinely absent authorized historical suites record NOT RUN; malformed/partial/current-target absence and read errors fail. The cache-only Docker exclusions, blank/full behavior, synthetic retry separation, and beta/advisory policy are unchanged. Normal/fast CI does not call live models. Proof remains 28 availability cases and 10 focused workflow guards. The preceding capture correction separately passed all 63 unfiltered tests, fresh P0-P2 autoreview, and independent review. Both the CI delta and the added coverage correction were checked byte-for-byte after restacking. First integrated run: https://github.com/openclaw/openclaw/actions/runs/34340920011/attempts/1. Setup and the synthetic control passed; all six runtime cells failed before cache assertions. The body links the detailed harness-failure receipt, not a cache-defect reproduction. One corrected exact-stack cache-only run is authorized; raw usage/model identity/prefix evidence and any original-defect red remain pending. This PR stays draft until the coverage dependency lands, then only its CI delta is retargeted to main and requalified. Runtime repair and native landing gates remain separate. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
0de073e to
97f961f
Compare
|
@clawsweeper re-review Please review exact head This is a byte-identical restack of the previously reviewed CI delta. The preceding layer adds only an explicit return in a unit-test IIFE to resolve TS7030 without weakening its failure assertion. All 52 capture-helper tests passed unfiltered; fresh P0-P2 autoreview and independent review approved that one-line change. The targeted compiler refused the shared-install path before compilation, so hosted exact-head type proof remains pending. The historical-target finding remains resolved through the existing frozen-target authorization contract and committed-source reader. Cache-only Docker exclusions, blank/full behavior, synthetic retry separation, and beta/advisory policy are unchanged. Normal/fast CI does not call live models. Unchanged CI proof remains 28 availability cases and 10 focused workflow guards. The preceding full-blob/first-stop correction separately passed all 63 unfiltered tests. Both the CI delta and the added one-line unit-test correction were compared byte-for-byte after restacking. Corrected run https://github.com/openclaw/openclaw/actions/runs/34343752163/attempts/1 remains immutable at source/tooling |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
97f961f to
ea8aba4
Compare
3a554d9 to
aeb50c7
Compare
|
@clawsweeper re-review Please review exact head The two integration commits are patch-identical: historical absence still uses the existing explicit frozen-target contract, partial/current/read errors fail, and cache-only runs exclude unrelated Docker jobs. The preceding coverage corrections are now published with 139 passing focused tests and clean independent/autoreview results. The prior release-adoption disposition is preserved: this PR stays draft until its coverage dependency lands, then the main-targeted integration needs exact-head qualification and release-owner acceptance of inherited blocking semantics. Historical failures and pending current-head live proof are explicit in both bodies. No repair, retarget, rebase, or automerge is requested. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Depends on: #143010
Related: #140621
The related runtime repair subsequently merged as
faaf4b0fbd3b909e3400b686e854793b0b6c5112on September 9, 2026 at 17:35:57 UTC. The source and live result below remain the frozen pre-fix baseline, not qualification of that merge.What Problem This Solves
The existing daily/release live-cache job runs the synthetic smoke without dedicated proof of persisted Gateway conversations and tool continuations. A synthetic pass cannot stand in for the real-runtime matrix in the preceding coverage PR.
Cache-only selection should also avoid unrelated Docker work and distinguish an explicitly authorized historical target that predates the suite from an invalid or incomplete current target.
Why This Change Was Made
Add a separate, bounded
test:live:cache:runtimestep requiring all six daily scenarios. It runs outside the existing synthetic two-attempt loop and still runs after synthetic failure unless cancelled or the historical suite is explicitly unavailable.Reuse the existing frozen-target authorization contract and committed-source reader. Only authorized historical absence of both the command and all four suite files records explicit NOT RUN. Partial, malformed, unreadable, mismatched, or unauthorized absent targets fail.
Exclude
live-cachefrom the unrelated Docker image and provider jobs while preserving blank/full selection. The synthetic command, scenarios, floors, retry loop, and beta/advisory policy remain unchanged. There is no new scheduler or separate release gate.User Impact
Maintainers receive distinct synthetic and real-Gateway results from the existing E2E workflow. Normal/fast CI runs deterministic tests only; this PR does not add provider inference to those lanes or broaden the native-live/Docker model matrices.
This integration remains draft. Its coverage dependency must land, then this four-file integration must be retargeted and requalified against main. Maintainer direction is to add this coverage in the existing E2E/FRV lanes, not normal/fast CI. Adoption preserves the existing
continue-on-error: inputs.advisory || inputs.live_advisorycontract and its beta-advisory/stable-full-blocking callers; this PR does not introduce a new blocking policy. That direction is not an expected-red waiver: a genuine cache failure is not passing release qualification, and OpenAI harness coverage remains unresolved.Evidence
ea8aba48b06293d7341fb6e4e1b5257fd49c211f, based on coverage headaeb50c718b33d39aa7bd66bc7246664bdb155839. Final stack tree:528c4a5d56ff0af390a3e6e4e72dd5213ca2eb18.4e1f0b85890056adc52bb05d590ea6484b56193d5661f26c1ce790cf5727abe0. No production runtime change or related contributor implementation is included.ef37c4f3755d4a424c12530d9339d48f2fbcdc8d, the integrated helper/shard/frozen-target command passed 177 tests, unfiltered. The final two helper-only corrections in the preceding layer then passed 139 helper tests, unfiltered and with zero skips; those latest changes are not CI integration changes.node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts --testNamePattern 'runs the complete Gateway cache matrix|keeps cache-only E2E': 10 passed. The 537 filtered unrelated tests are excluded from proof counts.bash -n scripts/lib/frozen-target-compat.sh, and diff checks passed.@pnpm/parse-overrides; no dependency reconciliation or full-gate pass is claimed.aeb50c718b33d39aa7bd66bc7246664bdb155839, 122 passed, 12 skipped, zero failed, including required gate job102572138674. This draft integration's skipped CI is not qualification; main-based integration CI remains pending.Current-source expanded runtime proof
One existing hosted Testbox E2E command,
openclaw-testbox-env pnpm test:live:cache:runtime:expanded, completed on September 9, 2026: 2 passed, 8 failed, 0 skipped; command exit 1, 29 observed requests, 411.501s including a 30.7ssourcePerformancebuild. No retry, extra synthetic run, model probe, or new workflow was used.https://github.com/openclaw/openclaw/actions/runs/34381314585/attempts/1, job
102566589879, ran with exact Code/tooling SHAea8aba48b06293d7341fb6e4e1b5257fd49c211fand receiver-verified tree528c4a5d56ff0af390a3e6e4e72dd5213ca2eb18, checked again after frozen installation. Toolchain: Linux x64, Node 24.19.0, pnpm 12.3.4. The top-level Actions run/job is cancelled after the owned Testbox lease was stopped; it must not be reported as an Actions pass or Actions test-failure conclusion. The completed command/report establish the test failure.The preceding PR records all ten outcomes, elapsed times, cache reads/writes, hashes, and limitations: #143010. Report
runtime-prompt-cache.vitest.jsonhas 10 cases, 11,596 bytes, SHA256d926e192e40851a5092f96ec46a1d01d543cb942228cf6bf43bf6199daa2dada. No raw capture DB/history export was retained. The evidence proves projected message-history stability, not full system/tool byte equality, and does not establish a fixed-build comparison or billing savings.Historical execution, not current-head qualification
https://github.com/openclaw/openclaw/actions/runs/34340920011/attempts/1 at source/tooling
5ae790547157bc40f7aeb3517a597679973d642cpassed setup and synthetic attempt 1 of at most 2, then failed all six runtime cells on harness/capture paths.https://github.com/openclaw/openclaw/actions/runs/34343752163/attempts/1 at source/tooling
0de073ebc32c7b64299f68785a5aa52627b53036passed availability/setup and the synthetic step. All six runtime cells failed: two OpenAI capture/transport observations and four Anthropic history assertions. The runtime step took 4m27s; the cache job took 6m15s. Unrelated Docker jobs were skipped. This proves earlier integration execution, not cache qualification.The preceding PR records every historical selected-cell count, elapsed time, and classification. Twelve Anthropic exchanges passed usage/model checks and both dependent-read sequences, but zero runtime-fact carriers were present. Fixture, history-projection, final-accounting, and owner-lifecycle corrections are now published. Capture prerequisite #143107 is merged. Those earlier harness runs and deterministic repairs did not reproduce the original cache defect; the current-source Anthropic run above now does. The historical OpenAI cause remains unproven.
Runtime bounds are observational: six daily cells and 18 planned runtime requests, with stop thresholds of eight observed requests or 240,000 observed input tokens per case, a 180-second case deadline, a 25-minute runtime step, and a 45-minute job. Asynchronous capture can overshoot; these are not hard preflight billing caps. The native synthetic loop remains at up to two eight-minute attempts.
The current live command is red, not an expected-pass or release waiver. No repaired-runtime green, aggregate live qualification, main-based integration qualification, or merge-ready verdict is claimed.