Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
c7fa81e
feat(devices): define the hardware listener contract
i098 Nov 23, 2026
7ce350a
feat(devices): apply the reviewed device contract
i098 Nov 23, 2026
2ad84cc
fix(devices): align device identity and indication rules
i098 Nov 23, 2026
70aa85e
feat(devices): add light and screen indicators
i098 Nov 23, 2026
d354abb
ci(devices): gate Rust slices with Cargo
i098 Nov 23, 2026
64ca994
feat(server): add device enrolment and revocation
i098 Nov 23, 2026
ee2d968
feat(media): accept hardware listener declarations
i098 Nov 23, 2026
dd1ed28
feat(devices): add the Rust reference listener core
i098 Nov 23, 2026
684335a
feat(web): pair page and device list
i098 Nov 23, 2026
fe6280e
feat(web): add kiosk page for small device screens
i098 Nov 23, 2026
706204e
docs(changelog): add kiosk page fragment
i098 Nov 23, 2026
1ad0673
Merge pull request #231 from i098/fm/sanctum-anydev-s1
i098 Nov 23, 2026
bbd57fb
fix(devices): compile listener lifecycle tests
i098 Nov 23, 2026
aecca40
Merge branch 'fm/sanctum-any-device' into fm/sanctum-anydev-s4
i098 Nov 23, 2026
c292fd3
fix(devices): expect the handshake callback lint
i098 Nov 23, 2026
45bec0a
Merge pull request #234 from i098/fm/sanctum-anydev-s2
i098 Nov 23, 2026
f5b6b10
fix(devices): close the indicator change channel on drop
i098 Nov 23, 2026
9392a82
Merge pull request #236 from i098/fm/sanctum-anydev-s5
i098 Nov 23, 2026
844d1f8
Merge pull request #232 from i098/fm/sanctum-anydev-s3
i098 Nov 23, 2026
d9eab75
Merge pull request #230 from i098/fm/sanctum-anydev-s4
i098 Nov 23, 2026
75143bc
test(web): wait for the waveform assertions
i098 Nov 23, 2026
fd8daee
build(devices): lock integrated indicator dependencies
i098 Nov 23, 2026
933849c
test(web): restore the original waveform checks
i098 Nov 23, 2026
ba3cb52
fix(web): load device settings only when opened
i098 Nov 23, 2026
f58fb71
Merge pull request #235 from i098/fm/sanctum-anydev-s6
i098 Nov 23, 2026
4b740ff
feat(devices): ship the listener command and fixture check
i098 Nov 23, 2026
bbdf2c2
test(devices): separate light cycles from code matching
i098 Nov 23, 2026
8fe9c96
fix(devices): isolate capture and preserve blocked chunks
i098 Nov 23, 2026
9b58277
build(devices): remove unused compression dependencies
i098 Nov 23, 2026
28e980b
fix(devices): use one schema change per migration step
i098 Nov 23, 2026
db5bafb
test(devices): cover the listener column migration step
i098 Nov 23, 2026
94aecd3
fix: review: apply pipeline fix
i098 Nov 23, 2026
5b2935f
fix: review: apply pipeline fix
i098 Nov 23, 2026
28a96eb
fix(devices): check kiosk delivery before capture
i098 Nov 23, 2026
4952016
fix(pairing): distinguish a code lockout from other refusals
i098 Nov 23, 2026
dcbe81a
fix(ingest): check device access after tracking the socket
i098 Nov 23, 2026
60d3424
test(pairing): cover both forbidden responses
i098 Nov 23, 2026
fd53a0d
fix: review: apply pipeline fix
i098 Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fallowrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"docs/build/snippets/**",
"docs/build/blueprint.html"
],
"entry": ["web-app/landing/index.html"],
"entry": ["web-app/landing/index.html", "web-app/kiosk/index.html"],
"audit": {
"gate": "new-only"
},
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/device-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Device client

on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read

jobs:
device-client:
name: Device client
runs-on: ubuntu-latest
timeout-minutes: 15
services:
mysql:
image: mirror.gcr.io/library/mysql:8.4
env:
MYSQL_ROOT_PASSWORD: sanctum-ci-test
TZ: UTC
ports:
- 3306:3306
options: >-
--health-cmd "mysqladmin ping -h 127.0.0.1"
--health-interval 5s
--health-timeout 5s
--health-retries 30
env:
SANCTUM_TEST_MYSQL_URL: mysql://root:sanctum-ci-test@127.0.0.1:3306
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
with:
persist-credentials: false
- name: Install the pinned Rust toolchain
run: rustup toolchain install 1.97.1 --profile minimal --component rustfmt,clippy && rustup default 1.97.1
- name: Check the Rust workspace
working-directory: devices
run: |
cargo fmt --all --check
cargo clippy --locked --workspace --all-targets -- -D warnings
cargo test --locked --workspace
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'
- run: npm ci --ignore-scripts
- run: npx playwright install --with-deps --only-shell chromium
- run: npm run check:app -- --device-client
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Reference links are historical evidence and product context, not implementation
## Product invariants

- TypeScript + stable Effect v3 on Node.js; npm lockfile; one application image for API and worker entrypoints.
- Python belongs only to the promised client SDK; capture, server, workers and MCP use TypeScript.
- Python belongs only to the SDK. Browser capture, server, workers and MCP use TypeScript. The reference hardware listener uses Rust.
- Performance: follow plan section 04; keep hot audio loops plain TypeScript and publish matched benchmark evidence before claiming Rust parity.
- Website first: browser microphone permission, no installed application requirement.
- The capture tab must stay open; do not claim recording after browser closure or OS sleep.
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@ It turns the meeting into time-aware agent memory that people and agents share t
## Features

- **[Silent capture](docs/DESIGN.md):** browser microphone capture with a fullscreen waveform. Sanctum never speaks unless you address it directly.
- **[Hardware listeners](docs/devices/README.md):** pair a microphone and a light or screen without using a browser for capture.
- **[Spoken requests](docs/DECISIONS.md#spoken-work-decision---2026-10-10):** say "Sanctum, look up the train times". Sanctum answers "Looking that up." and files a cited answer in Review.
- **[Full transcripts and recordings](docs/operations.md#configuration):** the complete transcript and the private audio stay in Cloudflare R2, separate from selective memory.
- **[Shared agent memory](docs/ARCHITECTURE.md#interfaces-t22-t23):** decisions, commitments and facts linked to speakers, timestamps and source passages. One versioned API serves the website, the [SDKs](sdk/README.md) and remote MCP.
- **[Integrations with per-action grants](docs/ARCHITECTURE.md#pipedream-t17):** Pipedream actions are found on demand. An action runs only with a stored grant, and each run leaves a truthful receipt.
- **[Teams and workspaces](docs/operations.md#sign-in):** sign in with WorkOS, or self-host the embedded issuer. Access follows workspace membership everywhere.

The capture tab must stay open and the device must stay awake.
Sanctum does not record after the browser closes or the device sleeps.
For browser capture, keep the tab open and the device awake.
For hardware capture, keep the listener running and its recording indicator visible.
Server-side work continues after the tab closes.

## Quick start
Expand Down Expand Up @@ -75,6 +76,7 @@ MySQL holds the durable job ledger, so a restart loses no work.
## Repository layout

- [`web-app/`](web-app/): the React website and the Listen screen.
- [`devices/`](devices/): the Linux listener and its light and screen drivers.
- [`server/`](server/): the API, the MCP server, the workers, and the MySQL migrations.
- [`packages/contracts/`](packages/contracts/): the shared Effect Schema contracts.
- [`sdk/`](sdk/): the generated TypeScript and Python clients, with examples.
Expand Down
1 change: 1 addition & 0 deletions changelog.d/225.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the Rust listener core for device pairing, microphone capture, live audio recovery, and durable WAV uploads.
1 change: 1 addition & 0 deletions changelog.d/226.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pair a hardware listener with a short code. Review and remove capture-only device credentials through the API.
1 change: 1 addition & 0 deletions changelog.d/227.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the hardware listener indicator crate with Linux LED, terminal, and loopback kiosk outputs.
1 change: 1 addition & 0 deletions changelog.d/228.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The live audio socket accepts and saves hardware listener capabilities. Hardware listeners can send audio and receive transcripts without starting spoken work.
1 change: 1 addition & 0 deletions changelog.d/229.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add the `/pair` page, where a signed-in person approves a hardware listener by the code it shows, and a Devices list with Remove in Menu > Settings
1 change: 1 addition & 0 deletions changelog.d/233.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A device with a small screen (240 × 240 and up) shows a kiosk page while it listens: the pairing code before it is paired, then the state word, the waveform and warnings. When the device client stops, the page shows an error and never an old `listening` state.
1 change: 1 addition & 0 deletions changelog.d/237.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pair a hardware listener from the website and record with a visible light or a small screen.
2 changes: 1 addition & 1 deletion deploy/cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function landing(request: Request, env: Env): Promise<Response | undefined

/** Both processes run the same image with the same settings, restarted when those settings change. */
class SanctumContainer extends Container<Env> {
override envVars = containerEnv(this.env);
override envVars = { ...containerEnv(this.env), SANCTUM_DEVICE_PROXY: 'cloudflare' };
#envChecked = false;

/** Once per object instance: a deploy or secret change starts a new instance with no open socket. */
Expand Down
22 changes: 22 additions & 0 deletions deploy/device/sanctum-listener.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[Unit]
Description=Sanctum hardware listener
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=sanctum-listener
SupplementaryGroups=audio
StateDirectory=sanctum-listener
StateDirectoryMode=0700
UMask=0077
ExecStart=/usr/local/bin/sanctum-listener --server https://sanctum.example.com --state-dir /var/lib/sanctum-listener --name "Meeting room" --input alsa:default --light none --screen kiosk:/usr/local/share/sanctum-kiosk
Restart=on-failure
RestartSec=5s
RestartPreventExitStatus=2
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes

[Install]
WantedBy=multi-user.target
1 change: 1 addition & 0 deletions devices/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
Loading
Loading