← Back to Pull requests

feat(countme): report Bluefin Server without consuming common #699

Closed
unknown closed this pull request without merging on Nov 22, 2026 04:59 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 03:12 UTC
Author

Summary


Bluefin Server now reports countme without consuming projectbluefin/common.

  • New files/os/libexec/projectbluefin-countme: exact image-name == server, stream from image-tag (latest, else unknown), once per UTC day via /var/lib/projectbluefin-countme/last. A failed send does not record the day, so the timer retries.

  • New service/timer/preset under files/os/systemd/; shipped by the existing os-k0s-first-boot.bst and os-sshd-preset.bst whole-directory imports, so no payload is installed twice.

  • os-countme.bst: local source only; no github:projectbluefin/common.git; keeps the curl/jq deps.

  • os-image-info.bst description no longer attributes the reporter to common; importer descriptions and the os-stack comment updated.

  • Tests: offline behavior (first send, same-UTC-day suppression, next-day resend, failed-send retry, non-server/empty-tag skip, invalid-tag → unknown) plus static wiring.

  • Docs: diskless-tmpfs caveat (a volatile /var means a same-day reboot pings again).
  • Verification


  • python -m pytest -q tests/unit/test_countme.py tests/unit/test_build_depends.py tests/unit/test_os_contracts.py tests/unit/test_files_payload_reachability.py → 97 passed

  • shellcheck on the reporter → clean

  • git diff --cached --name-only showed exactly the 11 intended paths
  • Related


    Worker/site acceptance: projectbluefin/documentation#1730

    Diff: 178 lines (+133 / -45) across 2 files Reviewer: jeefy Review duration: 2987m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.35) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 178 lines diff across 2 files
    0.35
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    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.310
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #699"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 35.5% (MEDIUM) · Higher = larger blast radius
    35.5%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 15.3% · Safe to merge
    15.3%