Skip to content

Specify the one table every surface uses - #1128

Merged
Yaraslaut merged 380 commits into
masterfrom
feat/table-pending-cells
Nov 28, 2026
Merged

Yaraslaut merged 380 commits into
masterfrom
feat/table-pending-cells

Conversation

@Yaraslaut

Copy link
Copy Markdown
Member

Design only: no code. Adds docs/spec/table/table.md, the spec for one generic, optimized table that every surface reuses. Refs #1085; this PR does not close it.

What the spec covers

  • A table is a description. Any C++ model can offer zero, one or many tables (BRIDGE_REGISTER_TABLE). Columns can depend on the session, and generic pages go on the wire. Typed rows are a convenience layer on top.
  • One pipeline for document table nodes over rows, model-backed tables, forms collections and server pages, with the fate of each existing path.
  • Unloaded cells and data levels. The issue's core:
    • three-valued filters with undecided rows;
    • unloaded cells sort last;
    • a query loads only the levels its shown, sorted and filtered columns need;
    • partial pages and keyed refetches;
    • arrival is pushed through RemoteServer::announce, with no polling.
  • Caching layers:
    • a framework-owned server LevelCache (load once, deduplicated, explicit invalidation tied to effects, leases and backoff);
    • query-cache rules for partial pages;
    • PageWindow under changes;
    • a server-side view cache.
  • Where sort and filter run, with a single-threaded browser client (Qt WASM) treated as first-class.
  • Configuration:
    • column reorder, hide, resize and pin;
    • chained sort;
    • Excel-like header filters with distinct values and oneOf;
    • column groups with any/all/at-least/exactly/together quantifiers;
    • values with mixed units (Measure with a unit registry filled at run time);
    • copy, a status line, saved views.
  • Persisted state through an injected table::ITableStateStore, loaded before the first query.
  • Performance: a benchmark fixture (bench::WideTableModel, in memory, no database) and budgets at 100,000 × 300 for the server, wire, caches, the frontend at 60 fps (including column virtualization) and the browser.
  • The rest: invariants, API surface, tests, failure modes, alternatives, open questions, and a delivery order (steps 0–10).

engine.md, database_pages.md and the spec index link to it. Sections owed in neighbouring specs are listed with the step each lands in.

Review status

  • Proposed and revised by a design agent, then given one adversarial review (Fable) against the code on master.
  • Every review finding was checked against the code and applied; the table of review items is in the session.
  • Not reviewed since that revision.
  • All budgets are derived from the measurements in engine.md or marked provisional until step 0 records baselines.
  • Nothing was built or measured for this PR.

Open questions

  • Grouping text in a store by the collator's fold.
  • Level-cache invalidation in local mode.
  • Stable offscreen frame timing on the CI image.
  • The level cache's shard count.
  • Concurrent views saves without a conditional write in IPreferencesStore.

🤖 Generated with Claude Code

https://claude.ai/code/session_01No1NzmrVC1p6J5NnZm43g2

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active critical findings expose use-after-free risks, derived-value handling defects, compilation breaks, and failures in the single-threaded Emscripten target.

11 open issues
What changed in this PR

This PR advances morph’s shared table pipeline across document, forms and model-backed views, with terminal and Qt Quick support. It includes implementation and verification infrastructure for the unloaded-cell and selective-loading work tracked in #1085.

Changes:

  • Extend table and form contracts for data levels, derived values, mixed units, persisted state and change notifications.
  • Add frontend support for table configuration, windowed layouts, clipboard operations and row-state styling.
  • Expand regression tests, benchmarks and WebAssembly CI; migrate LIMS paging to table::apply and update specifications.
File Description
tests/​ui_interpreter_support.hpp Adds configurable catalogs and table/form fixtures.
tests/​tui/​test_tui_forms.cpp Tests view-wide selection and initial row rendering.
tests/​test_views.cpp Tests data-level metadata propagation.
tests/​test_ui_theme_values.cpp Tests row tokens and opacity validation.
tests/​test_ui_table.cpp Tests table configuration callback wiring.
tests/​test_ui_table_row_span.cpp Adapts span tests to sort chains.
tests/​test_ui_queueing_dispatcher.cpp Updates queued-call initialization for stop tokens.
tests/​test_ui_preferences.cpp Tests reserved table-state namespaces.
tests/​test_ui_interpreter_table.cpp Updates filtering, sort-chain and selection expectations.
tests/​test_ui_interpreter_gallery.cpp Tests typed paged-table mounting.
tests/​test_ui_interpreter_commands.cpp Covers model-backed table lowering.
tests/​test_ui_document_rules.cpp Tests table configuration constraints.
tests/​test_ui_document_page.cpp Updates localized table-header expectations.
tests/​test_ui_conformance.cpp Expands table interaction and clipboard checks.
tests/​table/​test_table_sort.cpp Tests unloaded-cell ordering and stability.
tests/​table/​test_table_engine.cpp Updates layout fitting and thread tagging.
tests/​table/​test_table_changes.cpp Tests unloaded-cell arrival and incremental repair.
tests/​table/​table_fixtures.hpp Adds level, group and precision-aware fixtures.
tests/​table/​row_commits.hpp Adds a controllable row-commit recorder.
tests/​qt/​test_qt_keywords.cpp Checks additional UI headers with Qt keywords.
tests/​qt_quick/​wide_rows_document.hpp Serializes shared frontend benchmark documents.
tests/​qt_quick/​wasm/​wide_rows_baseline.cpp Adds browser mount and scroll measurements.
tests/​qt_quick/​wasm/​CMakeLists.txt Defines browser benchmark targets.
tests/​qt_quick/​test_qt_quick_theme.cpp Tests table theme defaults and overrides.
tests/​qt_quick/​test_qt_quick_interpreter.cpp Tests initial table-row visibility.
tests/​qt_quick/​CMakeLists.txt Links table fixtures and frontend benchmarks.
tests/​net/​CMakeLists.txt Adds table and partial-row push tests.
tests/​forms/​test_forms_derive.cpp Tests derived-value preparation and schemas.
tests/​CMakeLists.txt Shares native/WebAssembly tests and benchmark fixtures.
src/​ui/​theme.cpp Validates opacity token ranges.
src/​ui/​process_state.cpp Provides table runtime slots and cache factories.
src/​ui/​expression.cpp Shares value comparisons and tracks row-field reads.
src/​tui/​widget.hpp Adds row styling, tooltip and context-menu hooks.
src/​tui/​widget.cpp Implements dimming, context presses and range reporting.
src/​tui/​list_widgets.hpp Declares reusable header-menu popups.
src/​tui/​context.hpp Tracks pending table-window reports.
src/​tui/​context.cpp Removes destroyed tables from pending reports.
src/​tui/​container_widgets.hpp Declares explicit table-cell layout slots.
src/​tui/​container_widgets.cpp Implements slot-based cell sizing and placement.
src/​tui/​backend.cpp Adds terminal clipboard copying.
src/​qt_quick/​widget.hpp Clarifies pooled-cell visibility documentation.
src/​qt_quick/​theme.cpp Maps table colors and muted opacity.
src/​qt_quick/​qml/​Theme.qml Adds table row-state theme properties.
src/​qt_quick/​qml/​MorphTableHeaderEdge.qml Adds resize and width-reset gestures.
src/​qt_quick/​leaves.cpp Makes menu serialization reusable.
src/​qt_quick/​CMakeLists.txt Registers the header-resize QML component.
src/​qt_quick/​backend.cpp Implements clipboard copy and paste.
include/​morph/​ui/​value.hpp Adds table-specific fractional JSON reading.
include/​morph/​ui/​theme.hpp Declares table tokens and opacity validation.
include/​morph/​ui/​preferences.hpp Reserves table-state storage namespaces.
include/​morph/​ui/​measure.hpp Parses localized measures and filter operands.
include/​morph/​ui/​expression.hpp Exposes shared value-comparison helpers.
include/​morph/​ui/​document.hpp Extends cache metadata and query-schema inspection.
include/​morph/​ui/​author.hpp Supports self-invoking table actions.
include/​morph/​tui/​backend.hpp Declares terminal clipboard support.
include/​morph/​table/​runtime.hpp Defines dispatch executors and view-cache context.
include/​morph/​table/​bands.hpp Defines and validates nested header bands.
include/​morph/​qt_quick/​backend.hpp Declares clipboard operations.
include/​morph/​forms/​views.hpp Derives measure, level and group metadata.
include/​morph/​forms/​field_errors.hpp Excludes derived fields from required-input checks.
include/​morph/​forms/​engine/​field_model.hpp Reads computed/derived markers and array bounds.
include/​morph/​forms/​engine/​collection.hpp Carries column levels into collection sources.
include/​morph/​forms/​engine/​collection_view.hpp Allows shared-table rendering of collection rows.
include/​morph/​forms/​derive.hpp Defines derived-value preparation and round contracts.
include/​morph/​core/​records.hpp Registers table records and previous keys.
include/​morph/​core/​effects.hpp Adds table effects and partial-result metadata.
include/​morph/​core/​detail/​result_walker.hpp Discovers record holders and readiness members.
include/​morph/​core/​changes.hpp Includes previous row keys in notifications.
include/​morph/​core/​change_types.hpp Adds change-observer and announcement interfaces.
include/​morph/​core/​bridge.hpp Routes local handlers through shared invocation.
examples/​lims/​tests/​test_shell_reads.cpp Tests exact counts above the table cap.
examples/​lims/​tests/​test_sample_pages.cpp Simplifies engine-backed paging tests.
examples/​lims/​tests/​test_ledger_scale.cpp Adds page benchmarks and capped-total expectations.
examples/​lims/​tests/​migration_probe.hpp Reuses the configured ODBC driver.
examples/​lims/​tests/​lims_test_support.hpp Removes obsolete timestamp test formatting.
examples/​lims/​README.md Documents paging behavior and measurements.
examples/​lims/​ledger/​include/​lims/​ledger/​models/​ledger_model.hpp Migrates paging declarations to TableQuery.
examples/​lims/​lab/​src/​models/​sample_model.cpp Applies table queries to scoped sample rows.
examples/​lims/​lab/​include/​lims/​lab/​models/​sample_model.hpp Updates sample paging contracts and options.
docs/​superpowers/​plans/​2026-11-17-one-table-HANDOVER.md Records plan status and cross-part decisions.
docs/​spec/​ui/​theme.md Specifies table colors and muted opacity.
docs/​spec/​ui/​preferences.md Describes table-state storage and shared views.
docs/​spec/​README.md Indexes unified table and editing specifications.
docs/​spec/​forms/​views.md Specifies measure, level and group metadata.
docs/​spec/​core/​backend.md Documents table execution, caches and announcements.
CMakeLists.txt Registers public headers and browser targets.
.github/​workflows/​ci.yml Adds WebAssembly table testing under Node.

Review effort: Max

Comment thread .github/workflows/ci.yml Resolved
Comment thread CMakeLists.txt Resolved
Comment thread include/morph/core/bridge.hpp Resolved
Comment thread include/morph/forms/derive.hpp Resolved
Comment thread include/morph/forms/views.hpp Resolved
Comment thread include/morph/forms/derive.hpp Resolved
Comment thread tests/qt_quick/wide_rows_document.hpp Resolved
Yaraslaut and others added 21 commits November 28, 2026 08:35
A collection node's rows are now a table on the engine, over the
session's VectorSource with the collator every other table uses. Each
v-columns entry is a column (v-hidden ones hidden), sortable and
filterable, with the header and table menus, the chooser, the sort
dialog and copy that configureTable gives any table. The row buttons
are a trailing column that no layout arranges. Integer engine keys are
translated to the session's key text for the master-detail selection
and activation. Arrangement, sort and filters persist under
{application, model type, action, screen id, "state"}.

forms::CollectionChrome::rows lets a host or the interpreter replace
the rows table and draw the row buttons through the session.

Tests: three collection cases, the collection added to "one order on
every surface", rowKeys in ui_table_support.hpp, and the U5
interpreter bench (timings are left for the cl-release batch).

Mutations, one case each:

1. chrome.rows not set by the interpreter:
   test_ui_table_model.cpp(4777): FAILED:
     REQUIRE( h.backend.prop(collection, "columns").starts_with("[ID") )
   with expansion:
     false

2. the master-detail selection mapped back as text keys, so it is lost
   when the engine keys rows by integer:
   test_ui_table_model.cpp(4797): FAILED:
     REQUIRE( selected.find('3') != std::string::npos )
   with expansion:
     18446744073709551615 (0xffffffffffffffff)
     !=
     18446744073709551615 (0xffffffffffffffff)

3. the state key shaped like a rows table's ({model "", table node id}):
   test_ui_table_model.cpp(4827): FAILED:
     REQUIRE( stored->has_value() )
   with expansion:
     false

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Crash fix: a `columns` or `saved` point no longer matches a table that
is not model-backed. tablePoint searched every listed table by id and
dereferenced its modelTable. Rows tables and collections are listed too,
and both have a null modelTable. A `saved` point without `of` also
matched any id-less table. Now only tables with a modelTable match, and
an empty `of` matches nothing. Such points hold their choice as ordinary
preferences, as preferences.md now says. The existing documents that
put a `columns` point on a rows table still load.

A collection with a state key now builds its TableViews and loads its
views in the same turn as its state, as the rows and model tables do.

RecordOf's row index is held against the snapshot it was built for.
That snapshot is kept alive, so a later snapshot cannot reuse its
address and hit the index by mistake.

The buttons column's width now counts a label's display cells, not
bytes. Each button gets at least the 8-unit width of a framed button,
plus 2 units of side padding.

Docs: the plan records what Task 13 landed and the third wiring site
that Tasks 14c and 16 must cover. Two wording fixes in engine.md and
interpreter.md. The master-detail case now compares the selection
exactly ("[3]").

Mutations, one case each:

1. a point matched to any listed table by id:
   test_ui_table_model.cpp(4850): FAILED:
     {Unknown expression after the reported line}
   due to a fatal error condition:
     SIGSEGV - Segmentation violation signal
   ("rows table: a columns point naming it holds a preference ...";
   the same mutation also aborts "collection: a saved point without of
   beside an id-less collection is a preference" with SIGSEGV)

2. an empty `of` matching an id-less model table:
   test_ui_table_model.cpp(4875): FAILED:
     CHECK( store->saves() == 0 )
   with expansion:
     1 == 0

3. no TableViews for a collection:
   test_ui_table_model.cpp(4891): FAILED:
     CHECK( parts == std::vector<std::string>{"state", "views"} )
   with expansion:
     { "state" } == { "state", "views" }

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A `columns` point that names a `rows` table with a state key now reads
and arranges that table's layout, as a model table's does: table.md
says these points edit the table's state. Choosing a value writes the
layout into the table's state and saves it. A stored layout, and every
gesture on the table, show at the point. The golden's resultColumns
point therefore shows on screen.

A `saved` point on a `rows` table is still a plain preference: a rows
table has no saved view's name to read. So is a `columns` point on a
rows table that keeps no state, and a `saved` point without `of`.
table.md and preferences.md now say the same.

tablePoints, the read side, now matches nothing for an empty `of`, as
tablePoint does. Before, any gesture on an id-less table wrote that
table's view over the preference.

RecordOf's row index is now keyed on the source's current snapshot. It
is rebuilt once per change of the session's rows, not once per read of
an older snapshot.

Mutations, one case each:

1. a `columns` point on a rows table left a plain preference:
   test_ui_table_model.cpp(4856): FAILED:
     REQUIRE( store->saves() == 1 )
   with expansion:
     0 == 1
   (and CHECK_FALSE( setPreference("cols", 7) ) failed: !true)

2. the stored layout not shown at the point (no tablePoints after
   storedRowsState applies it):
   test_ui_table_model.cpp(4850): FAILED:
     CHECK( readJson(*screen, R"({"pref":"cols.pinned"})") == "1" )
   with expansion:
     "null" == "1"

3. tablePoints matching an empty `of`:
   test_ui_table_model.cpp(4908): FAILED:
     CHECK( readJson(*screen, R"({"pref":"v"})") == R"("Mine")" )
   with expansion:
     "null" == ""Mine""

4. a point that finds no table keeping a state refused:
   test_ui_table_model.cpp(4872): FAILED:
     CHECK( screen->setPreference("cols", ...) )
   with expansion:
     false

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The table menu of every table that keeps a state (model-backed, over
rows with an id, and a collection) gains "Views": the user's own views,
each checked while it is the state's view and labelled "{name}
(modified)" while the arrangement differs from the view as fitted to
the table; "Save view…", "Rename view…", "Remove view", "Set as
default" and "Start from the default view". Over a store that shares,
the shared views follow under the heading "Shared views", with "Save as
my view" and "Publish view…".

Applying a view fits it as stored state is fitted and sets layout, sort
and filters through the gestures' own paths (handlers run where bound),
then records its name in the state's view. Save view… under a name the
user already has is a ReplaceView; a rename onto a taken name is refused
with "A view named {name} exists". Publish goes through TableViews::publish
(the model's publish action), AddView or ReplaceView over a taken shared
name; failures read "This view could not be published: {reason}".

At mount a table applies its state once both state and views have
answered (loadStateAndViews): with no stored state the default view
applies; with defaultOnMount its sort and filters replace the stored
ones and the stored layout stays (ui::stateAtMount).

The view name dialog (table_view_dialog, table_view_name,
table_view_save) is ui::viewNameDialog in table_dialogs.hpp. A table's
saved view name moved to TableConfig::savedView, so a `saved` point
naming a rows table that keeps a state now reads and writes that
state's view (table.md and preferences.md updated).

Tests (morph_tests): six cases in test_ui_table_state.cpp. A socket case
in tests/net/test_push_tables.cpp (publish twice under one name is a
replace) was written by reading: morph_net_tests is POSIX-only and was
neither built nor run. Qt Quick needed no change (its table menu already
handles headings and checkable entries); not built here.

Mutations, one case each, each run once on a fresh build:

1. Save view… always sending AddView:
   test_ui_table_state.cpp(1717): FAILED:
     CHECK( callsOf(store->calls, "views", before) == ... )
   with expansion:
     {  } == { "save expected=1 Saved" }
   test_ui_table_state.cpp(1728): FAILED:
     CHECK( statusOf(h, table).message == "Saved view A" )
   with expansion:
     "A view named A exists" == "Saved view A"

2. The modified mark compared against the unfitted view:
   ui_table_support.hpp(2109): FAILED:
     REQUIRE( found != entries.end() )      (entryOf "Open orders")

3. defaultOnMount applying the default view's layout too:
   test_ui_table_state.cpp(1794): FAILED:
     CHECK( elementValue(*screen, "t", "visibleColumns") ==
            R"(["c1","c2","c3","c5","c6","c7","c8","c9"])" )
   with expansion:
     "["c1","c2","c4","c5","c6","c7","c8","c9"]" == ...

4. The collection not handing its views to its configuring:
   ui_table_support.hpp(2109): FAILED:
     REQUIRE( found != entries.end() )      (entryOf "Views")
   with message:
     kind.name := "collection"

5. A rows table left out of tablePoint for a `saved` point:
   test_ui_table_state.cpp(1885): FAILED:
     CHECK_FALSE( screen->setPreference("v", morph::ui::Value{std::int64_t{7}}) )
   test_ui_table_state.cpp(1891): FAILED:
     CHECK( read->view == std::optional<std::string>{"Other"} )

6. The shared part saved through `save` instead of `publish`:
   test_ui_table_state.cpp(1921): FAILED:
     CHECK( statusOf(alice, aliceTable).message == "Published view Team" )
   with expansion:
     "This view could not be published: the shared views are written by publish"
   test_ui_table_state.cpp(1922): FAILED:
     CHECK( aliceClient.count("publish") == 1 )
   with expansion:
     0 == 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Save view… and Publish view… now go through TableViews::saveView and
publishView. They decide between AddView and ReplaceView at each attempt,
against the document the operation is applied to. A name that another
window or person took after the table loaded meets a Conflict, is read
again and replaced. A rename onto a taken name is still refused.

A default view applied at mount, with nothing stored, is the table's
state from then on (TableStates::start). It is not saved until the next
change, which saves on top of it, so its sort, filters, layout and name
outlast that change.

A rows table knows a column's kind only while the column is in use, and
its engine takes the kind in on its next flush. A view's or stored
state's range filter on a column nothing used was therefore fitted as
Text and dropped, or refused by the engine. TableConfig::prepare puts
those columns in use before fitting. On a rows table, applying a view,
and a stored or default state's filters, go to the engine a task later.
Found by the strengthened "applying a view" case (review M5).

Minors: the Views parent and the heading carry MenuCommand::None, and
offeredEntries keeps an entry that does nothing itself (M2). applyView
compares layouts laid over the columns (M3). interpreter.md says how
defaultOnMount treats a stored view name and that a stored view names an
own view (M4, M7). The socket case's comment states what it checks, and
its mutation is in the code (M1, I3). M6 is left: defaultOnMount is
checked on a rows table only.

Tests: "applying a view" checks a filter that applies (viewCount 2). The
default-at-mount case checks a range filter at mount. New cases: Save
view… under a name another window took after load; a change after the
default view at mount; publishing again under a taken name (in-process,
through the menu); publishing under a name published elsewhere after
load. tests/net/test_push_tables.cpp is still unbuilt (POSIX only).

Mutations, each built with the whole morph_tests target and an exe
timestamp check:

A. Add or replace decided once, against the views loaded
   (`if (saving->upsert && !saving->retried)`). The Save race case:
   test_ui_table_state.cpp(2010): FAILED:
     CHECK( callsOf(store->calls, "views", before) == {..., "save expected=1 Saved"} )
   with expansion:
     { "save expected=- Conflict", "load" } == { "save expected=- Conflict", "load", "save expected=1 Saved" }
   test_ui_table_state.cpp(2011): FAILED:
     "A view named A exists" == "Saved view A"
   The same build on the publish race case:
   test_ui_table_state.cpp(2120): FAILED:
     "This view could not be published: A view named Team exists" == "Published view Team"

B. TableStates::start not taking the document. The change-after-default case:
   test_ui_table_state.cpp(2040): FAILED:
     CHECK( read->view == std::optional<std::string>{"Open orders"} )
   test_ui_table_state.cpp(2044): FAILED:
     CHECK( elementValue(*screen, "t", "sort") == R"([{"column":"c2","direction":"desc"}])" )
   with expansion:
     "[]" == "[{"column":"c2","direction":"desc"}]"

C. publishView always sending AddView. The publish-twice case:
   test_ui_table_state.cpp(2093): FAILED:
     "This view could not be published: A view named Team exists" == "Published view Team"

D. applyView not readying its columns (applied at once). The applying case:
   test_ui_table_state.cpp(1751): FAILED:
     CHECK( elementValue(*screen, "t", "filters").contains(R"("c1")") )
   test_ui_table_state.cpp(1752): FAILED:
     "3" == "2"

E. The stored state's filters sent to the engine in the same task. The
   default-at-mount case:
   test_ui_table_state.cpp(1784): FAILED:
     CHECK( elementValue(*screen, "t", "viewCount") == "2" )
   with expansion:
     "3" == "2"

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A model-backed table's cells get a menu: "Copy", "Copy with headers",
"Filter by this value", "Exclude this value" and, on a column of a declared
group, "Filter by this value in any <group>", then the document's `cellMenu`
entries, lowered in the row's scope with `row`, `column` and `value` bound.
`headerMenu` entries follow a header's built-in entries, read with `column`.
`headerEnabled` (a condition) refuses sort, filter and arrangement gestures
in the status line while false and greys the header and table menus' entries
but copy.

ui::Table and TableOptions gain cellMenu, headerEntries and headerEnabled;
TableWidget gains setCellMenu (recording, terminal and Qt Quick backends).
The mount reads each MenuItem once, untracked, keeps the item behind every
entry path of the open menu, focuses a cell whose menu opens, and routes a
header menu's choice past the built-in entries to the kept item.

Mutations, each run on one case after a full rebuild of morph_tests:

1. Cell menu read in the table's scope (no `row` binding, ctx.scope):
   test_ui_table_model.cpp(5062): FAILED:
     CHECK( menuLabels(h.backend.rightClickCell(table, menuKey(2), mass)) == {..., "-", "mass = 0.2 of 2"} )
   with expansion:
     { "Copy", "Copy with headers", "Filter by this value", "Exclude this value", "-", "" }

2. "Filter by this value" appending to include:
   test_ui_table_model.cpp(5097): FAILED:
     CHECK( filtersOf(*screen) == filterSpec(R"({"columns":{"mass":{"include":[{"oneOf":["0.2"]}]}}})") )
   test_ui_table_model.cpp(5108): FAILED:
     CHECK( ...include == [{"isEmpty":true}] )  with expansion: { {?}, {?}, {?} } == { {?} }

3. Keys bound only while the cell menu is open (RecordingBackend):
   test_ui_table_model.cpp(5155): FAILED:
     CHECK( h.backend.press(table, "Ctrl+O") )  with expansion: false
   test_ui_table_model.cpp(5156): FAILED:
     CHECK( readJson(*screen, R"({"ref":"opened"})") == "3" )  with expansion: "null" == "3"

4. headerEnabled read once at mount:
   test_ui_table_model.cpp(5209): FAILED:
     CHECK( elementValue(*screen, "t", "sort") == R"([{"column":"mass","direction":"asc"}])" )
   with expansion: "[]" == "[{"column":"mass","direction":"asc"}]"

The Qt Quick half (TableImpl::setCellMenu, MorphTable/MorphTableRow and its
test) is written by reading only: Qt Quick cannot be configured here.

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

- While `headerEnabled` is false the cell menu's filter entries are disabled,
  and one chosen anyway is refused in the status line; a built-in header or
  table menu entry chosen after the condition turned false is refused too.
- A table over `rows` serves `cellMenu`: its cells are read as the column's
  filter reads them. The load refusal is gone, so document.md and table.md
  agree again.
- A cell's entries are asked for a key only when the key is one of the chords
  the entries declare (`Table::cellMenuKeys`, `TableWidget::setCellMenuKeys`);
  asking for the focused cell's entries moves no focus and no view.
- Minors: the Qt cell menu is named "Cell options" and gives the focus back to
  the table on close; `headerMenu` adds nothing on a table without menus; the
  menu's fresh row scope is documented.

Mutations, each run on one case after a full rebuild of morph_tests:

A. Cell filter entries not reading headerEnabled:
   -                                column < filterable->size() && filterable->at(column) && headerOn();
   +                                column < filterable->size() && filterable->at(column);
   test_ui_table_model.cpp(5214): FAILED:
     CHECK_FALSE( entryOf(cell, "Filter by this value").enabled )  with expansion: !true
   test_ui_table_model.cpp(5215): FAILED:
     CHECK_FALSE( entryOf(cell, "Exclude this value").enabled )  with expansion: !true

B. A table over rows setting no heldCell:
   +    table->config.heldCell = {};
        // The engine's view holds every row, its record the row as `rows` gave it.
   test_ui_table_model.cpp(5242): FAILED:
     CHECK( menuLabels(h.backend.rightClickCell(table, b, name)) == {"Copy", ..., "-", "name of b"} )
   with expansion: {  } == { "Copy", "Copy with headers", "Filter by this value", "Exclude this value", "-", "name of b" }

C. Every key the table leaves asking for the entries (RecordingBackend::cellKey):
   -        if (!cell || !table->cellChosen() || !std::ranges::contains(table->cellMenuKeys(), chord)) {
   +        if (!cell || !table->cellChosen()) {
   test_ui_table_model.cpp(5160): FAILED:
     CHECK( h.backend.cellMenuAsks(table) == 0 )  with expansion: 2 == 0
   test_ui_table_model.cpp(5163): FAILED:
     CHECK( h.backend.cellMenuAsks(table) == 1 )  with expansion: 3 == 1

The Qt Quick changes are written by reading only: Qt Quick cannot be
configured here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
W6's codec timings and T1, K4, D7 and U5 measured on a cl-release build on
machine A, and D6's byte bound confirmed by its gate case. K4's event path,
D7 and U5's sort and edit miss their budgets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ctrl+A and the select-all box on a model-backed table select the view:
no row is fetched, and the action's RowSelection is resolved on the
server by resolve, or by Table.<id>.resolve from elsewhere.

Server: RowSelection, SelectionPolicy, SelectedRows, ResolveRequest,
RowRef, resolve, detail::membership and table::refuse
(table/row_selection.hpp); MembershipDigest and viewRevision on every
page reply; QueryLimits::maxSelectedRows; TableErrorCode::ViewChanged;
DeclaresSchemaValue writes x-selectionOf and x-rowOf; Table.<id>.resolve
registered by BRIDGE_REGISTER_TABLE. TableRuntime gains `settle`, the
serial owner of resolve's completion (RemoteServer: its server strand):
a Completion's owner must be serial, so neither the table executor nor
an InlineExecutor can own it.

Client: ViewSelection, TableSelection, SelectedCount, SelectAllRefusal
and TableRows::selectView/selectedCount/rowsOf/leftView; element values
selectionSet and selectedCountKind; a Ctrl+click or Shift range edits
`except`; a filter change (a description revision that drops a filter
included) ends the selection, a sort keeps it; RunObserver and
Session::addRunObserver, with session-wide run ids; a viewChanged
refusal is offered again through the status line's "Run on these";
StatusEntry, TableStatus::entries/standing/standingEntries,
setSelectionView and setOnStatusEntry in the recording, terminal and
Qt Quick backends; copy of a selection of the view by page queries.

morph#1161 (Ctrl+click dropping off-screen keys) is not touched: the
selection of the view takes its own path in every backend.

Qt Quick: written by reading; this tree cannot configure it (licence).
morph_net_tests: written by reading; POSIX only, not built here.

Mutations, each seen to fail once:
- resolve's Exact treated as Current (in resolve, the only part only the
  test TU instantiates; a header mutation of MembershipDigest::text did
  not reach the linked binary), "view selection: resolve under Exact":
    expected(731) : Assertion failed: error() called on a std::expected
    that contains a value, not an error
- except never pruned (fitViewSelection's erase predicate false),
  "view selection: a key of except that leaves the view is dropped":
    test_ui_table_model.cpp(4919): FAILED:
      CHECK( *elementValue(h, "t", "selectionSet").field("except") == value("[]") )
- the rerun sending the old body, "view selection: the rows changed":
    test_ui_table_model.cpp(5012): FAILED:
      CHECK( *body.field("rows")->field("view")->field("revision") == Value{std::string{"v2"}} )
- setOnStatusEntry ignored in the terminal, "tui table: select-all asks
  the handler; a status entry reports its id":
    test_tui_table.cpp(1709): FAILED:
      CHECK( chosen == std::vector<std::string>{"clear"} )
      with expansion: {  } == { "clear" }

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…scopes and stale revisions refused

- The digest has a pinned value for {0, 1} and a case where one row leaves
  and another enters, so a digest of the count alone fails.
- A row-scoped table whose function names no scope is SourceContract in
  resolve, as a page query of it is: callers would share views of
  different rows.
- WindowRows::setFilter clears the held view revision, and select-all is
  refused ("Select all is available once the rows have loaded") until a
  reply to the current filter names one.
- "Run on these" is offered only by a table whose filter is the refused
  selection's: another table of the record, or this one under another
  filter, no longer offers it over its own view.
- The owner of resolve's completion is a shared strand the queued work
  keeps alive and the server closes, so a delivery after the server is
  gone is dropped; ResolveInline's comment says what it guarantees.
- Docs: the tableMessage overload's tags; a backend taking setOnSelectAll
  must take setSelectionView; the Qt Quick paragraph reordered; the
  copy test copies fetched rows that differ from the held ones; 17b's
  plan carries filling `retained`.

The mutation that did not reach the binary in 8cf2b1a7 was run by
rebuilding only the test's object and restoring the header's mtime, so the
other objects kept the unmutated inline `text()` and the linker chose one
of their COMDAT copies. Rebuilt whole through the cache launcher
(pace-cc), the same mutation changed the binary (sha1 fdb71e2f... to
223bcbd8..., 25 objects compiled) and failed its case: the cache served
nothing stale.

Mutations, each built whole and seen to fail:
- text() returning a constant (the revision of the filter alone),
  "the digest of a set of keys" and "resolve under Exact":
    test_table_selection.cpp(416): FAILED: forward.text() == "0000...c3f4"
      with expansion: "filter-only" == "00000000000000025614773256aab02f9ad26e76a98ec3f4"
    test_table_selection.cpp(450): FAILED: errorOf(changed) == TableErrorCode::ViewChanged
      (REQUIRE_FALSE( settled.has_value() ) with expansion: !true)
- the revision taken from the snapshot's identity, "the view revision is
  membership":
    test_table_selection.cpp(398): FAILED: apply(...ascending).value().viewRevision == before
      "0000000000000007afb0d23a..." == "00000000000000072b8fb408..."
- the digest of the count alone, swap and pinned cases:
    test_table_selection.cpp(406): FAILED: revisionOf(model, open()) != before
      "000000000000000600000000000000060000000000000006" != (the same)
- dropped keys left in the reply, "a key selection resolves…":
    test_table_selection.cpp(466): FAILED: rows.keys == keysOf({1, 3})
    test_table_selection.cpp(467): FAILED: rows.dropped == 1  with expansion: 0 == 1
- the bound against the view less except, "a view over maxSelectedRows":
    test_table_selection.cpp(479): FAILED: errorOf(over) == TableErrorCode::LimitExceeded
- retained rows left out of membership, "retained rows are in the
  membership":
    test_table_selection.cpp(493): FAILED: settledNow(exact).value().keys == keysOf({0,1,2,3,4,5,8})
- SelectionPolicy written as numbers, "its JSON":
    test_table_selection.cpp(519): FAILED: ... == R"("exact")"  with expansion: ""0"" == ""exact""
- no scope check, "a row-scoped table with no scope is refused":
    test_table_selection.cpp(432): FAILED: errorOf(resolved) == TableErrorCode::SourceContract
- select-all selecting the held keys, "Ctrl+A selects the view":
    test_ui_table_model.cpp(4886): FAILED: elementValue(h, "t", "selectionSet") == value(...view...)
    test_ui_table_model.cpp(4888): FAILED: elementValue(h, "t", "selectedCount") == Value{6}
- any change ending the selection, "its life":
    test_ui_table_model.cpp(4944): FAILED: elementValue(...).field("view") != nullptr
      with expansion: nullptr != nullptr
- undecided rows ignored, "not while membership is open":
    test_ui_table_model.cpp(5016): FAILED: statusOf(h, table).message == "Select all is
      available once 40 rows are decided"  with expansion: "" == ...
- setFilter keeping the old revision, "select-all before the new filter's
  reply is refused":
    test_ui_table_model.cpp(4968): FAILED: statusOf(h, table).message == "Select all is
      available once the rows have loaded"  with expansion: "" == ...
- every table of the record offering the rerun, "only the table whose view
  was refused offers it again":
    test_ui_table_model.cpp(5001): FAILED: statusOf(h, u).message.empty()  with expansion: false
- a Shift range replacing the selection, "a Shift range toggles…":
    test_ui_table_model.cpp(5084): FAILED: except() == value("[1,2,3]")
- copying the held rows only, "copying it…":
    test_ui_table_model.cpp(5114): FAILED: h.dispatcher.count("Table.samples") == sent + 1
      with expansion: 1 == 2
- the view selection kept when the filter goes, "a new description
  revision drops…":
    test_ui_table_model.cpp(5169): FAILED: elementValue(h, "t", "selectionSet") == value(R"({"keys":[]})")
    test_ui_table_model.cpp(5172): FAILED: ...body.find("\"c\"") == npos  with expansion: 52 == ...
- except never pruned and the rerun's old body: run in 8cf2b1a7, whose
  body holds their output; their code is unchanged here.
Not run: the Qt Quick cases (the licence keeps this tree from configuring
Qt Quick) and the net cases (morph_net_tests builds on POSIX only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With retainChanged, the rows an action of this session changed stay in
the view while they no longer match the filter, drawn muted, and the
status line counts them with "Show only matching rows".

Server: TableQuery::retain (left out of the JSON when empty),
QueryLimits::maxRetained = 10'000 bounded by validate, and `unmatched`
on Page, PageRows and GenericPage. detail::mergeRetained merges the
retained rows the base view lacks at their sorted places, per request:
apply, the typed apply and answerQuery page through detail::viewPage,
and the view cache entry is never written. SparseKeys builds keys for
only the rows a merge reads. Engine::retain/retained/isUnmatched, with
JobInput::retained admitted after the job's filter and sort; setFilter
clears them. table::FailedRow.

Client: TableRows::retain (all or none), clearRetained, unmatched,
holdRefetches/releaseRefetches and TableCountsView::retained in
WindowRows, EngineRows and ObservedRows; every query carries the set;
selectView names it, and the held viewRevision is taken only from a
reply to the current set, so Exact resolve keeps working.
SessionOptions::retainHold = 2 s: while an action that declares an
effect on the table runs, record events only mark what they would
fetch, sent as one refetch when it settles or the hold runs out.
changedRowsOf reads a reply's ChangedRows. The lowering: retainChanged,
the over-bound message, the standing "n rows shown that no longer
match", and RowMarks on TableRowLook, drawn by setRowMarks in the
recording, terminal and Qt Quick backends.

Qt Quick: written by reading; this tree cannot configure it (licence).

Mutations, each seen to fail its case (built whole, exe hash changed;
the cache, bound, engine and digest mutations were built together, and
so were the client's "dropped" and "partial add"; each touches only its
own case, and one case was run per mutation):
- retained rows appended after the base view, "retained rows: they
  stay in the view, listed in unmatched":
    test_table_selection.cpp(568): FAILED:
      CHECK( page.unmatched == std::vector<std::int64_t>{0, 1, 6} )
    with expansion: { 5, 6, 7 } == { 0, 1, 6 }
- the merged view written into the shared view cache entry, "retained
  rows: the shared view entry is not changed by one request's rows":
    test_table_selection.cpp(585): FAILED:
      CHECK( first->unmatched == std::vector<std::int64_t>{6} )
    with expansion: {  } == { 6 }
- a retained row counted twice when the filter passes it too,
  "retained rows: retaining adds, never removes":
    test_table_selection.cpp(649): FAILED:
      CHECK( after.size() == afterSet.size() )
    with expansion: 17 == 16
- no bound, "retained rows: the bound and the wire":
    test_table_selection.cpp(677): FAILED:
      REQUIRE_FALSE( refused.has_value() )
- Engine::retain ignored by the job (no retained input), "retained
  rows: a client-mode engine does the same":
    test_table_selection.cpp(720): FAILED:
      CHECK( unmatched == std::vector<bool>{true, true, false, false,
             false, false, true, false} )
    with expansion: { false, false, false, false, false } == ...
- the merged digest without the retained keys, "retained rows: a
  selection of a view with retained rows resolves under Exact":
    test_table_selection.cpp(739): FAILED: ... Bad expected access
- retained keys dropped when the next page arrives, "retained rows:
  the rows an action changed stay in view":
    test_ui_table_model.cpp(5266): FAILED:
      CHECK( lastQuery(h).retain == idsOf({1, 2, 3}) )
    with expansion: {  } == { {?}, {?}, {?} }
- a partial add up to the bound, "retained rows: an action over the
  bound retains none":
    test_ui_table_model.cpp(5308): FAILED:
      CHECK( retainedNow() == 9'999 )
    with expansion: 10000 (0x2710) == 9999 (0x270f)
- no hold, "retained rows: an event before its action's reply is held":
    test_ui_table_model.cpp(5330): FAILED:
      CHECK( h.dispatcher.count("Table.samples") == sent )
    with expansion: 2 == 1
- setRowMarks doing nothing in the terminal, "tui table: a row's marks
  are drawn":
    test_tui_table.cpp(760): FAILED:
      CHECK( buffer.cellAt({.x = 2, .y = 1})->style.dim )
    with expansion: false
- Not run: the Qt Quick case (licence).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The window takes a reply's viewRevision and its unmatched marks only
when the reply's query carried the current retained set. A new case
leaves a page refetch in flight, retains a row, answers the stale page
with revision "old" and unmatched rows, and checks that no row is
counted unmatched and select-all is refused until the reply to the new
set names "new" and [1]. The marks are now gated too, so a page that
carried the old set no longer brings unmatched rows back after "Show
only matching rows".

Also: cases for a retained row the filter cannot decide (in the view,
not undecided), a keyed query over the merged view, and EngineRows'
retain, unmatched, counts().retained, bound and filter change; lines
past the column limit; a history comment; a plan reference in a test
comment; a Doxygen typo.

Mutation, on its own whole-target build (morph_tests sha1
e434f659... before, 1ce3114e... after), "retained rows: a reply to a
query of the old retained set names no revision":

  the check removed, in both pageArrived and rowsArrived:
  -            if (stamp == _retainStamp) {
  +            if (stamp == _retainStamp || stamp != _retainStamp) {  // MORPH_MUT

    test_ui_table_model.cpp(5380): FAILED:
      CHECK( elementOf(*screen, "t").tableRows->counts().retained == 0 )
    with expansion: 1 == 0
    test_ui_table_model.cpp(5383): FAILED:
      CHECK( statusOf(h, table).message == "Select all is available once
             the rows have loaded" )
    with expansion: "" == "Select all is available once the rows have
                    loaded"
    test_ui_table_model.cpp(5384): FAILED:
      CHECK( elementValue(h, "t", "selectionSet").field("view") == nullptr )

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Server: ChangedRow::from and ChangedRows::failed (FailedRow). A table's
record has RecordInfo::previousKeyField "from", and addUpdatesChange
collects it at the same paths as the key, so the change event of an
action that gave a row a new key names both keys; a failed row is not at
a rows path and is not collected.

Client: RowStates (busy runs kept per run, key runs and view runs;
failed marks in the order they failed; move keeps the new key's own
state), TableRows::states and moveKey in WindowRows, EngineRows,
ObservedRows, PageRows and the test FakeRows, TableCountsView::busy,
lockText and refusesEdit. A change event naming a key ends its failed
mark (an event with no keys ends none). The lowering's run observer
makes the rows a run's input names busy (a RowSelection's keys or view
less except, a RowRef's row) and clears their failed marks; at settle,
whatever the outcome, the run's rows stop being busy, and on success
the reply's failed rows are marked and each `from` this session holds
moves the selection, the retained rows and the states to the new key
and publishes KeyMoves to the mount. A selected key that leaves the
view is dropped, deferred while a run that changes the table is in
flight. Every model table row has a look: busy, locked (rowLock
companion), unmatched, and the err tone while failed. Status line
standing "Saving n rows" and "n rows could not be saved" with "Select
them" and "Clear marks". Element value busyCount.

Mount: Table::keyMoves; focus on the old key, or left by it when its row
went, follows the new key, and the highlight too.

Carried from the 17b review: the terminal's busy or locked glyph has a
gutter cell of its own (gained with the first busy or locked row, then
kept), and a busy or locked row's hover says why, over the row's own
tooltip, which comes back when the marks clear. Qt Quick: theme tokens
color.table.busy, color.table.locked and opacity.muted (Theme.tableBusy,
tableLocked, mutedOpacity), checkTheme refuses an opacity outside 0..1,
the busy bar sits inside the selection's bar and follows RTL anchors,
the locked mark is a token wash (lockedWash).

Not built or run here: the Qt Quick half (licence; cannot configure)
and tests/net (POSIX only); both written by reading. The walk is also
covered by a morph_table_tests case, which was run.

Mutations, each on its own whole-target build (exe hash changed), one
case run each:
- m1 the client ignoring `from` (applyReply):
    -  if (row.from && *row.from != row.key && holds(*row.from)) {
    +  if (false && row.from && ...) {  // MORPH_MUT
  exe eb321e02 -> 74668dd3, "key change: the session that ran the action
  moves what it holds":
    test_ui_table_model.cpp(5598): FAILED:
      CHECK( elementValue(h, "t", "selectionSet") == value(R"({"keys":[10,5]})") )
    test_ui_table_model.cpp(5599): FAILED:
      CHECK( rows.states().failure(rid(10)) == std::optional<std::string>{"Locked"} )
    test_ui_table_model.cpp(5602): FAILED:
      CHECK( std::ranges::contains(retained, rid(10)) )   with expansion: false
- m2 no deferral while a run is in flight (rowsChanged):
    -  if (!_changing.empty()) {
    +  if (false && !_changing.empty()) {  // MORPH_MUT
  exe 74668dd3 -> 9210f27c, "key change: the action's event before its reply":
    test_ui_table_model.cpp(5634): FAILED:
      CHECK( elementValue(h, "t", "selectionSet") == value(R"({"keys":[2,5]})") )
    test_ui_table_model.cpp(5637): FAILED:
      CHECK( elementValue(h, "t", "selectionSet") == value(R"({"keys":[10,5]})") )
- m3 a move that does not check `to` is held:
    -  if (std::ranges::contains(keys, to)) {
    +  if (false && std::ranges::contains(keys, to)) {  // MORPH_MUT
  exe 9210f27c -> 0da6924b, "key change: onto a key already held":
    test_ui_table_model.cpp(5660): FAILED:
      CHECK( elementValue(h, "t", "selectionSet") == value(R"({"keys":[7]})") )
- m4 a move that selects `to` whatever `from` was:
    +  if (row.from && *row.from != row.key && (true || holds(*row.from))) {  // MORPH_MUT
    +  } else {  // MORPH_MUT
    +      keys.push_back(to);
    +      reselect = true;
  exe 0da6924b -> a5069833, "key change: a from the client does not hold":
    test_ui_table_model.cpp(5679): FAILED:
      CHECK( elementValue(h, "t", "selectionSet") == value(R"({"keys":[2]})") )
- m5 a selection kept for keys that left the view:
    +  if (false && model.runs != nullptr) {  // MORPH_MUT
           static_cast<TableRuns&>(*model.runs).rowsChanged();
  exe a5069833 -> ef49c777, "key change: another session's event drops the
  old key":
    test_ui_table_model.cpp(5701): FAILED:
      CHECK( elementValue(h, "t", "selectionSet") == value(R"({"keys":[]})") )
- m6 busy state cleared only on success:
    +  if (run.succeeded) {  // MORPH_MUT
           _model->rows->states().settle(run.run);
  exe ef49c777 -> 9d106ba2, "busy rows: a run's rows are busy until it settles":
    test_ui_table_model.cpp(5728): FAILED:
      CHECK( rowMarks(h, std::int64_t{1}) == morph::ui::RowMarks{} )
    test_ui_table_model.cpp(5730): FAILED:
      CHECK( elementValue(h, "t", "busyCount") == Value{std::int64_t{0}} )
    test_ui_table_model.cpp(5731): FAILED:
      CHECK( statusOf(h, table).standing.empty() )   with expansion: false
- m7 run ids from MutationRuntime's own counter:
    -  observer->started(RunStarted{.run = run->sessionRun, ...
    +  observer->started(RunStarted{.run = run->id /* MORPH_MUT */, ...
    (and the same in settled)
  exe 9d106ba2 -> 8ffbbd4c, "busy rows: two mutations' runs do not share an id":
    test_ui_table_model.cpp(5800): FAILED:
      CHECK( states.isBusy(rid(1)) )   with expansion: false
    test_ui_table_model.cpp(5803): FAILED:
      CHECK( elementValue(h, "t", "busyCount") == Value{std::int64_t{2}} )
- m8 a busy set keyed by row only (RowStates::settle frees the run's keys
  from every run):
    +  if (auto const own = _keyRuns.find(run); own != _keyRuns.end()) {  // MORPH_MUT
    +      ... std::erase_if(keys, <in own's keys>) for every run
  exe 8ffbbd4c -> a4ee8a1e, "busy rows: overlapping runs":
    test_ui_table_model.cpp(5776): FAILED:
      CHECK( states.isBusy(rid(2)) )   with expansion: false
    test_ui_table_model.cpp(5779): FAILED:
      CHECK( elementValue(h, "t", "busyCount") == Value{std::int64_t{2}} )
- m9 a failed mark cleared by any event (WindowRows::heard):
    -  _states.clearFailed(*keys);
    +  _states.clearFailed();  // MORPH_MUT
  exe a4ee8a1e -> c06d8fee, "failed rows: marked until the row's next change":
    test_ui_table_model.cpp(5842): FAILED:
      CHECK( states.failure(rid(4)) == std::optional<std::string>{"Locked"} )
    test_ui_table_model.cpp(5843): FAILED:
      CHECK( rowMarks(h, std::int64_t{4}) == morph::ui::RowMarks{.tooltip = "Locked"} )
- m10 lockText reading rowTone's column:
    -  Value const* const cell = row.row.field(description.rowLock);
    +  Value const* const cell = row.row.field(description.rowTone);  // MORPH_MUT
  exe c06d8fee -> a0f6112b, "locked rows: a locked row draws locked and
  refuses an edit":
    test_ui_table_model.cpp(5874): FAILED: CHECK( rowMarks(h, std::int64_t{6}) == ... )
    test_ui_table_model.cpp(5877): FAILED: CHECK( morph::ui::lockText(*six, description) == ... )
    test_ui_table_model.cpp(5878): FAILED:
      CHECK( morph::ui::refusesEdit(rows, indexOf(6), description) )   with expansion: false
- m11 a move that overwrites the new key's failed mark:
    +  if (false && std::ranges::contains(_failed, to, &table::FailedRow::key)) {  // MORPH_MUT
  exe a0f6112b -> 9f21126d, "row states: a move keeps the new key's own state":
    test_ui_table_model.cpp(5901): FAILED:
      CHECK( states.failure(rid(7)) == std::optional<std::string>{"seven"} )
    test_ui_table_model.cpp(5903): FAILED:
      CHECK( states.failedKeys() == idsOf({7}) )   with expansion: { {?}, {?} } == { {?} }
- m12 opacity.muted left unchecked (opacityProblem skips it):
    +  if (path == "opacity.muted") {  // MORPH_MUT
    +      continue;
  exe 9f21126d -> 8518abdb, "ui theme values: a table row's busy, locked and
  muted tokens, and an opacity past 1 refused":
    test_ui_theme_values.cpp(463): FAILED:
      REQUIRE( refused.has_value() )   with expansion: false
- m13 the terminal glyph written over the gutter's first cell:
    -  mark += busy ? kBusyGlyph : locked ? kLockGlyph : " ";
    +  mark = std::string{busy ? kBusyGlyph : locked ? kLockGlyph : mark.substr(0, 1)} + mark.substr(1) + " ";
  morph_tui_tests 7b9de43d -> 04051fb2, "tui table: a busy or locked row's
  glyph hides no mark":
    test_tui_table.cpp(788): FAILED: CHECK( lines.at(1).starts_with("* …apple") )
    test_tui_table.cpp(790): FAILED: CHECK( lines.at(3).starts_with("* #plum") )
- m14 the marks' text written over the row's own tooltip:
    -  base.applyMarksTooltip(said);
    +  base.applyTooltip(said);  // MORPH_MUT
  morph_tui_tests 04051fb2 -> 157fa206, "tui table: a busy or locked row says
  why on hover":
    test_tui_table.cpp(811): FAILED:
      CHECK( apple.hoverText() == "Fresh today" )   with expansion: "" == "Fresh today"
- m15 the walk ignoring `from`:
    +  if (false && info->previousKeyField) {  // MORPH_MUT
  morph_table_tests bbca8385 -> 52ce942c, "changed rows: a changed key names
  both keys, and a failed row neither":
    test_table_description.cpp(874): FAILED:
      CHECK( keys == std::vector<std::string>{"10", "2", "7"} )
    with expansion: { "10", "7" } == { "10", "2", "7" }
- Not run: "tables: a changed key's event names both keys" (POSIX only),
  the Qt Quick table and theme cases (licence).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es an unrealized key

I1: every `from -> key` of a reply goes to the mount as KeyMoves, which
moves its focus and highlight by its own keys (focusKey, focusWas). The
lowering's holds() now gates only its own moves (selection, retained,
states). Before, a focus-only or view-selected `from` whose action's
event came first was held nowhere the lowering could see, and focus
stayed on the row that took its place.

I2: when no realized row holds the new key, applyKeyMoves asks the rows
where it is (locateFocus), as a reset does: a key in the view takes
focus at the located index, and one the view lacks hands focus to the
row at its index. view_tree.md says so.

I3: Theme.tableLocked's default is written in QML's #AARRGGBB order
(#388e8e93); tableBusy has no alpha. A Qt theme case checks Theme's
table-row defaults against themeValues().

Minors: M3 backend_contract.md documents the busy/locked hover fallback;
M4 the keyMoves Doxygen states the event-first path; M5 theme.md quotes
the refusal as `<path>: must be between 0 and 1`; M6 the terminal's
glyph is followed by a gap cell (gutter + 2), so `…` is not read as a
cut. Left: M1 (F6/F7 timings, measured in the cl-release batch), M2
(the highlight move has no case), M7 (busy/locked tokens through
MorphScheme).

Test helpers: answerView answers page queries by their offset and limit,
and mountActingOver mounts over a view larger than one page.

Not built or run here: the Qt Quick half and its new theme case
(licence), tests/net (POSIX only), the Doxygen build (no doxygen).

Mutations, each on its own whole-target build, one case run each:
- r1a moves told to the mount only for a held `from`:
    -  told.emplace_back(*row.from, row.key);
    -  if (holds(*row.from)) {
    +  if (holds(*row.from)) {  // MORPH_MUT
    +      told.emplace_back(*row.from, row.key);
  morph_tests e1a561fc -> 96fc4b74, "key change: focus alone follows a from
  whose event came first" (both sections):
    test_ui_table_model.cpp(5946): FAILED:
      CHECK( h.backend.focusCell(table).first == 9 )
    with expansion: 2 == 9
    test_ui_table_model.cpp(5947): FAILED:
      CHECK( focusedKey(*screen, h, table) == std::optional{rid(10)} )
- r1b no locateRow for a new key no realized row holds:
    -  locateFocus(table);
    +  // locateFocus(table);  // MORPH_MUT
  morph_tests 96fc4b74 -> c1b184a4, "key change: focus follows a new key
  outside the rows in view":
    test_ui_table_model.cpp(5968): FAILED:
      CHECK( h.backend.focusCell(table).first == 299 )
    with expansion: 2 == 299 (0x12b)
- r1c (M6, the terminal case rerun at the new layout) the glyph written
  over the gutter's first cell:
    -  mark += busy ? kBusyGlyph : locked ? kLockGlyph : " ";
    -  mark += " ";
    +  mark = std::string{busy ? kBusyGlyph : locked ? kLockGlyph : mark.substr(0, 1)} + mark.substr(1) + "  ";
  morph_tui_tests 7eb346b7 -> 010ccc0b, "tui table: a busy or locked row's
  glyph hides no mark":
    test_tui_table.cpp(788): FAILED: CHECK( lines.at(1).starts_with("* … apple") )
    test_tui_table.cpp(790): FAILED: CHECK( lines.at(3).starts_with("* # plum") )
- Not run: "qt_quick theme: Theme's table row defaults are the token
  defaults" (licence); its mutation is the token-order literal it names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
N1: the rows' answer to where a moved key is comes from the view after
the action, while the rows held may still be from before it. The mount
now never tells the backend a located index whose held row has another
key: it scrolls there, so the rows are realized, and marks the focus
unconfirmed. On each pass after, an unconfirmed focus is checked by key
(the row at its index, else placeOfKey among the realized rows) and told
once a realized row holds it, so the index cannot drift off the key when
the change that moved it lands. A located row not held is told and
fetched as before, and is confirmed the same way. focusTo and focusFrom
end it.

N2: a key focus left is followed only by the first generation of moves
after it left (applyKeyMoves takes focusWas once). N3: the lowering sets
KeyMoves after it rewrites the selection. N4: view_tree.md's keyMoves
text describes both orders and the by-key confirmation.

Tests: RecordingBackend records, for every setFocusCell, the key of the
row at that view row when it was sent (focusKeys). Both key-change cases
now check that no told focus named another key, and read the mount's own
focus with a move up from it (key 9 in brief case 1, key 299 in the
300-row case).

Left: M1 (F6/F7 timings, cl-release batch), M2 (no highlight-move case),
M7 (busy/locked tokens through MorphScheme). Not built or run here: the
Qt Quick half (licence), tests/net (POSIX only), the Doxygen build.

Mutation, on its own whole-target build: the fix reverted (round 1's
behaviour, the located index told whatever the rows hold there and then
followed by index):
    -  bool const other = !table.focusLeft && table.focusKey && ref && ref->key != *table.focusKey;
    +  bool const other = false && !table.focusLeft && ...;  // MORPH_MUT
    -  if (table.focused && table.focusUnconfirmed && table.focusKey) {
    +  if (false && table.focused && table.focusUnconfirmed && table.focusKey) {  // MORPH_MUT
  morph_tests f82ace90 -> 2e1ec81a.
  "key change: the session that ran the action moves what it holds":
    test_ui_table_model.cpp(5634): FAILED:
      CHECK( named.at(at) == std::optional{rid(10)} )
    test_ui_table_model.cpp(5640): FAILED:
      CHECK( focusedKey(*screen, h, table) == std::optional{rid(9)} )
  "key change: focus follows a new key outside the rows in view" (same exe):
    test_ui_table_model.cpp(5981): FAILED:
      CHECK( (!named.at(at) || *named.at(at) == rid(1000)) )   with expansion: false
    test_ui_table_model.cpp(5986): FAILED:
      CHECK( h.backend.focusCell(table).first == 298 )   with expansion: 297 == 298

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The focus chain and a grid of a form's ObjectArray field (editing.md,
delivery step 1).

View tree: GridFocus, KeyOutcome, CellMarks, MarkedCell and markedCell;
Table/TableOptions gridFocus, onGridFocus, onActivateCell, onFocusOut,
editing, editor, onKey, keyChords, onText; TableRowLook::modified. The
mount keeps a focus chain (the mounted widgets that take focus, shown and
enabled, in document order, through every reorder) and answers
Mounted::focusNext/focusPrevious and a table's FocusNext/FocusPrevious;
a source table's grid focus is shown where the grid says and a gesture is
handed to it; an open editor is mounted in its cell's row and drawn over
the cell; a cell's marks are bound in the cell's own scope and told on
every attach. TableWidget setOnText, setOnCellClick, setOnFocusOut,
setCellEditor, setCellMarks, setRowModified (no-op defaults); the
recording backend's typeInto, clickCell, focusOut and its records.

Forms: the scalar controls moved to field_control.hpp (scalarControl);
FormSession field(rows#key.member), modified, rowModified, revert, the
load record, before-submit hooks run first by submit, a refused
submission's field refusals (ActionRefusal arguments naming a field
path), alive(); FieldSpec::computed, which readonly() now covers.

ui/form_rows.hpp FormRowsSource; ui/grid.hpp GridColumn, GridOptions,
CellFacts/cellReadOnly, GridSource, GridRows, FormGridSource,
GridController (walk, editor, commit, Escape, cell entries), formatOf,
FormGrid, makeFormGrid, formGrid; form_view draws widget: grid with it.
Engine::flush takes in a source's changes at once.

Document: table form/field/enterMoves/walk, column field, refusals,
element values modifiedCount, modifiedRows, errorCount, editing; the
lowering keeps the FormGrid in the element (GridTable) and posts its
notices through tableMessage. Terminal: text, cell clicks, focus out,
the editor in its cell's slot, marks. Qt Quick by reading only.

Mutations, each a whole-target build with the exe changed, the case
failing, then reverted:

M1:
+            if (state->spec().kind == forms::FieldKind::Decimal && !draft.empty()) {  // MORPH_MUT
+                std::replace(draft.begin(), draft.end(), ',', '.');
+                draft = std::to_string(std::stod(draft));
+            }
tests/test_ui_grid.cpp(42): FAILED:
  CHECK( f.json("specimens[0].mass") == R"({"num":1250,"den":100,"dp":2})" )
  "" == "{"num":1250,"den":100,"dp":2}"

M2:
-    return facts.field->readonly().get() || facts.overlayReadOnly || facts.companionReadOnly || facts.busy ||
+    return facts.field->spec().readOnly /* MORPH_MUT */ || facts.overlayReadOnly || facts.companionReadOnly || facts.busy ||
tests/test_ui_grid.cpp(76): FAILED:
  CHECK_FALSE( f.grid->editing().has_value() )
  !true

M3:
-        if (step.kind == Step::Kind::None) {
-            return forward ? KeyOutcome::FocusNext : KeyOutcome::FocusPrevious;
+        if (step.kind == Step::Kind::None) {  // MORPH_MUT
+            Step const wrapped = next(std::nullopt, forward);
+            if (wrapped.kind == Step::Kind::None) {
+                return forward ? KeyOutcome::FocusNext : KeyOutcome::FocusPrevious;
+            }
+            land(wrapped);
tests/test_ui_grid.cpp(94): FAILED:
  CHECK( f.grid->press("Tab") == ui::KeyOutcome::FocusNext )
  0 == 2

M4:
+        if (_source->rowCount() == 0) {  // MORPH_MUT
+            return KeyOutcome::Handled;
+        }
tests/test_ui_grid.cpp(122): FAILED:
  CHECK( f.grid->press("Tab") == ui::KeyOutcome::FocusNext )
  0 == 2

M5:
+        {  // MORPH_MUT: the view's order written back to the field
+            std::string json = "[";
+            for (std::size_t at = 0; at < _items.size(); ++at) {
+                forms::RowState const* const held = _source->row(_items.at(at).key);
+                std::string row = "{";
+                bool first = true;
+                for (auto const& member : held->fields()) {
+                    forms::Encoding const& encoding = member->encoded().peek();
tests/test_ui_grid.cpp(133): FAILED:
  CHECK( keysOf(*f.source) == std::vector<ui::Key>{ui::Key{std::int64_t{2}}, ui::Key{std::int64_t{3}}, ui::Key{std::int64_t{1}}} )
  { {?}, {?}, {?} } == { {?}, {?}, {?} }

M6:
+        for (std::size_t index = 0; index < _fields.size(); ++index) {  // MORPH_MUT: the whole field's snapshot
+            if (state.path().starts_with(_fields.at(index)->spec().name)) {
+                static_cast<void>(state.draft());
+                return _fields.at(index)->snapshot() != _loaded.at(index);
+            }
+        }
tests/test_ui_grid.cpp(150): FAILED:
  CHECK_FALSE( f.form->modified("specimens#1.volume") )
  !true

M7:
-            spec.computed) {
+            spec.computed || state.readonly().get() /* MORPH_MUT */) {
tests/test_ui_grid.cpp(170): FAILED:
  CHECK( f.form->modified("specimens#1.mass") )
  false

M8:
-        whole.onSelect = [source, row] {
-            source->revertRow(row);
+        whole.onSelect = [source, row, id] {
+            source->revertCell(row, id);  // MORPH_MUT
tests/test_ui_grid.cpp(196): FAILED:
  CHECK( f.form->field("specimens[0].mass").draft().empty() )
  false

M9:
-            _source->write(open->key, open->column, std::string{text});
+            _buffered = std::string{text};  // MORPH_MUT
+        if (!_buffered.empty()) {  // MORPH_MUT
+            _source->write(open->key, open->column, std::exchange(_buffered, std::string{}));
+        }
+    std::string _buffered;  // MORPH_MUT
tests/test_ui_grid.cpp(211): FAILED:
  CHECK( f.form->field("specimens[0].label").draft() == "ab" )
  "a" == "ab"

M10:
-            if (hook) {
+            if (hook && false /* MORPH_MUT */) {
tests/test_ui_grid.cpp(230): FAILED:
  CHECK_FALSE( f.grid->editing().has_value() )
  !true

M11:
-                                 static_cast<void>(focusAlong(widget, outcome == KeyOutcome::FocusNext));
+                                 static_cast<void>(outcome);  // MORPH_MUT
tests/test_ui_grid.cpp(381): FAILED:
  CHECK( g.h.backend.focused() == g.h.byTestId("TextInput", "after") )
  0 == 21

M12:
-            if (!member.empty() && std::ranges::none_of(array->children, [member](forms::FieldSpec const& child) {
+            if (false /* MORPH_MUT */ && !member.empty() && std::ranges::none_of(array->children, [member](forms::FieldSpec const& child) {
tests/test_ui_grid.cpp(398): FAILED:
  REQUIRE_FALSE( loaded.has_value() )
  !true

M13:
-            widget.setOnFocusOut(event(spec.onFocusOut));
+            static_cast<void>(spec.onFocusOut);  // MORPH_MUT
tests/test_ui_grid.cpp(422): FAILED:
  CHECK( g.value("editing") == ui::Value{} )
  {?} == {?}

M14:
-                std::optional<Key> const key = source->keyOf(row->get());
+                std::optional<Key> const key = source->keyOf(row->peek());  // MORPH_MUT
tests/test_ui_grid.cpp(287): FAILED:
  CHECK( m.backend.prop(m.row(30), "marks:1").empty() )
  false

M15:
-            cell.marks->column = column;
-            table.widget->setCellMarks(*slot.widget, column, cell.marks->last);
+            cell.marks->column = table.placeOf.at(column).value_or(column);  // MORPH_MUT
+            table.widget->setCellMarks(*slot.widget, cell.marks->column, cell.marks->last);
tests/test_ui_grid.cpp(304): FAILED:
  CHECK( m.backend.prop(m.row(1), "marks:1") == "m" )
  "" == "m"

M16:
-    if (_source && _onText && _focusCell && key.codepoint >= U' ' && key.codepoint != 0x7f &&
+    if (false /* MORPH_MUT */ && _source && _onText && _focusCell && key.codepoint >= U' ' && key.codepoint != 0x7f &&
tests/tui/test_tui_table.cpp(1851): FAILED:
  REQUIRE( g.f.grid->editing() == morph::test::grid::at(1, "mass") )
  {?} == {?}

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Field errors come from the reply's `errors` member, a field path to a
message (or a list of messages, the first shown). A reply that names
them did not save, so what it sent stays an edit. A refusal's sentence
arguments are no longer read as field errors.

The grid lowering is now complete:
- Display columns: a column part's `value`, read with `row` bound.
- The loader refuses a column with neither `field` nor `value`, and
  reports a grid the form cannot make instead of throwing.
- `onActivate` runs on a read-only cell.
- The cell menu's Copy, Copy with headers, Filter by this value and
  Exclude this value come before Revert cell and Revert row.
- The held or bound column layout is fed to
  `FormGridSource::setLayout`, so the walk skips hidden and moved
  columns.
- The scope's formatting is followed.
- A field overlay's `grid` part (columns, enterMoves, walk,
  onActivate) is lowered for a `widget: "grid"` field, and the loader
  checks it.

A row read no longer rebuilds the snapshot: `FormRowsSource` keeps a
version that moves with the rows and drafts, and indexes rows by key
once per version.

Focus in an editor's own popup is not focus out: the terminal checks
`Context::popups`, and Qt checks the window overlay while an editor
is open (unbuilt). A Qt editor that holds the focus when it closes
gives it back to the table (unbuilt).

Also, from the review's minor findings:
- A click on a Boolean cell toggles it (`Table::onClickCell`).
- The status line shows the focused cell's error live, and posts a
  repeated refusal again; `shown` counts entries.
- `focusCell` refuses a key the view does not hold.
- `Tab` in a dialog stays in that mount's chain.
- The terminal keeps reporting ranges after focus out.
- The Qt comment is corrected.
- Test plan citations are removed.
- The plan records the `gridFocus`/`onGridFocus` rename.

Mutations, one whole-target build each; each case failed under its
mutation and passed without it:

R1 FormSession reads no field errors from the reply
  include/morph/forms/engine/form_session.hpp
  -        if (errors == nullptr || !errors->is_object()) {
  +        if (true /* MORPH_MUT */ || errors == nullptr || !errors->is_object()) {
  "grid: submission commits the open editor and places the reply's
  field errors":
    test_ui_grid.cpp(400): FAILED: CHECK( g.value("errorCount") == ui::Value{std::int64_t{1}} )
    test_ui_grid.cpp(401): FAILED: CHECK( ...tooltip == "must be positive" ) with expansion: "" == "must be positive"

R2 FormSession takes a refusal's arguments as field errors by name
  include/morph/forms/engine/form_session.hpp
  +#include <morph/core/action_refusal.hpp>  // MORPH_MUT
  -        _refusals.set(succeeded ? fieldErrorsOf(_mutation.lastResult()) : std::map<std::string, Refused, std::less<>>{});
  +        std::map<std::string, Refused, std::less<>> taken;  // MORPH_MUT
  +        if (!succeeded && error) {
  +            try { std::rethrow_exception(error); }
  +            catch (model::ActionRefusal const& refusal) {
  +                for (auto const& arg : refusal.args()) {
  +                    try { FieldState const& state = field(arg.name);
  +                          taken.insert_or_assign(state.path(), Refused{.message = arg.value, .draft = state.draft()}); }
  +                    catch (std::out_of_range const&) {} } }
  +            catch (...) {} }
  +        _refusals.set(succeeded ? fieldErrorsOf(_mutation.lastResult()) : taken);
  "grid: a refusal's argument named like a field is not a field error":
    test_ui_grid.cpp(419): FAILED: CHECK( g.value("errorCount") == ui::Value{std::int64_t{0}} )
    test_ui_grid.cpp(420): FAILED: CHECK( ...tooltip.empty() ) with expansion: false

R3 the lowering leaves out the built-in cell entries
  src/ui/interpreter.cpp
  -        if (held->grid.source == nullptr || column >= held->columns.size()) {
  +        if (true /* MORPH_MUT */ || held->grid.source == nullptr || column >= held->columns.size()) {
  "grid: the cell menu offers copy and filter before the grid's own
  entries":
    test_ui_grid.cpp(435): FAILED: CHECK( labels == {"Copy", ..., "Revert row"} )
      with expansion: { "Revert cell", "Revert row" }

R4 the layout is never fed to setLayout
  src/ui/interpreter.cpp
  -            held->grid.source->setLayout(std::move(visible));
  +            static_cast<void>(visible);  // MORPH_MUT
  "grid: a display column shows its value, and the walk skips it and
  hidden columns":
    test_ui_grid.cpp(481): FAILED: CHECK( h.backend.focusCell(table) == std::pair{0, 3} )

R5 a display column's value is read with no `row`
  src/ui/interpreter.cpp
  -                bindings.push_back(Binding{.name = "row", .read = [record] { return Value{record}; }});
  +                static_cast<void>(record);  // MORPH_MUT
  same case:
    test_ui_grid.cpp(475): FAILED: CHECK( shown == "n:x" ) with expansion: "" == "n:x"

R6 the form's lowering ignores an overlay's `grid` part
  src/ui/interpreter.cpp
  -            if (std::span<DocNodePtr const> const grid = overlay->partList("grid"); !grid.empty()) {
  +            if (... ; false /* MORPH_MUT */ && !grid.empty()) {
  "grid: a field overlay's grid part gives the grid its columns and its
  onActivate":
    test_ui_grid.cpp(520): FAILED: CHECK( h.backend.headerText(table, 0) == "Mass" ) with expansion: "Label" == "Mass"

R7 `onActivate` is not lowered
  src/ui/interpreter.cpp
  -    if (Commands const* const commands = part.event("onActivate"); commands != nullptr && !commands->empty()) {
  +    if (...; false /* MORPH_MUT */ && commands != nullptr && !commands->empty()) {
  same case:
    test_ui_grid.cpp(525): FAILED: CHECK( h.text("picked") == "2" ) with expansion: "-" == "2"

R8 the loader takes a `grid` part without `widget: "grid"`
  src/ui/document.cpp
  -                    if (named == nullptr || *named != "grid") {
  +                    if (false /* MORPH_MUT */ && (named == nullptr || *named != "grid")) {
  "grid: a field overlay's grid part needs the grid widget":
    test_ui_grid.cpp(536): FAILED: REQUIRE_FALSE( loaded.has_value() ) with expansion: !true

R9 the loader takes a column with neither field nor value
  src/ui/document.cpp
  -            if (column->name("field").empty() && column->prop("value") == nullptr) {
  +            if (false /* MORPH_MUT */ && column->name("field").empty() && column->prop("value") == nullptr) {
  "grid: a column with neither a field nor a value is refused when the
  document loads":
    test_ui_grid.cpp(494): FAILED: REQUIRE_FALSE( loaded.has_value() ) with expansion: !true

R10 a row read builds the whole snapshot
  include/morph/ui/form_rows.hpp
  +        static_cast<void>(build());  // MORPH_MUT
  "grid: a walk over a large grid reads its rows without rebuilding
  them":
    test_ui_grid.cpp(265): FAILED: CHECK( rows.builds() == before ) with expansion: 301 (0x12d) == 1

R11 the terminal table ignores popups opened inside it
  src/tui/table_widget.cpp
  -        for (WidgetBase const* const owner : context().popups) {
  +        for (WidgetBase const* const owner : std::vector<WidgetBase*>{} /* MORPH_MUT */) {
  "tui grid: focus in an editor's own popup does not leave the table":
    test_tui_table.cpp(1859): FAILED: CHECK( g.f.grid->editing() == at(1, "unit") )

R12 a click does not toggle a Boolean
  include/morph/ui/grid.hpp
  -        if (_rt->untracked([&] { return focus(); }) == cell && _source->toggles(cell.key, cell.column)) {
  +        if (false /* MORPH_MUT */ && ...) {
  "grid: a click on a Boolean cell toggles it":
    test_ui_grid.cpp(242): FAILED: CHECK( f.json("specimens[0].checked") == "true" ) with expansion: "" == "true"

R13 FormSession::submit runs no before-submit hook
  include/morph/forms/engine/form_session.hpp
  -            if (hook) {
  +            if (false /* MORPH_MUT */ && hook) {
  "grid: submission commits the open editor and places the reply's
  field errors":
    test_ui_grid.cpp(393): FAILED: CHECK( g.value("editing") == ui::Value{} )
    test_ui_grid.cpp(394): FAILED: CHECK( g.h.backend.prop(g.row(1), "editor:0").empty() ) with expansion: false

Not built: the Qt Quick changes (licence) and the docs (no doxygen here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A grid's table is now a table's in full. Its header, menus, cell menu
and arrangement go through `configureTable` over a `TableConfig` the
grid keeps, so the grid gets everything a table gets:
- the built-in cell entries, then Revert cell and Revert row, then a
  separator and the document's `cellMenu` parts;
- each edit column's filter button and values list, `onFiltersChange`,
  and the table menu's "Clear all filters";
- sort by a `sortable` edit column's header;
- the column chooser and layout gestures.

editing.md gives grids sorting and filtering by the table's rules, so
filtering is wired in full rather than dropped from the cell menu. The
spec now says a grid filters through the table's own header and menus.
A display column neither sorts nor filters.

The grid's rows now key their columns by the grid column's id
(`FormRowsSource` takes the member each column reads), so a sort or a
filter names a column as the table does. The table node is made anew
by each lowering over the controller and source the element keeps, so
the element never holds a node whose handlers hold its scope.

An overlay grid is the same table:
- `formGridTable` is shared by both kinds of grid. The overlay's grid
  is kept in an element of its own on the form's element
  (`ElementState::fieldGrids`), whose node is the `grid` part.
- The loader's `fieldGrid` part takes the table keys: `layout`,
  `onLayoutChange`, `configurable`, `onFiltersChange`, `cellMenu`,
  `headerMenu`, `headerEnabled` and `testId`.
- Its `cellMenu` reads `row`, `column` and `value`.

`GridController::node` hands the cell its focus names to the table's
`onFocusCell`, so a copy with no row selected copies the focused cell.

The terminal reports the second click of a double click once, with
`true`, so a double click on a Boolean flips it once.

forms/engine.md reserves a reply member named `errors` for field
errors. The plan's Task 24 now carries the fix for `place()` resolving
a placeholder untracked.

`RecordingBackend::headerShown(widget, column)` is added for tests.

Mutations, one whole-target build each; each case failed under its
mutation and passed without it:

S1 the cell menu leaves out the document's `cellMenu` parts
  src/ui/interpreter.cpp (configureTable)
  -            if (parts.empty()) {
  +            if (true /* MORPH_MUT */ || parts.empty()) {
  "grid: the document's cell menu entries follow a separator after
  the grid's, and its header sorts":
    test_ui_grid.cpp(480): FAILED: CHECK( labels == {..., "Revert row", "--", "Pick"} )
    test_ui_grid.cpp(480): RecordingBackend: chooseCellMenu of 'Pick', which Table#20's cell menu does not have

S2 the grid's columns get no filter target
  src/ui/interpreter.cpp
  -        if (held->grid.source == nullptr || found == held->config.columns.end() || !filterable.at(at)) {
  +        if (true /* MORPH_MUT */ || held->grid.source == nullptr || ...) {
  "grid: the cell menu offers copy and filter before the grid's own
  entries":
    test_ui_grid.cpp(443): FAILED: CHECK_FALSE( g.h.backend.tableRow(g.table, ui::Key{1}).has_value() ) with expansion: !true
    test_ui_grid.cpp(446): FAILED: CHECK( prop(g.table, "filtered") == "[1]" ) with expansion: "[]" == "[1]"

S3 the grid's filters are not held
  src/ui/interpreter.cpp
  -        return held->filter;
  +        return table::FilterSpec{};  // MORPH_MUT
  same case:
    test_ui_grid.cpp(446): FAILED: CHECK( prop(g.table, "filtered") == "[1]" ) with expansion: "[]" == "[1]"
    test_ui_grid.cpp(450): FAILED: CHECK( g.h.backend.tableRow(g.table, ui::Key{1}).has_value() ) with expansion: false

S4 the grid's sort is not given to its rows
  src/ui/interpreter.cpp
  -held->grid.source->view().setSort(std::move(chain))
  +held->grid.source->view().setSort(SortChain{}) /* MORPH_MUT */
  "grid: the document's cell menu entries follow a separator after
  the grid's, and its header sorts":
    test_ui_grid.cpp(494): FAILED: CHECK( elementValue(h, "grid", "editing") == {"key":2,"column":"note"} )

S5 an overlay grid drawn without its table's configuring
  src/ui/interpreter.cpp
  -    Node dialogs = configureTable(held->config, ctx, table, nullptr);
  +    Node dialogs = part.kind == "fieldGrid" /* MORPH_MUT */ ? Node{} : configureTable(held->config, ctx, table, nullptr);
  "grid: a field overlay's grid part gives the grid its columns, its
  onActivate and a table's keys":
    test_ui_grid.cpp(586): FAILED: CHECK_FALSE( h.backend.headerShown(table, 2) ) with expansion: !true
    test_ui_grid.cpp(591): FAILED: CHECK( labels.back() == "Pick" ) with expansion: "Revert row" == "Pick"

S6 the terminal reports a double click's second click twice
  src/tui/table_widget.cpp
  -            handler(viewRow, column.column, twice);
  +            handler(viewRow, column.column, false);  // MORPH_MUT
  +            if (twice) {
  +                handler(viewRow, column.column, true);
  +            }
  "tui grid: a double click on a Boolean cell flips it once":
    test_tui_table.cpp(1883): FAILED: CHECK( g.f.json("specimens[0].checked") == "true" ) with expansion: "false" == "true"

S7 the grid's focus is not handed to the table's onFocusCell
  include/morph/ui/grid.hpp
  -            if (heard) {
  +            if (false /* MORPH_MUT */ && heard) {
  "grid: the cell menu offers copy and filter before the grid's own
  entries":
    test_ui_grid.cpp(440): FAILED: CHECK( g.h.backend.clipboardText() == "note\na" ) with expansion: ""

Not built: the Qt Quick backend (licence) and the docs (no doxygen here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The row an editor is open on holds its place. editing.md had no rule
for an existing row whose edit changes its sort position or fails the
filter; it now says that row keeps its place in the view, and stays
in the view, until the edit is committed or cancelled. Then the sort
and the filter place it, after the walk that the commit's key starts
has moved on by view position.

`GridRows::hold` pins a row at the view index it had, and keeps it in
the view whatever the filter does, as the rows added while ordered
are kept. The engine's change passes through only while both views
are the engine's own. A view that kept its keys in order reports a
content change, so the open editor is not rebuilt. Anything else is a
reset.

`GridSource::holdRow` is a no-op by default; `FormGridSource` holds
its rows. `GridController` holds the row when an editor opens, and
lets it go once no editor is open, at the end of `press`, `leave`,
`focusCell` and `focusPlace`. `press` lets go only after the key is
handled, so Enter walks down from the row's place at the commit.

A grid's `layout`, `visibleColumns`, `hiddenCount` and `filters`
element values are read from its `TableConfig`.

Qt (not built here): focus in the window overlay counts as inside the
table only inside an open popup that the editor owns. That is a
control's `popup`, or a `Popup` among the data of the editor or a
control inside it. The row's `editorItem`, written by
`setCellEditor`, names the editor. Focus in any other popup or dialog
is outside.

Mutations, one whole-target build each; each case failed under its
mutation and passed without it:

T1 the row not held
  include/morph/ui/grid.hpp
  -    void holdRow(std::optional<Key> key) override { _rows->hold(std::move(key)); }
  +    void holdRow(std::optional<Key> key) override { static_cast<void>(key); /* MORPH_MUT */ }
  "grid: the row an editor is open on holds its place until the edit
  ends":
    sorted by mass:
    test_ui_grid.cpp(365): FAILED: CHECK( m.f.source->positionOf(ui::Key{1}) == std::optional<std::size_t>{0} )
    test_ui_grid.cpp(372): FAILED: CHECK( m.f.grid->focus() == at(2, "mass") )
    filtered by mass:
    test_ui_grid.cpp(383): FAILED: CHECK( m.f.source->positionOf(ui::Key{2}) == std::optional<std::size_t>{1} )
    test_ui_grid.cpp(289): FAILED: REQUIRE( found.has_value() )   (the row left the view, editor and all)

T2 the grid's layout element values not read from its configuring
  src/ui/interpreter.cpp
  -                                          : element.gridTable != nullptr  ? &element.gridTable->config
  +                                          : false /* MORPH_MUT */          ? &element.gridTable->config
  (the `layout`, `visibleColumns`, `hiddenCount` lookup)
  "grid: a display column shows its value, and the walk skips it and
  hidden columns":
    test_ui_grid.cpp(590): FAILED: CHECK( elementValue(h, "grid", "visibleColumns") == ["mass","shown","note"] )
    test_ui_grid.cpp(591): FAILED: CHECK( elementValue(h, "grid", "hiddenCount") == 1 )

T3 the grid's `filters` element value not read from its configuring
  src/ui/interpreter.cpp
  (the same hunk, in the `filters` lookup)
  "grid: the cell menu offers copy and filter before the grid's own
  entries":
    test_ui_grid.cpp(501): FAILED: CHECK( g.value("filters").field("columns") != nullptr ) with expansion: nullptr != nullptr

Not built: the Qt Quick backend (licence) and the docs (no doxygen here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Qt (not built here): the focus watch now counts a cell editor's popup
as shown by `visible`, not `opened`. A popup takes the focus as it
opens, before its enter transition ends and `opened` turns true, so
testing `opened` let a dropdown opening commit and close its editor.

editing.md says the held row keeps its view position, not its
neighbours: rows inserted or removed above it, or a new sort or
filter, rearrange the rows around it.

A mount-level case now covers each way the held row is let go other
than a key: focus leaving, the form's submit (its before-submit hook
is `leave`), a click on another cell, and the row removed from
outside.

Mutations, each with its own whole-target build; each section named
failed because of its own path, and passed without the mutation:

U1 `GridController::leave` does not let go
  include/morph/ui/grid.hpp
  -        commit();
  -        letGo();
  +        commit();  // MORPH_MUT: no letGo
  "grid: the held row is let go when focus leaves, on submit, on a
  click elsewhere, and when it is removed":
    focus leaving: test_ui_grid.cpp(418): FAILED: CHECK( keysOf(*m.f.source) == moved )
    submit:        test_ui_grid.cpp(424): FAILED: CHECK( keysOf(*m.f.source) == moved )

U2 `focusCell` does not let go
  include/morph/ui/grid.hpp
  -            commit();
  -            letGo();
  +            commit();  // MORPH_MUT: no letGo
  same case:
    a click on another cell: test_ui_grid.cpp(430): FAILED: CHECK( keysOf(*m.f.source) == moved )
  (Its first build hit LNK1318 on the pdb. The pdb was deleted and the
  target rebuilt whole before the case ran.)

U3 `GridRows::rebuild` keeps a held row the form no longer has
  include/morph/ui/grid.hpp
  -        if (_held && _source->row(*_held) == nullptr) {
  +        if (false /* MORPH_MUT */ && _held && _source->row(*_held) == nullptr) {
  same case:
    removed from outside: test_ui_grid.cpp(437): FAILED: CHECK_FALSE( m.f.source->positionOf(ui::Key{1}).has_value() ) with expansion: !true

Not built: the Qt Quick backend (licence) and the docs (no doxygen here).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Derived values (docs/spec/table/editing.md, delivery step 2).

Server: `forms/derive.hpp` adds `DeriveOf<A>` (JSON `{"body": …}` through an
in-class glaze meta its deriving type inherits), `Derived`, `derived<>()`
(`FieldMeta::derived`, `withDerived()`, schema `x-derived` + `x-readonly`, left
out of `required`) and `clearDerived`, which `prepareAction` and
`evaluateAction` run before `recomputeAll`. `recomputeAll` recomputes each
element of a `std::vector<R>` member whose `R` declares `computedFields` before
the action's own entries, and a row type's computed members are written
`x-computed`/`x-readonly` in its schema. `allRequiredEngaged` and
`fieldErrors` leave derived members out. The row walks count members without
reading their names (`detail::reflectedCount`), so an action local to an
unnamed namespace still compiles.

Client: `FieldSpec::derived`, read-only and never `modified`. `FormSession`
makes rounds: `deriveWith`, `noteCommit` (debounce, 150 ms by default),
`recalculate`, `deriveState`, `partialBody`, `captureRound` and the two
`loadDerived`, which resolve `rows[i]` through the row keys at sending, drop a
removed row, refuse a path of the wrong kind, ignore an older round, write
programmatically and move no snapshot. `FieldState::insertRow`. A row's Choice
looks up `x-optionsDependsOn` in its row then at the top level, fetches only
once an editor opened it (`openOptions`), and shares one fetch per
`(optionsAction, request)` across rows for the session's life.

Grid: `GridColumn::fieldOf` (a member per row; `FormRowsSource` holds its
draft as text) and the per-row overlays `decimals`, `unit`, `readonly`,
`options`, `placeholder`; computed and derived cells muted while a round runs
and stale after one failed; the standing "Derived values could not be
recalculated" with "Recalculate". Document: `form` takes `derive` and
`deriveDebounce`; a grid column's `field` may be an expression and it takes
the overlays; the lowering makes rounds over the alias's channel.

Mutations, each with its own whole-target build of morph_tests, the exe
rebuilt each time, the case run alone:

M1 forms.hpp recomputeAll: `// detail::recomputeRows(action);`
  "derive: the server keeps recomputeAll's values and the model's":
  CHECK( kept.boxes.at(0).total == 6 )  with expansion: 999 (0x3e7) == 6
  CHECK( kept.sum == 6 )                with expansion: 999 (0x3e7) == 6
M2 registry.hpp prepareAction: `// ::morph::forms::clearDerived(action);`
  same case: CHECK( kept.boxes.at(0).limit == 0 )  with expansion: 555 (0x22b) == 0
M3 forms.hpp annotateNestedAggregate: no `annotateComputedProperty` for a row
  "derive: a row type's schema marks computed and derived members":
  CHECK( glz::write_json(box["properties"]["total"]["x-readonly"]).value() == "true" )
  with expansion: "null" == "true"
M4 form_session.hpp resolve: `scope = rows.at(*index)->fields();` (current rows)
  "grid: derived values":
  CHECK( f.json("specimens[2].limit") == R"({"num":700,"den":100,"dp":2})" )
  with expansion: "" == "{"num":700,"den":100,"dp":2}"
  "grid: a value for a row removed since the call is dropped":
  CHECK( f.json("specimens[0].limit") == R"({"num":300,"den":100,"dp":2})" )
  with expansion: "{"num":100,"den":100,"dp":2}" == "{"num":300,"den":100,"dp":2}"
M5 form_session.hpp loadDerived: `if (false && round.sequence < _derivedLoaded)`
  "grid: an older derive reply is ignored":
  CHECK( f.form->loadDerived(older, …).loaded == 0 )  with expansion: 1 == 0
M6 form_session.hpp loadDerived(Derived): `markLoaded();` after the load
  "grid: a derive reply moves no snapshot":
  CHECK( f.form->modified("specimens#1.mass") )  with expansion: false
M7 grid.hpp memberOf: `fieldOf` read for the first row and kept per column
  "grid: kind per row":
  CHECK( f.source->field(ui::Key{std::int64_t{2}}, "value")->spec().kind == forms::FieldKind::Decimal )
  with expansion: 7 == 4
  "grid: a form's derive action and debounce and a column's member and overlays per row":
  CHECK( ui::testing::cellText(h, 2, "value") == "fine" )  with expansion: "locked" == "fine"
M8 form_session.hpp: a row's Choice fetching through `_core->choices()`
  "grid: choices per row":
  REQUIRE( f.h.server.fetches().size() == 3 )  with expansion: 6 == 3
M9 interpreter.cpp deriveForm: `deriveDebounce` not read
  "grid: a form's derive action and debounce and a column's member and overlays per row":
  REQUIRE( h.dispatcher.count("Lims_DeriveSpecimens") == 1 )  with expansion: 0 == 1
M10 document.cpp checkFormDerive: `if (false && (millis == nullptr || *millis < 0))`
  "grid: the loader checks a form's derive keys and keeps a grid column's keys to grids":
  CHECK( refusal(computed).find("`deriveDebounce` is a literal count of milliseconds") != std::string::npos )
  with expansion: 18446744073709551615 != 18446744073709551615

Not built here: the Qt Quick case "qt_quick grid: a column's kind follows its
row" (licence; written by reading) and the docs build (no doxygen).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Yaraslaut and others added 14 commits November 28, 2026 08:36
…ted derived cells

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
… late pages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
… replaced draft

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
Reserve before push_back loops, use ranges::any_of, build strings with +=,
hoist std::move out of assertion macros, drop unused using-declarations, and
suppress with a stated reason the checks a test double or a fixture cannot
satisfy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
@Yaraslaut
Yaraslaut force-pushed the feat/table-pending-cells branch from 624537b to 36c90e9 Compare November 28, 2026 08:30
Yaraslaut and others added 10 commits November 28, 2026 10:39
parseReal falls back to a stream in the classic locale where the standard
library has no floating-point from_chars (Emscripten's libc++). A stream
does not read "inf", so a filter value of "inf" was a number on Linux and
not a number in the WebAssembly build. The fallback now accepts inf and
infinity in any case with an optional minus, as from_chars does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
- useless casts of std::stoul's result to std::size_t
- unsigned >= 0 checks, now a CHECK_NOTHROW on the recount
- #pragma clang, which GCC ignores, now #pragma GCC, which both read
- a ternary of temporary vectors GCC reads as a dangling pointer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
- FilterMenu value-initialises its state signal rather than moving in a
  temporary FilterMenuState, whose strings GCC 15 at -O3 reports as maybe
  uninitialized wherever the constructor inlines
- the window-state test builds its view selection in place, for the same
  reason
- two stop sources are not const: request_stop is const in libstdc++ but
  not in MSVC's standard library

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
MeasureParts::unit points into the value measureOf read; the test passed a
temporary, so the release build read a destroyed string.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
JsonDecimal::unit points into the member jsonDecimal read; ThreadSanitizer
reported the read of the destroyed temporary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
Every node of every valid corpus document, replaced six ways and removed,
ran as one case: 14 s in a debug build and past the 120 s limit under
ThreadSanitizer. Each corruption is now its own case with its own floors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
clang-tidy 22 asks for designated initializers in brace lists that 21 left
alone; its fix-its are applied on the branch's changed lines. The rest by
hand: empty() over size and an empty-string comparison, contains over a
find against npos, a redundant typename, and a reason on the two native
test screens that also give a head.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
Linux / clang-coverage and Linux / Qt6 WebSockets both lost their hosted
runner during Build, with no compiler error and no log, once the coverage
tests added some 250 translation units. Either memory or disk can do that.
Both jobs now remove the image's unused toolchains first and print the
disk left after the build; clang-coverage also gets the swap the
WebSockets job already has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
The WebSockets job's next run printed 83 GB free before the build and 82 GB
after, and about 3.5 GB swapped out: memory, not disk. The disk cleanup
goes. In the same run the Application ladder died with exit 143 while
linking its largest test binaries, and clang-asan lost its runner during
Build, so both get the same swap on a hosted runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
The coverage-instrumented link of morph_tests peaks at 13.5 GB (measured
locally), so the default two links at once, beside the compiles, went past
even 16 GB plus 15 GB of swap and the runner was lost mid-build. The
sanitizer, coverage, WebSockets and ladder jobs now configure
MORPH_LINK_JOBS=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
@Yaraslaut
Yaraslaut marked this pull request as ready for review November 28, 2026 16:08
@Yaraslaut
Yaraslaut merged commit 752908a into master Nov 28, 2026
32 of 34 checks passed
Yaraslaut added a commit that referenced this pull request Nov 28, 2026
A table is a description that any model can offer (BRIDGE_REGISTER_TABLE),
served as generic pages and shown by every backend through one pipeline;
docs/spec/table/table.md specifies it.

- Unloaded cells and data levels: cells not loaded yet sort last, filters
  are three-valued with an undecided set, and a query loads only the levels
  its shown, sorted and filtered columns need, through partial pages and
  keyed queries.
- Caching: the server's level cache (load once, deduplicated, invalidated
  by effects), announced arrivals instead of polling, cached views, and a
  page window that holds under changes.
- Configuration: column widths, pinning, fitting, moves and a column
  window; sort chains up to 32 keys; header menus; the filter menu with
  distinct values, conditions, column groups with quantifiers and values
  with units; the column chooser and sort dialog; copy; select the whole
  view; saved and shared views; table state in the preferences store.
- Surfaces: the model-backed table on a screen, a document's rows, typed
  list actions and form collections all run on the table pipeline, with
  key changes, busy, failed and locked rows.
- Grids: grids of a form with derived values, cell selection, paste and row
  operations, header bands, spans and summary rows, fixed grids, and edits
  to cells of a model's table.
- Fixes found on the way: the classic real reader reads infinity as
  from_chars does; a model grid's day is read only when every part is
  digits; an assigned form value counts as loaded; a form grid binds its
  document sort.
- Tests: branch coverage of include/morph back above its floors (ui 91.2%,
  total 92.1%), with interpreter.cpp and test_ui_table_model.cpp split by
  area.
- CI: GCC 15 at -O3, clang-tidy 22 and the MSVC standard library build
  clean; the hosted jobs that ran out of memory link one binary at a time
  and get extra swap.

Refs #1085.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
@Yaraslaut
Yaraslaut deleted the feat/table-pending-cells branch November 28, 2026 16:11
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.

2 participants