#1127

Debt from PR #1094: uncovered postgresql.py mutants, mypy errors in touched test files, stale integration rows

Openaryanranderiyaopened 3mo ago

Three pieces of debt were surfaced while landing #1094 and deliberately left out of it. Counts were measured 2026-08-24 on that PR's branch — re-verify each against current master before fixing; any of them may have shifted or resolved since.

1. apps/api/app/db/postgresql.py: 22 changed-line mutants not covered

The diff-scoped mutation gate reported 22 surviving mutants on changed lines as non-blocking at the time. The module handles checkpoint/session plumbing, so untestable-looking lines there are worth either covering or explicitly classifying (EQUIV/LOGGING) rather than leaving unlisted.

Re-check with: bash scripts/test/mutation.sh app/db/postgresql.py (see the script header for arguments; CI artifacts are mutation-log-N, 0-indexed).

2. ~46 pre-existing mypy errors in test files touched by #1094

Not introduced by the PR — the lane is staged-strict and they predate it — but they sit in files the PR touched, so the next edit to any of them trips over the backlog.

Re-check with: uv run mypy on the tests/unit/ modules #1094 touched (memory/stream test files).

3. Stale google_calendar / google_docs rows in the founder account's connected-integrations set

User 67689b80006f6eec3f6f6df8 has connected-integration rows for providers no longer actually connected. Cosmetic in the UI, but anything that iterates connected integrations (manifest building, subagent selection) sees phantom providers.

Re-check with: a read-only probe of the integrations collection on prod before deleting anything (run inside the gaia-backend container with Infisical vars from /run/secrets).

Activity

0

No activity yet.