Repository navigation
chore: stabilize SQLite lifecycle verification during deletion - #197609
roboclaw-bot merged 2 commits into
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 changesThe SQLite lifecycle verifier retries one correlated deletion conflict after its own agent run settles. Example: The verifier deletes agent:main:dashboard:sqlite-concurrent-delete while its own agent run updates that session.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs a documented verifier race that remains on current main, preserves the final-state assertions, and introduces no actionable correctness defects. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe test-support verifier launches an isolated Gateway, sends concurrent session and history requests through real clients, and checks SQLite state and returned history. flowchart TD
A[SQLite lifecycle verifier] --> B[Gateway client requests]
B --> C[Session deletion owner]
C --> D[SQLite session state]
C --> E[Correlated conflict response]
E --> F[Wait for owned run and retry once]
F --> B
D --> G[Absence and history assertions]
Technical reviewBest possible solution: Retain the single correlated retry in test support while leaving Gateway deletion policy and final-state assertions intact. Do we have a high-confidence way to reproduce the issue? The source exposes the race, and the linked built-CLI failure records its exact rejection; no target code was executed during this read-only review. Is this the best way to solve the issue? The bounded retry fits the existing verifier owner, preserves identity checks and failure outcomes, and avoids changing correct Gateway conflict handling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7b75336b789c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +41. Total +41 across 2 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 HistoryReview history (3 earlier review cycles)Reviewed November 12, 2026, 10:58 AM ET / 15:58 UTC (Revision 4). |
Exact-head P3 qualificationQualified on clean head
Failed first built-CLI retryThe first full-runtime-build retry is recorded as a failure, not a pass. Runtime build succeeded, but the fresh fixture's Doctor repair stalled at the UI protocol step and was terminated by its 60-second bound. Gateway then correctly refused to start because the synthetic fixture still had a legacy session store; the proof reported the remaining fixture JSONL files. This was setup incompleteness, not a failed product assertion. After building the missing Control UI assets with The first-run log and successful retry logs are retained with the qualification artifacts. The independent review's callback-only-test and redundant-fixture-rename suggestions remain separate review feedback; the requested assertions have not been weakened. |
|
@clawsweeper re-review Addressed the requested cleanup in bc08a4c: removed the callback-only replay suite and redundant CLI fixture rename. The real Gateway verifier now has executed proof in the qualification report above; its source is unchanged by this cleanup. The PR body distinguishes that qualified head, the cleanup checks, and current CI. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
🦞👀 Re-review progress:
|
|
Another current occurrence from #197334: head The selected type, lint, channel and UI jobs passed. I kept this repair separate; the overall naming PR gate is still red while this proof fails. |
|
The current head The red commit status comes from the separate security-review job. Its log ends with: I tried rerunning just that failed job, but the GitHub integration returned 403 ( |
|
Merged via squash.
|
…law#197609) Repair the SQLite lifecycle verifier’s race with its own agent run. Retry deletion once only after the exact correlated session-changed rejection and owned-run settlement. Preserve successful deletion, stable database absence, and empty-history assertions. No production behavior changes. Validated by exact-head CI run 43237911264, including the built-CLI lifecycle proof, and successful Security Review attempt 2 of run 43239220762 after a GitHub API 503. Co-authored-by: Daniil Karpenko <[email protected]> Co-authored-by: sallyom <[email protected]>
What Problem This Solves
The SQLite lifecycle verifier can race with its own agent run while deleting a session. Gateway correctly rejects the changed session, but the verifier fails before checking the final state.
User Impact
No user-visible behavior changes. This repairs internal lifecycle verification needed by #197334 without weakening the final-state assertions.
Why This Change Was Made
Wait for that owned run to settle and retry deletion once, only for the exact, correlated
session-changedresponse. Other errors and a second rejection still fail. The verifier still requires successful deletion, stable session absence, and empty history. Superseded-history handling lives in the shared proof helper.This changes test support only. Following review, the callback-only replay tests and redundant CLI fixture rename were removed.
Evidence
On
fdbc70597, the canonical runtime build, UI build, CLI transcript cases (9/9), SQLite helper cases (6/6), and the real Gateway built-CLI lifecycle proof (1/1) passed. The initial missing-UI setup timeout and successful same-head rerun are recorded in the qualification report.Current head
bc08a4c7conly removes the reviewed redundant tests/allocation and restores the upstream CLI fixture. Both real verifier source files are byte-for-byte unchanged from that qualified head. The resulting cleanup passed the CLI cases (9/9), formatting, and test-line budget; it has not received a new full local build or a successful additional native autoreview.Exact-head CI run 43237911264 passed all 31 non-skipped jobs, including the real Gateway built-CLI lifecycle proof (1/1), build artifacts, type checks, and lint. ClawSweeper's exact-head review found no actionable defects. Security Review attempt 2 passed after recovery from the first attempt's GitHub API 503.
The race remains in the verifier on main
2f6061c9bc760d2137ac1dd7abc3a11a2d613220; the recorded failure on #197334 matches the narrow retry. Review of the full two-file change found no blocking correctness issues. No additional local runtime proof was run during maintainer review; exact-head CI supplies that evidence.Related: #197334. That naming PR no longer carries this test repair.