From 2e769388d7f2d75ab1e5d359733971371eeca90d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Tue, 10 Nov 2026 10:22:07 +0000 Subject: [PATCH] Design: the subagent list and a tree subagent's card; Working-notes: re-pin traps, harness cases Co-Authored-By: Claude Opus 5.5 --- Design.md | 12 +++++++++++- Working-notes.md | 7 +++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Design.md b/Design.md index 03bdb11..956f11c 100644 --- a/Design.md +++ b/Design.md @@ -122,6 +122,14 @@ are their text alone. A phase the app does not know, or one missing a field its back to the free `status` text, as an older server's does. `ProgressTest` runs the spec's own conformance cases against the English resources. +**Subagents** (spec 3.4.0) are Android's reduced list (`ui/chat/SubagentList.kt`, `api/Tree.kt`): +the stream's `tree` frame, kept in `ChatState.tree` after the reply ends, and `GET /chats/{c}/tree` +when the activity sheet opens. A row: name (id) — position, the state word, the progress text +without the clock, context % (floored); the main agent first, ended ones after, dimmed. A +subagent's row opens `GET /chats/{c}/subagents/{id}/transcript` read-only (`ConversationDialog`, +re-read every 3 s while it has not ended). No findings and no Stop on Android, by the spec. With a +tree, the Tasks section holds only the background jobs. + ## Cards A sheet that cannot be swiped away -- the reply is stopped until it is answered. The answer is @@ -131,7 +139,9 @@ is "answered elsewhere first" and is said once, quietly. An approval's `title` is its heading (*Run a command*) and `detail` the thing itself (the command). An `editable` item's box starts with `detail`, and Allow sends it in `texts[key]` only when it differs (`approvalTexts`): an untouched or cleared box sends nothing, so the command the -model asked for runs. `job` names the subagent asking, said first (*explore asks:*). +model asked for runs. `job` names a background subagent asking (*explore asks:*); `subagent +{id, name, position}` a tree subagent asking for what nobody in its tree may allow (*Subagent +parser (s1), reviews the parser, asks:*), said first. ## Push diff --git a/Working-notes.md b/Working-notes.md index 69967a7..d4bb424 100644 --- a/Working-notes.md +++ b/Working-notes.md @@ -103,3 +103,10 @@ design change, before a phone. - **A failure is shown through `ui/Errors.kt`'s `explain()`**: the server's sentence for a refusal, one "cannot be reached" sentence for a network that is not there. Never `e.message` straight to the screen. +- **A re-pin breaks tests that hold a fixture's values**, not only `ContractTest`: CI runs 30 and + 36 failed on `SubagentsTest` (the agent chat's facts) and `ScheduleContractTest` (the schedules + frame's `version`, a hash of the list). Grep `app/src/test` for the changed fixtures' names and + values before pushing a pin. +- **`contract/harness_*.json` are the harness spec's conformance cases** from the server's copy + of the spec (`src/lembas/harness_spec/conformance/`), pinned with the fixtures by + `fetch-contract.py`; `ProgressTest` draws `harness_progress.json` with the English resources.