Skip to content

feat(lifecycle): report-only report probe for the problem-report senders (T857 t21) - #191

Merged
bketelsen merged 13 commits into
mainfrom
murbella/t21-report-probe
Nov 6, 2026
Merged

bketelsen merged 13 commits into
mainfrom
murbella/t21-report-probe

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Plan T857 task t21 (phase 2 lab proof): a report-only lane mode that proves the problem-report senders on real installed VMs of all 4 products. Design: ADR-0018. Results: docs/plans/2026-11-05-report-probe-runs.md.

What it adds

  • report_probe: {"intake": "lab"} or {"intake": "production"}, exclusive with the other probe modes, 1 report boot of the installed N.
  • Lab intake: the real frostyard/problem-intake Worker (pinned 572fdd87) under wrangler dev, with a mocked GlitchTip (TLS, bearer check, envelope log) and an edge-like proxy (adds CF-Connecting-IP, X-Forwarded-For, True-Client-IP; numbers requests on arrival; off/on marks). It runs in a throwaway Incus container that run.sh creates and always deletes; its bearer and DSN key never leave it.
  • Floe: the snosi sender (snosi ADR-0030): off checks (no consent file, reporting off), then reporting on with the lab endpoint as a file key, and the real snosi-health-report.timer (a test drop-in removes its randomized delay).
  • Snow, Snowfield, Sundog: chairlift v0.15.0 --send-pending-reports in the test-only autologin session of the first-login probe (ADR-0016), with the endpoint in /etc/chairlift/config.yml, 2 off runs and 1 on run.
  • Judge (report.py): ok, missing-<checks> (off, timer/cli, consent, count, app, crash, schema, ip, forward, match) or unproven-no-sender/-intake/-session. production-accepted or missing-production for the production value.
  • Room in the SMBIOS table: qa.py and the report guest code travel xz-compressed without docstrings, the login-setup script travels as a compressed credential, and run.sh bounds the total of a boot's SMBIOS values at 61440 (fail smbios_size; a test checks 8 boot kinds against 58000).
  • Dev submit packs the scripts as 1 gzipped tar (the per-file artifacts neared Argo's 128 KiB limit).

Evidence

  • Full suite: 1890 passed at the merge d1443456; shellcheck; policies/check_agent_governance.py.
  • Dev runs (trigger=dev, no publish, no tag move), all PASS: verified_report_probe:
    • Floe lab: kgbqh, td7t9, p98kx — report=ok.
    • Floe production: 9x87t — production-accepted, HTTP 202, report id bda364d0-a159-416e-a764-05fc7374e590 (project system; it is to be deleted by report id with scripts/glitchtip-delete-report.sh of frostyard/problem-intake, a host step on TrueNAS).
    • Snow gf584, vrfqr, gsntg; Snowfield q7xtt, psmgd, vtkw9; Sundog 5h8qj, lfckb, grt4h — report=ok.
  • Lane defects the runs found, each fixed with a test: fnn87 (Node tarball name), 5pcgp (loopback peer false missing-ip), 6swrx (SMBIOS total), zf6pf (frostyard-chairlift package name; empty GlitchTip log). t9p4r was a boot stall before the guest unit (not a probe result).

Cross-review

  • Reviewer openai/gpt-6.1-sol; coder deepseek/deepseek-flash with fixes by claude-opus-5.5.
  • Initial review at 79fbe65d (base 97af4f0c, 3 batches, 19 files): Not ready, 7 blocking (desktop production after an extra send, vacuous crash check, header-only envelope, secrets in envelope bodies, completion-order sequence, record bound, false teardown failure) + 1 doc point. All fixed in b93a5dc4.
  • Re-review 1 at b93a5dc4: 2 blocking (envelope item length, unknown intake state). Fixed in caf16a2d/30db25b7.
  • Re-review 2 at 30db25b7: Ready, Blocking: none. 1 low, non-blocking point left as a follow-up: report.py tolerates more than 1 trailing empty line after the envelope payload.
  • Re-review 3 at af11d437 (results doc, merge of main with feat(lifecycle): problems probe proves the timer on a 2nd N+1 boot (T893d) #190, 1 conflict in run.sh resolved by keeping both cases): Ready, Blocking: none.
  • Revert test: in a scratch worktree at the fix head, argo/workflow-templates/snow-bootc-lifecycle-scripts.yaml reverted to 79fbe65d (tests kept): 21 targeted tests failed in tests/test_report_probe.py (e.g. test_forwarding_needs_a_whole_envelope[*], test_no_lab_secret_is_written_in_the_envelope_log, test_report_counts_a_post_that_finished_after_the_mark_as_off, test_the_worst_case_record_is_trimmed_to_fit_and_keeps_every_send, test_a_failed_intake_launch_reports_no_teardown_failure); with only the production guard line reverted, test_a_desktop_dry_run_that_wrote_a_sent_entry_posts_nothing and test_a_desktop_dry_run_that_failed_posts_nothing failed on their assertions. Round 2: reverted to b93a5dc4, 11 length tests and test_a_listed_intake_after_a_failed_launch_stays_a_teardown_task, test_an_intake_list_query_that_fails_keeps_the_teardown_task failed.

The mode is report-only: it gates nothing; promoting it is a new decision.

…g-reports in the autologin session (T857 t21)
…est payloads; compressed login-setup credential (dev run 6swrx)
…er, crash precondition, no extra production send, secrets, record budget, launch teardown)
…ardown task unless its absence is confirmed (re-review 1)
…robe

# Conflicts:
#	argo/workflow-templates/snow-bootc-lifecycle-scripts.yaml
@frostyard-machines
frostyard-machines marked this pull request as ready for review November 6, 2026 04:33
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 6, 2026
@bketelsen
bketelsen merged commit 7a8faf1 into main Nov 6, 2026
5 checks passed
@bketelsen
bketelsen deleted the murbella/t21-report-probe branch November 6, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants