Repository navigation
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. |
|
|
@clawsweeper re-review Accepted and fixed both findings from the completed review artifact in workflow 35487739098: global reconciliation startup is passive for both command spellings/modes, and policy comparison excludes generated allowlist IDs. Current head: 171c0a34b5a. Added real Commander pre-action coverage and deterministic ID-less allowlist regression; independent P2 review, focused tests, typechecks and lint pass. The PR body now includes actual e46e374 migration-conflict → candidate built-CLI recovery proof, unchanged canonical row/invalid config, verified archive, and successful isolated foreground Gateway startup/restart. No production state or service was changed. CI runs on the corrected head. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Final CI correction at f5a0e97de85 removes a type-only catalog import cycle. There is no runtime value/policy change: readonly literal entries are still checked by the typed parent catalog. Madge now reports zero cycles, core typecheck passes, and independent peer review is clean. The previously posted isolated recovery/startup proof exercises the same runtime behavior. Full local changed-file checks also completed successfully. Both accepted code findings and the related lint/architecture CI issues are addressed. Please review the current head; the PR body contains consolidated evidence. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 30, 2026, 1:05 AM ET / 05:05 UTC (Revision 6). ClawSweeper reviewWhat this changesAdds a local approvals command that previews a legacy JSON conflict and, when explicitly requested, archives the legacy file while preserving the current SQLite policy. Merge readiness✅ Ready for maintainer review Keep open. Current main still refuses conflicting legacy approvals without offering this operator recovery path. The inspected head addresses the earlier policy-comparison findings, and I found no actionable patch defect. Priority: P2 Review scores
Verification
How this fits togetherExec approvals control which agent commands and MCP tools may run. Doctor migrates the retired JSON policy into SQLite; when the two policies conflict, this command lets the operator inspect the conflict and choose to retain the SQLite policy. flowchart LR
A[Doctor detects conflict] --> B[Legacy JSON policy]
C[Current SQLite policy] --> D[Local preview]
B --> D
D --> E{Keep current policy?}
E -->|No| F[No state change]
E -->|Yes| G[Archive and retire legacy file]
G --> H[SQLite policy remains]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +217, Tests +293, Docs +29. Total +539 across 12 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the policy choice explicit and preserve the verified archive and SQLite row; a future Doctor or Fix interface could make this recovery easier for operators who cannot use the CLI. Do we have a high-confidence way to reproduce the issue? Yes. Current-main migration source preserves a conflicting legacy file and blocks approval use; the captured PR body also reports an old-version conflict trace. I did not execute that path in this read-only review. Is this the best way to solve the issue? Yes. An explicit CLI choice routed through the existing migration owner is a narrow way to retain the current policy without making Doctor choose between conflicting policies automatically. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a79c90c6e50f. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
f5a0e97 to
4fe2915
Compare
|
@clawsweeper re-review Head4fe2915b2ea is a clean rebase onto main6e5f6f95b10 following an unrelated artifact request-cancellation CI timeout. Range-diff shows all four patches unchanged; the failing case and then its full35-test file pass. All181 focused tests, core typecheck, and zero-cycle Madge pass on this head. The actual e46 migration-owner→candidate built-CLI recovery/config-preservation/health/restart proofs were also repeated successfully after rebase. The previous head had Platinum Hermit, Diamond proof, no findings and Before merge None. Please validate the current rebased head; no behavioral changes were added by the rebase. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
4fe2915 to
27751ea
Compare
27751ea to
5a46140
Compare
|
Addressed the exact-head policy-equality feedback on
Proof:
Production LOC: +263/-45. Tests: +293/-0. Docs: +29/-0. This follow-up adds +11 net production LOC to make the preview compare authority rather than runtime observation metadata. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
5a46140 to
d139479
Compare
|
@clawsweeper re-review Addressed the accepted policy-equality finding at exact head d13947996f7:
Mechanical refresh: the prior exact-head CI failure was an unrelated Codex terminal-settlement timeout. Rebased cleanly onto current main and pushed exact head 87df871. Post-rebase migration suite remains 28/28 green and fresh autoreview remains clean; no approvals-policy behavior changed in the rebase. |
|
🦞👀 Re-review progress:
|
d139479 to
87df871
Compare
|
🦞👀 Re-review progress:
|
Problem
Doctor deliberately retains a conflicting retired approvals file rather than silently replacing the current SQLite policy. Operators need a read-only comparison and an explicit way to retain the current policy and retire those legacy bytes.
Solution
Add
openclaw approvals reconcilefor a redacted, read-only preview, and--keep-currentfor explicit retirement under the existing maintenance/migration owner. Preserve the exact canonical policy row, archive exact legacy bytes with platform-enforced private creation, then remove the legacy source. Never import legacy credentials on that path. Reuse the current owner’s interrupted source/claim handling and keep policy preview available when separate credential custody needs repair; socket comparison is then explicitly unavailable rather than falsely equal. No new persisted schema or automatic policy selection.Validation
--keep-currentpreserved the exact row, archived exact private bytes, removed the legacy source, and repeated without changes. Synthetic legacy credential was not printed.Latest CI repair
CI follow-up: documented why the passive-startup fixture isolates config loading, plugins, terminal output, process exit and Gateway state probing. All 4 passive startup cases and the mock-export guard pass; no baseline exception or production behavior changed. New-head CI pending.