app: seat-source-real — the packaged app lands on its real seat after founding #202
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#202
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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):
Acceptance criteria
Task manifest
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.Orchestratordeletes the founding-state file at the S12 scrub, soFoundedis 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 ledgerourcloud/operator-keys.json, the config-repo replica). In the production helper it is unwired —newBreakglassOrchestratorreturnserrUnconfigured("break-glass")(app/helper/cmd/helper/wiring_prod.go:163), and there is no seat/posture op on thefoundbridge. So the helper cannot honestly report operator posture (or the community name/portal the OperatorSeat needs) today.Device.
app/src/lib/join.tsis 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):
depends_on: []/ "over the helper bridge" framing is wrong.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_decisionwas[], so no prior ruling to follow. No code changed. Leavingready-for-human.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-humanuntil Ben answers the one question, then re-arms.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.Landed in
2ffab63(onorigin/main).Ben's ruling followed (config-repo community header = the operator-posture signal): a new
seatop on thefoundbridge readsourcloud/brand-kit.json— the same header the control plane reads as the community identity, and the durable residue that survives the S12 scrub.clan.ReadCommunityNameconsults ONLY that header (parseable+named → operator(name); absent/empty/corrupt → unconfigured, rescue owns corruption — nothing fabricated, ADR 0100).What shipped:
clan.ReadCommunityName; foundingSeatReaderport +WithSeat;Orchestrator.Seat()→SeatResult;seatstdio op; helper wiring readsclanConfigRepoPath()(real in prod + dev); boot-seam founding-port set gainsseat.BridgeSeatSourcereads 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.PlaceholderSeatSourceretired.OperatorSeatrescue/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.ReadCommunityNameunits, foundingseat-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.