Repository navigation
fix: keep subagent reconciliation case-sensitive - #122141
Leon-SK668 wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: the merged canonical repair preserves opaque peer-key casing while retaining supported structural key normalization, which is stronger than this branch’s exact-only lookup. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Keep the merged canonical normalizer repair from #127279 and use it as the sole reconciliation path. So I’m closing this here and keeping the remaining discussion on #127279. Review detailsBest possible solution: Keep the merged canonical normalizer repair from #127279 and use it as the sole reconciliation path. Do we have a high-confidence way to reproduce the issue? Yes. The submitted missing-child/case-colliding-sibling scenario is source-reproducible, and current main now covers the same Matrix and Signal cases without rerunning untrusted branch code. Is this the best way to solve the issue? No. The merged canonical repair is better because it rejects opaque-peer collisions while retaining structural session-key normalization that this exact-only branch removes. Security review: Security review cleared: No security or supply-chain surface is changed; the branch only alters session-key lookup logic and regression coverage. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against a3f64c19b673; fix evidence: commit fcc0bb74900b, main fix timestamp 2026-08-22T02:41:41Z. |
|
@clawsweeper re-review The exact head remains |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Closing this PR as superseded by #127279 ( Current The associated issue #122047 has also been closed against the same merged repair. This closure is based on current-main supersession evidence, not on issue priority. |
Fixes #122047
What Problem This Solves
Fixes an issue where a missing subagent session could be reconciled as completed from a different sibling session whose key differed only by letter case.
Why This Change Was Made
Subagent reconciliation now requires an exact session-key match, preserving the opaque, case-sensitive identity already used by the canonical SQLite session store. The reconciliation-only case-folded fallback is removed so a sibling cannot supply another run's terminal state.
User Impact
Parents no longer receive a false completion result when two subagent session keys collide under case folding and one exact child session is absent.
Evidence
Production-boundary SQLite trace on exact head
66e4ad147b312fbf4a43bb8dfee30e8ede2867d7using Node 24.15.0. A temporary, uncommitted harness wrote both entries through productionreplaceSessionEntry, then queried productionresolveSubagentSessionCompletion: a terminal case-colliding sibling could not complete the missing child, while a normal UUID child still reconciled successfully.Focused exact-head contract validation passed:
Exact-head GitHub CI passed with no failed or pending checks: https://github.com/openclaw/openclaw/actions/runs/31513647931
PATH="$PWD/node_modules/.bin:$PATH" oxfmt --check src/agents/subagents/registry/subagent-session-reconciliation.ts src/agents/subagents/registry/subagent-session-reconciliation.test.tsgit diff --check upstream/main...HEADFresh branch autoreview on
66e4ad147b312fbf4a43bb8dfee30e8ede2867d7: clean, no accepted/actionable findings, correctness 0.99.