GeezerVison is showing github.com — id: investigate: capability-based specialization — forms, location, media across web, ESP32/MQTT, and text/audio modes · Issue #2027 · developing-today/code
id: investigate: capability-based specialization — forms, location, media across web, ESP32/MQTT, and text/audio modes #2027DescriptionLIST 6b. As interfaces diverge (ESP32 pixel-count screens + rotary encoders; phones with location services vs ESP32 GNSS/GPS; web views with CSS colours/button sizes/radio buttons), app code should ask for a capability — a form, a location — and receive the platform's version. Investigate: the capability request/response model; ESP32 paths (firmware speaking MQTT via Home Assistant, ID speaking MQTT directly, or direct web); the styling question (a styling tool across GUI + web that is neither all-web-elements nor Electron); text-only mode (console without cursor redraw) as the main mode for agents/scripts; human-conversation mode (client-side mic→text vs audio-to-server translation, maybe per-app); media as typed images/video vs raw byte streams + capabilities. Deliverable: capability taxonomy v0 with per-platform notes.
Program: Drew's 2026-10-28 directive (full text: hatch-personal memory/topics/id-program-2026-10-28.md).
Working pattern: parallel investigations, then the named synthesis issue merges them into a full design. Route guidance: Workhorse by default; Specialist/Summit for synthesis and ramification-heavy work. A result that says "done" is not the endpoint — the orchestrator reviews it and may commission another round. Deliverables: a markdown design/investigation doc (mermaid/SVG diagrams welcome) linked from this issue, plus follow-up issues for anything buildable. Build a proof of concept where the design calls for one, but do NOT build the permanent feature on top of an unreviewed PoC. Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 Parent epic: #2056 — ID platform expansion (2026-10-28 directive). dezren39 commented on Oct 29, 2026 Top priority — ID program wave-1. Drew directed this be picked up in the next runs (2026-10-29): enqueued directly as triage task 3344 in repo-health-code-pilot at queue priority 20 (only breakage-class work at priority 10 outranks it). Wave-1 is the ungated investigations and designs; syntheses and PoCs stay gated on their named inputs. Investigation route: Workhorse. dezren39 commented on Oct 29, 2026 🤖 Agent note · done
Verdict: CONFIRMED — no capability-based interface specialization exists in pkgs/id — but the investigation is NOT greenfield, and the issue's framing should be corrected before the design starts.
Evidence (fresh reads at laptop primary HEAD, 2026-10-29):
- A capability request/response model already exists — for a different layer.
pkgs/id/src/world_caps.rs (955 lines): world programs ask the server for capabilities through a wants document ({"cap":"time.now"}, {"cap":"chat.say", …}), with a catalog of capability names, grant policy, usage accounting, and stable refusal codes (cap_denied, unknown_cap, outside_ceiling, …). This is server-data capability for sandboxed world programs. It says nothing about interfaces: no form, location, or media capability, and no platform version of an answer.
- A transport-neutral presentation exists — with exactly one surface.
pkgs/id/src/world_presentation.rs: WorldSurface has a single variant, Screen (a fixed-size terminal cell buffer, max 120×50), rendered by adapters with their own trusted code; legacy UTF-8 text stays valid. There is no form model, no location type, no media type, and no per-platform specialization (web CSS vs ESP32 pixel screen vs text-only) anywhere in the crate.
- No ESP32/MQTT surface exists at all:
grep -rln "esp32|mqtt" pkgs/id/src/ returns nothing (the only hits repo-wide are two unrelated design docs). The firmware path question (MQTT via Home Assistant vs ID speaking MQTT directly vs direct web) is entirely open.
Refinement for the design (the triage's actual contribution): the taxonomy v0 should be framed as extending the world_caps model from server-data to interface capabilities — reusing its request/response shape, refusal codes, and grant/ceiling language where they fit — and extending WorldSurface beyond the single Screen variant, rather than inventing a parallel capability system the codebase would then carry twice. Where the two models genuinely differ (a world's grant policy vs a device's physical affordances), the design should say so explicitly and name the seam.
Routing: follow-up investigation task enqueued this pass (packet-2027-design.json: capability taxonomy v0 doc at files/capability-taxonomy-2027.md linked from this issue — request/response model, ESP32/MQTT path comparison, styling question, text-only as the agent/script main mode, human-conversation audio modes, typed media vs raw streams — each grounded against the world_caps/world_presentation starting points above, plus follow-up issues for anything buildable). This issue stays open at priority/high for that investigation.
dezren39 commented on Oct 29, 2026
agent-note:v1 — picked up (queue task 3390, worker repo-worker-code, openchamber scheduled lane)
Resuming task 3390 from the parked state left by the previous lane (stage verified, interim findings on this issue). Revalidated fresh this run: #2027 is OPEN at priority/high, labels app/id, work/assigned; no superseding PR; no held/Drew-owned flag. Proceeding to write taxonomy v0 and open the doc PR.
Resume brief taken from the two notes above: read pkgs/id/src/world_caps.rs + world_presentation.rs, extend (not replace) their request/response model, cover every element the issue names, file follow-ups, link the doc here.
Packet defect (already recorded in progress JSON, resolution restated here): the acceptance's ~/workspace/.../capability-taxonomy-2027.md path does not exist on this host and this lane may not write workspace files — the taxonomy lands as an in-repo dated record doc/2026-10-29_design_capability_taxonomy/ and is linked from here, per the #2040/#2044 pattern. dezren39 commented on Oct 29, 2026
agent-note:v1 — investigation delivered (queue task 3390, worker repo-worker-code, openchamber scheduled lane)
Taxonomy v0 is written and every buildable recommendation is filed as a follow-up, as the packet's acceptance requires. No code in pkgs/id was changed.
Record: doc/2026-10-29T14-05-00Z_investigation_capability_taxonomy/ — PR #2337 (docs-only). Landed as an in-repo dated record rather than the packet's ~/workspace/... path, which does not exist on this host and which this lane may not write (packet defect recorded in the task's progress JSON; the #2040/#2044 pattern applied).
What the taxonomy says, in one pass:
- It extends
world_caps.rs rather than competing with it. The existing wants document, {id,cap,args} request shape, cap: result response, all six refusal codes (cap_denied, unknown_cap, bad_args, failed, actor_denied, outside_ceiling), the append-only 17-name CATALOG and the wire bounds (64 KiB wants, 8 KiB args, 64 KiB events) are reused as-is. No WANTS_VERSION bump is needed — v1 already admits new names. New work lands in the advisory reason string, not in new codes.
- Three axes, not one: capability subject (server data / device affordance / sensor / media), interaction shape (one-shot / subscription / artifact reference), grant authority (server owner / device / the human at it).
- The seam the issue asks about: world grant policy is the owner's, standing, server-enforced, protecting the world's data. Interface caps are the device's and the human's, per-use, adapter-enforced, revocable mid-stream, protecting the person holding the device. Consequences: sensor caps are never wildcard-grantable (
loc.*, media.record, media.stream, speech.capture), consent withdrawal is an event on an open stream, and actor_denied finally earns its keep — the actor is the human whose data it is.
- ESP32/MQTT comparison with a recommendation: HA-via-MQTT (cheap, but caps terminate at HA and HA becomes a de-facto ceiling), ID speaking MQTT directly (one model, same refusal vocabulary, firmware as a thin adapter), direct web (unchanged). Recommendation: direct MQTT for the device path, HA as interop only, with an
id.device.v1 topic schema, retained manifest and never-retained wants, 64 KiB frames, and pixel screens as the existing Screen variant at smaller dimensions (a 128×64 1-bit screen is ~1 KiB of cells).
- Styling: semantic tokens resolved by each trusted adapter — neither program-supplied DOM/CSS (breaks the trusted-adapter rule on terminals and ESP32) nor bundling Electron onto a 128×64 display. Extends today's xterm-256 + bold cell style.
- Text-only as the main mode, not a fallback:
text/1 (UTF-8 lines, no escapes, no cursor redraw), width-aware wrapping, and a required text projection for every surface — which also makes worlds assertable in CI without a renderer.
- Human conversation: client-side transcription default (the model only needs text; audio never leaves the device), server ASR per-app opt-in for devices that cannot run STT.
- Media: typed artifacts (
media.image/audio/video → {artifact_id, mime, bytes, sha256, …}) by default, plus one raw media.stream channel capped at the existing 64 KiB event ceiling for realtime only — a stream ends in an artifact or is discarded.
- Per-platform notes for web, ESP32 (pixel screen, rotary encoder as a signed-delta
Key event, text_entry:none limiting forms to choice/number, GNSS accuracy vs indoors no_fix), phones (OS permission on top of app consent → withdrawal as an event; battery as the real ceiling) and text terminals/agents.
- WorldSurface extension sketch:
Text → Form → Media → Map, in that order; DOM/vector surface, theme document, inline playback, multi-surface composition, layout engine and device.info-as-a-surface-field explicitly out of v0. Five open questions are listed, including where media.* storage lives (beside records, which has neither dedupe nor GC).
Follow-ups filed this pass, all app/id / kind/feature / status/needs-triage:
| # |
Follow-up |
| #2338 |
device.info capability + device manifest (the root of adaptation) |
| #2339 |
text/1 presentation contract + text projection for every surface |
| #2340 |
form.* capability + Form surface |
| #2341 |
loc.* with an accuracy ceiling and per-use consent |
| #2342 |
media.* — typed artifacts vs one bounded raw stream |
| #2343 |
MQTT device bridge id.device.v1 — spec + labelling-only PoC |
| #2344 |
speech.* — client-side transcription default, server capture per app |
| #2345 |
semantic style tokens on WorldSurface |
Ordering suggestion for the programme: #2338 first (everything else is conditional on the manifest), then #2339 (text is the mode agents use and the degradation target), then #2340/#2341 in either order, then #2342, #2343, #2344, #2345.
Merge authority: PR #2337 is docs-only and inside this task's intent; it merges under the standing criteria (green, diff matches, no held flag) rather than waiting for a human. dezren39 commented on Oct 29, 2026
agent-note:v1 — done (queue task 3390, worker repo-worker-code, openchamber scheduled lane)
Task 3390 completes as triaged: the taxonomy v0 record and all eight follow-ups exist and are linked above; no code in pkgs/id changed, per the issue's investigation-only rule.
- Record:
doc/2026-10-29T14-05-00Z_investigation_capability_taxonomy/ on branch queue/3390-2027-capability-taxonomy — PR docs(id): capability taxonomy v0 for interface specialization (#2027) #2337 (docs-only, MERGEABLE).
- Follow-ups: id: device.info capability — device capability manifest for interface adaptation (#2027) #2338
device.info, id: text/1 presentation contract — text-only as the main mode, with a text projection for every surface (#2027) #2339 text/1, id: form.* capability + Form surface — structured input without program-supplied HTML (#2027) #2340 form.*, id: loc.* capability — position/watch with an accuracy ceiling and per-use consent (#2027) #2341 loc.*, id: media.* — typed media artifacts by default, one bounded raw stream for realtime (#2027) #2342 media.*, id: MQTT device bridge id.device.v1 — spec + labelled PoC (ESP32 path recommendation) (#2027) #2343 MQTT id.device.v1, id: speech.* — client-side transcription by default, server capture per app (#2027) #2344 speech.*, id: semantic style tokens on WorldSurface — adapter-resolved, no CSS/HTML (#2027) #2345 style tokens.
- Labels cleared (
status/in-progress, queue/claimed, work/assigned); this issue stays open as the tracking parent for the eight follow-ups, and the complete result records the packet defect (the ~/workspace/... acceptance path is unusable from the execution host — resolved by the in-repo dated record, the id: investigate: TigerBeetle — multi-currency ledgers, conversions, per-coin vs balance model, 3-node cluster topology #2040/id: investigate: Cloudflare Workers edition — isolates + Durable Objects + per-user SQLite fit for ID #2044 pattern).
Merge note for whoever is next on #2337: CI's required check basic: proxy port fallbacks was still queued when this lane's budget ran out (CodeRabbit passed; the main-tier Nix eval is skipped for docs). Merge it under the standing criteria once that check is green — no human decision is needed, and the diff is documentation only.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|