8000 Capture private Santoker BLE session diagnostics and upload on demand by fr3akX · Pull Request #13 · fr3akX/artisan · GitHub
[go: up one dir, main page]

Skip to content

Capture private Santoker BLE session diagnostics and upload on demand - #13

Merged
fr3akX merged 6 commits into
masterfrom
feature/issue-12-santoker-ble-trace
Sep 30, 2026
Merged

fr3akX merged 6 commits into
masterfrom
feature/issue-12-santoker-ble-trace

Conversation

@fr3akX
@fr3akX fr3akX commented Sep 16, 2026
Copy link
Copy Markdown
Owner

Summary

Closes #12.

  • Automatically capture one private structured trace per real Santoker BLE ON/OFF cycle, including connection attempts, preheat, roast boundaries, reconnects, actual RX notifications/TX chunk attempts/results, and OFF cleanup. TCP, serial, other devices and simulator sessions are excluded.
  • Bound producer admission, persist crash-recoverable journals and immutable gzip artifacts, report incomplete capture/capacity exhaustion, and retain failed uploads without automatic retry, expiration or eviction.
  • Add Help → Debug → Upload diagnostic log… and a nonmodal previous-session prompt. A fresh capture starts before prompting or uploading; closing the prompt keeps the logs. Upload/deletion always requires an explicit action.
  • Pin explicit uploads to the verified server identity and captured credential, fence queued disclosure across account/configuration changes, validate the stored receipt before unlinking, and retain actual BLE/HTTP resource ownership through settlement.
  • Preserve .alog compatibility, existing roast/inventory upload behavior and dependencies. No raw exception/account/MAC/hostname metadata is captured; raw application-level Santoker BLE bytes are not a radio capture or universal secret-redaction mechanism.

Validation

  • Full CI-matched Python 3.14.6 desktop suite: 4,222 passed, 22 expected skips, four dependency deprecation warnings.
  • Scoped Ruff, mypy and Pyright: passed.
  • Matching desktop/server contract modules, documentation and golden fixtures; importer/profile fixtures unchanged.
  • Actual desktop client → loopback server → disposable PostgreSQL/MinIO qualification: authenticated streaming, immutable retry after lost local receipt, matching receipt before local deletion, exact private download, physical object deletion and tombstone replay. Focused backend qualification: 334 passed; full backend qualification: 3,110 passed, 3 expected unconfigured Compose skips.
  • Contract, recorder, BLE ownership and HTTP foundations received independent source review. Repeated subagent provider failures prevented the final independent UI review; final UI review/verification was completed inline with operator approval.

Operational notes / remaining qualification

  • Companion private API requires the forthcoming Artisan Server release (Alembic 0017_diagnostic_traces); server deployment is being prepared separately and is not yet complete.
  • Native Windows/macOS/Raspberry Pi behavior, live roasting hardware, maximum-capacity throughput/control latency and full-system power-loss behavior remain unqualified locally. No real device was controlled during testing.
  • Application exit allows 15 seconds of asynchronous trace cleanup after existing stop/settings work. Expiry is explicitly an incomplete/process-crash boundary, not proof of remote completion; held resources are not forcibly torn down. Recovery and explicit immutable retry remain necessary.
  • Server traces remain private to uploader/current organization admins, including when a roast is public. No automatic upload or browser trace viewer is added.

See docs/santoker-trace-runtime.md, docs/santoker-local-recording.md, docs/santoker-trace-http.md, and docs/diagnostic-traces-v1.md for contracts and limitations.

@fr3akX
fr3akX commented Sep 16, 2026
Copy link
Copy Markdown
Owner Author

Latest head efb4ec2 passes every PR check: macOS pytest, mypy, Pylint, Ruff, codespell and Windows installer. Local Python 3.14.6 full suite remains 4,222 passed / 22 expected skips. Pylint boundary annotations document intentional internal lifecycle collaboration and worker/SDK exception containment; CI rules were not globally relaxed. Companion server PR #14 (fr3akX/artisan-server) also has all five required CI jobs green. Production remains healthy on v0.1.10; the diagnostic-trace release/deployment is not yet complete.

@fr3akX
fr3akX merged commit 3dad441 into master Sep 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable full roast-session diagnostic logging and upload to Artisan Server

1 participant

0