← Back to Pull requests

Carry IR thermal hotspot + new-contact detection (#277) to prod-uds #279

Open
unknown opened this pull request with 370 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 06, 2026 19:43 UTC
Author

Summary

Brings the dev squash commit af184b3 (#277) onto prod-uds with git cherry-pick -x. Nothing else from dev is merged in.

  • Thermal hotspot fallback (edgeml/detectors/thermal.py) is off by default. Turn it on with --thermal-fallback.

  • New-contact detection (edgeml/tracking/newcontact.py) sets Sighting.new_contact (proto field 13). The edge turns it into tags.new_contact, and a new new_contact scorer (weight 1) runs in Default() and in Tomer.

  • Generated code: pinned generators reproduce gen/ with no changes.

  • Unchanged: no deploy manifests, bundles, _prod.go, _demo.go or .github/ files.

  • Conflicts and exclusions (follow-up commit 0394fb8):

  • - web/app.test.cjs conflicted. I dropped the one incoming test because it relies on metadataHTML, which prod-uds does not have.
    - I left out the incoming MockEngine change and its assertion.
    - CLI and live-engine coverage are kept.

    The evaluation and the default-off rationale are in edgeml/reports/THERMAL_HOTSPOT.md and edgeml/reports/NEW_CONTACT.md.

    Testing

  • make test: pass

  • node --test web/.test.cjs: 365 tests pass

  • edgeml pytest: 729 passed, 3 skipped

  • make prod-gate: PASS

  • make verify: pass, including the proto-current, package and images checks

  • sh deploy/zarf/check.sh: 86 tests OK; 211 resources valid, 0 invalid
  • prod

  • No demo feature reachable in -tags prod builds (new demo wiring is in _demo.go with a _prod.go stub)

  • Production still accepts the live input stream (ghost-seeker -shore, edge live ingest + inference sidecar)

  • Output stream still served by the authenticated, versioned /api/v1 on shore and documented in docs/api/openapi.yaml

  • Auth is a real operator token or PIV (no dev token, trusted peers or accept-any-token)

  • Demo-only UI is gated on /api/config features

  • make prod-gate passes; the gate and TestProdContract tests were not weakened or skipped
  • <details><summary><code>make prod-gate</code> output</summary>

    == prod-gate: output API contract
    
    prod-gate: PASS
    

    </details>

    Link to Devin session: https://app.devin.ai/sessions/5f2f932e764f41a8b05686a5a633cfc2
    Open in Devin Desktop: https://app.devin.ai/desktop/session/5f2f932e764f41a8b05686a5a633cfc2?variant=devin
    Requested by: @PCakes1
    <!-- devin-review-badge-begin -->

    ---

    🟢 Devin Review found nothing to fix · View findings · Follow Devin's work

    <a href="https://app.devin.ai/review/fleethackerghostfleet/ghost-seeker/pull/279" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a><!-- devin-review-badge-end -->

    Diff: 370 lines (+277 / -93) across 4 files Reviewer: devin-ai-integration[bot] Review duration: 3m
    All Vouch review confidence checks passed
    Residual risk 0.31 = Change Risk (0.43) × (1 − Review Confidence (0.28)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 370 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 41% · Reviewer familiarity: 35%
    27%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.354
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #279"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 27.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.8% (MEDIUM) · Higher = larger blast radius
    42.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 27.7% · Lower = rushed or shallow review
    27.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 30.9% · Safe to merge
    30.9%