Repository navigation
fix(test): preserve human provenance in release recovery fixture - #159642
roboclaw-bot merged 1 commit into
Conversation
Keep release 2026.9.7 delegated-recovery guards intact while admitting the intended positive Control UI fixture. Preserve routing and run-claim assertions. 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: needs maintainer review before merge. Reviewed September 27, 2026, 8:25 AM ET / 12:25 UTC. ClawSweeper reviewWhat this changesThe branch marks the human-origin user message in one restart-recovery test transcript while leaving other uses of the shared fixture unmarked. Merge readiness✅ Ready for maintainer review This remains a useful release-branch test repair. Release recovery rejects the fixture’s unverified input before the intended routing and run-claim assertions; current main uses a different provenance policy, so its passing test does not resolve the release failure. No introduced defect was found. Priority: P3 Review scores
Verification
How this fits togetherAfter a Gateway restart, OpenClaw reads saved session state and transcripts to decide whether an interrupted agent turn may resume. This test checks a Control UI turn whose saved session also contains a stale Discord delivery route. flowchart LR
A[Saved session state] --> C[Restart recovery]
B[Transcript provenance] --> C
C --> D{Human source verified?}
D -->|Yes| E[Resume agent turn]
D -->|No| F[Skip and record outcome]
E --> G[Gateway request without stale route]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep explicit human provenance confined to this release fixture, retain the unknown-provenance refusal cases, and land it through the release branch’s normal review and validation gates. Do we have a high-confidence way to reproduce the issue? Yes on the release parent: the unmarked fixture reaches the source-verification gate and the PR reports the expected started=1 assertion failing as started=0/skipped=1. I did not execute the test; current main uses a different provenance policy. Is this the best way to solve the issue? Yes. Marking the one synthetic human input supplies the evidence the release policy requires without changing production recovery or the other fixture callers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bdfdc095ee65. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…160130) Restart recovery resumes an internal-ingress run only with verified external_user provenance; missing or unknown provenance no longer inherits human evidence. Forward-port of release/2026.9.7 0862237 (provenance correction) and beab1d9 (#159642 fixture). Co-authored-by: Vincent Koc <[email protected]>
…penclaw#160130) Restart recovery resumes an internal-ingress run only with verified external_user provenance; missing or unknown provenance no longer inherits human evidence. Forward-port of release/2026.9.7 0862237 (provenance correction) and beab1d9 (openclaw#159642 fixture). Co-authored-by: Vincent Koc <[email protected]>
Related: #159617
What Problem This Solves
Fixes the release 2026.9.7 transcript-only restart-recovery test failing before it reaches its stale-route and run-claim assertions. This is the concrete assertion exposed by the reporting repair in #159617 (CI run 36316223625, job 108611480248). Maintainer-directed release-validation repair; not a production-policy change.
User Impact
No user-visible behavior change. The release retains its existing refusal of unverified internal recovery and never derives channel authority from historical Discord routing.
Why This Change Was Made
The positive Control UI fixture records internal ingress but its interrupted user message had no provenance. Release adaptation 0862237 deliberately leaves unknown provenance unverified, so recovery correctly tombstones that synthetic input instead of dispatching. Supply external_user provenance only for this intended human-input case; every other helper caller keeps the old fixture shape. Keep all original counters, deliver=false, message_tool_only, stale route, and source/operational run-ID assertions unchanged.
This is release-specific: the unchanged case passes on inspected main 57f12db, whose provenance reader instead classifies the default branch as other. This PR does not copy that broader main policy into the release.
Evidence