Skip to content

Commit 455ff61

Browse files
committed
spec(FIX-1802): fold review round 1
- The capability's two halves: a capability for the worker's model block and the entries a flow spreads into its own maps; no flow-level `uses`. - FIX-1794 amended to ship the board per session and createTaskFilingCapability(); its only interim part is the answer to "may this session file". Split acceptance there is pointer-only. - The task-session refusal lifts in P2 with the split (S4, S6). - The chain count: one versioned record per chain, keyed by the top board's partition and top task; idempotent reservation by task id, reconciled at the limit, deleted with the top task. BR-22 made exact. - `delegates:` gets its use by capability (a routing flow or the grant). - A touch of any board replays owed settles down the chain (BR-17). - coordinatorSessionId and the delegate module's wording renamed in P1. - FIX-1789's contract and FIX-1791's BR-1a and BR-4 marked as amended. - Filing kit checklist, POC guardrail and contention note in PLAN. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XMg2dz8sMEdyzCQTRsaMTV
1 parent 95c34cf commit 455ff61

16 files changed

Lines changed: 186 additions & 163 deletions

File tree

‎specs/issues/FIX-1789/EVOLUTION.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ The epic's [EVOLUTION](../../epics/FIX-1786/EVOLUTION.md) already records the ma
1515
ledgers as superseded by FIX-1792; this issue leaves them as they are, since nothing at org scope is
1616
refused ([Q2](DECISIONS.md#q2)). Compare each prior intent with current code before implementing:
1717
approved intent is not shipped behaviour.
18+
19+
Amended after merge (FIX-1802's spec PR #2839): [FIX-1802's D1](../FIX-1802/DECISIONS.md#d1)
20+
puts the filing grant in the worker contract, so `workerConfigSchema()` gains `filing` and
21+
`delegates`, the coordinator's `delegates` key moving there. Marked in SPEC's *What stays as it
22+
is*; the three checks and their refusals are unchanged.

‎specs/issues/FIX-1789/SPEC.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ flow one shared copy. The dashed path is open on purpose ([Q2](DECISIONS.md#q2))
102102
## What stays as it is
103103

104104
- `workerConfigSchema()` stays the one authority on configuration, with its six keys.
105+
*Amended after merge ([FIX-1802 D1](../FIX-1802/DECISIONS.md#d1)):* it gains `filing` and
106+
`delegates`, and the coordinator's `delegates` key moves there.
105107
- How a door is found, and the default to `agent` for a worker that names no flow.
106108
- `KindRefusedHireError` and `seatDoorOf`: this issue calls them and changes neither. FIX-1796
107109
renames them.

‎specs/issues/FIX-1791/BUSINESS-RULES.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ session on Alice's coordinator. The *proved by* column is the check the plan run
1010
| # | When | Then | Proved by |
1111
|---|---|---|---|
1212
| BR-1 | A conversation's delegates are read or changed for the first time, by a post or an action | They become a copy of the coordinator's defaults, in server-written session state (FIX-1788 BR-18a). The defaults may be empty: FIX-1793's project coordinator starts with none. The configuration is not written | CI |
13-
| BR-1a | A delegate action names a session that isn't linked to a coordinator worker | Refused, naming why. Nothing written. A guard: every session on a worker flow is linked at create (FIX-1788 BR-10, BR-14), so any coordinator conversation takes the actions | CI |
13+
| BR-1a | A delegate action names a session that isn't linked to a coordinator worker. *Amended after merge ([FIX-1802 D1](../FIX-1802/DECISIONS.md#d1)):* or to any worker whose delegates have a use, a routing flow or the filing grant | Refused, naming why. Nothing written. A guard: every session on a worker flow is linked at create (FIX-1788 BR-10, BR-14), so any coordinator conversation takes the actions | CI |
1414
| BR-2 | Alice adds a worker on her roster, her own or a standard one, with `addDelegate` in the app or through the coordinator's tool | It joins this conversation's delegates as one delegate record: the worker and an optional note on what it's good at. The record can also hold a target the caller resolves (a project's workstream entry address for FIX-1793), written only through the internal delegate mutation FIX-1793's entry paths call. The public actions and the tool take no target: one sent to `addDelegate` is refused, naming the field. Her other conversations don't change | CI · VG leg d |
1515
| BR-3 | Alice adds Bob's worker, or a name nobody holds | Refused with one answer for both, naming the id. Nothing written | CI · VG leg f |
16-
| BR-4 | Alice adds a worker whose flow can't take a delegated post | Refused, naming the flow. Nothing written | CI |
16+
| BR-4 | Alice adds a worker whose flow can't take a delegated post. *Amended after merge ([FIX-1802 D1](../FIX-1802/DECISIONS.md#d1)):* a post or a task; each use checks its own | Refused, naming the flow. Nothing written | CI |
1717
| BR-5 | Alice adds a delegate record already on the list, or a 26th | Refused, naming the delegate or the cap of 25. Both go by the record, not the bare worker: one worker with two targets is two delegates. The roster check still runs on the worker | CI |
1818
| BR-6 | Alice removes a delegate, including one fired since it was added | The removal names the delegate record (worker plus optional target), and only that record leaves this conversation's list; another record led by the same worker stays. Removal checks the list, not the roster. Posts already delivered to it still take their answer. If it was the fallback, the conversation has none | CI · VG leg d |
1919
| BR-6a | Alice sets the fallback to a delegate on this conversation's list, or clears it, in the app or through the tool | It names the delegate record (worker plus optional target) and changes for this conversation only. A record not on the list is refused, naming it | CI · VG leg e |

‎specs/issues/FIX-1791/EVOLUTION.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ covers the old worker naming rule and the mailbox boards at set level; this is t
2121

2222
None of these is wholly superseded until FIX-1792 removes the mailbox flow. Re-check each
2323
cited intent against `main` before building: FIX-1788 changes how a worker is reached.
24+
25+
Amended after merge (FIX-1802's spec PR #2839): [FIX-1802's D1](../FIX-1802/DECISIONS.md#d1)
26+
makes the delegate list who works for any worker. BR-1a's actions reach any worker whose
27+
delegates have a use (a routing flow or the filing grant), and BR-4 accepts a delegate that takes
28+
a post or a task, each use checking its own. Both rows are marked. FIX-1802 also renames
29+
`coordinatorSessionId` (its S3), reading a stored key under the old name.

‎specs/issues/FIX-1794/BUSINESS-RULES.md‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ is the session a task runs in. The *proved by* column is the check the plan runs
1616
| BR-4 | The delegate record carries a target (a FIX-1793 workstream) | Refused, saying a workstream takes posts, not tasks | CI |
1717
| BR-5 | The task names no assignee, and the conversation has exactly one delegate | It goes to that delegate | CI |
1818
| BR-6 | The task names no assignee, and the conversation has none or several | Stored, pending, and the filing's answer says to assign it. No order picks one | CI |
19-
| BR-7 | A filing would put a task more than five boards below the top of its chain ([D2](DECISIONS.md#d2)). Moves with the split if [Q](DECISIONS.md#q) moves it; this issue then refuses any filing from a task session, saying it can't split yet, until [FIX-1802](../FIX-1802/BUSINESS-RULES.md)'s grant replaces the refusal (epic D8, amended after merge) | Refused, naming the limit. Nothing stored | CI |
19+
| BR-7 | A task session files, by app or tool. *Amended after merge:* [Q](DECISIONS.md#q) moved the depth limit ([D2](DECISIONS.md#d2)) to [FIX-1802](../FIX-1802/BUSINESS-RULES.md), and this is the interim rule until it lands | Refused, saying it can't split yet. Nothing stored | CI |
2020
| BR-8 | A filing carries a board, a ledger, an owner, a depth or a partition | Ignored, or refused where the schema names it. Each comes from the conversation's server-written data | CI |
2121
| BR-9 | The same task is filed twice, by id | The second adds nothing. If the row is still pending, it triggers the board's run again, which is idempotent; otherwise it starts nothing | CI |
2222

@@ -65,16 +65,14 @@ check. A reassigned task runs at once.
6565

6666
## The chain
6767

68-
BR-30 to BR-32 are the split, and ship here only if [Q](DECISIONS.md#q) keeps it; otherwise
69-
they move to its follow-up with goal leg b, and BR-33 holds at one level. *Amended after merge:*
70-
Q moved them, and that follow-up, [FIX-1802](../FIX-1802/BUSINESS-RULES.md), is in the MVP (epic D8).
68+
BR-30 to BR-32 are the split. *Amended after merge:* owned by
69+
[FIX-1802](../FIX-1802/BUSINESS-RULES.md) (its BR-14 to BR-19), in the MVP (epic D8), and not
70+
exercised in this issue's goal. BR-33 holds at one level.
7171

7272
| # | When | Then | Proved by |
7373
|---|---|---|---|
74-
| BR-30 | A coordinator delegate's task session splits its task | It files the pieces on its own board, for its own delegates, under BR-1 to BR-9. The pieces are Alice's | CI · VG leg b |
75-
| BR-31 | It has filed its pieces and its turn ends | Its own task waits on the board above: parked, marked as waiting on its pieces, with no notice for that park. Nothing lapses while it waits | CI · VG leg b |
76-
| BR-32 | The last open piece ends, after any turn its notice woke | Its task settles on the board above: `completed` with the pieces' outputs when none failed for good, `errored` naming the ones that did. It settles through the binding written when it parked (that row's partition and claim ticket), never a coordinate from input or a payload, and still does after a restart. The last piece's ending writes the settle as owed; only the settle clears it, so if the turn its notice woke fails, the next touch of the board settles it, once. That board's conversation hears it | CI · VG leg b |
77-
| BR-33 | Any session in a chain is listed | Every one is Alice's. Bob's workers never appear, because every assignee passed BR-2 | VG legs b and d |
74+
| BR-30 to BR-32 | A task session splits its task, waits parked, and settles from its pieces | Owned by FIX-1802 (its BR-14 to BR-19); not exercised in this issue's goal | FIX-1802 |
75+
| BR-33 | Any session in a chain is listed | Every one is Alice's. Bob's workers never appear, because every assignee passed BR-2 | VG leg d |
7876

7977
## Failure taxonomy
8078

‎specs/issues/FIX-1794/DECISIONS.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,19 @@ the docs state the cost per level.
9191
the same write, and only the board's run clears it. A wake refused or lost to a crash leaves
9292
it for the next filing or action on the board to retry; with no sweeper, it waits for that
9393
touch. Filing a still-pending task's id again re-triggers the wake, idempotently.
94-
- **If the split stays here ([Q](#q)), a waiting task settles through its own board.** Parking
95-
it writes a parent binding, server-side and recoverable: the row's partition and its claim
96-
ticket. After the `onTaskSettled` turn the last piece's notice woke, that row settles through the
97-
board that owns it, with that binding, never with a coordinate a caller or a payload supplies.
98-
The last piece's ending writes the settle as owed, and only the settle clears it, so a failed
99-
turn leaves it for the next touch of the board, as an owed notice is.
94+
- **A split task settles through its own board: FIX-1802's** ([Q](#q); *amended after merge*).
95+
Its parent binding (the row's partition and claim ticket) and settle-owed marker are carried
96+
there as written in S8.
10097
- **The partition is the conversation's incarnation**: its id plus a value minted at its birth
10198
that only the server writes, the same incarnation FIX-1791 keys delegate sessions by. A
10299
conversation deleted and created again starts with an empty board; the old rows stay in the
103100
store, unread (BP-030).
104101
- **Who may file is FIX-1802's** (*amended after merge*, epic [D8](../../epics/FIX-1786/DECISIONS.md#d8); this line read "a worker that
105-
splits its task is a coordinator"). This issue files from coordinator conversations, through one
106-
module that asks "may this session file"; [FIX-1802](../FIX-1802/DECISIONS.md#d1) replaces the
107-
answer with a grant in the worker's file, on any worker flow. Any worker flow takes tasks.
102+
splits its task is a coordinator"). This issue ships the final shape: a board per session and
103+
filing as `createTaskFilingCapability()` (S3, S4). Only its answer to "may this session file" is
104+
interim, "a coordinator conversation, not a task session";
105+
[FIX-1802](../FIX-1802/DECISIONS.md#d1) swaps in a grant in the worker's file. Any worker flow
106+
takes tasks.
108107
- **Mailbox boards stay until FIX-1792**, which moves each onto this shape or a workstream (epic
109108
[D5](../../epics/FIX-1786/DECISIONS.md#d5)) and deletes `mailboxTaskLists` with them.
110109

@@ -197,8 +196,9 @@ left.
197196
row like a notice, so a failed turn can't strand it; the wake marker written with the add; a
198197
breadth cap named beside D2.
199198

200-
- **Amended after merge (FIX-1802's spec PR)** — epic [D8](../../epics/FIX-1786/DECISIONS.md#d8) brought FIX-1802 into the MVP and made
201-
filing a tool any worker can be granted. Q's card, *decided, not asked*, S4, BR-7, the chain's
202-
rules and the docs draft now point there; nothing this issue builds changes.
199+
- **Amended after merge (FIX-1802's spec PR #2839)** — epic [D8](../../epics/FIX-1786/DECISIONS.md#d8) brought FIX-1802 into the MVP and made
200+
filing a tool any worker can be granted. This issue now ships the board per session and the
201+
filing capability, so FIX-1802 only swaps the answer to "may this session file". The split's
202+
acceptance (leg b, BR-30 to BR-32, S8, S10, V6) points there; BR-7 is the interim refusal.
203203

204204
**Open: none.** [Q](#q) is answered: the split moves to FIX-1802, which is in the MVP (epic D8).

‎specs/issues/FIX-1794/EVOLUTION.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
Amended after merge (FIX-1802's spec PR): epic [D8](../../epics/FIX-1786/DECISIONS.md#d8) (the product owner, 2026-10-06) reversed
1414
[Q](DECISIONS.md#q)'s answer. The split ships in the MVP as [FIX-1802](../FIX-1802/SPEC.md), which
1515
builds right after this issue, and filing is a tool any worker can be granted, not what makes a
16-
coordinator. The places that said only a coordinator files, that a task session refuses to file, or
17-
that the split waits for a later issue now point there: SPEC (the people table, leg b's note, the
18-
sign-off), DECISIONS (Q, *decided, not asked*), BR-7 and the chain's rules, S4, the follow-ups and
19-
the docs draft. What this issue builds is unchanged: until FIX-1802 lands, coordinator
20-
conversations file and a task session's filing is refused.
16+
coordinator. Since no implementation had started, this issue ships the final shape: a board per
17+
session (S3) and filing packaged as `createTaskFilingCapability()` (S4). Its one interim part is
18+
the answer to "may this session file": a coordinator conversation, and never a task session
19+
(BR-7), until FIX-1802's grant replaces it. The split's acceptance (leg b, BR-30 to BR-32, S8, S10,
20+
V6) is pointer-only, owned by FIX-1802. Also updated: the people table, the sign-off, Q, *decided,
21+
not asked*, the follow-ups and the docs draft.
2122

2223
`sharedToLineage` itself (FIX-1068, and [FIX-1084](../FIX-1084/SPEC.md)'s routing rule) is a
2324
neighbour, not a predecessor: it keeps working as shipped. The epic's [D5](../../epics/FIX-1786/DECISIONS.md#d5)

0 commit comments

Comments
 (0)