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.

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 under web/.
  • 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 condenses TEAM_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.

ItemValue
Base URLhttps://powerscribe-production.up.railway.app/
GET /Marketing site (Apple B&W, served from web/)
GET /healthJSON health → version=0.1.7-ingest-source
GET /apiJSON service catalog
AuthBearer device tokens on /v1/sessions*
Ingest (card path)POST /v1/sessions/:id/audio + X-Ingest-Source: card + X-Content-SHA256
StorageRailway volume powerscribe-volume at /data — durable JSONL
Proven E2ESpine + phone ingest on Railway (smoke:remote-e2e, token out-of-band)
Deploy truth. GitHub auto-redeploy from 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.

RoleContactOwns
Owner / productArun — @arunbiopowerRailway, secrets, GitHub invites, merges, hardware-repo access
Hardware builder 1 (ESP32-S3)powerscribe1@gmail.com — GitHub login TBDFirmware in separate hardware repo
Hardware builder 2 (ESP32-S3)powerscribe2@gmail.com — GitHub login TBDFirmware in separate hardware repo
Cloud / spine · Android · Design_TBD_ — see docs/TEAM.md rostersrc/ · clients/ · web/
Invite blocker. The GitHub collaborator API needs a username, not an email. Builders must reply with their GitHub logins (or create accounts on those emails); the owner then invites via the helper script or repo Settings → Access. Invitees must accept before clone works.

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.

Hard rule — repo split. Firmware lives in a separate hardware git repo, never in PowerScribe. Do not commit .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

  1. POWERSCRIBE_PS_H3_ESP_SIM_CONNECT.mdFloor you must not break — HELLO / LIST / GET / ACK / NACK already proven.
  2. POWERSCRIBE_PS_H2_CARD_ADAPTER_SPEC.mdRuntime contract delta: pair/unpair/revoke, containers, G13 disclosure.
  3. POWERSCRIBE_PS_HW1_BENCH_SCOPE.mdYour bench package — what “done for bring-up” means.
  4. POWERSCRIBE_H1_CARD_INGEST_SPEC.mdServer provenance — shipped; consume it, don’t change it.
  5. 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

MsgDirectionMeaning
HELLOadapter → cardReply with {board} id. H2 later: challenge/response; unpaired → NO_PAIR.
LISTadapter → cardMeta only — {files:[{name,size,sha256,…}]}. Never payload bytes.
GETadapter → card{name,offset,length} → {data,eof} (or unknown_file).
ACKadapter → cardOnly after durable cloud accept (201 / idempotent 200). Then clear file from LIST.
NACKadapter → cardChecksum / 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)

DayGoal
1Access: PowerScribe clone + hardware repo; run smoke:esp-sim; read H3 → H2 → HW1.
2–3ESP32-S3 bring-up: I2S mic → 16 kHz mono PCM to SD/flash; LED + button.
4–5Segment files + pause flush; WAV with stable names + sha256.
6–7UART message shim: HELLO / LIST / GET.
8–9Host adapter + local PowerScribe upload; prove ACK-only-after-201.
10Brownout + 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

  1. Cursor writes a scoped .handoff/<ENGINE>_<ID>_PROMPT.md — Allowed files, Forbidden, Verification, STOP.
  2. Cursor runs the engine’s exec script (repo scripts/handoff/ or the engine kit).
  3. Owner/reviewer checks git diff + the engine’s RESULT doc.
  4. 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.