Repository navigation
fix(onboarding): stamp host='byo' on self-serve seats — the 202 installs that read 'unknown' - #945
Merged
Merged
Conversation
…read 'unknown' Every self-serve BYO seat has been born mislabelled, and it is one mismatch. The connect page posts `runtimeType: 'webhook'` (V2AgentBYO.tsx:151) because ADR-006's self-serve branch requires that value to synthesize a manifest — while the user never runs a webhook. They run `commonly agent run`, which POLLS. No `host` was ever written, so `deriveAgentState` asks its three questions (push-webhook? native? byo?), gets no to all three, and answers `unknown`. Measured on production (pod-architect, fleet review 2026-08-14): **202 of 314 active installs derive `unknown`**, and every real BYO user seat is in that 202 — including all four users who mentioned a seat with nobody home and got total silence (m0re 08-04, l3r0ys4n3 08-07, user-8863 08-09, ngoc-tran 08-10). That one missing field is why the whole honesty layer is decoration: the #891 surface, the install intro (#943) and W4's stalled-connect trigger all read this derivation, so all three are inert for exactly the population they exist to protect. #943 would have merged, deployed, and changed nothing for the people it was written for. Discriminator: a PUSH webhook must supply `webhookUrl`, and no registry route writes that field — it only ever arrives in caller config. So webhook-typed WITHOUT a URL is a polling seat. An explicit host is never overwritten; the CLI attach path already sets it correctly. Includes the historical half as `scripts/backfill-byo-host-stamp.ts` (dry-run by default). Read-side normalization CANNOT substitute for it: I checked the casualty rows directly, and `normalizeRuntimeIdentity` only rescues the legacy `local-cli` + `wrappedCli` shape, which these carry neither of. There is nothing in them to infer from. Tests pin the predicate AND the consequence — the same seat reads `unknown` with no fixCommand before the stamp, and `never-connected` with `commonly agent run <name>` after. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8
This was referenced Aug 14, 2026
lilyshen0722
added a commit
that referenced
this pull request
Aug 21, 2026
…o BYO Sam, 2026-08-21: the config and install UI were built for the old moltbot system, and we support local + cloud now (pi next per ADR-021/023). Three cuts: 1. The gateway-mode and per-agent LLM-key dialog sections are deleted — moltbot-era fields rendered for every plain catalog install because the branch that skipped them keyed on the REMOVED presets flow. 2. claude-code Install navigates to the BYO connect flow instead of the dialog — a local wrapper is connected, not installed; the BYO page carries the token handoff and the connect honesty (#943/#945/#947). 3. Webhook's URL fields key on the agent, not presetContext — they had silently stopped rendering when the Presets tab retired. Also unwires the New Agent template creator (its rows no longer render, so a creator with invisible output is a trap). Native installs keep the plain name+pod dialog, which is the path that works.
lilyshen0722
added a commit
that referenced
this pull request
Aug 21, 2026
…o BYO (#1075) Sam, 2026-08-21: the config and install UI were built for the old moltbot system, and we support local + cloud now (pi next per ADR-021/023). Three cuts: 1. The gateway-mode and per-agent LLM-key dialog sections are deleted — moltbot-era fields rendered for every plain catalog install because the branch that skipped them keyed on the REMOVED presets flow. 2. claude-code Install navigates to the BYO connect flow instead of the dialog — a local wrapper is connected, not installed; the BYO page carries the token handoff and the connect honesty (#943/#945/#947). 3. Webhook's URL fields key on the agent, not presetContext — they had silently stopped rendering when the Presets tab retired. Also unwires the New Agent template creator (its rows no longer render, so a creator with invisible output is a trap). Native installs keep the plain name+pod dialog, which is the path that works.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
W4 item 1 — and it is the prerequisite for everything else in W4, not a parallel item.
Every self-serve BYO seat is born mislabelled
One mismatch causes it. The connect page posts
runtimeType: 'webhook'(V2AgentBYO.tsx:151) because ADR-006's self-serve branch requires that value to synthesize a manifest — while the user never runs a webhook. They runcommonly agent run, which polls. Nohostis written, soderiveAgentStateasks its three questions — push-webhook? native? byo? — gets no to all three, and answersunknown.What that costs, measured
pod-architect, against production:
@m0re-agent 1Hi@ngoc-tran-agent what modal you useThe #891 honesty surface, the install intro (#943) and W4's stalled-connect trigger all read this derivation. So all three are decoration until this lands — #943 would have merged, deployed, and changed nothing for the exact people it was written for.
The fix
Stamp
host: 'byo'when a seat is webhook-typed with nowebhookUrl.That discriminator is sound because a genuine push webhook must supply a URL, and no registry route ever writes
webhookUrl— it only arrives in caller config. An explicit host is never overwritten; the CLI attach path already sets it correctly.Why there is a backfill, and why read-side can't replace it
scripts/backfill-byo-host-stamp.ts(dry-run by default) handles the existing 202.I went looking for a read-side fix first, because it would rescue history for free. It cannot work — I checked the casualty rows directly, and
normalizeRuntimeIdentityonly rescues the legacylocal-cli+wrappedClishape, which these carry neither of. There is no information in the row to inferbyofrom; it has to be put back.The script assigns the whole
configobject and callsmarkModified— Mixed paths do not reliably mark themselves dirty on nested mutation, which is the classic way a migration reports success and writes nothing.Tests
Seven. They pin the predicate (including the push-webhook case that must not be restamped, and the explicit-host case that must not be overwritten) and, more importantly, the consequence:
unknownwith nofixCommandnever-connectedand offerscommonly agent run <name>listening— the stamp makes the answer knowable in both directions, it does not just make everything look brokenFollow-up this does not do
pod-architect's warning stands and should shape the acceptance test for W4 item 3: a synthetic install created with
host:'byo'passes every case while the real population stays uncovered. That assertion has to run against a seat minted by the actual self-serve connect flow.🤖 Generated with Claude Code
https://claude.ai/code/session_01XeUH4HVDsDHYPsHJthXjB8