app: seat-source-real — the packaged app lands on its real seat after founding #202

Closed
opened 2026-07-30 23:20:03 +00:00 by ben · 4 comments
Owner

Parent

Shell spec #22. Gap audit 2026-07-30; bounced for design 2026-07-31; simplified 2026-07-31 — one bug, one decision.

The bug

Found a community, reach S12, and the app lands you back on Welcome, offering "Found a community" again. The packaged renderer's seat source is a placeholder that always answers unconfigured — Operator home is unreachable in any packaged build.

The decision (one question)

What single real signal marks "this machine operates an OurCloud"?

Ruled by Ben 2026-07-31: the community config repo the helper already keeps (the same path the clan adapter opens). Present with a parseable community header → OperatorSeat, carrying the community name read from that header. Absent or unparseable-empty → unconfigured. Nothing else is consulted.

This is the durable post-scrub residue founding's own code names ("repo replica"), read through an adapter that is already wired real — no new sources, no break-glass dependency.

What to build

A seat op on the helper bridge that answers exactly that: repo header → operator(communityName) | unconfigured. The renderer's seat source calls it instead of the placeholder. S12's hand-off then lands on Operator home showing the real community name.

Explicitly out of scope (each its own later slice, honest until then):

  • Device posture (agent-socket territory, ADR 0053 — rides the device-transport work, #207)
  • Rescue material / localVm / richer seat fields (OperatorSeat shows the name; other fields honestly absent)
  • A corrupt-repo rescue lane (a corrupt header reads as unconfigured for the seat; rescue owns corruption)

Acceptance criteria

  • Given a machine with no community config repo, When the packaged app boots, Then Welcome offers founding — as today
  • Given a founded machine (repo + header present), When the packaged app boots (or S12 hands off), Then it lands on Operator home naming the community — never Welcome
  • Given the production helper, When the seat op answers, Then it read only the repo header — no fabricated field anywhere (ADR 0100)

Task manifest

task: app:seat-source-real
implements_seam: "the helper bridge (+1 seat op); the config-repo community header as the sole operator-posture signal (Ben's ruling)"
interface: "seat op on the found bridge; renderer seat source"
seam: "boot seam test: no-repo → unconfigured, header → operator(name)"
acceptance:
  - given: a founded machine; when: the packaged app boots; then: Operator home with the real community name — never Welcome again
depends_on: []
out_of_scope: [device posture (agent socket, with #207), rescue material and richer seat fields, corruption rescue lanes]
needs_human_decision: []
## Parent Shell spec #22. Gap audit 2026-07-30; bounced for design 2026-07-31; **simplified 2026-07-31** — one bug, one decision. ## The bug Found a community, reach S12, and the app lands you back on **Welcome**, offering "Found a community" again. The packaged renderer's seat source is a placeholder that always answers *unconfigured* — Operator home is unreachable in any packaged build. ## The decision (one question) **What single real signal marks "this machine operates an OurCloud"?** **Ruled by Ben 2026-07-31: the community config repo the helper already keeps** (the same path the clan adapter opens). Present with a parseable community header → **OperatorSeat**, carrying the community name read from that header. Absent or unparseable-empty → **unconfigured**. Nothing else is consulted. This is the durable post-scrub residue founding's own code names ("repo replica"), read through an adapter that is already wired real — no new sources, no break-glass dependency. ## What to build A seat op on the helper bridge that answers exactly that: repo header → `operator(communityName)` | `unconfigured`. The renderer's seat source calls it instead of the placeholder. S12's hand-off then lands on Operator home showing the real community name. **Explicitly out of scope** (each its own later slice, honest until then): - Device posture (agent-socket territory, ADR 0053 — rides the device-transport work, #207) - Rescue material / localVm / richer seat fields (OperatorSeat shows the name; other fields honestly absent) - A corrupt-repo rescue lane (a corrupt header reads as unconfigured *for the seat*; rescue owns corruption) ## Acceptance criteria - [ ] Given a machine with no community config repo, When the packaged app boots, Then Welcome offers founding — as today - [ ] Given a founded machine (repo + header present), When the packaged app boots (or S12 hands off), Then it lands on Operator home naming the community — never Welcome - [ ] Given the production helper, When the seat op answers, Then it read only the repo header — no fabricated field anywhere (ADR 0100) ## Task manifest ```yaml task: app:seat-source-real implements_seam: "the helper bridge (+1 seat op); the config-repo community header as the sole operator-posture signal (Ben's ruling)" interface: "seat op on the found bridge; renderer seat source" seam: "boot seam test: no-repo → unconfigured, header → operator(name)" acceptance: - given: a founded machine; when: the packaged app boots; then: Operator home with the real community name — never Welcome again depends_on: [] out_of_scope: [device posture (agent socket, with #207), rescue material and richer seat fields, corruption rescue lanes] needs_human_decision: [] ```
Author
Owner

Blocked → ready-for-human (the seat's real machine-state source needs a design decision; its readers aren't built).

Picked this up after #219. The seam (machine state in, seat out) and the mapping are buildable, but the task's premise — real seat resolution over the helper bridge — doesn't map onto sources that exist. Concretely, for each of the three postures:

  • Operator (the bug this ticket targets — post-S12 landing on Welcome). founding.Orchestrator deletes the founding-state file at the S12 scrub, so Founded is gone; its own comment says the durable post-scrub signal is "repo replica + operator key" (internal/founding/orchestrator.go:66). That signal is rescue/break-glass territory (the operator-key ledger ourcloud/operator-keys.json, the config-repo replica). In the production helper it is unwired — newBreakglassOrchestrator returns errUnconfigured("break-glass") (app/helper/cmd/helper/wiring_prod.go:163), and there is no seat/posture op on the found bridge. So the helper cannot honestly report operator posture (or the community name/portal the OperatorSeat needs) today.

  • Device. app/src/lib/join.ts is explicit: a device seat is owned by "the standing agent's local socket (ADR 0053) — the AGENT owns the join … role and services are chosen dashboard-side, never here." That is a different transport than the helper bridge this ticket names, and there is no durable device-enrolled marker the operator helper reads.

  • Unconfigured is the only posture the current placeholder can honestly answer.

So the real seat cannot be resolved from real machine state without either (a) building the unbuilt readers — the break-glass/rescue residue reader for operator, and a device-posture source over the agent socket (ADR 0053) — each its own slice, explicitly out of this ticket's scope; or (b) fabricating seat data, which ADR 0100 bars.

What a human needs to decide (design):

  1. Where does the seat's machine-state signal come from per posture? Operator = presence of the config-repo replica + operator-key (a wired rescue reader — needs the break-glass wiring slice first)? Device = the agent local socket (ADR 0053), not the helper bridge? If so, this ticket depends on those and the manifest's depends_on: [] / "over the helper bridge" framing is wrong.
  2. What honest data does each seat carry given the rich fields (OperatorSeat: community, rescue material, localVm; DeviceSeat: id, role, services) have no wired production source yet?

Recommend either re-scoping #202 to depend on (i) the break-glass/rescue production wiring and (ii) a device-posture source over ADR 0053, or splitting it so the buildable pure mapping (machineState → Seat) lands separately from the per-posture source wiring.

needs_human_decision was [], so no prior ruling to follow. No code changed. Leaving ready-for-human.

**Blocked → ready-for-human (the seat's real machine-state source needs a design decision; its readers aren't built).** Picked this up after #219. The seam (`machine state in, seat out`) and the mapping are buildable, but the task's premise — *real seat resolution **over the helper bridge*** — doesn't map onto sources that exist. Concretely, for each of the three postures: - **Operator (the bug this ticket targets — post-S12 landing on Welcome).** `founding.Orchestrator` deletes the founding-state file at the S12 scrub, so `Founded` is gone; its own comment says the durable post-scrub signal is *"repo replica + operator key"* (`internal/founding/orchestrator.go:66`). That signal is rescue/break-glass territory (the operator-key ledger `ourcloud/operator-keys.json`, the config-repo replica). In the **production** helper it is **unwired** — `newBreakglassOrchestrator` returns `errUnconfigured("break-glass")` (`app/helper/cmd/helper/wiring_prod.go:163`), and there is no seat/posture op on the `found` bridge. So the helper cannot honestly report operator posture (or the community name/portal the OperatorSeat needs) today. - **Device.** `app/src/lib/join.ts` is explicit: a device seat is owned by *"the standing agent's local socket (ADR 0053) — the AGENT owns the join … role and services are chosen dashboard-side, never here."* That is a **different transport than the helper bridge** this ticket names, and there is no durable device-enrolled marker the operator helper reads. - **Unconfigured** is the only posture the current placeholder can honestly answer. So the real seat cannot be resolved from real machine state without either (a) building the unbuilt readers — the break-glass/rescue residue reader for operator, and a device-posture source over the agent socket (ADR 0053) — each its own slice, explicitly out of this ticket's scope; or (b) fabricating seat data, which ADR 0100 bars. **What a human needs to decide (design):** 1. **Where does the seat's machine-state signal come from per posture?** Operator = presence of the config-repo replica + operator-key (a wired rescue reader — needs the break-glass wiring slice first)? Device = the agent local socket (ADR 0053), not the helper bridge? If so, this ticket depends on those and the manifest's `depends_on: []` / "over the helper bridge" framing is wrong. 2. **What honest data does each seat carry** given the rich fields (OperatorSeat: community, rescue material, localVm; DeviceSeat: id, role, services) have no wired production source yet? Recommend either re-scoping #202 to depend on (i) the break-glass/rescue production wiring and (ii) a device-posture source over ADR 0053, or splitting it so the buildable pure mapping (`machineState → Seat`) lands separately from the per-posture source wiring. `needs_human_decision` was `[]`, so no prior ruling to follow. No code changed. Leaving `ready-for-human`.
Author
Owner

Body simplified per Ben (driven session): one bug (S12 lands on Welcome), one decision (the single real operator-posture signal). Proposed signal = the helper's own config-repo community header; everything else out of scope. Stays ready-for-human until Ben answers the one question, then re-arms.

Body simplified per Ben (driven session): one bug (S12 lands on Welcome), one decision (the single real operator-posture signal). Proposed signal = the helper's own config-repo community header; everything else out of scope. Stays `ready-for-human` until Ben answers the one question, then re-arms.
Author
Owner

Ben ruled yes (driven session 2026-07-31): the helper's config-repo community header is the operator-posture signal — header → Operator home with the community name, absent → unconfigured. Re-armed ready-for-agent.

**Ben ruled yes** (driven session 2026-07-31): the helper's config-repo community header is the operator-posture signal — header → Operator home with the community name, absent → unconfigured. Re-armed `ready-for-agent`.
Author
Owner

Landed in 2ffab63 (on origin/main).

Ben's ruling followed (config-repo community header = the operator-posture signal): a new seat op on the found bridge reads ourcloud/brand-kit.json — the same header the control plane reads as the community identity, and the durable residue that survives the S12 scrub. clan.ReadCommunityName consults ONLY that header (parseable+named → operator(name); absent/empty/corrupt → unconfigured, rescue owns corruption — nothing fabricated, ADR 0100).

What shipped:

  • Go: clan.ReadCommunityName; founding SeatReader port + WithSeat; Orchestrator.Seat() → SeatResult; seat stdio op; helper wiring reads clanConfigRepoPath() (real in prod + dev); boot-seam founding-port set gains seat.
  • TS: BridgeSeatSource reads the seat over the bridge into a reactive holder the resting root re-rests on → a founded machine lands on Operator home naming the community, never Welcome again; a bridge failure stays honestly unconfigured. PlaceholderSeatSource retired. OperatorSeat rescue/localVm/healthy made optional — the name shows; other fields honestly absent.

AC coverage: AC1 (no repo → Welcome), AC2 (header present → Operator home naming the community, boot seam over the real helper + renderer re-rest seam), AC3 (op reads only the header, no fabricated field).

Seams (green): clan.ReadCommunityName units, founding seat-op dispatch, BridgeSeatSource→resting-root re-rest, go-gated boot seam (real op over the real helper). TS suite green (vue-tsc + vitest 380). Go seam gated on CI (no toolchain in the sandbox, #198).

Out of scope (each its own slice): device posture over the agent socket (#207, ADR 0053), richer operator seat fields, corruption rescue lanes.

Evidence: internal/clan/community*.go, internal/founding/seat*.go + stdio.go, app/helper/cmd/helper/seat.go, app/src/lib/seatSource.ts, app/tests/unit/seatSource.test.ts + boot.test.ts.

Landed in `2ffab63` (on `origin/main`). **Ben's ruling followed** (config-repo community header = the operator-posture signal): a new `seat` op on the `found` bridge reads `ourcloud/brand-kit.json` — the same header the control plane reads as the community identity, and the durable residue that survives the S12 scrub. `clan.ReadCommunityName` consults ONLY that header (parseable+named → operator(name); absent/empty/corrupt → unconfigured, rescue owns corruption — nothing fabricated, ADR 0100). **What shipped:** - Go: `clan.ReadCommunityName`; founding `SeatReader` port + `WithSeat`; `Orchestrator.Seat()` → `SeatResult`; `seat` stdio op; helper wiring reads `clanConfigRepoPath()` (real in prod + dev); boot-seam founding-port set gains `seat`. - TS: `BridgeSeatSource` reads the seat over the bridge into a reactive holder the resting root re-rests on → a founded machine lands on **Operator home naming the community, never Welcome again**; a bridge failure stays honestly unconfigured. `PlaceholderSeatSource` retired. `OperatorSeat` rescue/localVm/healthy made optional — the name shows; other fields honestly absent. **AC coverage:** AC1 (no repo → Welcome), AC2 (header present → Operator home naming the community, boot seam over the real helper + renderer re-rest seam), AC3 (op reads only the header, no fabricated field). **Seams (green):** `clan.ReadCommunityName` units, founding `seat`-op dispatch, `BridgeSeatSource`→resting-root re-rest, go-gated boot seam (real op over the real helper). TS suite green (vue-tsc + vitest 380). Go seam gated on CI (no toolchain in the sandbox, #198). **Out of scope** (each its own slice): device posture over the agent socket (#207, ADR 0053), richer operator seat fields, corruption rescue lanes. Evidence: `internal/clan/community*.go`, `internal/founding/seat*.go` + `stdio.go`, `app/helper/cmd/helper/seat.go`, `app/src/lib/seatSource.ts`, `app/tests/unit/seatSource.test.ts` + `boot.test.ts`.
ben closed this issue 2026-07-31 07:30:27 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#202
No description provided.