Track failed sync hydration attempts#90
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 8, 2026, 11:37 AM ET / 15:37 UTC. Summary Reproducibility: not applicable. as a feature PR: the linked issue requests a new durable ledger rather than reporting broken existing behavior. The PR body still provides high-confidence live CLI proof using a forced hydration failure followed by a successful retry. Review metrics: 3 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the ledger after explicit maintainer approval of the v5 SQLite schema and read-only CLI/coverage JSON contract, preserving the pre-ledger read-only compatibility behavior already in the patch. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature PR: the linked issue requests a new durable ledger rather than reporting broken existing behavior. The PR body still provides high-confidence live CLI proof using a forced hydration failure followed by a successful retry. Is this the best way to solve the issue? Unclear until maintainer approval: the implementation is a narrow fit for the requested ledger, but the permanent schema and CLI JSON contract need owner signoff before merge. AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning high; reviewed against 59cffd97b6b3. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (5 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
# Conflicts: # internal/cli/app.go
|
@clawsweeper re-review Merged main to clear the conflict and wired the new failure ledger into |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Closes #84.
Adds a sync-attempt failure ledger for PR hydration errors, exposes it through a read-only CLI command, marks failures resolved after a later successful hydration, and treats pre-ledger read-only databases as an empty ledger instead of failing on a missing table.
Behavior proof:
{"failures":[{"number":90,"operation":"pull_review_threads","error_class":"error","retry_count":0}],"include_resolved":false,"repository":"openclaw/gitcrawl"} {"repository":"openclaw/gitcrawl","pull_requests_synced":1,"pr_details_synced":1,"pr_files_synced":1,"pr_commits_synced":1} {"failures":[{"number":90,"operation":"pull_review_threads","resolved_at":"2026-07-01T19:41:33.14832Z"}],"include_resolved":true,"repository":"openclaw/gitcrawl"}The proof run used the actual CLI against a throwaway local archive and a local GitHub-compatible endpoint that forced one review-thread hydration failure, then allowed the retry to succeed.