Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
4eb29cb
refactor(workforce): rename worker messages to sendMessage and onMess…
claude Oct 27, 2026
86f9091
feat(workforce): a received message is its own item, and nothing is r…
claude Oct 27, 2026
f201a3e
FIX-2238: landing rules, task-sessions refusal and one budget
claude Oct 27, 2026
9413821
FIX-2238: every worker flow on an installation hears a message
claude Oct 27, 2026
1feba42
FIX-2238: docs, changeset, goal amended, epic seams updated
claude Oct 27, 2026
b03e4fe
Merge main into FIX-2238; review fixes
claude Oct 27, 2026
acdd330
FIX-2238: one chain for a task filed held; drop the dead messaged-wor…
claude Oct 27, 2026
752d290
FIX-2238: a received message's budget is what its chain has left
claude Oct 27, 2026
367eb69
FIX-2238: an answer reaches a worker that hears only in its tasks' se…
claude Oct 27, 2026
5d7ca95
FIX-2238 goal: the ring's own hand-offs aren't stray rows; the herald…
claude Oct 27, 2026
bfbae4c
FIX-2238 goal: 3:budget-left grades what the chain had left when heard
claude Oct 27, 2026
0e91fad
FIX-2238 follow-up: a fresh budget for a task held before it starts, …
claude Oct 28, 2026
0232b15
Merge the merged FIX-2238 branch history (no changes): the follow-up …
claude Oct 28, 2026
570849b
FIX-2238 follow-up: read a finished task session the way the steer ro…
claude Oct 28, 2026
d9d39a5
goal(FIX-2238): the goal's text for sendMessage, and its verdict
claude Oct 28, 2026
c14d50c
Merge remote-tracking branch 'origin/main' into claude/project-thread…
claude Oct 28, 2026
5bb75da
goal(FIX-2238): leg 6's one failure was the goal's timing, fixed in #…
claude Oct 28, 2026
cccdd43
Merge branch 'main' into claude/project-thread-n6abql
jhoffner Oct 28, 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-2238 goal: 3:budget-left grades what the chain had left when heard
A ring that branches spends places before a later message is heard, so
the received budget can be below 6 minus its place. The leg now checks
it is at most that, never negative, and counts down along the ring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NczDiDWiB5JZRCvyAFUpe9
  • Loading branch information
claude committed Oct 27, 2026
commit bfbae4c084024b92036c652bca3f99b4c3af3695
13 changes: 9 additions & 4 deletions goals/shift-manager/workers-message-each-other/legs.mts
Original file line number Diff line number Diff line change
Expand Up @@ -676,13 +676,18 @@ export async function leg3(world: World): Promise<LegResult> {
}
if (stopped === undefined && sent.length <= 6) r.failures.push(`3:ring-stops-at-6 — no session shows a seventh send refused \`budget\``);
if (stopped !== undefined) r.notes.push(`the seventh send was refused in ${stopped.sessionId}: ${errorOf(stopped).slice(0, 160)}`);
// Each received item says what is left: 6 minus its place.
// Each received item says what its chain has left when it is heard: at
// most 6 minus its place (less when the ring branched and spent more
// first), never below 0, and counting down along the ring.
const wrong: string[] = [];
for (const m of sent) {
let previous = Number.POSITIVE_INFINITY;
for (const m of [...sent].sort((a, b) => a.hop - b.hop)) {
const item = (await receivedIn(alice, m.toSession)).find((x) => x.id === m.id);
if (item?.budget !== 6 - m.hop) wrong.push(`${m.id}@${m.hop}: budget ${String(item?.budget)}`);
const budget = item?.budget;
if (typeof budget !== "number" || budget < 0 || budget > 6 - m.hop || budget > previous) wrong.push(`${m.id}@${m.hop}: budget ${String(budget)}`);
if (typeof budget === "number") previous = budget;
}
if (wrong.length > 0) r.failures.push(`3:budget-left — a ring message's received item doesn't say 6 minus its place: ${show(wrong)}`);
if (wrong.length > 0) r.failures.push(`3:budget-left — a ring message's received item doesn't count down from 6 minus its place: ${show(wrong)}`);
await quiet(alice, 300_000);

// A refused send spends nothing: after a new line from the person, a refused send then a sent one, at 1.
Expand Down
Loading