Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions docs/COMMERCE-AUDIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The server in this tree is ahead of the 0.14 tags: `1f85acb19a` (US sales tax, t
|---|---|---|
| `GET /v1/health` `{ok, version, pricing}` | `fab.rs` `look_in`: only for a card with a KiCad board and no fab file | **Fixed**: `pricing: false` was read as healthy; the card now says "pricing is not available right now" (`health_got`) |
| `GET /v1/catalog` `{kinds, fee, fee_cnc, min_assembled}` | never called; agents get a hand-written list (`ORDER_PROMPT_FAB`) | **Fixed by a test**: the list had drifted (sheet metal `countersinks`, HDI thicknesses 1.4 and 1.8). Prompt corrected, and `fab.rs` test `the_agents_fab_json_contract_names_everything_the_order_servers_catalog_has` fails on any kind, option, choice or feature the catalog has and the prompt lacks, and on the order minimums (5 boards, assembly from 2) |
| `POST /v1/estimate` `{currency, from, parts[{name,kind,qty,from,lead_days,warnings}], label, note}` | `fab.rs` sends `{parts:[{name,kind,qty,options,features}]}`, reads `label`, per-part `from`/`problems`/`name`/`kind` | `lead_days` and `warnings` were dropped. **Fixed**: `fab.look` carries `lead_days` and `estimate_warnings`. Not drawn by any client yet (open) |
| `POST /v1/estimate` `{currency, from, parts[{name,kind,qty,from,lead_days,warnings}], label, note}` | `fab.rs` sends `{parts:[{name,kind,qty,options,features}]}`, reads `label`, per-part `from`/`problems`/`name`/`kind` | `lead_days` and `warnings` were dropped. **Fixed**: `fab.look` carries `lead_days` and `estimate_warnings`, and GPUI, iOS, and Android render them on Order cards and project fab cards |
| `POST /v1/quotes` (multipart `manifest` + `file`; 202 `{id,token,status,poll_after}`; 400, 413, 429 with `{error}`) | `order.rs` `upload`: `X-Backplane-Install`, manifest and files by relative path, 300 s; error text shown to the agent | matches. The hub ignores `poll_after` (polls at 3 s, then 30 s; the server's read budget is 1200 an hour per address and per install, so one quote is far inside it) |
| `GET /v1/quotes/{id}` `{id,status,expires,country,pilot,quote,pay_path,order,error}` | `order.rs` `get`, `order_view.rs` `state`/`payable`/`pending`/`sum` | see the two bugs below; `pilot`, `shipping.ddp`, `pay_label`, `markdown`, `problems`, `warnings`, `order.{status,tracking}` all read as the server writes them |
| `/q/{id}?t=` Buy now (redirect to Stripe; paused page when `FAB_PAUSED`) | `order.rs` `pay_of`, `pay_link` | matches. The hub cannot know the server is paused before the person opens the page (open, needs a server field) |
Expand Down Expand Up @@ -41,7 +41,7 @@ The server in this tree is ahead of the 0.14 tags: `1f85acb19a` (US sales tax, t

## Open, and why

- **No client draws `lead_days` or `estimate_warnings`.** Adding a line to the Buy it tooltip or the card is a UI decision on three clients (GPUI, iOS, Android); left for the person to choose.
- **`lead_days` and `estimate_warnings` are rendered on GPUI, iOS, and Android** (on Order cards and project fab cards).
- **The hub cannot see a paused server** until Buy now is opened. A `paused` flag on `GET /v1/quotes/{id}` (and `/v1/health`) would let the quote and the card say it. That is a server change (`order/fabsrv/app.py`), not a client one; not made here because it changes the deployed contract.
- **`poll_after` is not honoured.** Harmless today; if the server ever slows it, the hub should follow it.
- **No live run of the phones** for the changed paths (the changes are in the hub's data, which all clients draw unchanged).
Expand Down
6 changes: 3 additions & 3 deletions docs/PARITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Each lane updates its own rows in the commit that lands the work.
| **Voice** | | |
| Dictation from the mic, desktop: the GPUI `Dictate` chip starts a hub session (`bots.voice` start/stop/view/act), draws the strip, level and fix chips, applies the hub's edits (`screens/voice.rs`, `voice_mic.rs`); the Rust `backplane-voice` helper is built and shipped beside the hub; a whole session through the hub is not yet driven end to end | partial | voice |
| Dictation from the phones: the hub serves `/voice/in` and pipes the phone's audio to the helper; the Rust `backplane-voice` helper is built and shipped beside the hub. iOS: the composer's mic (`voice.start`, 16 kHz s16le in ~200 ms POSTs, `voice.stop`), the strip (status and level, never the words), fix chips, the ask card with its field, `edit`/`draft` applied with the mark rule, `voice-clear` on Send, `voice.view` after a reconnect, Settings → Voice from `voice.page`; driven on a simulator against a hub and the mock OpenAI (a test tone for the microphone, `BACKPLANE_VOICE_FAKE=1`, debug builds only); not yet heard through a real microphone. Android: the same (`DataVoice.kt`, `DataVoiceViews.kt`, `VoiceRecorder.kt`; RECORD_AUDIO asked at the first press, a refusal says so plainly); driven on an emulator against a hub and the mock OpenAI (a 440 Hz test tone when `/data/local/tmp/voice-fake` exists, debug builds only); edit and shift logic (`VoiceText`) checked against `test/fixtures/voice-edits.json`; not yet heard through a real microphone | partial | voice |
| Whole recordings and Pebble ring notes (Nov 10: docs/ring.md): the ring's form is kept with its M4A under `<home>/ring/<id>/`, de-duplicated by the app's `X-Index-Delivery` (a retry is a 2xx), heard one at a time by the engine Settings, Voice picks with the dictionary (local segments with times and confidence), given to the Pebble bot (`ring.setup`: Pebble, its webhook and token, #ring-requests) as the person's words, notes the hub stopped on taken up again after a restart; Settings → Ring lists, searches, plays, hears again (local or OpenAI) and links to where a note went. Hub tests drive token, signature, retry, test event, playback; the phones have no Ring page yet | partial | voice |
| Whole recordings and Pebble ring notes (Nov 10: docs/ring.md): the ring's form is kept with its M4A under `<home>/ring/<id>/`, de-duplicated by the app's `X-Index-Delivery` (a retry is a 2xx), heard one at a time by the engine Settings, Voice picks with the dictionary (local segments with times and confidence), given to the Pebble bot (`ring.setup`: Pebble, its webhook and token, #ring-requests) as the person's words, notes the hub stopped on taken up again after a restart; Settings → Ring lists, searches, plays, hears again (local or OpenAI) and links to where a note went. Hub tests drive token, signature, retry, test event, playback; Android (`DataRing.kt`) and iOS (dedicated `Settings → Ring` page in `DataSettings.swift` / `DataRing.swift`) wire the same `ring.page` / `ring.page.act` list, search, clear, playback, re-transcribe, and thread jump | done | voice |
| Voice ops of `bots.voice`: status, key, unkey, add, start, stop, view, act, page, page-act, install, remove, api-add, api-del (`voice/session.rs`) | done | voice |
| Settings: Voice page (engine, model, mic, key, dictionary, learned fixes; `voice/page.rs`, in `PAGES`) | done | voice |
| Personal dictionary, learned words, `voice_dictionary_add`: `voice.e.`/`voice.l.` settings, the correction pass and settle as pure Rust with 0.14's test vectors (`voice/vdict.rs`, `words.rs`), the bot tool writes a `voice.e.` entry | done | voice |
Expand All @@ -50,7 +50,7 @@ Each lane updates its own rows in the commit that lands the work.
| Local engine on macOS and Windows: `local-install` and real-audio decode (`native/voice/tests/local_e2e.rs`; sherpa-onnx's C API symbols there are unchecked) | needs a person or another machine | voice |
| Android pairing through the pairing screen with dictation after it (the rig paired by writing the app's link preference with `run-as`) | needs a person or another machine | voice |
| **Commerce** | | |
| Card and Ready to order data (`fab.look`, `fab.intent`): the answer matches 0.14's twelve keys and adds `lead_days`, `estimate_warnings` from the estimate; the bar itself is dropped (row below). Audit and fixes in `docs/COMMERCE-AUDIT.md`. Open: no client draws `lead_days`/`estimate_warnings` (a UI choice on three clients); the hub cannot see a paused server (needs a `paused` field from the order server); the deployed server's version and `DEFAULT_SERVER` need Bub | partial | commerce |
| Card and Ready to order data (`fab.look`, `fab.intent`): the answer matches 0.14's twelve keys and adds `lead_days`, `estimate_warnings` from the estimate; the bar itself is dropped (row below). Audit and fixes in `docs/COMMERCE-AUDIT.md`. GPUI, iOS, and Android render `lead_days` and `estimate_warnings` on Order cards and project fab cards. Open: the hub cannot see a paused server (needs a `paused` field from the order server); the deployed server's version and `DEFAULT_SERVER` need Bub | partial | commerce |
| Buy it: `order.buy` starts a buy thread in the source's folder, "Buy: <project> · 2" naming, the person's Buy it as its first message; only for fab files or a KiCad project's own board. Driven live in the window (test/order/live_e2e.sh): Buy it in the header, the window goes to the buy thread | done | commerce |
| Buy threads: `order_ask` (its answer is the person's message), `order_quote` (the upload waits behind its approval card; nothing leaves before the person's Send, and a copy sends nothing), `order_status`, `order.wait`; order tokens only in `<home>/orders/`. Tested on the hub with stand-ins, and once against the real `order/fabsrv` on loopback with a Stripe double (`test/order/local_server.py`), pilot and paid | done | commerce |
| `order_review` check and record work for every agent (`settings/order.rs`; the design hash matches 0.14's, so a review it recorded stays current). The gate is in, tested through the agent's MCP path with stand-ins, but needs a buy thread to be reached: not driven on a client | partial | commerce |
Expand All @@ -61,7 +61,7 @@ Each lane updates its own rows in the commit that lands the work.
| Subagent drill-down: a subagent opens from its Agent row in a tool fold or its Subagents/Background work row into its own view (what it was asked, what it said, each tool call with its result, what it reported and how it ended), live while it works, with Back. Hub: the subagent's tool results and a foreground one's answer are logged to `@sub:<thread>` beside its steps (new `kind`s `result`, `reply`; `about` gains `description` for foreground calls), `present/panels.rs` `sub_view` (pure, tested), data/1 feature `subview` (`thread.sub`, `subscribe {topic:"sub"}`, `tool.sub` on Agent calls; `docs/PHONE-DATA.md`), the window's session `sub` gives the thread its `subView`. Foreground subagents now show in the panel while their turn runs. Stand-in: `subwork:MS` keeps background subagents working, `fgagent:MS` runs a foreground one. Driven in the GPUI window on Xvfb with real X clicks and Escape (temp home, stand-in claude): panel row → live view, steps arriving (`build/gpui/shots/subagent/s-sub-live-1.png`, `s-sub-live-2.png`), Escape back, the fold's Agent row → the ended view with its report (`s-fold-open.png`, `s-sub-ended.png`), a foreground subagent live and ended (`s-fg-live.png`, `s-fg-ended.png`). On the Pixel 9 with real touches (`build/mobile/shots/subagent/px-*.png`): Background work row → live view, Back, fold → Open → ended view. iOS in the Simulator by XCUITest (`scripts/mobile/ios-sub-journey.sh`, test_subagent). The 0.14 view opened steps inside the panel; this is a page of its own. Claude only: other providers report no subagent steps | done | threads-deep |
| Your machines, one list over machines: one sidebar over every linked machine (one repository is one project), machine marks and away, the switcher (All, this machine, each linked one: `side-machine`), one order by recency over machines (projects and Active rows), New thread on a chosen machine (`newOn`: the + and the project menu), threads there opened, read, sent to, stopped, settled and archived, links `backplane://thread/<machine>~<id>` from a message, the system and the command line (`link-open`, `mirror::thread_ref`). Desktop driven in the window on Xvfb against two linked temp hubs (`test/e2e/pairing/unified.py --hold`, machines `desk` and `lap`). The phones (data/1, `docs/PHONE-DATA.md` "Your machines on a phone"): the lists merge every machine's projects and threads (marks, away, `machine` filter and chips, recency, `newOn`), a far thread opens, reads, sends, interrupts, settles and archives, `backplane://thread/<machine>~<id>` opens it; hub e2e `test/e2e/pairing/phone_machines.py` 39 checks, driven on Android (own emulator, the Pixel was not attached) and the iOS Simulator against two linked temp hubs | done | threads-deep |
| Viewers for threads on another machine (`far.view`): Board, Schematic, 3D and Mech drawn there (`net/farview.rs`), Files listed there and a file shown from a copy (`files.dir`, `files.get`, `net/farfiles.rs`), Diff asked there with Commit and Revert acting there (`git.diff`, `git.act`, `git.revert`), the terminal a shell there in the thread's folder (`term.open/input/resize`, frames forwarded). Desktop driven in the window against two linked temp hubs; the phones through data/1 (`viewer.files/watch/info/probe`, `files.entries`, `viewer.diff`, `term.*` on a `<link>~<id>` thread): Board, 3D and Files drawn from the other machine on Android, Board on the iOS Simulator; Diff and the terminal in the protocol e2e only; Schematic and Mech not driven on the phones | partial | threads-deep |
| Real provider logos: the window draws the vendor marks for Claude and OpenCode as tinted vectors (`assets/providers/*.svg`, simple-icons CC0, `NOTICE.md`) in the model picker, the model chip and the account cards; the other providers keep the coloured square with an initial. Driven in the window on Xvfb (build/gpui/shots/provider-logos/s-picker.png, s-chip.png, s-acct.png). The phones still draw initials | partial | threads-small |
| Real provider logos: GPUI (`assets/providers/*.svg`), iOS (`ProviderMark.swift`), and Android (`ProviderMark.kt`) draw the 8 built-in agent vendor marks (Claude, Codex/OpenAI blossom, Grok, Muse, Antigravity, OpenCode, Pi, Oh My Pi) as tinted vectors across thread rows, composer model chips, the model picker, and accounts, with a coloured square fallback for unknown providers | done | threads-small |
| Routine save errors on screen | done | threads-small |
| Diff and Files toggle closed | done | threads-small |
| **Bend-era cleanup** | | |
Expand Down
2 changes: 1 addition & 1 deletion docs/order.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The agents' instructions are built in `native/host/src/agents/prompt.rs` (`order
- **The hub's job `fab`**:
1. reads the intent and the fab files in the thread's folder;
2. with Ordering and Price estimates on, asks the order server's `POST /v1/estimate` for the bare parts' price. Only kinds, options and features are sent; never files.
- **The answer** (`settings/fab.rs`) is `{thread, intent, goal, parts, boards, label, estimate_problems, error, estimates, board_files, board_default, order, lead_days, estimate_warnings}`: the first twelve as 0.14 gave them, key for key; `lead_days` (the longest of the estimate's per-part `lead_days`, 0 for none) and `estimate_warnings` (its per-part `warnings`, each once) come from the estimate and are empty without one. `fab.intent {thread, text}` writes `.backplane/intent.md` and answers the same card. It is kept as info keys `fab.line:`, `fab.intent:`, `fab.buy:`, `fab.ready:`, `fab.shown:`, `fab.boards:`, `fab.board:` and `fab.again:` (plus the thread; `present/ready.rs` `keep`). No client draws `lead_days` or `estimate_warnings` yet.
- **The answer** (`settings/fab.rs`) is `{thread, intent, goal, parts, boards, label, estimate_problems, error, estimates, board_files, board_default, order, lead_days, estimate_warnings}`: the first twelve as 0.14 gave them, key for key; `lead_days` (the longest of the estimate's per-part `lead_days`, 0 for none) and `estimate_warnings` (its per-part `warnings`, each once) come from the estimate and are empty without one. `fab.intent {thread, text}` writes `.backplane/intent.md` and answers the same card. It is kept as info keys `fab.line:`, `fab.intent:`, `fab.buy:`, `fab.ready:`, `fab.shown:`, `fab.boards:`, `fab.board:`, `fab.again:`, `fab.lead:` and `fab.warn:` (plus the thread; `present/ready.rs` `keep`). GPUI, iOS, and Android draw `lead_days` and `estimate_warnings` on Order cards and project fab cards.
- **Boards:** the answer lists every KiCad board in the project (`board_files`, outside `extra/` and `mfg/`). With more than one, the viewer's Board, Schematic and 3D tabs offer each by its folder's name: chips in the window, the Sheet menu on phones (values `b:<path>`). A pick shows that board, or the schematic beside it, and the other tabs stay on it (`Bd.keep`). Before any pick, the chip of the board the viewer opens by default is lit.
- **What counts as something to order:** a `*.fab.json`, or a KiCad project's own board (a `.kicad_pro` beside it, outside folders of copies: `boards::own`). A repository that only holds board files, as test fixtures say, has nothing to order: no Buy it, and the order server is not asked. The viewer's picker still offers those boards.
- **Two places:**
Expand Down
2 changes: 2 additions & 0 deletions i18n/en.msg
Original file line number Diff line number Diff line change
Expand Up @@ -5073,3 +5073,5 @@ provider.notice.senderr = No AI provider connected yet. Open Settings → Accoun
provider.notice.senderr.remote = No AI provider connected on {machine}. Open Settings → Accounts on {machine} to connect Claude, Codex, Antigravity, or another provider.
web.settings.providers = AI providers
web.settings.providers.browser = Connect a provider in the Backplane desktop or mobile app under Settings → Accounts.
order.lead.days = {days, plural, one {Est. lead time: 1 day} other {Est. lead time: {days} days}}
order.estimate.warnings = Warning: {warnings}
2 changes: 2 additions & 0 deletions i18n/es.msg
Original file line number Diff line number Diff line change
Expand Up @@ -5073,3 +5073,5 @@ provider.notice.senderr = Aún no hay ningún proveedor de IA conectado. Abre Co
provider.notice.senderr.remote = No hay ningún proveedor de IA conectado en {machine}. Abre Configuración → Cuentas en {machine} para conectar Claude, Codex, Antigravity u otro proveedor.
web.settings.providers = Proveedores de IA
web.settings.providers.browser = Conecta un proveedor en la aplicación de escritorio o móvil de Backplane en Configuración → Cuentas.
order.lead.days = {days, plural, one {Plazo estimado: 1 día} other {Plazo estimado: {days} días}}
order.estimate.warnings = Aviso: {warnings}
2 changes: 2 additions & 0 deletions i18n/ja.msg
Original file line number Diff line number Diff line change
Expand Up @@ -5096,3 +5096,5 @@ provider.notice.senderr = AI プロバイダーがまだ接続されていませ
provider.notice.senderr.remote = {machine} に AI プロバイダーが接続されていません。{machine} で設定 → アカウントを開いて、Claude、Codex、Antigravity などのプロバイダーを接続してください。
web.settings.providers = AI プロバイダー
web.settings.providers.browser = Backplane のデスクトップまたはモバイルアプリの設定 → アカウントからプロバイダーを接続してください。
order.lead.days = {days, plural, one {目安納期: 1日} other {目安納期: {days}日}}
order.estimate.warnings = 警告: {warnings}
Loading
Loading