feat(unic-pr-review): calibrate silent-failure-hunter for lost-signal/observability gaps#222
Conversation
…/observability gaps Add three new detection criteria to the Silent Failure Hunter prompt covering lost-signal / observability gaps — fallback branches, early-return guards, and dev-only logging paths where a real analytics/telemetry event never reaches production observability tools. Guards two new false-positive cases: deliberate traced suppression (different but matching event still fires) and intentionally- disabled analytics with explicit documentation. Closes #217 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
🔍 Comprehensive PR ReviewPR: #222 — feat(unic-pr-review): calibrate silent-failure-hunter for lost-signal/observability gaps SummaryPrompt-only change to Verdict:
🟢 Low Issues (For Consideration)1. Conceptual overlap between new bullets 1 and 2📍 Bullet 1 (abstract statement) and bullet 2 (concrete API examples: View recommendationRecommended: Keep as-is (Option B). The abstract+concrete two-framing is a deliberate LLM prompting strategy. If duplicate findings appear in manual testing on PR #5612, merge into a single bullet with inline examples. 2. No CHANGELOG entry for behavioral capability change📍 The View options
Recommendation: Option A — add a patch bump + CHANGELOG entry. The behaviour change is user-visible regardless of file type. ✅ What's Good
Next Steps
Reviewed by Archon comprehensive-pr-review workflow |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
⚡ Self-Fix Report (Aggressive)Status: COMPLETE Fixes Applied (1 total)
View all fixes
Tests Added(none) — prompt-only PR; no Skipped (1)
Suggested Follow-up Issues(none) Validation✅
Self-fix by Archon · aggressive mode · fixes pushed to |
There was a problem hiding this comment.
Pull request overview
This PR calibrates the unic-pr-review Silent Failure Hunter agent prompt to detect “lost-signal / observability gap” patterns (early returns, fallbacks, cancellation paths, dev-only diagnostics) and adds explicit false-positive guards, then ships the change as version 2.1.3 with updated release metadata.
Changes:
- Expand
silent-failure-hunter’s “What to look for” rubric to include production-observability gaps (missing analytics/telemetry/log/Sentry traces on non-success paths). - Add “What NOT to look for” guardrails to avoid flagging deliberate traced suppression and explicit/documented telemetry opt-outs.
- Bump
unic-pr-reviewto 2.1.3 and document the release in the changelog + plugin metadata.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| apps/claude-code/unic-pr-review/agents/silent-failure-hunter.md | Adds observability-gap detection bullets and false-positive exclusions to the agent prompt. |
| apps/claude-code/unic-pr-review/package.json | Bumps package version to 2.1.3. |
| apps/claude-code/unic-pr-review/CHANGELOG.md | Adds a 2.1.3 entry describing the new detection/guard behavior. |
| apps/claude-code/unic-pr-review/.claude-plugin/plugin.json | Bumps plugin version to 2.1.3. |
| apps/claude-code/unic-pr-review/.claude-plugin/marketplace.json | Bumps marketplace plugin version to 2.1.3. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| }, | ||
| "type": "module", | ||
| "version": "2.1.2" | ||
| "version": "2.1.3" |
Summary
agents/silent-failure-hunter.md) covering lost-signal / observability gapsWhy
The #5612 parity comparison showed
silent-failure-hunterreturning 0 findings while the toolkit's equivalent correctly flagged apage_viewanalytics event being silently dropped on a cancelled route transition. The agent's "What to look for" section covered only error-handling antipatterns (catch blocks, promise rejections) — it had no concept of observability gaps in control flow.Before / After example (PR #5612 — AnalyticsTracker.tsx, FZAG/dxp)
Pattern in the diff:
Before (unic v2.1.2):
{ "findings": [], "positiveObservations": [] }After (with this change):
{ "findings": [{ "severity": "important", "confidence": 82, "filePath": "src/analytics/AnalyticsTracker.tsx", "startLine": 46, "title": "page_view lost on cancelled route — no production trace", "body": "The early return on routeChangeCancelled exits without firing trackEvent('page_view'). No alternative trace records the cancellation in production observability. Either emit a navigation_cancelled event in that branch, or add a structured log capturing the url and reason." }], "positiveObservations": [] }False-positive guard validation
A route handler that fires
trackEvent('navigation_cancelled', { url })in the cancelled branch would not be flagged — that falls under the new "deliberate traced suppression" exclusion in "What NOT to look for".Test plan
pnpm --filter unic-pr-review typecheck— green (517 pass, 0 fail)pnpm --filter unic-pr-review test— green (517 pass, 0 fail)Closes #217
🤖 Generated with Claude Code