Repository navigation
A batch that stopped following can follow again - #263
Merged
Merged
Conversation
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>
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).
The data supported it already: a batch keeps the keys it has considered, so its first step after
followadds 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