Repository navigation
The batch manager knows no row source; Intake brings rows into a batch - #261
Merged
Merged
Conversation
The dataclass Source becomes RowSource, so that it is not confused with the file source of the workspace; the function from files to a frame, which held the name RowSource, becomes RowFunction. Batch.columns becomes Batch.parameter_columns, the term that the guide uses: a batch table has note columns too. The command names the class in its refusal of a source that is none, so that message names RowSource. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BatchManager did two jobs: it kept the batches of a workspace, and it brought the rows of a row source into a batch (create from a source, take, offered, step, and which batch follows). All of the second job writes `considered`, so it moves as a whole to Intake, which holds the manager and the sources. The manager then knows no row source: create takes a table (rows=, fills=), and both create methods return the Batch, not its label. The parameters that a row source fills are data of the batch: they are kept as the blanks of the template in settings.json, which the Batch writes. So source.json holds the source and the keys considered only, and the Intake is its one writer, as of following.json. A source.json with other entries is refused when read. manager.remove deletes every table of the label and does not write following.json; Intake.following counts a label without a header as none. Intake.create makes the batch with the manager, then writes source.json and following.json, and removes the batch again if one of these is refused. The page, the command, the demo and LoKI hold an Intake where they need a row source or Follow, and reach the manager as intake.manager. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guide draws Intake between the callers and the manager, the step and the row source, and says who writes each file: the intake writes source.json and following.json, and settings.json holds the fills as the blanks of its template. A label names a batch to every method but create, which returns the Batch. The page README, the developer README, the tour and ADRs 0011 to 0013 get the identifiers and the sentences that the split made false; the ADRs keep their decisions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
following.json named a label, and a label can be removed through the manager and made again; the batch made again then followed. Clearing the file would need the manager to know of Follow, or every creator to remember it. So the fact goes with the label: source.json holds "follows", only the Intake writes it, and removing a label removes it. following.json goes. Intake.create with follow first makes the batch, then writes that the batch that followed follows no more, then writes the batch's source.json with "follows": true, so no two batches follow, also when a process stops in between; if a write is refused, the batch is removed and the one before is written to follow again. Intake.following reads the source.json of each batch when the manager's version moved, not at each call. Intake.create checks the label and the spec before it lists the source, which may be slow or raise; the manager's check of a new label is public (check_label) and its create uses the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- FolderDefinitions keeps definitions/format.json and refuses a folder with labels and no or another format, so that a folder whose fills are kept in source.json is not read as one without fills. The command, the demo and the LoKI page say it and exit non-zero. No folder is migrated. - Intake.following passes over a source.json that cannot be read, so one such file does not break every page. - BatchManager.check refuses spec, title and label without rows; both create methods call it first, so Intake.create refuses in the order of the base, before the source is looked up. - Follow without a row source is refused by the request model NewBatch, since no call of the batch layer can express it. - Guides: Intake in the terms table, what a label is, the entries of source.json, what step reaches, and that a process that stops while a batch that follows is made may leave the batch and no batch that follows. - "row source" in place of "source of rows" in the error text. Co-Authored-By: Claude Opus 5.5 <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.
Simon asked, reading the batch guide (#259): why does
BatchManager.createtake the name of a source and not a table, does the manager need to know a source at all, and why doescreatereturn a label?The manager knows no row source. It did two jobs: keep the batches of a workspace, and bring rows of a source into a batch. The second job has three entrances, which all write
considered: making a batch from a source, taking rows by hand, and a step of Follow. They move to a class of their own,Intake, which holds the manager and the row sources:createreturns theBatch. A label is the name of a batch outside the process: its folder, its records, its address on the page and for the command. Code that just made a batch does not need it. Every method that names an existing batch still takes the label.Names.
SourceisRowSource, since the file source is a source too.Batch.columnsisBatch.parameter_columns: the guide distinguishes parameter columns from note columns since #260.What is kept on disk changed, with one writer per file:
settings.jsonfillsas theblanksof the templateBatchsource.jsonsource,considered,followsIntakefollowing.jsonformat.jsonFolderDefinitionsfillsare the parameter columns where an empty cell means that the row waits, with no setting or default in its place. They are data of the batch, so they leftsource.json. A blank ofess.apps.Templateis a parameter that the template gives no value and that each use must fill, which is whatfillsmeans.following.json, and a label removed through the manager and made again then followed again. A fact kept in the label's own files goes with the label. At most one batch follows by the order of writes: the new batch is written, then the old one stops, then the new one follows. A process that stops in between leaves no batch following.fills, and the command then reduced a waiting row with a setting. Nothing is migrated.Checked by a review that ran the code before and after side by side, on the page over HTTP and on the command, and with 2,400 random calls of the manager and
Intakewith refused writes and restarts. What a person sees differs in these points:RowSource.To check by hand:
🤖 Generated with Claude Code