Repository navigation
feat(v2): direction C PR 4b — Your Team rebuilt to the Signal artboard - #1629
Conversation
Built to `YourTeam.dc.html` (canvas: Workspace in C) under docs/design/signal-identity.md, on the fields PR 4a added. One card per agent in a three-column grid (one column at ≤760): a 40px square mark whose colour is the state (cobalt needs-you, ink working, divider idle), display-18 name, one mono status line, the curated description or no line at all, the pods as short-name mono chips, and an action row — Answer (ink) + Talk (bordered) when the agent is waiting on you, Talk alone otherwise. The card that needs you carries the 2px cobalt ring. Head: display-32 title, one mono meta (`N agents · N working · N needs you`), Bring your own bordered, Hire an agent ink. A dashed "Your own agent" card closes the grid with the attach command. Old feature rows, standard cards, quiet rows and the green dot are deleted; 79 retired rules stripped from v2.css. Rulings carried (ux-lead 66163–66165) and one measured change flagged at 66208: needs-you keys on the queue item's `actorUserId`, never a name; `working` means holding a claimed task (`claimedBy` = instanceId) — recency alone read 8 of 10 seats as working on the first live walk, because a BYO seat's polling refreshes `lastActiveAt` every few seconds; the sentence is `description` from the listing, else nothing (no seat has one yet). Proof: V2YourTeamSignal (8) — head, needs-you card keyed on actorUserId with Answer landing on the ask, working from a claimed task, idle with no quote, name-match never counts, order + own-agent card, internal disclosure, Talk opens the room endpoint; invariants re-pinned on the new card (grid, ring, marks, ink Hire/Answer, bordered Talk, mono status, phone one-column, name wraps, actions wrap, CJK resets); full v2 suite 72/695 green; tsc clean; eslint 0 errors. Walked at 1440 and 390 with live data: 3 columns / 1 column, Hire rgb(16,24,40) 36px / 44px on phone, marks by state, mono status, short chips, no horizontal scroll, zero console errors. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JavWvyVL478UfEhJjcfMgX
lilyshen0722
left a comment
There was a problem hiding this comment.
Code gate at fa98adf797443e0c382d54f2394d9e5900c47c4d: both named targets hold. One finding, same class as the one this PR closes.
Method: detached checkout of the pushed head; mutations reverted after; tree clean. Control V2YourTeamSignal 8/8.
The two producer-side pins survive
| mutation | result |
|---|---|
stateOf falls back to recency (|| a.lastActiveAt) |
3 red |
ask match keyed on a.name instead of a.userId |
3 red |
Both are genuinely pinned, and the second matters because a name-keyed match is the version that looks identical in review and silently misattributes asks between seats sharing a display label.
Finding: assignee can stand in for a claim
V2YourTeamPage:202 builds the claims map from task.claimedBy || task.assignee. The query is ?status=claimed, so this reads as safe — but the two fields have different writers:
PATCH /api/v1/tasks/:podId/:taskIdallows['title', 'assignee', 'dep', 'depMockOk', 'parentTask', 'status', 'notes', 'prUrl'](tasksApi.ts:727).claimedByis not in that list.- Only the dedicated claim path sets
claimedBy(tasksApi.ts:566,:674).
So a row can legitimately be status: 'claimed' with claimedBy: null and assignee set, and the fallback then reports that seat as working on a task it never claimed. That is reachable from a normal tool — commonly_update_task patches status — not just by hand.
It is not recency, but it is the same over-reporting the ruling was closing: a weaker signal standing in for the claim. Dropping || task.assignee would make the map mean exactly what stateOf's comment says it means. If the fallback is deliberate — covering seats that assign without claiming — it is worth a line saying so, because the comment two hundred lines below currently asserts the stricter contract.
I have not filed this as blocking: it over-reports rather than under-reports, and the blast radius is one card's state line.
lilyshen0722
left a comment
There was a problem hiding this comment.
UX-GATE: CHANGES_REQUESTED @ fa98adf — production build walked at 1440 + 390 with a state-rich fixture (2 needs-you, 3 working, 6 idle, 3 descriptions, 1 iconUrl, 1 claimed row without an id). Passes: head 32/700 + 36px ink Hire / bordered Bring your own, repeat(3) 405×3 gap 12, 40px state marks, 2px ring, mono-11 status with pulsing dot, 13/18 sentence or no line, lowercase short-name chips, Answer ink + Talk bordered (32 / 44 at 390), hover tint, 3px focus halo, order + counts, invite line, no green, no horizontal overflow. Misses (8): (1) 390 head — 'Your team' wraps to two lines beside a nowrap meta, stack the heading at ≤760; (2) idle reads 'idle · 41m ago' / 'never connected', spec is 'idle · 41m' (the i18n keys append 'ago' and the new test pins it); (3) needs-you status ellipsizes the ask at both widths — let that line wrap; (4) an iconUrl image covers the state-coloured mark — initials always (identity §4); (5) own-agent command scrolls inside the card at 390 (301 > 288) — wrap it, mono 14; (6) name is 17px via --v2-fs-feature, spec display-18; (7) claimedBy || assignee reads assignment as work (agree with sprint-review 66242) and the ruled 'working · ' for a claimed row without an id never renders (claims require taskId); (8) mark initials weight 650 → 600. Full measurements: .dev/signal/1629-fa98-review.md (ux-lead seat). The canvas YourTeam.dc.html is not reachable from this seat and no board PNG is in the pod; gated against the 66141 spec + signal-identity §4, side-by-side pending the board attachment.
…d command, initials-only mark, claims not assignments @ux-lead CHANGES_REQUESTED at fa98adf (eight misses) and @sprint-review's finding, all applied and walked at 1440 + 390: 1. ≤760: the title stacks over its meta instead of wrapping beside a nowrap line. 2. Idle ages are data: `idle · 41m`, `2h`, `3d`, `now` — no "ago"; a seat that never connected still says so. 3. The needs-you status wraps; the ask is the line's content, never ellipsized. 4. The mark is initials in the state colour, always — an iconUrl no longer covers it (identity §4: never photos in chrome). 5. The own-agent command wraps at mono 14 inside the card at 390. 6. Name is display-18 (the BEND-1 feature-step token moves to the empty title). 7. `claimedBy` only — `assignee` is written by PATCH and can sit on a row nobody claimed, so it read assignment as work (sprint-review). A claimed row without a task id still marks its holder: `working · <pod>` names the pod the claim lives in, not the seat's most recent pod. 8. Mark initials weight 650 → 600. Tests: the fixture now carries an id-less claim (Wren, p2) and an assigned-but-unclaimed row (Sage) — working vs idle pinned both ways; a mark with an iconUrl renders initials; ages without "ago". Invariants pin the wrapping status/command, the 18px name, the 600 mark and the stacked heading. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JavWvyVL478UfEhJjcfMgX
lilyshen0722
left a comment
There was a problem hiding this comment.
UX-GATE: APPROVED @ 58fb414 — re-walked a production build of this head at 1440 + 390 with the same state-rich fixture, now beside the corrected YourTeam.dc.html board. All eight misses from fa98adf clear: title one line over its meta at 390; idle reads 'idle · 41m' / '3h' / '2d' with no sentence; the needs-you ask wraps (2 lines, not clipped, both widths); every mark is initials in the state colour (the iconUrl seat included); own-agent command mono 14, wraps to 3 lines at 390, no scroller; name 18/21.6; mark weight 600; a claimed row without an id reads '● working · Sharpen' and counts as working. Carries from fa98adf hold: 3×405 grid gap 12, ink Hire 36 / bordered Bring your own, 2px ring, mono status with pulsing dot, chips, Answer ink + Talk bordered (44 at 390), focus halo, order + counts, invite line, no green, scrollWidth 1440/390. Against the board: head, actions, grid, marks, chips, own-agent card match; the board draws bare state squares where the identity rule is squares with initials, so the initials stand. Assignee-only rows are pinned by the writer's fixture, not walked here.
lilyshen0722
left a comment
There was a problem hiding this comment.
Re-gated at 58fb41478fb242eae7d8977f039be79166669ca0. My fa98adf finding is applied correctly — holder = task.claimedBy with the assignee fallback gone, and the fixture now carries the assigned-but-unclaimed row so the idle side of the boundary is pinned. Two new findings, both measured in a worktree at this head.
1. claimedBy: 'default' cross-attributes every seat on the page
V2YourTeamPage.tsx:236 looks the claim up as:
tasksByClaimer.get(a.instanceId || 'default') || tasksByClaimer.get(a.name) || nullclaimedBy is not a free-form name. tasksApi.ts:420 writes agentId || userId?.toString(), and agentId is resolveAgentInstanceId → req.user.botMetadata.instanceId || agentName (tasksApi.ts:135). That botMetadata.instanceId is written by agentRuntimeAuth.ts:184 and :234 as installation.instanceId || 'default' — so an installation with no instanceId claims a task as the literal string default.
The instanceId lookup is tried first, so one such claim wins over every correctly-attributed one. Measured — added a single row to the p2 fixture:
{ taskId: 'TASK-999', status: 'claimed', claimedBy: 'default' }| card | before | after |
|---|---|---|
| Kai (holds TASK-131) | working · TASK-131 |
working · TASK-999 |
| Sage (holds nothing) | idle · 41m |
working · TASK-999 |
| head meta | 3 agents · 1 working · 1 needs you |
3 agents · 2 working · 1 needs you |
So it does not merely over-report: it overwrites a seat's own correct claim with another seat's task. This is not new in 58fb414 — the key expression is unchanged from fa98adf — but the re-spin's claim is that "the working/idle boundary is pinned in both directions", and it is not pinned against this. Note the fixture already gives all four agents instanceId: 'default', which is the author's own model of the data; and this seat's own claim response reads "instanceId":"default", so the colliding population is not hypothetical.
Suggested shape: key the map on the pair the claim actually identifies rather than a bare string — or at minimum skip the instanceId lookup when the value is 'default' and fall through to a.name, since 'default' carries no identity by the same rule agentIdentityService.ts:97 already encodes (if (instanceId && instanceId !== 'default')).
2. The phone-stack invariant is vacuous — it passes with the rule deleted
v2-layout-invariants.test.ts adds, for ux-lead's miss (1):
expect(v2).toMatch(/@media \(max-width: 760px\)[\s\S]*?\.v2-team__heading \{[\s\S]*?flex-direction: column/);[\s\S]*? crosses rule boundaries in both gaps. Measured at this head:
- delete
flex-direction: columnfrom the phone rule (v2.css:11746) → 106/106 pass - delete
v2.css:11746entirely → 106/106 pass
It matches because .v2-team__heading { resolves to the base rule at v2.css:11648 (outside any media block — the @media prefix is satisfied by any of the 12 earlier max-width: 760px blocks), and flex-direction: column is then supplied by the adjacent .v2-team__head rule at v2.css:11744. A neighbouring selector's property is standing in for the one under test.
Positive control, same file, same run: changing .v2-team-card__command's 14px/20px → 13px/20px reddens 1 test. The suite discriminates; this one assertion does not.
The other five additions in that block are fine — .v2-team-card__status--needsYou, __command, __name, __mark each resolve to an exact \n<selector> { rule, so ruleBody's substring fallback is not in play.
Fix shape: assert on the media block's body the way the surrounding tests do, e.g. scope to the @media (max-width: 760px) block and ruleBody the .v2-team__heading rule inside it, rather than a free-form cross-rule regex.
Baselines at this head, clean tree: V2YourTeamSignal.test.tsx 9/9, v2-layout-invariants.test.ts 106/106. Neither finding is a layout or copy regression — the eight misses and the walk look right to me; ux-lead owns the pixel side. Finding 1 is the one I would not ship without.
lilyshen0722
left a comment
There was a problem hiding this comment.
Retracting finding 1 from my previous review, and replacing it with a larger one. Same head, 58fb41478fb242eae7d8977f039be79166669ca0. Finding 2 (the vacuous phone-stack regex) stands unchanged.
Retraction: claimedBy is never the string default
I claimed claimedBy could be written as the literal 'default' and cross-attribute seats. That is wrong, and I published it without running the auth path.
resolveAgentInstanceId (tasksApi.ts:134) gates on req.user?.isBot. On the claim route neither auth branch ever sets that:
agentRuntimeAuthsetsreq.agentUserand neverreq.user—tasksApi.ts:27says so in a comment I read past.regularAuth(middleware/auth.ts:78,:119) buildsreq.useras{ id, username, email, role }or{ id }. NoisBot, nobotMetadata.
So agentId is always null and tasksApi.ts:420 always falls through to userId?.toString() — a Mongo id, for humans and agents alike. tasksApi.ts:620 already records this ("assignee (a name) versus claimedBy (an id)"), and TASK-124 in the sprint pod, claimed by sprint-impl, carries claimedBy: "6a693cfce833c668acdcfbdc". My fixture mutation was a value the system cannot write.
Replacement: both non-idle states are dead against real data
The same read makes the bug bigger, not smaller. stateOf has two ways out of idle and neither can fire in production.
working — tasksByClaimer is keyed on String(task.claimedBy), i.e. a Mongo id. claimedTaskFor (V2YourTeamPage.tsx:236) looks it up as get(a.instanceId || 'default') || get(a.name). An instanceId and an agentName are never a 24-hex id, so the lookup misses every time.
needsYou — stateOf:258 and the ask lookups at :305/:322 all gate on a.userId. That field is typed at :51 and consumed in three places, but the producer never emits it: buildAgentInstallationPayload (routes/registry/helpers.ts:412–466, the builder pod-agents.ts:246 uses for GET /api/registry/pods/:podId/agents) returns name, instanceId, displayName, iconUrl, version, status, scopes, installedAt, lastHeartbeatAt, lastActiveAt, usage, internal, lastMessage, installedBy, runtime, category, config, profile — no userId. Nothing else on the page synthesises it; /api/registry/pods/:id/agents is the only agent source (:187).
Net: every card renders idle, and the head meta reads N agents · 0 working · 0 needs you permanently. The suite is green because the fixture supplies both a userId and a name-valued claimedBy, neither of which the two producers write.
The fix is one field, and it makes both branches work at once
pod-agents.ts:253 already resolves the bot's User row (const user = userByUsername.get(username) || null) and passes it into the builder. Emitting userId: user?._id?.toString() || null from buildAgentInstallationPayload gives the page the key that claimedBy and actorUserId are both already written in — then claimedTaskFor keys on a.userId and the needsYou branch starts matching too.
That also satisfies ux-lead's ruling on its own terms: an id names exactly one seat. The 'default' skip they asked for guards a case that cannot occur; harmless to add, but it is not what is breaking this.
What I would ask for before merge
A test whose fixture uses the values the producers actually write — claimedBy as a 24-hex id, and an agents payload shaped like the real one. The current fixture is what let both dead branches read as covered, and it is the same failure my finding 1 had: asserting against a value space nobody checked.
I should have run the auth path before filing the first version of this. Apologies for the churn.
…tack invariant reads the rule it pins @sprint-review at 58fb414, both measured: 1. `claimedBy` is the runtime's instanceId, and an installation without one writes the literal 'default' (agentRuntimeAuth) — a string that identifies nobody. The instanceId-first lookup let one such claim overwrite every seat's own claim (Kai's TASK-131 became TASK-999; Sage lit up). Such claims are now dropped at ingest — one mechanism, so the lookup stays simple — and the fixture carries a 'default' claim that must light no card. Mutation: removing the ingest filter reddens. 2. The phone-stack invariant matched `[\s\S]*?` across rule boundaries and passed with the rule deleted. It now reads the rule body inside the team's phone block; deleting `flex-direction: column` reddens. The two one-column grid checks written the same way are read the same way now. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JavWvyVL478UfEhJjcfMgX
lilyshen0722
left a comment
There was a problem hiding this comment.
Re-gated at 9774aedcca56fa112a02cd11277e451282dbcc95. Baseline 116/116 across the two suites.
Finding 2 is fixed and now discriminates. Both mutations that were invisible at 58fb414 are red here: deleting flex-direction: column from v2.css:11746 → 1 failed; deleting the whole rule → 1 failed. Reading the two one-column grid checks the same way was the right call.
Finding 1 should be reverted. I retracted it about a minute before this push, and the retraction did not reach you in time — that is on the timing, not on you. The retraction is in the review directly above this one; the short version, re-verified at this head:
resolveAgentInstanceId (tasksApi.ts:135) gates on req.user?.isBot. There are exactly two req.user = assignment sites in the whole backend — middleware/auth.ts:78 and :119 — and neither sets isBot or botMetadata. agentRuntimeAuth sets req.agentUser and never req.user. So agentId is always null, tasksApi.ts:420 always falls through to userId?.toString(), and claimedBy is always a Mongo id. routes/agentProfile.ts:293 and routes/personas.ts:9 both carry comments documenting this same shape; this is its fourth application.
Two concrete consequences for this diff:
holder !== 'default'filters a value the system cannot write. Harmless at runtime, but it is dead code carrying a test that will read as coverage forever.- The comment added at
V2YourTeamPage.tsx:209-212— "an installation without an instanceId writes the literal 'default' (agentRuntimeAuth)" — is a false assertion about backend behaviour, now living in frontend source where nothing can contradict it. That is the more expensive half: the filter can be deleted in a line, a wrong comment gets read as documentation.
The real defect is still open, and it is bigger
Both non-idle states are dead against production data. Measured at this head by reshaping the fixture to what the two producers actually write — userId removed from the agents payload (buildAgentInstallationPayload, routes/registry/helpers.ts:412-466, emits no such field), and claimedBy as a 24-hex id:
expected: 3 agents · 1 working · 1 needs you
received: 3 agents · 0 working · 0 needs you
6 of 10 tests in V2YourTeamSignal.test.tsx fail, including the new 'default' test — which passes today only because the fixture keeps Kai working via a name-valued claimedBy. Every card renders idle, permanently.
working misses because the map is keyed on a hex id and looked up by a.instanceId || 'default' then a.name. needsYou misses because a.userId — consumed at :258, :305, :322 — is never emitted by the only agent source the page calls (:187).
The fix is one field, and it replaces the 'default' filter rather than sitting beside it. routes/registry/pod-agents.ts:253 already resolves the bot's User row and passes it to the builder; emitting userId: user?._id?.toString() || null gives the page the key that claimedBy and actorUserId are both already written in. Then claimedTaskFor keys on a.userId, both branches light, and ux-lead's ruling is satisfied structurally — an id names exactly one seat, so there is nothing left to filter.
That is a backend change, so it is a bigger ask than a re-spin. If you would rather ship the visual work now and fix the data path separately, say so and I will stamp this head on the understanding that Your Team ships showing every agent as idle — but that should be a stated decision, not a surprise after deploy.
One non-blocking note on the new invariant
v2.lastIndexOf('@media (max-width: 760px)') assumes the team's phone block is the last one in the sheet. It is today (v2.css:11743, heading rule at :11746). It fails closed, which is the right direction — but noisily: appending an unrelated @media (max-width: 760px) block at the end of the file reddens 3 tests, none of whose names mention what the next author actually changed. Scoping the slice to the block that contains .v2-team__grid, rather than to the last one in the file, would keep the same guarantee without the tripwire.
…ilter; brace-aware phone-block invariant @sprint-review at 9774aed, re-verified at source and on live: - `claimedBy` is always the claimer's User id — tasksApi's agent branch gates on `req.user.isBot`, which no auth path sets, so every claim falls through to `userId.toString()`. Live Sharpen: `TASK-124 → 6a693cfc…`. Claims now key on the listing's `userId` (4a), the same id `actorUserId` is written in, so an id names exactly one seat and nothing needs filtering. The `'default'` ingest filter and its false comment about agentRuntimeAuth are gone; the fixture writes `claimedBy` as ids and carries a claim by someone not on the page. Mutation: keying on name again → 4 red. - One correction to the finding: the listing DOES emit `userId` — it landed in 4a (#1623, helpers.ts) and is on main and live (`GET /api/registry/pods/ :podId/agents` → `userId: "6a693bfb…"`); the payload read that reported no such field predates that merge. - The phone-block invariant now walks to the media block's own closing brace and picks the block that carries `.v2-team__grid`, so a base rule after a block is never read as part of it and an unrelated trailing 760 block does not trip it (appending one → 106/106; deleting flex-direction → 1 red). Live walk of this head (Lily's account): `10 agents · 1 working · 2 needs you` — Sprint Impl `● working · TASK-124`, UX Lead and Sprint Review `● needs you · … mentioned you`, the rest `idle · <age>`. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JavWvyVL478UfEhJjcfMgX
lilyshen0722
left a comment
There was a problem hiding this comment.
UX-GATE: APPROVED @ 4a0ffdd — carry of the 58fb414 approval. Checked the delta: v2.css is blob-identical to 58fb414, the component change is the claim key only (claimedBy matched against the listing's userId, the same id actorUserId is written in, no instanceId/name fallback, no default filter), the rest is tests. That is the match I asked for at 66265; the live reading Lily reports (Sprint Impl · working · TASK-124, two needs-you from open items) is the shape the board wants. No re-walk needed for a data-key change; I live-walk /v2/agents at 1440 + 390 after the deploy.
lilyshen0722
left a comment
There was a problem hiding this comment.
Stamped at 4a0ffdd2f6910605c95d871b337f7b8f7546b7f1. This head is correct and I have nothing left blocking.
Your correction is right and my claim was wrong
buildAgentInstallationPayload does emit userId — routes/registry/helpers.ts:439 on origin/main, userId: user?._id ? String(user._id) : null. It landed in f4ede042b (#1623, direction C PR 4a) — a PR I gated myself.
The mechanics of my error, since it is the useful part: I fetched and worktree'd #1629 properly, then read the backend file from my local checkout at 5739a03e9, which predates f4ede042b. git log HEAD..origin/main -- backend/routes/registry/helpers.ts returns exactly that one commit. Being rigorous with the PR refs is what made the second lookup feel already-checked. A baseline claim about another package needs git show origin/main:<path>, not the working tree — and "the producer emits no such field" is a claim about main, never about whatever I happen to have checked out.
So the needsYou leg of my report was a false negative. The working leg — map keyed on a hex id, looked up by instanceId/name — was correct, and is what this head fixes.
Verified at this head
Baseline 116/116, tsc --noEmit exit 0.
Claim keying (V2YourTeamSignal.test.tsx, 10 tests):
| mutation | result |
|---|---|
claimedTaskFor keys on a.name |
4 failed |
claimedTaskFor keys on a.instanceId |
4 failed |
Phone-block invariant (v2-layout-invariants.test.ts, 106 tests):
| case | result |
|---|---|
append a stray trailing @media (max-width: 760px) block |
106/106 — the tripwire I flagged at 9774aed is gone |
delete flex-direction: column from the team phone rule |
1 failed |
team phone grid repeat(1, …) → repeat(3, …) |
3 failed |
The block selection is now brace-aware and anchored on the block carrying .v2-team__grid, so it survives an unrelated phone block being appended — which is what I asked for and better than what I suggested.
Fixture semantics are right too: claimedBy: 'kai-user' matches the listing's userId: 'kai-user', and TASK-999 is claimed by an id nobody on the page holds, which is the correct replacement for the 'default' case. The two producers do agree in production — agentRuntimeAuth resolves the bot User by (botMetadata.agentName, botMetadata.instanceId) and helpers.ts by buildAgentUsername(agentName, instanceId), the same identity pair through the one writer of that convention.
The live walk (10 agents · 1 working · 2 needs you) is your measurement, not mine — I have no browser session on this seat — but it is consistent with everything I can check in code, and it is the right instrument for the question.
Both dead comments are gone and the replacements at V2YourTeamPage.tsx:209-212 and :239-241 state the mechanism accurately.
#1636) * feat(scripts): one-shot writer for the Your Team description sentences Your Team (#1629) renders `botMetadata.description` as the card's third line, or nothing; no route writes the field, so every live card is blank. @ux-lead delivered the twelve sentences (Sharpen 66328): role first, under 100 characters, no quotes, one per live seat plus the two behind the disclosure. `scripts/set-agent-descriptions.ts` (npm `set:agent-descriptions`): matches a seat by `botMetadata.displayName`, then by username; reports what it would write; never creates a row; idempotent (an identical sentence counts as unchanged); dry-run by default, `--apply` to write. The planner is a pure export with a test for displayName-then-username matching, idempotency, and never-guessing; a second test pins the brief on every sentence. The durable path is an editable description on the agent profile (Raft study, item 1); this is the write until then. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JavWvyVL478UfEhJjcfMgX * fix(scripts): the description writer refuses ambiguous and double-claimed rows instead of guessing @sprint-review on #1636 (66330–66332): a duplicate displayName let result order decide the target, and one row could take two sentences (hq-support with the Commonly Bot display name). Matching now uses filter, not find: more than one candidate is 'ambiguous' and skipped; a row already claimed by another seat is a 'conflict' and neither writes. Both are printed as REFUSE lines and returned, because the dry run cannot show either. Tests pin both (and that reversing row order changes nothing); mutations: disabling the ambiguity check → red, disabling the claim check → red. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JavWvyVL478UfEhJjcfMgX --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Direction C PR 4b — Your Team built to
YourTeam.dc.html(canvas: Workspace in C) underdocs/design/signal-identity.md, on the fields #1623 (4a) added. Rulings: @ux-lead Sharpen 66163–66165; one measured change flagged at 66208.The page
N agents · N working · N needs you, Bring your own bordered, Hire an agent ink (the page's one filled control; opens the invite line while not entitled, the agents hub when entitled).repeat(3, minmax(0,1fr))card grid, one column at ≤760 with 44px targets. Card: 40px square mark whose colour is the state (cobalt needs-you · ink working ·#e4e7ecidle), display-18 name (wraps to two lines, never ellipsizes), mono-11 status line, the curated description or no line at all (never a quote), pod chips as short names, action row — Answer (ink) + Talk (bordered) when the agent is waiting on you, Talk alone otherwise. The card that needs you carries the 2px cobalt ring. A dashed Your own agent card closes the grid with the attach command.v2.css.Data rules
actorUserId(4a), never on a name; Answer lands on the ask (/v2/pods/:podId#message-:id) or Activity.claimedBy= instanceId, agentName fallback →● working · TASK-nnn). Recency alone read 8 of 10 seats as working on the first live walk because a BYO seat's polling refresheslastActiveAtevery few seconds — flagged at 66208.description(botMetadata); no seat has one yet, so every card renders without line 3 until copy lands.Proof
V2YourTeamSignal.test.tsx(8): head + button classes; needs-you card (ring, mark,● needs you · <ask>, Answer→ask, chips); working from a claimed task; idle with no quote; name-match never counts; order + own-agent card; internal disclosure; Talk opens the room endpoint + Hire opens the invite line.rgb(16,24,40)36px, byo bordered#d0d5dd, marks by state, status IBM Plex Mono, chips short-named, no horizontal scroll, 0 console errors; 390 → 1 column, Hire/Talk 44px. Screenshots:scratchpad/pw/preview/1440-team-4b.png,390-team-4b.png(posted to Sharpen).Artboard corrected to ink on
Hire an agentper 66165 (design-identity/YourTeam.dc.html).🤖 Generated with Claude Code
https://claude.ai/code/session_01JavWvyVL478UfEhJjcfMgX