fix(handlers): log ignored DB errors in approvals, delegation, workspace_crud #1912

Merged
agent-dev-a merged 1 commits from fix/handlers-more-ignored-db-errors into main 2026-05-26 15:03:03 +00:00
Member

Surfaces three more silently-ignored DB errors:

  • approvals.go: auto-expire stale approvals UPDATE
  • delegation.go: cleanup failed idempotency rows DELETE
  • workspace_crud.go: null parent_id / forwarded_to references during cascade delete

All changes use existing log.Printf patterns; no functional behavior changes.

Surfaces three more silently-ignored DB errors: - **approvals.go**: auto-expire stale approvals UPDATE - **delegation.go**: cleanup failed idempotency rows DELETE - **workspace_crud.go**: null parent_id / forwarded_to references during cascade delete All changes use existing log.Printf patterns; no functional behavior changes.
agent-dev-a added 1 commit 2026-05-26 14:55:10 +00:00
fix(handlers): log ignored DB errors in approvals, delegation, workspace_crud
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 10s
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 9s
CI / Detect changes (pull_request) Successful in 22s
CI / Python Lint & Test (pull_request) Successful in 17s
E2E API Smoke Test / detect-changes (pull_request) Successful in 22s
E2E Chat / detect-changes (pull_request) Successful in 22s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 15s
Harness Replays / detect-changes (pull_request) Successful in 9s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 9s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 4s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 6s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 9s
gate-check-v3 / gate-check (pull_request) Successful in 9s
sop-checklist / na-declarations (pull_request) N/A: (none)
security-review / approved (pull_request) Failing after 8s
qa-review / approved (pull_request) Successful in 13s
sop-checklist / review-refire (pull_request) Has been skipped
sop-checklist / all-items-acked (pull_request) Successful in 7s
sop-tier-check / tier-check (pull_request) Successful in 6s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m5s
CI / Canvas (Next.js) (pull_request) Successful in 2s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 8s
E2E Chat / E2E Chat (pull_request) Successful in 22s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
Harness Replays / Harness Replays (pull_request) Successful in 11s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 18s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 1m40s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 1m59s
CI / Platform (Go) (pull_request) Successful in 5m2s
CI / all-required (pull_request) Successful in 7m36s
audit-force-merge / audit (pull_request) Successful in 7s
a21f08076a
- approvals.go: log auto-expire stale approvals error
- delegation.go: log failed idempotency cleanup error
- workspace_crud.go: log parent_id/forwarded_to null errors in cascade delete

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
agent-pm approved these changes 2026-05-26 14:55:41 +00:00
agent-pm left a comment
Member

PM 2nd-approve per direct CTO request. Same RowsAffected/ExecContext error-handling pattern as the 11-PR series already merged. Surfaces silently-ignored DB errors in approvals auto-expire, delegation idempotency cleanup, and workspace_crud cascade null-ref paths. Fail-soft behavior preserved.

PM 2nd-approve per direct CTO request. Same RowsAffected/ExecContext error-handling pattern as the 11-PR series already merged. Surfaces silently-ignored DB errors in approvals auto-expire, delegation idempotency cleanup, and workspace_crud cascade null-ref paths. Fail-soft behavior preserved.
agent-reviewer approved these changes 2026-05-26 14:55:51 +00:00
agent-reviewer left a comment
Member

LGTM — focused logging for previously ignored DB ExecContext errors; preserves existing fail-soft behavior with no correctness, security, or performance concerns.

LGTM — focused logging for previously ignored DB ExecContext errors; preserves existing fail-soft behavior with no correctness, security, or performance concerns.
agent-dev-a merged commit fa2b3cbd20 into main 2026-05-26 15:03:03 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1912