docs(#857): upstream 1.17.1/1.18.0 interop plan of record

Initiative plan (4 features, 9-epic chain, grant terms, can't-tell table, owner decisions D1-D6 with recommendations) plus the three-surface contract investigation it derives from. Owner approved the plan in chat 2026-10-17; D-recommendations stand unless overruled on the PR.

Agent: GentleGlacier (session f0c92a36)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
pull/901/head
diffwireauto 1 month ago committed by Strycher
parent a69cb9987d
commit 7e22f30553

@ -0,0 +1,132 @@
# Investigation: client↔firmware contracts for upstream 1.17.1/1.18.0 interop
Status: investigation, not a plan. Every claim is from a read of the named source this session (2026-10-17). Firmware tags read in the firmware repo's tag space; client read at `C:\Dev\meshcore-open` HEAD.
---
## A. The three management surfaces — as-is contracts
### A1. Upstream 1.18.0 CLI (new)
**Transports.**
- *Local:* `CMD_RUN_CLI_COMMAND` (66) → `RESP_CODE_CLI_REPLY` (29). Request `[66][ascii command]` (len ≥ 3); reply `[29][ascii reply]`, reply ≤ 165 bytes (`reply_buf[166]`). No request id — correlation only via the optional prefix (below). `[verified: MyMesh.cpp handleCmdFrame at companion-v1.18.0]`
- *Remote:* `TXT_TYPE_CLI_COMMAND` (3) inside `CMD_SEND_TXT_MSG` / `PAYLOAD_TYPE_TXT_MSG`. No ACK. Receiving **companion** executes only if contact flags bit **0x10** (`isRemoteCLIAllowed`) is set, else the text queues to the app as a message; reply returns as a normal `TXT_TYPE_CLI_DATA` message, +600 ms (`CLI_REPLY_DELAY_MILLIS`), timestamp uniquified. Receiving **repeater/room server**: type 3 treated exactly like CLI_DATA (room server: admin only). `[verified: BaseChatMesh.cpp, MyMesh.cpp (companion), simple_room_server/MyMesh.cpp at the tag]`
- *Serial:* same `handleCommand` behind the rescue CLI; RP2040 WiFi builds also serve it on USB serial.
**Correlation.** Optional 3-char prefix: a command whose `[2] == '|'` (len > 4) has its first 3 chars reflected at the reply start. Upstream-origin: present in 1.17.0 server roles, extended to the companion in 1.18.0 `[verified: grep at companion-v1.17.0 + 1.18.0]`. **The client already implements exactly this** (`RepeaterCommandService._nextPrefixToken` → `XX|`; reply match on `[2]=='|'`) with computed timeouts, 5 retries, sole-pending fallback for short commands, and 2-minute late-reply attribution `[verified: repeater_command_service.dart, whole file]`.
**Vocabulary.** (a) `CommonRadioPrefs` — strings preserved verbatim from the old CommonCLI: `get/set radio`, `freq`, `af`, `dutycycle`, `int.thresh`, `cad`, `radio.rxgain`, `tx`, `rxdelay`, `agc.reset.interval`, `path.hash.mode`, `multi.acks`, `txdelay`, `direct.txdelay` `[verified: CommonRadioPrefs.cpp whole file]`. (b) Companion built-ins: `set/get name` (rejects `[ ] \ : , ? *`), `set pin`, `reboot`, `poweroff`/`shutdown`, `board`, `ver`, `get/set tz.offset`, `power`, `gps diag`. (c) `wifi.*` under `ENABLE_WIFI_INTERFACE`: `set/get wifi.ssid`, `set wifi.pwd`, **`get wifi.pwd` → cleartext password**, `set wifi.clear`, `set/get wifi.enabled`, `get wifi.status` (`> connected|disconnected`), `get wifi.ip`; ssid/pwd/enabled apply at reboot. (d) Variant hook `board.handleCommand` (FEM `get/set radio.fem.*` on FEM boards only).
**Error semantics.** Text only: `"Unknown command"` appended after the (reflected) prefix; `"Error, ..."`/`"ERROR: ..."` strings per command. **No structured error codes, no ERR frame** — a client cannot distinguish failure classes without string matching.
**Gating.** No capability advert. Local CLI exists on every v14+ stock companion; `wifi.*` only on `ENABLE_WIFI_INTERFACE` builds — a client discovers absence only by the `Unknown command` reply.
### A2. Offband 0xC0 config (`CMD_OFFBAND_CONFIG`) — your way, in flight
**Frame contract** (client codec mirrors byte-for-byte): `[0xC0][op][ascii payload NUL]`. Ops `SET 0x00`, `GET 0x01`, `VIEW 0x02`, `BROKERS 0x03`. Responses `[0xC0][sub]`: `ACK 0x00`, `ERR 0x01` (text starts `ERROR`), `VALUE 0x02` (`key = value`), brokers stream `0x10/0x11/0x12`, view stream `0x20/0x21/0x22` `[verified: observer_config_client.dart:89-130]`.
**Keys/semantics.** `wifi.ssid` / `wifi.pwd` / `wifi.enabled` (+ `mqtt.*`, display) — **same key names as upstream's CLI** but: `wifi.pwd` is **write-only** (GET errors), storage is NVS (`"wifi"` ns), gating is `ver_code ≥ 14 AND cap bit` — observer `0x01`; companion `0x08` being delivered right now by [firmware#1448](https://github.com/OffbandMesh/meshcore-firmware/issues/1448) (BUILD in flight, BrownWaterfall) with a **planned VER_CODE bump 22→23**. The op/key/error contract for companions was settled on [firmware#365](https://github.com/OffbandMesh/meshcore-firmware/issues/365) (comments of 2026-07-24, per client#375's banner). TCP `:5000` exposure: standing owner-accepted risk, nothing required of the client.
**Client stack on this contract (shipped + in flight):** pure codec (`observer_config_client.dart`), device-agnostic `ConfigSourceService`, `ConfigProfile` with typed `wifi` section, write planner (orders `wifi.enabled` last, `wifi.pwd` is a danger key), `wifi.status` state model (`boot/cliRescue/awaitingSetup/staConnecting/staConnected/staFailed`), settings UI with write-only pwd field. Feature umbrella: [client#837](https://github.com/OffbandMesh/meshcore-client/issues/837) (companion + observer/companion upgrade + **saved networks** — the genuinely new work), children-to-be #375, #138, #795.
### A3. Observer `_sys` channel CLI
Channel-message CLI on the `_sys` system channel over the normal app link — the observer build's **only** management surface (no serial console). Allowlisted verbs `get/set/mqtt/wifi/display`; **rejects** `reboot`/`ota.`/`fs.`/`format`/shell metacharacters. Grammar: `<ns> <verb>` actions + `get|set <ns>.<field>`. Secrets write-only. `get wifi.status` kept as a backward-compat alias of `wifi status` `[verified: docs/observer-cli-commands.md at firmware-base]`. Behind it sits the fork's **+988-line CommonCLI delta** with ~30 fork-only command families (caplog, display, led, safety, telemetry, fem on/off, ota, cmd_poll, resetreason, hangtest…) `[verified: diff + string-set diff companion-v1.17.0 → firmware-base]`.
---
## B. Overlap and conflict matrix
### B1. Same command string, different contract
| Command | Upstream 1.18 CLI | Offband 0xC0 | Offband `_sys` |
|---|---|---|---|
| `get wifi.ssid` | returns SSID | VALUE reply, same meaning | returns SSID |
| `get wifi.pwd` | **cleartext password** | **ERR (write-only)** | **blocked (write-only)** |
| `set wifi.pwd …` | OK, reboot to apply | ACK, reboot/STA-retry | OK, reboot/STA-retry |
| wifi enable/disable | `set wifi.enabled 1/0` | `set wifi.enabled …` key | `wifi enable` / `wifi disable` verb |
| `get wifi.status` | `> connected/disconnected` | n/a (status via model) | alias of `wifi status` (rich STA state) |
| `reboot`/`poweroff` | **supported** | n/a | **deliberately rejected** |
| radio cmds (`set tx`, `get radio`, …) | CommonRadioPrefs | n/a | CommonCLI (same strings) + fork families |
The `get wifi.pwd` row is the sharpest: if the absorb lands upstream's companion `handleCommand` unmodified on Offband builds, the same string that today safely errors becomes a cleartext credential readback — including over the remote type-3 path (contact-permission-gated) and the unauthenticated TCP transport. That is a **firmware absorb decision**, not a client one; the client spec must assume either answer is possible per population.
### B2. Mechanism-level divergence
- **Gating:** upstream = implicit (build flags, probe-by-command); Offband = explicit cap bits (`0x01`/`0x08`, per-unit, never model/version). Client currently gates everything the Offband way.
- **Storage:** upstream JSON prefs (`wifi` object, new in 1.18) vs Offband NVS `"wifi"` ns — a device-side migration problem in the absorb; client-invisible except through behavior drift.
- **VER_CODE:** upstream spent 14 on "CLI exists"; the fork spent 14 on "0xC0 exists" and is heading to 23 (#1448) while upstream is at 14 and climbing. Every fork bump deepens the collision. The number is unusable cross-population without a discriminator.
- **Defaults:** upstream `wifi_enabled = 1` in code at the tag (a commit subject says 0 — code wins) with empty-SSID guard; fork policy flag also defaults enabled. Incidentally aligned.
### B3. Population behavior matrix (client's view)
| Function | stock 1.17.x | stock 1.18.0 | Offband today (ver 22) | Offband post-absorb |
|---|---|---|---|---|
| device-info caps bytes | absent (82 B) | absent (82 B) | present (83/85 B) | present (decision: layout survives) |
| frame 66 local CLI | — (unknown cmd) | **yes** | — | yes (inherits) |
| type 3 remote | servers: log+ignore · companions: **silent drop** | yes (0x10-gated) | silent drop | yes (0x10-gated) |
| 0xC0 config | — | — | observer `0x01`; companion `0x08` landing (#1448) | **decision** |
| `_sys` CLI | — | — | observers | **decision** |
| wifi via CLI `wifi.*` | — | ENABLE_WIFI_INTERFACE builds | — | **decision** (readback!) |
---
## C. Per-feature client contract specs, gaps, counted sizing
Sizing counts real tasks at your 3–5-pt standard, from the reuse verified above. These moved **down** from my rev-3 guess for CLI (console + correlation machinery already exist) and the hidden cost surfaced in F4 (reconciliation).
### F1 — population discriminator & gate rework (prerequisite for everything)
**Spec:** one `isOffbandFirmware`/population classifier consuming: device-info length (82 vs 83/85), ver code, caps bytes, firmware-version string (`<ob>-<mc>` dual format; release images show `X-X`, firmware#691). All capability gates (6 ver-code sites, caps parsing, GPS presence gate) and all new CLI gating route through it. Interim signal = frame shape; swap seam for the firmware's durable marker when the VER_CODE ruling lands (decision D1).
**Gaps:** none blocking the interim; durable signal blocked on D1.
**Tasks (6, ~20–26 pts):** classifier + population fixtures (4); caps-parse rerouting (3); ver-gate migration + channel-data 167→165 bound (4); version-string parser w/ #691 handling (3); durable-marker seam + contract doc (3); conformance sweep across 4 populations (4).
### F2 — companion CLI, local (frame 66)
**Spec:** codec `[66][prefix?][cmd]` / `[29][prefix?][reply]`; prefix `XX|` (shared with repeater service); reply ≤165; errors are strings (`Unknown command`, `Error…`) — client classifies by prefix-stripped text, nothing structured to parse; no pagination (long output truncates device-side); vocabulary per A1 (radio set, built-ins, wifi.* when built in, variant FEM). Offered **only** when F1 says stock ≥14 (today) — Offband devices gain it at absorb.
**Gaps (upstream contract):** no structured errors; no ERR frame distinct from text; no way to enumerate supported commands (probe-only); >165 replies silently cut.
**Tasks (6, ~21–27 pts):** codec + tests (3); local command service (frame round-trip, no mesh retries; extract shared prefix/correlation helper out of `RepeaterCommandService`) (4); console screen adapted from `repeater_cli_screen` pattern for the local device (5); gating + entry point via F1 (3); name-validation mirroring + command-reference strings/l10n (3); population tests incl. Offband-must-not-offer (3).
### F3 — remote CLI (type 3 + contact permission)
**Spec:** send = `CMD_SEND_TXT_MSG` with `txt_type 3` (client's builder already parameterizes type for CLI sends); permission = contact flags bit 0x10, **written with the existing add/update-contact frame — the flags byte is already in the client's builder** `[verified: meshcore_protocol.dart:1277]`; replies arrive as CLI_DATA with the reflected prefix → `RepeaterCommandService` machinery applies nearly wholesale (timeouts per #529's computed windows + the now-source-verified 600 ms device hold). Population rule: type 3 only to peers F1 places at 1.18+/post-absorb; type 1 remains the server default everywhere.
**Gaps (upstream contract):** a companion **without** 0x10 gives the sender *no* reply and no error — the command just lands as a message on the target's app; indistinguishable from packet loss on the sending side. The spec must define the client UX for that (timeout + explanatory state, never retry-spam). Room-server: type 3 is admin-gated like CLI_DATA — same existing behavior.
**Tasks (6, ~22–28 pts):** flags-0x10 model/getter/copyWith + contact-UI toggle + write-path test (4); population-aware type selection in the send path (4); service generalization companion-vs-repeater targets (4); inbound type-3 accept + render (today warn-dropped) + storage flag (4); no-permission UX per gap above (3); cross-population behavior tests (4).
### F4 — WiFi: the reconciliation (the real $5M corner)
This is not "add a WiFi screen". Three mechanisms now exist for the same keys; your architecture (#365→#1448, #837) is mid-flight on one of them; upstream shipped another; `_sys` carries a third grammar. **Client work splits into (a) what proceeds regardless and (b) what is blocked on firmware decisions D2–D4.**
**(a) Proceeds regardless (~5 tasks, 17–22 pts):** gating split per #837 — WiFi on `0x01||0x08`, brokers/display on `0x01` (3); #375 body correction + re-parent under #837 (part of same task); saved-networks local store (new `lib/storage/` module; PSK-at-rest decision D6 shapes it) (4+4: store + CRUD UI); apply-to-device over the existing 0xC0 write planner (4); status-readout tolerance for both vocabularies (fork rich states vs upstream connected/disconnected) (3).
**(b) Blocked on decisions:** any use of upstream `wifi.*` CLI for stock-1.18 devices (D4) ≈ +2 tasks (7–9 pts: CLI-backed adapter behind the same UI, reboot-to-apply UX); any change to the 0xC0 path if the absorb alters it (D2); `get wifi.pwd` handling if readback survives anywhere (mask, never log, never store from device) — spec'd now, applied per D2's outcome.
### Sizing rollup (client side, counted)
| Feature | Tasks | Points | Confidence |
|---|---|---|---|
| F1 discriminator | 6 | 20–26 | high — surfaces enumerated |
| F2 local CLI | 6 | 21–27 | high — reuse verified |
| F3 remote CLI | 6 | 22–28 | high — service reuse verified |
| F4 WiFi (a) unblocked | 5 | 17–22 | medium — PSK-at-rest open |
| F4 WiFi (b) decision-gated | 2–4 | 7–16 | low until D2/D4 |
| **Total** | **25–27** | **87–119** | |
Per-feature verification (bench against stock 1.17.1, stock 1.18.0, Offband current) is counted inside the test tasks above; device time is yours to schedule. **Not counted:** all firmware-side reconciliation (the CommonCLI 988-line re-merge, `_sys` fate, 0xC0-vs-CLI convergence, prefs-storage migration, VER_CODE strategy) — firmware's budget, not the client's, listed here only as dependencies.
---
## D. In-flight register (what the merge must not run over)
**Firmware:** #1448 (0xC0 on companion, cap 0x08, ver 22→23 — BUILD in flight); #365 (contract parent, `board:in-progress`); #325 (serial+WiFi coexistence, live credential-change); #295 chain (#300 shared config backend **done**, #301–#307 open — GUI config #305 names client screens); CLI-surface issues the upstream CLI refactor collides with: #891/#892 (CLI surface integrity + verification toolchain), #657 (led/display dispatch gaps on 1.17.0 base), #871 (serial writers vs framed protocol), #873 (ver/version identity), #893 (wifi CLI 20–25 s round-trip), #359 (unbounded sprintf in reply formatters — upstream's `reply_buf[166]` meets fork formatters here).
**Client:** #837 (WiFi feature, owner-scoped), #375 (needs 0x02→0x08 correction), #138, #795; CLI pain already filed: #529/#473 (timeout formula — the 600 ms hold is now source-verified), #531/#532/#528/#589 (reply matching/late replies — already fixed in the service), #83 (bulk config read).
## E. Decision points (yours; the client spec consumes the answers)
1. **D1 — VER_CODE strategy** for the fork vs upstream's 14+ (and #1448's planned 23): re-map, re-base, or an explicit Offband marker. Decides F1's durable signal. (Firmware decision; client input filed on client#857.)
2. **D2 — Offband companion config mechanism post-absorb:** 0xC0 (#1448 path), upstream `wifi.*` CLI, or both — and specifically whether `get wifi.pwd` readback is disabled in the absorb. Decides F4(b) and the security posture row in B1.
3. **D3 — `_sys` fate post-absorb:** retire into frame-66 CLI, adapt (keep allowlist, same grammar), or keep as-is for observers. Decides whether the client's `_sys` documentation/UX assumptions persist.
4. **D4 — does the client configure STOCK 1.18 WiFi** (via upstream CLI) or stay Offband-only? Scope call on #837.
5. **D5 — sequencing:** does #1448 land on the 1.17.0 base as planned (ver 23) before the absorb, or wait for D1? (Named because it moves the collision; the call is yours and BrownWaterfall's work is in flight.)
6. **D6 — saved-network PSK at rest** on the phone (restated from #837).
Agent: GentleGlacier (session f0c92a36)

@ -0,0 +1,102 @@
# Initiative PLAN: client interop with upstream MeshCore 1.17.1/1.18.0
Plan of record for the client side of the upstream-1.18 world. Grounded in the 2026-10-17 investigation (three-surface contracts, population matrix, in-flight register — to be committed beside this plan as `INVESTIGATION.md`). This is one master plan carrying four features; each feature's epics derive from here and refine only what this leaves unspecified.
## At a glance
Upstream 1.18.0 introduces a companion CLI (local frame 66/29, remote TXT type 3 gated by contact-flag 0x10) and CLI-based WiFi config, moved its version code into the range the fork already spent (14 vs 14–22), and left the fork's binary surfaces (0xC0 config, `_sys`, caps bytes) untouched but newly overlapped. The client must (1) stop inferring capability from numbers both sides now use differently, (2) gain the CLI surfaces, (3) extend its existing Offband WiFi architecture (#837) without colliding with the in-flight firmware work (#365/#1448/#325), and (4) stay correct against four populations: stock 1.17.x, stock 1.18.0, Offband today (ver 22), Offband post-absorb.
**What you get when this is done:** a client that correctly identifies what it is talking to; a device CLI console for any stock-1.18+ or post-absorb device; remote CLI to permitted contacts with a per-contact permission toggle; WiFi configuration (including saved networks) that works on Offband today and is one adapter away from stock 1.18 devices; and a verified behavior matrix across all four populations.
## 1. Diagnosis
Done — [client#857](https://github.com/OffbandMesh/meshcore-client/issues/857) carries the full-read wire inventory; `INVESTIGATION.md` carries the three-surface contracts, the conflict matrix (`get wifi.pwd`: upstream cleartext readback vs fork write-only is the sharpest row), the population matrix, and the in-flight register. Key verified reuse: the client's `RepeaterCommandService` already implements the exact `XX|` prefix-correlation contract upstream extended to companions; the contact-write frame already carries the flags byte; the 0xC0 codec and WiFi write-planner stack are shipped and live.
## 2. Scope
Four features under this initiative. Firmware-side reconciliation (CommonCLI re-merge, `_sys` fate, 0xC0-vs-CLI convergence, VER_CODE strategy, prefs migration) is **out of scope** — tracked as dependencies D1–D3/D5, firmware's budget.
- **F1 — population discriminator & capability-gate rework.** Prerequisite for everything.
- **F2 — companion CLI, local.** Frame 66/29 console.
- **F3 — remote CLI.** Type 3 + contact permission 0x10.
- **F4 — WiFi.** The #837 scope (gating split, saved networks, apply flow) plus the stock-1.18 adapter if D4 says yes.
Out of scope, recorded: repeater WiFi via GUI (per #837); any firmware change; any use of fork frames toward stock devices.
## 3. Epics
### F1 — discriminator & gating (2 epics, ~6 tasks, 20–26 pts)
- **E1.1 Classifier + gate migration.** `DevicePopulation` classifier (frame shape 82/83/85 + ver code + caps + version-string dual format with the #691 `X-X` caveat); all caps parsing and the six ver-code gates route through it; channel-data bound 167→165; a documented seam where the firmware's durable marker (D1) replaces the interim signal. Fails closed: unknown population = stock-least-capability, no fork frames emitted.
- **E1.2 Conformance verification.** Fixture matrix (stock-1.17 / stock-1.18 / Offband-22 / malformed) through every gate; no UI change lands here.
### F2 — companion CLI, local (2 epics, ~6 tasks, 21–27 pts)
- **E2.1 Codec + service + console.** Frame 66/29 codec; shared correlation helper extracted from `RepeaterCommandService`; local command service (no mesh retries, frame-level timeout); console screen adapted from the `repeater_cli_screen` pattern; **mockup for your approval before the screen is built**; name-validation mirroring; 165-byte reply bound surfaced honestly (device truncates).
- **E2.2 Feature verification.** Against stock 1.18.0 (full vocabulary incl. wifi.* on a WiFi build) and an Offband device (console must not be offered pre-absorb).
### F3 — remote CLI (2 epics, ~6 tasks, 22–28 pts)
- **E3.1 Permission + send/receive.** Contact-flag 0x10 toggle (model/storage/contact UI, existing write frame); population-aware type selection (type 3 only to 1.18+/post-absorb peers, type 1 stays the server default); service generalization to companion targets; inbound type-3 accept + render (today warn-dropped); the no-permission UX — a type-3 send to an unpermitted companion produces *no reply at all* (it lands as a message on the target's app), so the console shows the timeout with that explanation and never auto-retries into silence.
- **E3.2 Feature verification.** Cross-population behavior matrix incl. 1.17 server reject and 1.17 companion silent-drop.
### F4 — WiFi (2 epics now, 1 decision-gated, ~5–9 tasks, 17–38 pts)
- **E4.1 Gating split + apply flow.** WiFi section on `0x01 || 0x08`, brokers/display on `0x01` alone (#375 corrected and absorbed here); apply-to-device over the existing 0xC0 write planner; status readout tolerant of both vocabularies.
- **E4.2 Saved networks.** Local store (new `lib/storage/` module), CRUD UI, apply-to-this-device; PSK-at-rest per D6. Mockups for your approval before screens.
- **E4.3 (gated on D4) Stock-1.18 adapter.** The same WiFi UI backed by wifi.* CLI over F2's service for stock devices; reboot-to-apply UX; `get wifi.pwd` output treated as a secret everywhere (masked, never logged, never stored device-side values).
- **Feature verification** rides E4.2 (and E4.3 if taken): Offband device via 0xC0; stock 1.18 via CLI if D4 yes.
## 4. Order and dependencies
F1 → F2 → (F3, F4 in either order). E4.3 additionally needs D4. Nothing here waits on the firmware absorb: F1's interim signal covers all four populations today, and the D1 marker swaps in at one seam. Cross-repo dependency register: D1 (VER_CODE/marker), D2 (0xC0 vs CLI on Offband, `get wifi.pwd` fate), D3 (`_sys` fate — affects docs/UX only on the client), D5 (#1448 sequencing — its cap 0x08 + ver 23 are what E4.1's gate consumes).
## 5. Grants and authorization
Proposed grant terms (basis: 8 epic PRs + this plan's PR; client repo, no device flashing):
```grant-terms
plan: OffbandMesh/meshcore-client — upstream-1180-interop
chain: E1.1 → E1.2 → E2.1 → E2.2 → E3.1 → E3.2 → E4.1 → E4.2 [→ E4.3 if D4]
verification per epic: flutter analyze + flutter test green; feature-verification epics additionally bench evidence recorded on the issue
merges: 10 (plan PR + 8–9 epic PRs), held to chain order
flash budget: 0 (no device flashing in this plan; bench flashes, if you want fresh images, are yours)
duration: 30 days
```
Push/PR asks will reach you as permission prompts (Remote Control is on); merges are yours — every PR arrives as a full link you can merge from the phone.
## 6. Can't-tell branches
| Branch | When the code can't confirm | It does |
|---|---|---|
| Population classifier | frame malformed / signals conflict | classifies **stock-least-capability**: no fork frames, no CLI offer; logs the evidence |
| CLI reply correlation | reply prefix matches nothing pending | surfaces to log + unmatched sink, never completes a different command (#532 behavior kept) |
| Remote CLI send | peer population unknown | refuses type 3, offers type 1 or nothing (servers only) |
| WiFi apply | device reports neither vocabulary | shows raw reply text, writes nothing further |
| Saved-network apply | password absent (D6 = prompt-at-apply) | stops and asks the user; never sends empty |
No fail-open branches; nothing proceeds on an unconfirmed condition.
## 7. Verification
Per-epic: `flutter analyze` + `flutter test` (fixtures from E1.2 reused everywhere). Feature-verification epics: live matrix against stock 1.17.1, stock 1.18.0, Offband current — devices and scheduling yours; results with evidence on the issues. 1.17.1 needs only the confirmation pass (wire-identical to 1.17.0 by full-read inspection).
## 8. Done when
All four features' verification epics closed on recorded evidence; the client behaves per the population matrix in `INVESTIGATION.md` §B3; no capability decision anywhere keys on a bare ver-code comparison; #857, #375, #138 resolved or re-scoped under this structure.
## 9. Your choices
| # | Decision | My recommendation (basis) |
|---|---|---|
| D1 | VER_CODE strategy (firmware) | explicit Offband marker in device-info; client never reads bare ver-code cross-population. Interim classifier makes this non-blocking. |
| D2 | Offband config mechanism post-absorb + `get wifi.pwd` fate | keep 0xC0 as the structured surface (client already speaks it, write-only pwd preserved); disable the cleartext readback in the absorb. |
| D3 | `_sys` fate | keep through the absorb; revisit retirement after F2's console ships and a parity audit exists. Client plan unaffected either way. |
| D4 | Configure stock-1.18 WiFi from the client? | yes — E4.3 is 2 tasks once F2 exists; it makes the client useful on stock hardware. Toggleable scope. |
| D5 | #1448 sequencing | proceed as in flight (contract settled on #365); the absorb reconciles. Named because it moves VER_CODE to 23. |
| D6 | Saved-network PSK at rest | platform secure storage, per-network opt-in; alternative is prompt-at-apply (safer, more friction). |
| — | Issue filing | on plan approval: initiative + 4 features + E-epics with lifecycle tasks, per the counted sizing (25–27 tasks, 87–119 pts + E4.3's 7–16). |
## 10. Carried-in work
#857 (diagnosis record — re-parent), #375 (corrected into E4.1), #138 (profiles import/apply — feeds E4.2), #795 (caplog-forward settings — consumer of F4, stays outside this plan), #529/#473 timeout work (already shipped in the service F2/F3 reuse).
---
Agent: GentleGlacier (session f0c92a36)
Loading…
Cancel
Save

Powered by TurnKey Linux.