Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
2525ad6
fix(goals): the built-in kind goal hires onto one copy of agent (FIX-…
claude Oct 9, 2026
aed8ce4
fix(goals): the held-package goal runs its seats on one agent copy (F…
claude Oct 9, 2026
55634c0
fix(goals): the capabilities goal builds its kind on the installation…
claude Oct 9, 2026
4221471
fix(goals): it-shows-who-is-on-shift on one copy per flow, asks by wo…
claude Oct 9, 2026
1fdfb1f
fix(goals): the chief-of-staff desk on one copy per flow (FIX-1824)
claude Oct 9, 2026
190b89f
fix(goals): it-draws-v2s-look reads seat asks through the shared help…
claude Oct 9, 2026
e5b3f6a
fix(goals): multi-seat-collab and its two DevTool siblings read a sea…
claude Oct 9, 2026
d22d161
fix(goals): the skinned-shell closure reads asks by the worker a sess…
claude Oct 9, 2026
22e135b
fix(goals): re-point the optimistic-reply control at the conversation…
claude Oct 9, 2026
accb40c
fix(goals): the skinned shell grades the theme mark; pickShift moves …
claude Oct 9, 2026
f80e923
fix(goals): part 4 pins a conversation's session on the seat's flow (…
claude Oct 9, 2026
55bbc65
fix(goals): it-shows-and-stops-a-task-run compares a run's flow with …
claude Oct 9, 2026
8d831cb
fix(goals): part 3 lets optimistic-turn redden the em door leg too (F…
claude Oct 9, 2026
9f9351b
docs(goals): the closure's verdict rows on the theme mark, every part…
claude Oct 9, 2026
360f03c
docs(goals): it-draws-v2s-look's verdict row with pickShift shared (F…
claude Oct 9, 2026
0ad8b70
fix(goals): it-takes-its-look-from-the-design-system on the theme mar…
claude Oct 9, 2026
d3b2098
fix(shift-manager): the theme mark's svg paints no fill of its own
claude Oct 9, 2026
d468817
docs(goals): it-takes-its-look-from-the-design-system green on the th…
claude Oct 9, 2026
9cc8f83
poc: count pending asks without grouping them by seat
cursoragent Oct 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(goals): part 4 pins a conversation's session on the seat's flow (…
…FIX-1824)

FIX-1788 P4 has Shift Manager open the person's session with a seat on the
flow the seat runs on, naming its worker, before the door runs in it
(lib/conversation.ts). ER-15's seam list didn't name that write, so part 4
was red on every run. It is now allowed there and pinned: one
createSession, on seat.kind, with state naming seat.id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XMg2dz8sMEdyzCQTRsaMTV
  • Loading branch information
claude committed Oct 9, 2026
commit f80e923612da59fc80bde665aa11909293fe5649
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export function part4(base: string, report: Report): void {
"sendAction(": ["lib/send.ts", "lib/transcript.ts", "lib/talk.ts"],
"abortRequest(": ["lib/run.ts"],
"resumeSuspension(": ["lib/reads.ts"],
"createSession(": ["lib/reads.ts"],
"createSession(": ["lib/reads.ts", "lib/conversation.ts"],
};
const writes: string[] = [];
for (const file of own) {
Expand Down Expand Up @@ -392,7 +392,15 @@ export function part4(base: string, report: Report): void {
const creates = [...reads.matchAll(/\bcreateSession\(\s*\{([^}]*)\}/g)].map((m) => m[1]!);
const createCount = reads.match(/\bcreateSession\(/g)?.length ?? 0;
if (createCount !== creates.length || creates.some((args) => !/\bflowKind:\s*ROOM_KIND\b/.test(args))) report.fail("P4:ER-15", "lib/reads.ts creates a session on a kind other than the room kind");
report.note(`P4 ER-15: Shift Manager's writes are [${writes.join("; ")}]: the seat's door (send.ts), the mailbox's post (transcript.ts), the project room's ${talkCalls.join("/")} on the room kind (talk.ts; ${roomCalls.length} call(s)), the person's room session (reads.ts; ${creates.length} createSession on ROOM_KIND), Interrupt's abort (run.ts) and the one resume (reads.ts); Inbox's reply is graded by FIX-1690's check in part 3`);
// A conversation's first line (FIX-1788 P4): a worker has no flow of its own, so the person's
// session with a seat is opened on the flow the seat runs on, naming it, before the door runs in it.
const conversation = stripComments(readFileSync(join(src, "lib", "conversation.ts"), "utf8"));
const opens = [...conversation.matchAll(/\bcreateSession\(\s*\{([^}]*\}[^}]*)\}/g)].map((m) => m[1]!);
const openCount = conversation.match(/\bcreateSession\(/g)?.length ?? 0;
if (openCount !== 1 || opens.length !== 1 || !/\bflowKind:\s*seat\.kind\b/.test(opens[0]!) || !/\bstate:\s*\{\s*\[WORKER_ID_STATE_KEY\]:\s*seat\.id\s*\}/.test(opens[0]!)) {
report.fail("P4:ER-15", "lib/conversation.ts opens a session other than the seat's own, on its flow and naming its worker");
}
report.note(`P4 ER-15: Shift Manager's writes are [${writes.join("; ")}]: the seat's door (send.ts), a conversation's session opened on the seat's flow naming its worker (conversation.ts; ${opens.length} createSession), the mailbox's post (transcript.ts), the project room's ${talkCalls.join("/")} on the room kind (talk.ts; ${roomCalls.length} call(s)), the person's room session (reads.ts; ${creates.length} createSession on ROOM_KIND), Interrupt's abort (run.ts) and the one resume (reads.ts); Inbox's reply is graded by FIX-1690's check in part 3`);

// One ask rendering: Inbox's detail and the stream's card draw through AskCard.
for (const surface of ["Inbox.tsx", "Stream.tsx", "ChiefOfStaff.tsx"]) {
Expand Down