Repository navigation
fix(ci): repair release E2E regressions - #117656
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 6:22 PM ET / 22:22 UTC. ClawSweeper reviewWhat this changesThe PR updates nested-subagent announcement fixtures to use canonical execution state and returns a migration-required HTTP 409 when gateway history requests encounter duplicate canonical session rows. Merge readinessKeep this PR open for normal maintainer review. The prior release-note finding is resolved, and the current patch correctly exposes the already fail-closed canonical-session migration conflict as an actionable HTTP 409 while updating the stale agent fixtures to the persisted Priority: P2 Review scores
Verification
How this fits togetherThe Gateway session-history endpoint authenticates a client, resolves its session key against the local session store, and returns transcript history. Subagent announcement tests model persisted child-run execution state so parent agents receive the correct completion results. flowchart LR
A[Authenticated gateway client] --> B[Session-history endpoint]
B --> C[Session-key resolution]
C --> D[Canonical session store]
D --> E{Duplicate canonical rows?}
E -->|No| F[Transcript history response]
E -->|Yes| G[Migration-required HTTP 409]
H[Subagent execution records] --> I[Completion announcement formatting]
Decision needed
Why: The author is a repository member and this PR carries the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +16, Tests -12. Total +4 across 3 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep duplicate canonical rows fail-closed in the session-store resolver, return the typed migration-required response at the authenticated HTTP boundary, and let Do we have a high-confidence way to reproduce the issue? Yes, from source: seed both alias and canonical rows for the same resolved key, then request session history. Current main's resolver throws the canonical migration-required error while the stale E2E expectation still asks for the freshest row. Is this the best way to solve the issue? Yes. The resolver remains the authoritative fail-closed owner for duplicate stored state; this PR only translates its typed error into an actionable HTTP response and updates tests to the canonical persisted execution shape. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d03a43a820d0. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* test(agents): use canonical subagent execution fixtures * fix(gateway): surface session migration conflicts * test(gateway): remove stale history helper * chore(release): leave changelog generation to release flow
Summary
executionstate shapeopenclaw doctor --fixTesting
node scripts/run-vitest.mjs src/agents/subagent-announce.format.e2e.test.ts --reporter=dotnode scripts/run-vitest.mjs src/gateway/sessions-history-http.test.ts --reporter=dot.agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main --codex-bin /opt/homebrew/bin/codexContext
Full release validation at exact SHA
77796591370df043cb3228d0e24d0f1077bdf2d6exposed these deterministic repo E2E failures. The remaining live-provider and Docker failures are being classified separately and are not hidden or weakened by this patch.