Repository navigation
Conversation
Gateway-owned "Invalid session transcript entry" matched the CLI expiry classifier and cooled healthy shared credentials. Keep that failure local and leave genuine invalid-session expiry unchanged.
|
🦞👀 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. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs changes before merge. Reviewed September 17, 2026, 11:30 AM ET / 15:30 UTC (Revision 5). ClawSweeper reviewWhat this changesThe PR keeps transcript-validation failures from cooling healthy credentials, preserves recovery guidance in assistant and thrown-error replies, and consolidates existing retry bookkeeping. Merge readiness⛔ Needs changes before merge - 1 item remains This fix remains necessary: current main and the latest release retain the misclassification. The revised patch preserves the established recovery policy, and no blocking code defect was found. Priority: P1 Review scores
Verification
How this fits togetherOpenClaw classifies agent-run failures before deciding whether to retry, rotate credentials, or report an error. These decisions affect shared credential availability and the explanation returned to users. flowchart TD
A[Agent run failure] --> B[Error classification]
B --> C[Transcript validation]
B --> D[Provider session expiry]
C --> E[Local format failure]
E --> F[Bounded recovery guidance]
D --> G[Existing credential health policy]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -2, Tests +106, Docs +2. Total +106 across 14 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep transcript failures session-local through the existing format policy and bounded reply renderer, while preserving genuine provider-expiry handling. Do we have a high-confidence way to reproduce the issue? Yes, for the narrow classification defect: the real validator's error matches current main's expiry matcher and reaches shared-health policy. This review did not execute the path or reconstruct the reporter's accumulated session. Is this the best way to solve the issue? Yes. The patch reuses existing classification, credential-health, and reply-rendering owners without changing configuration or persisted formats. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b669279a2e01. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
check-dependencies failed because knip reported this string as an unused export. Tests now assert the literal banner so they fail if that copy changes.
… credentials ClawSweeper asked for the live SessionManager validator through the prompt failure handler, not only classify and copy helpers.
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Great work on this, @DonnieFi — the negative lookahead on The fix shape is clean: one early-return guard in We'll pick this up in the next |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…andling Classify Gateway transcript validation before provider session expiry and carry bounded recovery copy through the thrown-error reply path. Consolidate retry decisions and fallback records, remove an unused cooldown field, and narrow the cooldown dependency contract without changing retry budgets or replay guards. Co-authored-by: red <[email protected]>
|
Owner involvement is satisfied: @steipete explicitly requested this repair and landing, including the retry cleanup, and is an active maintainer of the listed openclaw/openclaw-secops team. Reviewed commit: cac212e. The production credential-health policy is unchanged; its added test preserves genuine session-expiry behavior. The local validator-to-final-reply regression, 572 focused tests, full changed-file validation, and independent P0–P2 review pass. Both inspected synthetic screenshots render in the PR body. Exact-head CI remains the final merge gate. |
|
Merged via squash.
|
…uidance (openclaw#150882) * fix: stop treating transcript validation as provider session expiry Gateway-owned "Invalid session transcript entry" matched the CLI expiry classifier and cooled healthy shared credentials. Keep that failure local and leave genuine invalid-session expiry unchanged. * fix: keep transcript-validation copy unexported check-dependencies failed because knip reported this string as an unused export. Tests now assert the literal banner so they fail if that copy changes. * test: prove Gateway prompt failure keeps transcript errors off shared credentials ClawSweeper asked for the live SessionManager validator through the prompt failure handler, not only classify and copy helpers. * fix(agents): keep transcript failures local through retry and reply handling Classify Gateway transcript validation before provider session expiry and carry bounded recovery copy through the thrown-error reply path. Consolidate retry decisions and fallback records, remove an unused cooldown field, and narrow the cooldown dependency contract without changing retry budgets or replay guards. --------- Co-authored-by: Peter Steinberger <[email protected]>
Closes #150809.
What Problem This Solves
Gateway transcript-validation failures could be reported as provider-session expiry and cool healthy shared credentials, disrupting other sessions using the same credential. The thrown-error reply path also hid the transcript diagnosis.
User Impact
Transcript-validation failures stay local, and both assistant errors and thrown run failures explain that the Gateway rejected a transcript entry with recovery guidance. Genuine provider-session expiry keeps its existing credential-health behavior. Raw transcript and provider details remain out of normal replies.
Why This Change Was Made
Recognize the validator message before the broad expiry matcher and carry bounded format-error copy through the existing reply renderer. The requested retry cleanup removes duplicate assistant-policy inputs and fallback attempt records, an unused cooldown field, and a test cast by narrowing the real cooldown dependency contract. Retry budgets, timing, replay guards, cancellation, and credential-bookkeeping order are preserved.
Thanks @DonnieFi for the original classification fix and shared-credential proof.
Evidence
node scripts/check-changed.mjspassed, including core and test typechecks, formatting, lint, dead-export scans, and architecture guards.cac212e61234fdab8bb63888dcd7478378726f97: run 35239056929 passed, including the requiredopenclaw/ci-gate.Before:
After:
The original long-session/legacy-history trigger remains unverified. The proof induces the actual validator error rather than reconstructing the reporter's accumulated session. The contributor's earlier Gateway/SQLite proof at
0dbc9835c36ad531b9baeabe866b289a54fa7f3ashowed subsequent reuse of the same shared credential and a genuine-expiry cooldown control; the health writer remains unchanged.