Repository navigation
feat(devices): pair hardware listeners with Sanctum - #238
Merged
Merged
Conversation
- Keep the existing browser wire format and declare device indicators on start. - Share PCM, WAV, and indication vectors across TypeScript and Rust.
- Separate public pairing from authenticated device management. - Add nonblocking audio levels and enable checks for slice pull requests.
- Carry the approver and workspace names on the device. - Keep spoken work outside scoped device sockets.
Add Linux LED, terminal and loopback kiosk outputs. Check the shared light patterns and report output faults to the listener.
- Run workspace Clippy and tests on changes to the feature branch. - Generate a lockfile until the integration adds the CLI lockfile.
- Pair devices with a short code and issue a capture-only bearer once. - Store only hashed codes and credentials. Enforce pairing limits in MySQL.
- Save accepted device capabilities with the epoch start. - Keep spoken work and action updates off device sockets. - Exercise bearer ingest and archive reconciliation with fixture audio.
Pair the device and require a visible indication before capture. Stream PCM, resume live capture, and keep WAV chunks until receipt.
Add /pair, where a signed-in person types the code that a device shows, sees what the device has, and approves or denies it. Add Menu > Settings > Devices with Remove. Closes #229
- Serve web-app/dist/kiosk/ with a relative base for the device client. - Read same-origin /events; show error when the feed is silent 3 s. - Reuse the approved waveform; the listening view does not change. Closes #233
- Add changelog.d/233.added.md for the small-screen kiosk page.
feat(server): add device enrolment and revocation
- Construct the signal guard without moving fields out of a value with Drop. - Use the standard even-length predicate for PCM16 input.
- Limit the expectation to the test callback with the Tungstenite result type.
feat(media): accept hardware listener declarations
- Stop the indicator worker by closing its sender before joining it. - Keep the kiosk fixture filesystem import in tests.
feat(web): kiosk page for small device screens
feat(devices): add the Rust reference listener core
feat(devices): add light and screen indicators
- Poll for the existing rise and needle thresholds for up to five seconds. - Keep the fullscreen view and its audio fixture unchanged.
- Record the indicator dependencies introduced by the slice merge. - Keep the locked Rust check usable on the remaining slice.
- Restore the original setup and pixel assertions for both specs.
- Keep the device client off the fullscreen listener startup path. - Keep the original waveform checks and thresholds.
feat(web): pair page and device list
- Add the Linux listener command and systemd example. - Verify light-only and kiosk flows with synthetic audio in CI. - Record the ARM64 fixture result and restore main-only CI filters.
- Preserve timing and require a complete cycle before comparing the code.
- Bind listeners to the device credential that registers them. - Limit IPv6 pairing by prefix and show the approval code again. - Keep rejected audio locally while the rest of the queue uploads.
- Refresh the lockfile for the smaller listener HTTP feature set.
- Keep the listener column compatible with the migration ledger.
- Expect the listener device ID column in migration 024.
- Check the live connection twice before starting capture. - Return the permanent failure exit code for invalid CLI configuration.
- Show the lockout message only when the server reports a code lockout. - Wait for a new document when testing the same-URL sign-in return.
- Close the live socket if access ends during the upgrade. - Verify the socket rejects access that ends before tracking.
i098
commented
Nov 23, 2026
i098
left a comment
Owner
Author
There was a problem hiding this comment.
I reviewed the hardware listener on fd53a0d4. The validator recorded a test exception after its first pass left four scenarios untested. Separate live runs on the same commit covered all four.
- Ten MySQL-backed API tests covered pairing limits, indicator checks, and WebSocket revocation.
- At 320 pixels, Chromium showed wrong-code and lockout messages. The API refused approval without the CSRF cookie.
- Chromium showed all eight kiosk states at 240 × 240 and 320 × 240. Both screens cleared the listening state when the Rust feed stopped.
- The light and screen listeners passed V1 through V7 with fixture audio. The light listener preserved 992,000 samples across a 10-second outage.
Application checks and the device job passed on this commit. The first hosted run rejected the pull request title, not the commit range.
I did not test V8 or physical hardware. No deployment or production migration ran.
i098
marked this pull request as ready for review
November 23, 2026 19:20
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #237
Summary
Sanctum previously needed an open browser tab to record. A Linux device can now pair from the website and record with a microphone and a status light or small screen. Other hardware can use the device protocol. The website keeps its fullscreen listening view.
What changed and why
The hardware listener opens the microphone only when it can show the recording state. It buffers audio during a network outage. Removing the device from Settings revokes its credential. Provisional meetings remain private to the person who paired the device.
A hardware credential can use only its own listeners. If a chunk fails permanently, the device keeps it locally and uploads later chunks.
Related task
Hardware listener setup and the device protocol describe the new client.
Test evidence
db5bafb0with Chromium, disposable MySQL, and synthetic audio.60d3424after the pairing fixture update.60d3424.fd53a0d4, 10 device API and ingest tests passed against MySQL via HTTP and WebSocket connections./pairat 320 pixels against the same API build. It verified wrong codes, lockout, and refusal when the CSRF cookie was absent.fd53a0d4after a title-only repair. The device job passed on the same commit.live-proof/test-gate-receipt.txt,live-proof/server-guards.log,live-proof/pairing-browser-shared-db.log,live-proof/kiosk-live-browser.log, andlive-proof/device-replay.log.The first
no-mistakesrun,01M8486BF5FST9JK3E9V56HK7Y, failed when the review repair exceeded its one-hour limit.The branch preserves both commits from that run.
The recovery run,
01M84MYNXJMQH60J0EZSXX125Y, started on60d3424.The validator recorded a test exception for its first inconclusive result. Separate runs on
fd53a0d4supplied the four missing live checks above.Release limits
Review decisions
127.0.0.1:7171. Keep the waveform unchanged: it uses bands, not the overall level.Browser evidence
Fullscreen listening, 1024 × 640 · Meeting transcript in Review
devices/Cargo.lockis generated. The slice merge commits preserve their review history.