Team handover · as of 2026-12-03
One link. Full context.
PowerScribe is a personal memory + work system: phone (or later card) captures audio → durable queue → STT → structured notes → Today day map → confirm-to-create tasks. This page is the standing brief for cloud, Android, and ESP32-S3 builders.
- Livepowerscribe-production.up.railway.app
- Branchcursor/powerscribe-0.1.5-cloud-spine
- Version0.1.7-ingest-source
- Repogithub.com/arunbiopower/PowerScribe
Non-goals: no silent CRM writes, no firmware blobs in this repo, no competitor parity claims, no inventing hardware teammate access.
01 · Start here
Day one, in five moves.
Clone the active line, run the spine locally, check the two health endpoints, and you have the product in front of you.
What you are joining
- Cloud spine — TypeScript HTTP API under
src/, durable JSONL storage, marketing site underweb/. - Phone path — Android capture + upload clients under
clients/. - Hardware path — ESP32-S3 audio card in a separate hardware repo (see ESP32-S3).
- Docs — plans and specs under
docs/; this page condensesTEAM_HANDOVER.md,HARDWARE_ESP32_HANDOVER.md,TEAM.md,CURSOR_TEAM_SETUP.md,MACHINE_MANUAL.md,POWERSCRIBE_PS_HW1_BENCH_SCOPE.md.
Workstation checklist
- Windows 10/11 · PowerShell 5.1 or 7+
- Git · Node.js 20+ (22 OK) · GitHub CLI (
gh auth login) - Railway CLI (
npm i -g @railway/cli) — deploy hosts only - Cursor — orchestration only (see Engines)
- JDK 17+ / Android Studio — only for Android client work
Clone and run
gh auth login # if needed
git clone https://github.com/arunbiopower/PowerScribe.git
cd PowerScribe
git checkout cursor/powerscribe-0.1.5-cloud-spine
npm install
Copy-Item .env.example .env # local env only — never commit .env
npm run typecheck
npm run dev
The DEVICE_TOKENS value in your local .env comes from the owner out-of-band. Never commit it, paste it in chat, or put it in a RESULT doc.
Local checks
# browser http://localhost:3000/ marketing site
curl.exe http://localhost:3000/health # API health
curl.exe http://localhost:3000/api # JSON service catalog
Before you claim “done”
npm run typecheck
npm run test:full # sequential smoke harness
02 · Production
The live spine.
One Railway service. Same three endpoints as local.
| Item | Value |
|---|---|
| Base URL | https://powerscribe-production.up.railway.app/ |
GET / | Marketing site (Apple B&W, served from web/) |
GET /health | JSON health → version=0.1.7-ingest-source |
GET /api | JSON service catalog |
| Auth | Bearer device tokens on /v1/sessions* |
| Ingest (card path) | POST /v1/sessions/:id/audio + X-Ingest-Source: card + X-Content-SHA256 |
| Storage | Railway volume powerscribe-volume at /data — durable JSONL |
| Proven E2E | Spine + phone ingest on Railway (smoke:remote-e2e, token out-of-band) |
main can slide the service back to an older lineage. The proven path is a manual deploy from the known-good feature branch; the owner pins Railway source or merges before trusting git-triggered deploys.
git push -u origin HEAD
railway link # once per machine — project PowerScribe / production
railway up --service PowerScribe --detach
# poll until GET / returns HTML and /health returns 200
03 · Team contacts
Who to ping.
Owner gates Railway, tokens, invites, merges, and hardware-repo access.
| Role | Contact | Owns |
|---|---|---|
| Owner / product | Arun — @arunbiopower | Railway, secrets, GitHub invites, merges, hardware-repo access |
| Hardware builder 1 (ESP32-S3) | powerscribe1@gmail.com — GitHub login TBD | Firmware in separate hardware repo |
| Hardware builder 2 (ESP32-S3) | powerscribe2@gmail.com — GitHub login TBD | Firmware in separate hardware repo |
| Cloud / spine · Android · Design | _TBD_ — see docs/TEAM.md roster | src/ · clients/ · web/ |
04 · ESP32-S3 builders
Audio card, honest ACK.
Board: ESP32-S3 with camera — but audio / capture first. Vision is out of the ~2026-12-16 commercial cut.
.bin files, ESP-IDF projects, Arduino sketches, or board schematics here. If unsure, do not open a PR that adds firmware — ask the owner for hardware-repo access. PowerScribe keeps the cloud contract, specs, the board-free sim (smoke:esp-sim), and pointers only.
Read in this order
POWERSCRIBE_PS_H3_ESP_SIM_CONNECT.mdFloor you must not break — HELLO / LIST / GET / ACK / NACK already proven.POWERSCRIBE_PS_H2_CARD_ADAPTER_SPEC.mdRuntime contract delta: pair/unpair/revoke, containers, G13 disclosure.POWERSCRIBE_PS_HW1_BENCH_SCOPE.mdYour bench package — what “done for bring-up” means.POWERSCRIBE_H1_CARD_INGEST_SPEC.mdServer provenance — shipped; consume it, don’t change it.POWERSCRIBE_SEAMLESS_HARDWARE_COMPETE_PLAN.md§6How hardware tracks against the commercial cut.
Bench package (audio-first)
- I2S mic — continuous capture, 16 kHz mono; document the mic part.
- Container — Opus preferred; WAV OK for first bring-up.
- NV ring — byte/time caps, free-space floor, remaining-duration readout; overwrite only ACKed regions.
- Button + LED — start/pause; recording / warning / full (wording stays on the phone side).
- Pause persistence — flush segment on pause; brownout must not lose un-ACKed audio.
- Message shim — UART / USB-serial first; BLE/Wi-Fi only after the serial path is honest.
Message contract — transport-agnostic, UART-first
| Msg | Direction | Meaning |
|---|---|---|
HELLO | adapter → card | Reply with {board} id. H2 later: challenge/response; unpaired → NO_PAIR. |
LIST | adapter → card | Meta only — {files:[{name,size,sha256,…}]}. Never payload bytes. |
GET | adapter → card | {name,offset,length} → {data,eof} (or unknown_file). |
ACK | adapter → card | Only after durable cloud accept (201 / idempotent 200). Then clear file from LIST. |
NACK | adapter → card | Checksum / short-read / auth failure — file stays for retry. Never false ACK. |
Checksum rule: card deletes or overwrites only bytes that were re-hashed and ACKed. Server side uses X-Content-SHA256.
Bench exit (acceptance)
- ~10 min continuous capture across ≥1 pause and one brownout reset — no un-ACKed loss.
- Files pulled through the PowerScribe sim flow (stub swapped for your serial adapter) pass checksum → durable
X-Ingest-Source: card→ ACK; NACK cases never ACK. - G13 readouts (remaining duration, battery, full-stop) visible in HELLO/LIST meta.
- Results live in the hardware repo VERDICT; PowerScribe gets a pointer, nothing more.
Validate with no board yet
npm run smoke:esp-sim # must stay green — regression floor
# study: scripts/esp-stub-sender.mjs (behavior to mirror)
# study: scripts/smoke-esp-sim.mjs (upload + ACK ordering)
With a real board: thin host adapter over USB-serial, point at local npm run dev first, then Railway with an owner-issued token (never committed). Required success-path headers: Authorization: Bearer …, X-Ingest-Source: card, X-Content-SHA256: <hex>.
First two weeks (sketch)
| Day | Goal |
|---|---|
| 1 | Access: PowerScribe clone + hardware repo; run smoke:esp-sim; read H3 → H2 → HW1. |
| 2–3 | ESP32-S3 bring-up: I2S mic → 16 kHz mono PCM to SD/flash; LED + button. |
| 4–5 | Segment files + pause flush; WAV with stable names + sha256. |
| 6–7 | UART message shim: HELLO / LIST / GET. |
| 8–9 | Host adapter + local PowerScribe upload; prove ACK-only-after-201. |
| 10 | Brownout + NACK retry; record bench numbers for G13 thresholds. |
| 11+ | Opus container; then radio (BLE/Wi-Fi) — only after the serial path is honest. |
Out of scope (do not burn calendar): camera / CV pipelines, production enclosure, battery certification, competitor parity claims, firmware in product git, claiming BLE/Wi-Fi before UART ACK/NACK honesty, changing shipped server provenance semantics.
05 · Cursor & engines
Cursor orchestrates. Engines write.
Delivery engines — OCF V1, CLR V2, CCR, CWR, GMR — do the heavy coding when invoked. Read .handoff/ENGINE_PROTOCOL.md before your first batch.
The flow
- Cursor writes a scoped
.handoff/<ENGINE>_<ID>_PROMPT.md— Allowed files, Forbidden, Verification, STOP. - Cursor runs the engine’s exec script (repo
scripts/handoff/or the engine kit). - Owner/reviewer checks
git diff+ the engine’s RESULT doc. - Commit happens only when explicitly asked — after review.
Engine etiquette
- One engine per slice — never mix
OCF_*/CLR_*/CCR_*/CWR/GMR_*artifacts for one batch. - Cursor never implements an engine’s Allowed files after
queued/failed/partial/skipped— unless the owner explicitly overrides. - Never write into another engine’s
.handoff/namespace. - Cursor index stays light — keep
.env,*_SECRETS.json, and huge logs out.
06 · Do not
The short list of never.
- No secrets in git, chat, or docs. Never commit
.env,*_SECRETS.json, device tokens, or API keys. Owner distributes tokens out-of-band; rotate if leaked. - No firmware in PowerScribe. No ESP-IDF, Arduino sketches,
.bin, or schematics in this repo — firmware stays in the separate hardware repo. - Never false-ACK. ACK only after a durable cloud accept; NACK keeps the file for retry. Honesty here is the whole contract.
- No vision in the cut. Camera / CV work is out of the ~2026-12-16 commercial cut. Audio first.
- No history rewrites. No force-push to
main, no amending foreign commits. Work on feature branches. - Don’t invent access. No fabricated hardware-repo URLs, tokens, or teammate GitHub logins — the owner grants and invites.