join: the community display name is empty in the agent's enroll banner and pairing lines #940
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#940
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?
The defect
Everywhere the joining agent prints the community's display name it is empty:
idss-agent unknown · joining(trailing space)✓ connection request sent to(trailing space;cat -Aconfirmssent to ^M$)Seen in both the
curl … | shdoorway transcript and the directidss-agent enrolltranscript of the phase-5 device drive20260828T123909Z(#939). It is not the cause of any red — cosmetic — but it ships in the published doorway's output. The name resolves fine elsewhere: the portal header readsRehearsal C — IDSS.Cause
internal/join/cli.go'sRunTerminalprintsresp.Community.Namefrom the redeem response. In production the gateway builds its enroll ledger with an emptyenroll.Config.Community— seecontrol-plane/cmd/control-plane/whole_composition.go(var enrollCfg enroll.Configaround line 155, thenopenEnrollLedger(deps.stateDir, enrollCfg)):Community.Nameis never set. Sol.community().Name(and thus everyredeemResponse) is empty. The community display name actually lives in the applied brand kit atbrandKitDocPathin the config repo, read live viaconfigRepoBrand/configRepoKit(DDR 0007 — brandkit is the single authority; "never a fabricated community name", read live so a re-brand needs no restart). The enroll ledger simply isn't wired to that authority.Suspected fix (needs design)
Thread the live brand-kit name into the redeem response without minting a stale second copy (DDR 0007). Options:
enroll.Ledgera live community-name source (afunc() stringover the brand kit) rather than a staticConfig.Community.Name, so redeem reads the current name; orSeeding
enrollCfg.Community.Nameonce at boot from the kit is the easy path but violates DDR 0007's single-authority/no-static-copy rule and goes stale on re-brand — henceneeds-triage/needs-designrather than a blind fix.Found while working
#939 (the published
curl|shdoorway dropped the waiting-on-operator wait). The wait defect is fixed there; this display-name residue is explicitly the "separate, lesser" item #3 of that ticket, filed out so the doorway-wait slice stays scoped.Ruled by agent under ADR 0174 — veto anytime.
Ruling:
ready-for-agent, notneeds-designThe filer parked this on
needs-triage/needs-designout of caution that the fix might collide with DDR 0007 (brand kit is the single authority; no static second copy). It doesn't — the design already exists and was already built. Verified against the tree:Config.Community.Name") is already a first-class field:enroll.Config.CommunitySource func() (Community, bool)(internal/enroll/ledger.go:66-79, ADR 0024 / #910). The ledger consults it per Redeem/Pending and returns(zero,false)until the name is stamped — never a fabricated name (ADR 0100). This is exactly DDR 0007-compliant: read live, no static copy.newEnrollLedger()setsCommunitySource: communityHeaderSource()(app/helper/cmd/helper/wiring_prod.go:253, reading live viaclan.ReadCommunityName).whole_composition.go:155doesvar enrollCfg enroll.Configand wires onlyOnEnrolled, thenopenEnrollLedger(...). SoRedeemResponse.Community.Nameis blank on that path — the empty banner (internal/join/cli.go:143) and empty pairing line (internal/join/cli.go:200).So there is no open design question — just an unwired seam. That makes this a two-way door: revertible by a single commit, provable by an existing test pattern. Not on the one-way-door list (no personal creds, no security-posture change, no member-facing trust accept, no data destruction, no spend). Hence
ready-for-agent, notneeds-designorready-for-human.Agent brief
Goal. The joining agent's enroll banner and pairing line show the community's real display name (matching the portal header the same process serves), on the control-plane enroll path — without minting a static copy (DDR 0007).
The one-line fix. In
control-plane/cmd/control-plane/whole_composition.go(~line 155), setenrollCfg.CommunitySourceto a late-bound func that reads the live community name, beforeopenEnrollLedger(deps.stateDir, enrollCfg). Mirror the helper's reference implementationcommunityHeaderSourceAt(app/helper/cmd/helper/wiring_prod.go:263).Source-of-truth choice (agent's call, both DDR 0007-clean). Prefer the applied brand kit name (
kit.NameviabrandKitDocPath), because that is what the portal header renders throughconfigRepoBrand.Identity()(whole_composition.go:682-688), so the enroll banner will match the portal the operator already sees (the issue'sRehearsal C — IDSSexample).deps.repo(*clan.ConfigRepo) is already in scope in that composition. The config-repo community header (clan.ReadCommunityName, as the helper uses) is an acceptable alternative if it reads the same live value. Either way: read live per-call, return(zero,false)when nothing is applied yet — never a fabricated name (ADR 0100).Tests (make it provable).
TestRedeem_CommunitySource_LateBound(internal/enroll/enroll_test.go:758) — pre-founding redeem is blank, post-founding redeem carries the name.communityHeaderSourceAtseam test — drive the chosen live source over a temp repo dir, assert blank-then-named.RedeemResponse.Community.Nameis non-empty once the brand kit / header is applied.Scope guard. Do not seed
enrollCfg.Community.Namestatically at boot — that is the DDR 0007 violation the filer correctly flagged (goes stale on re-brand). Cosmetic only; not a red cause.Suggested model (optional, veto anytime): this is mechanical wiring with a working reference impl — a
model-sonnetcandidate. Left at fleet default; apply the label by hand if desired.Label applied:
needs-triage→ready-for-agent. Completing the ADR-0174 ruling above, which was posted but never actually transitioned the label — the issue was still sitting onneeds-triage.Re-verified the ruling against the tree before applying:
enroll.Config.CommunitySource func() (Community, bool)exists and the ledger consults it (internal/enroll/ledger.go:79,:329).app/helper/cmd/helper/wiring_prod.go:253→communityHeaderSource()).whole_composition.go:155setsvar enrollCfg enroll.Configand wires onlyOnEnrolled(:157) beforeopenEnrollLedger(:159) —CommunitySourceis never set.configRepoBrand.Identity()→kit.Name(whole_composition.go:682),deps.repoavailable.internal/join/cli.go:143(banner) and:200(pairing line).TestRedeem_CommunitySource_LateBound(internal/enroll/enroll_test.go:767).No open design question (the seam exists and is built), no missing flow/wireframe/seam contract → not
needs-design. Two-way door, none of the one-way-door items → notready-for-human.ready-for-agentstands; the agent brief above is the work.swarm-claim host=elitebook-distributed-server-03 run=13265
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #940 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope