-
Notifications
You must be signed in to change notification settings - Fork 1
Contributing for Agents
Rules for AI coding agents (and humans) working in the COMSTAR repo. Source: AGENTS.md.

Read Contracts / docs/CONTRACTS.md before changing any cross-process interface. Update the contract, then code, then tests — in that order.
Work Milestones in order (M0 → M9). Do not start M(n+1) until M(n) exit criteria are met. Track status in Progress Tracker.
Every process emits one JSON object per line:
| Field | Required | Meaning |
|---|---|---|
ts |
yes | epoch ms |
level |
yes | debug, info, warn, error |
proc |
yes | bridge, audio, kiosk |
evt |
yes | event name |
msg |
yes | human-readable summary |
turn_id |
no | active turn ULID |
data |
no | structured payload |
Level from COMSTAR_LOG (default info).
Emit on close via the Span helper. Standard names: wake_to_listen, stt, orchestration, tts_first, tts_total, avatar_start, turn_total.
- On Pi: capture, VAD, wake word, kiosk, playback.
- On AI server: AO Reach (incl. optional speech sidecars) + CodeProject.AI.
- Prefer
SessionBridge.speechClientwhen AO ≥ 1.28 advertiseshello.speech; elseCOMSTAR_STT_URL/COMSTAR_TTS_URL. - Do not ferry PCM on the Reach WebSocket or route turns through the planner just for STT (ADR 0003).
- STT accuracy: label live bridge fixtures (
testdata/stt/). Parecord goldens are smoke-only.
Never commit tokens, keys, real config YAML, or comstar.mac.env. Use examples.
COMSTAR AI — Not a mystical AI. A tool you engineered — transparent, hackable, fast.
Home · Architecture · Admin Console · Runbook · Contracts
Apache-2.0 · Pre-alpha · Raspberry Pi 4 terminal + local AI server
COMSTAR AI
Start here
Product
Build & configure
Interfaces
- Contracts Overview
- Bridge ↔ Kiosk
- Bridge ↔ Audio
- CodeProject.AI
- AO Reach
- MCP Tools
- Attention State Machine
Features
- Speech (STT/TTS)
- Vision & Face Enrollment
- Directory Identity
- Wake Word
- MCP Topology
- Terminal Control
- Google Workspace
Decisions (ADRs)
- ADR Index
- 0001 Audio Routing
- 0002 Render Path
- 0003 Speech on Ada
- 0004 Terminal Control
- 0005 LDAP Identity
- 0006 House Presence
- 0007 Full-Duplex AEC
- 0008 TTS Engine
- 0009 Proactivity
- 0010 Text Channel
- 0011 Road VPN
- 0012 Admin Network
- 0013 AO mTLS
- 0014 Fallback Hotspot
Operate
Plan
Meta