Repository navigation
Description
What
An architect's specific name is dropped everywhere a sent message is attributed — one root cause, two visible surfaces, plus a formatting defect on one of them. (Consolidates #1479 — same defect, second symptom.)
Root cause (send side): commands/send.ts:317 sets from = detectCurrentBuilderId() ?? 'architect' — the specific architect name (currentArchitectName() / TOWER_ARCHITECT_NAME) is discarded at send time, so every architect sender lands in the mailbox as the generic string architect.
Surface 1 — afx inbox: the FROM → TO column renders architect → <builder> with no way to tell which architect sent it. Show architect:<name>. Additionally, the cell is hard-sliced to a fixed 22-char column (commands/inbox.ts:139, fromTo.slice(0, 22) against widths = [..., 22, ...]), so a long builder/agent name is silently cut off mid-name — size the column to content (or widen / wrap) instead.
Surface 2 — the delivered composer message: a builder receives a generic ### [ARCHITECT INSTRUCTION | …] ### header (formatArchitectMessage, utils/message-format.ts) with no sender name. Here a second collapse compounds the first: formatMessageForTarget (servers/tower-routes.ts:1517-1526) ignores from entirely on the any → builder path, so even a corrected from wouldn't surface. Thread the name through (e.g. ### [ARCHITECT:main INSTRUCTION | …] ###).
Why
Both surfaces exist to answer "who sent this?" — the inbox for the operator triaging held mail, the composer header for the builder deciding whose direction it's acting on. In a multi-architect workspace, bare architect is ambiguous on both, and a truncated builder name means the recipient can't be identified either. The asymmetry is telling: builder → architect messages already carry the sender (### [BUILDER <id> MESSAGE] ###); architect → builder attribution is just an oversight.
Notes
- One PR: fix the
fromcollapse once insend.ts, add an optional sender param throughformatMessageForTarget→formatArchitectMessage(the any → builder branch currently discards it), and fix the inbox column width. afx inbox show <id>(commands/inbox.ts:171, theFrom → Tokv) inherits the correctedfromfor free; the mailbox row'sfrom_agentis the carrier.- Keep the raw-mode path (
raw: true) unattributed as today; keep the inbox list metadata-only (Spec 1313 Redaction) — this is identity + formatting, not body display. - Refs afx send: mailbox-first delivery — persist, gate on rendered-empty, never force-inject #1313 (PR [Spec 1313] afx send: mailbox-first delivery (never force-inject) #1330). Consolidates and closes afx send: attribute delivered composer messages to architect:<name>, not generic 'architect' #1479. Tracked by Tracking: mailbox-first send follow-ups — gate correctness, interrupt semantics, attribution, visibility (post-1313) #1483 (workstream C); the dashboard surface (Dashboard: make the held-mail counter clickable, showing the held messages (from → to) #1450) inherits the corrected identity from the shared store.
Activity
[-]afx inbox: show full architect:<name> in FROM → TO and stop truncating long builder names[/-][+]afx send: carry architect:<name> through to inbox and composer attribution; stop truncating names in afx inbox[/+][Air #1478] feat: carry architect:<name> to inbox + composer attribution
[Air #1478] test: fold route-level attribution tests into tower-route…
[Air #1478] fix: role-shaped sender labels, validated names, one iden…
[Air #1478] docs: record CMAP + integration review round in the build…
[Air #1478] fix: validate the BUILDER label branch too, so the chokep…
[Air #1478] test+polish: pin the interrupt/reset identity, match addr…
[Air #1478] docs: record CMAP round 2 and the e2e-check caveat in the…
[Air #1478] docs: close out the builder thread (PR parked for the mai…
Merge origin/main into builder/air-1478
[Air #1478] docs: record the origin/main merge and why the composer h…
[Air #1478] fix: address maintainer review — architect-shaped label, …
[Air #1478] docs: record the maintainer review round in the builder t…
Merge pull request #1486 from cluesmith/builder/air-1478