Repository navigation
fix: native conversations fail when compaction uses a fallback model - #183282
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: needs maintainer review before merge. What this changesCompaction fallback models resolve their own runtime and plugins instead of inheriting the primary conversation’s harness. Example: An unlocked native conversation needs compaction; fixture/model returns HTTP 401 and backup/fallback-model is configured.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR remains necessary: current main retains the incompatible primary-harness binding, and the focused repair has no actionable review findings. Priority: P1 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe compaction coordinator receives session identity and configured model candidates, prepares runtime resources, and returns a persisted summary result to the conversation runner. flowchart TD
A[Conversation preflight] --> B[Compaction coordinator]
B --> C[Primary summary attempt]
C --> D[Configured fallback chain]
D --> E[Candidate runtime and credentials]
E --> F[Persist summary]
F --> G[Resume conversation]
Technical reviewBest possible solution: Use existing candidate-selection owners for fallback runtimes while preserving primary bindings, locked-session restrictions, and transcript ownership. Do we have a high-confidence way to reproduce the issue? Current-main source traces the inherited harness into unsupported-model rejection, and the reported HTTP-401 regression targets that path; this read-only review ran no target code. Is this the best way to solve the issue? The two production edits are the smallest complete repair because planning and execution must both release the inherited binding for actual fallback candidates. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 952ea71f730d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +113. Total +113 across 3 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label 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 HistoryReviewed October 25, 2026, 7:19 PM ET / 23:19 UTC (Revision 3). |
|
Fixed the obsolete fallback planner assertion and reran the full affected hooks suite (87 passing) plus summary/authentication regressions (16 passing). Added live isolated Gateway proof to the PR description: real Muse conversation, automatic compaction authentication failure, real on-device fallback summary persisted, then successful Muse reply recalling the retained facts. No operator service or personal configuration changed. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…penclaw#183282) Let each actual compaction fallback resolve its own harness after discarding the primary model and authentication plans. This restores native-conversation fallback while preserving locked-session behavior. The unlocked regression fails on the base with an unsupported primary harness; the locked control passes. The candidate's compaction, hook, and authentication coverage passes 103 tests, and exact-head CI passes. Closes openclaw#183273 Co-authored-by: pstarkgit <[email protected]>
…183282) Let each actual compaction fallback resolve its own harness after discarding the primary model and authentication plans. This restores native-conversation fallback while preserving locked-session behavior. The unlocked regression fails on the base with an unsupported primary harness; the locked control passes. The candidate's compaction, hook, and authentication coverage passes 103 tests, and exact-head CI passes. Closes #183273 Co-authored-by: pstarkgit <[email protected]> Release adaptation: ported the locked/unlocked native-harness fallback regression into the stable compact.summary-fallback.test.ts withSession layout (main restructured the file around createFixture), added the auth-error summary mode, and kept the stable hooks-test shape while asserting the fallback candidate carries no runtime pin. Production change is unchanged. (cherry picked from commit 24d7dd3)
…183282) Let each actual compaction fallback resolve its own harness after discarding the primary model and authentication plans. This restores native-conversation fallback while preserving locked-session behavior. The unlocked regression fails on the base with an unsupported primary harness; the locked control passes. The candidate's compaction, hook, and authentication coverage passes 103 tests, and exact-head CI passes. Closes #183273 Co-authored-by: pstarkgit <[email protected]> (cherry picked from commit 24d7dd3) Adapted for 2026.9.x: 9.x has no compact.summary-fallback.test.ts, so the regression lands in a new trimmed file carrying only the auth-error provider fixture and the locked/unlocked native-harness case, registered in the forked database-worker lane (9.x direct compaction needs the host-owned SQLite broker). The 9.x hooks test expectations for both fallback-planning cases (manifest-normalized and alias) now assert fallbacks carry no primary runtime while compaction.model keeps it.
Move the #180308 MCP inspection redaction case into mcp-cli.redaction.test.ts (registered in the database-worker lane) and tighten the #179538 state-directory cases so both files stay under the 1000-line limit. Rename the #181056 Slack reconnect-loop fixture variables that shadowed per-test locals, and drop an await of the synchronous 9.x plugin registry loader in the #183282 compaction test.
Adapt 28 audited units to the release-native ownership model. Preserve AgentsAPI/cron policy and actor-owned projection recovery. Source provenance and original contributor credit: #176852 342fea1 — yinx65588-boop <[email protected]> #180853 50f795a — Peter Steinberger <[email protected]> #184041 e356196 — Peter Steinberger <[email protected]> #184069 7739767 — Peter Steinberger <[email protected]> #182666 9ff9d88 — Stefan Stüben <[email protected]> #183884 112667f — Peter Steinberger <[email protected]> #184021 05010ed — Peter Steinberger <[email protected]> #183390 15a5706 — Masato Hoshino <[email protected]> #183282 24d7dd3 — pstarkgit <[email protected]> #164843 127f3c2 — PollyBot13 <[email protected]> #172959 30f88d3 — main object unavailable; stable source inspected #172959 eb2255b — johan-eilertsen <[email protected]> #120943 1a76be1 — Peter Steinberger <[email protected]> #178271 b3c8f8a — Wang Rui <[email protected]> #178271 7bd6895 — RJ <[email protected]> #177518 679980c — Masato Hoshino <[email protected]> #182454 a538efe — Peter Steinberger <[email protected]> #180042 bef193c — sunlit-deng <[email protected]> #179347 2405bf4 — Peter Steinberger <[email protected]> #179060 ccedbdc — Peter Steinberger <[email protected]> #118011 9596527 — Peter Steinberger <[email protected]> #182219 fade14f — Sukhdeep <[email protected]> #181871 b1b5f00 — Peter Steinberger <[email protected]> #178888 5125e3c — RoboClaw <[email protected]> #180075 c9c2d16 — Wang Rui <[email protected]> #181081 f223f77 — Jason O'Neal <[email protected]> #180236 d11c239 — Dallin Romney <[email protected]> #173921 af50fbd — Peter Steinberger <[email protected]> #174868 7034ca4 — Peter Steinberger <[email protected]> #172724 492c932 — Dallin Romney <[email protected]> Proof: targeted owner/sibling tests, supported fresh two-pass review clean. Known qualification gaps recorded in the release backport evidence. Co-authored-by: RomneyDa <[email protected]>
Closes #183273
What Problem This Solves
Fixes: long native-runtime conversations stop replying when compaction's configured fallback model cannot run through the primary conversation's harness.
User Impact
Unlocked sessions can use their configured fallback to persist a summary and continue with recent history intact. Locked sessions continue refusing cross-model fallback. This restores existing fallback behavior; it does not add native compaction to runtimes that lack it.
Why This Change Was Made
Fallback preparation and execution retained the primary harness after discarding its model and authentication plans. Each actual fallback now resolves its own runtime and required plugin; the primary attempt retains its binding. No settings or storage contracts change.
Production +2/-2 (net 0); tests +121/-8 (net +113). The two regression cases exercise successful native-to-built-in fallback and locked-session refusal through the real compaction owner, local HTTP transport, and SQLite transcript. Thanks to @pstarkgit for the fix and reproduction.
Evidence
Requested agent harness "summary-native" does not support backup/fallback-model. The locked-session control passes.ee6efea4f8c5without conflicts. The integrated local rerun collected no tests because the shared worktree installation could not resolvequickjs-wasiduring compiled-worker preparation; exact-head PR CI supplies the integrated proof.