IonWarp logoIonWarp
Code agent

Log & Errors

Details

Runs on every pull request, on GitHub

Agent Prompt

Reviews a GitHub PR for observability gaps — swallowed errors, bare `catch` blocks, fail-open veto paths, and operations that can fail silently with no log, no error code, and no timeout accounting. Learns the repo's own logging and error stack first, then holds the diff to THAT contract. Use when a PR adds error handling, catch/except blocks, timeouts, or new failure paths.

Ask for it
  • Review PR {number} for logging coverage
Sample Output

What a Log & Errors report looks like.

IonWarpbotcommented 2 min ago

IonWarp Review — PR #213

3 issues| 1 P0 1 P1 1 P2
#SevIssueFile
1D1 write failure swallowed, returns okapi/save.ts
2Liveness probe error read as "dead"cron/sweep.ts
3Timeout fires with no distinct log linelib/client.ts
api/save.ts
88899091
+++
} catch (error) { /* swallowed */ }} catch (error) {  log.warn({ error_code: "save_write_failed", run_id, error });  throw new SaveWriteFailed(error);

Swallowed write failure returns success · Log & Errors

The catch drops a D1 write failure and returns { ok: true } — a lost write is indistinguishable from a saved one. Log it keyed and rethrow.

Suggested fixAI fix prompt