Skip to content

A batch that stopped following can follow again - #263

Merged
SimonHeybrock merged 2 commits into
mainfrom
259-follow-again
Nov 23, 2026
Merged

SimonHeybrock merged 2 commits into
mainfrom
259-follow-again

Conversation

@SimonHeybrock

Copy link
Copy Markdown
Member

A batch that stopped following could not follow again. The rule was written when the page got no action for it; that is no reason to forbid it in the batch layer (#259).

intake.stop()                    # no batch follows
# ... runs arrive ...
intake.follow('afternoon')       # 'afternoon' follows again, in place of the batch that follows now
intake.step()                    # adds the rows filled since the stop, and reduces them

The data supported it already: a batch keeps the keys it has considered, so its first step after follow adds the rows of its row source that are filled and not considered. That includes a row that another batch took meanwhile, so a row can be in two batches without a person having put it there. A row left out when the batch was made, or removed by a person, stays out.

At most one batch follows, by the order of writes, as for create(follow=True): the batch that follows now is written to stop, then the other to follow. A process that stops in between leaves no batch following; a refused write leaves the first one following.

The page does not get an action for it. Its question before "Stop following" said that the batch cannot follow again, and now says that the page cannot make it follow again.

Rule 7 of the guide and the section of ADR 0013 on when a batch follows state this.

🤖 Generated with Claude Code

SimonHeybrock and others added 2 commits November 23, 2026 07:46
Intake.follow(label) lets a batch made from a source follow in place of
the batch that follows now. It writes "follows": false to that batch,
then "follows": true to label; if the second write is refused, the batch
before follows again. create shares this code.

The rule that a stopped batch cannot follow again had no reason in the
batch layer: a batch keeps the keys it has considered, so its next step
adds exactly the filled rows it has not considered, also those that
another batch took meanwhile. The page offers no action for it, so the
page is unchanged; the guide, ADR 0013 and the docstrings say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The question before "Stop following" said that the batch cannot follow
again. That holds for the page, which has no action for it, and no longer
for the batch layer (`Intake.follow`).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant