Skip to content

A cell overrides the setting for its row; a column the source fills waits for its file - #256

Merged
SimonHeybrock merged 7 commits into
mainfrom
236-cell-overrides-setting
Nov 20, 2026
Merged

SimonHeybrock merged 7 commits into
mainfrom
236-cell-overrides-setting

Conversation

@SimonHeybrock

Copy link
Copy Markdown
Member

A row added to a batch after a setting was made a column was reduced with the parameter's default, not with the value of the batch, and nothing said so. Measured: a batch made with thickness 2.0 ticked as a column; a row that Follow added later was reduced with thickness 1.0.

The cause was the rule "a parameter is a setting or a column, never both; an empty cell means the default". "Make this a column" copied the setting into each row's cell and removed the setting, so later rows had nothing to take. This replaces the rule and amends ADR 0012.

The rule

flowchart TD
    fills{"the source fills the column?"}
    fills -->|yes| own{"the cell holds a value?"}
    own -->|yes| cell["the cell"]
    own -->|no| waits["nothing: the row waits for its file"]
    fills -->|no| column{"a column whose cell holds a value?"}
    column -->|yes| cell
    column -->|no| setting{"the batch has a setting?"}
    setting -->|yes| value["the setting"]
    setting -->|no| default["the default of the parameter"]
Loading
  • A column is a parameter that a row may give itself. The batch may hold a setting for it, which every row with an empty cell takes, including the rows added later.
  • "Make this a column" adds an empty column and keeps the setting. "Make this a setting" removes the column.
  • A row that takes a setting reads earlier when that setting changes; a row with its own cell stays done.
  • In a batch made from a source, a column that the source fills takes its value from the cell only. An empty cell there means the row waits for its file, whatever the settings or the default. The batch keeps the names its source fills in source.json, and its table keeps those columns.

The rule is in one function, Batch.empty(); cells(), the state of a row, the page's grey value in an empty cell and the command read it.

What a person sees

  • The tab Settings has a field for a column too, marked "a row may give its own", with a button "Default". It has no field for a column that the source fills.
  • An empty cell shows in grey the value the row takes.
  • The Row tab lists every value a row was reduced with and marks the ones that changed.

Choices and costs

  • Three reviews, the first two each found a way to reduce a waiting row with another row's file (a setting given to the transmission column on the page; the command run without its source). The first fix refused such a setting wherever one is written, and one entrance was missed. The rule now sits where values are read, so a stale setting is never used and no entrance has to remember it.
  • A cell emptied after its row was reduced reads earlier, not outdated, if the row then takes another value. Telling the two apart would need the batch to keep where each value came from at the time of reduction.
  • A table file shows an empty cell where a row takes the setting, so the table needs the settings file to say what a row was reduced with.
  • A batch made from a source before this change cannot be opened: its source.json lacks the names the source fills. The page and the command say so; there is no migration, since nothing is deployed.
  • table.with_column and the copying of settings into cells at "New batch" are removed.

Also closed, older than this change: where a source-filled parameter has a default, a waiting row taken by hand was reduced with the default.

To check

  • New batch with "Start with the settings of …", Thickness ticked as a column, Follow on: runs that arrive later are reduced with the batch's thickness
  • Changing a column's setting and Apply: rows that take it read earlier, a row with its own cell stays done
  • A waiting row taken with "Add rows from the runs" reads incomplete and is not reduced

🤖 Generated with Claude Code

SimonHeybrock and others added 6 commits November 20, 2026 12:36
The value of a parameter for a row is its cell; if the cell is empty or the
parameter is no column, the setting of the batch; if the batch has none, the
default. Before, a parameter was a setting or a column, never both, so
"Make this a column" copied the setting into each cell and dropped it, and a
row added later (by Follow, "Add rows from the runs", or by hand) was
reduced with the default, not with the value the batch had.

- Batch keeps all settings, those at columns too; the template that rows
  fill and a stage is opened from is the settings without the columns. An
  empty cell takes the setting in cells(). put changes no setting.
- make_column adds an empty column and keeps the setting. make_setting sets
  the setting to the value that the chosen row (or every row) takes: its
  cell, or, for an empty cell, the setting, which then stays. values() lists
  the values that rows take.
- earlier against outdated per row: a parameter counts as a setting for a
  row if it is no column or the row's cell is empty, read from the table
  now; no state is kept.
- settings.json is a template without blanks holding every setting; a file
  with blanks reads the same.
- create with a source leaves out the settings of the columns that the
  source fills, where an empty cell means a run has not arrived. This
  replaces the copying in Pages.create; table.with_column goes.
- The command takes a template value at a column as that column's setting.
- Page: the settings form has a field per parameter, a column's marked "A
  column: a row may give its own" and allowed unset; the grid shows an
  empty cell in grey as the setting, else the default; "Save settings"
  writes every setting.
- ADR 0012 amended in place; the dropped rule is an alternative. Its
  context defines scope and scan itself, since ADR 0011 no longer does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An empty cell of a column that the source of the batch fills means that
a run has not arrived. With a setting there, a row taken before its file
arrived would be reduced with the file of another sample. The manager
now gives a batch the parameters its source fills (Batch.fills); the
batch refuses a setting at such a column and make_setting of it, and
Batch.settable leaves such values out of settings taken from elsewhere:
another batch at create, Load settings, "Put these settings in the
form", and the template of the command. make_setting of such a column
was allowed before; it is now refused. The settings form has no field
for it.

The field of a column in the Settings tab has Clear, so a column's
setting can be removed for every kind of field. The row tab shows every
value the row took, cells and settings, and marks those that changed.
row_states takes own as a required argument.

Docs: a flowchart of the value of a parameter for a row in batch.md,
truer labels on the arrows to earlier and outdated, and the ADR 0012
alternatives in the conditional.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tting

# Conflicts:
#	packages/essapps/src/ess/apps/batch/web/page.py
The rule that an empty cell of a column that the source fills means the
row waits was enforced where settings are written: refusals in the
constructor, put and the setter, settable at each entrance, and fills
looked up from the registered source. The command without -s read no
fills, kept a setting at transmission, reduced a waiting row with the
transmission run of another sample, and left a batch the page could not
show. A parameter with a default that the source fills, such as offset,
was never covered.

Now the rule lives where the values of a row are resolved,
Batch.empty(), which cells() and so the state read: a column of fills
gives nothing for an empty cell, whatever the settings or the default.
A setting there is never read; the constructor drops one that the
definitions hold. The fills are kept with the batch in source.json, and
a step and offered() ask the batch, not the source, which names a row
waits for. The table of a batch from a source keeps a column for each:
put and make_setting refuse to drop one. Batch.filled, _refuse_filled,
and the branch in make_column go.

Page: "Put these settings in the form" takes the value the row was
reduced with where its cell is empty; the button at a column's field is
"Default" (op reset), as it sets the default, and works at any field;
the grey value of an empty cell is shown as a cell holding it is; the
notice of "Make this a column" names the default when there is no
setting. Column.waits replaces Column.filled.

Docs: the value flowchart asks "the source fills it?" first; the state
diagram says "a value missing", and a setting applied also makes a row
ready.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The constructor refuses a table without a column of fills, as put does,
so a rows.json edited by hand cannot turn a waiting row ready with the
default; a batch made without rows starts with a column per name of
fills. filled() names a column that the source no longer gives and the
batch keeps as filled by it, so offered() and a step say the cause
instead of a KeyError. The rows offered on the page hide the batch's
fills, not the registered source's.

The state diagram in batch.md: incomplete means any problem of the row,
also from a row with a result; an emptied cell reads earlier only if
what the row then takes differs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SimonHeybrock SimonHeybrock self-assigned this Nov 20, 2026
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