Skip to content

Name the live arrival read in FirstInGroupAnimated's doc - #1461

Merged
GLinnik21 merged 4 commits into
mainfrom
a11y/machine-doc
Nov 18, 2026
Merged

GLinnik21 merged 4 commits into
mainfrom
a11y/machine-doc

Conversation

@GLinnik21

@GLinnik21 GLinnik21 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

What

Two doc comments still named library::LibraryScreen's pop_from_rest, which no longer exists, as the read gated on By::Dir | By::Pointer. They are the doc on FocusTarget::FirstInGroupAnimated in rust-modules/machine/src/machine.rs and the //! module doc of rust-modules/ui/src/containers/tabs.rs.

Both comments now tell that bug's history in the past tense, under its old name, and add one sentence for today: the shared card grid reads a By::Dir | By::Pointer | By::Script move as deliberate (ui/src/cards/mod.rs's Seen::of). By::Script joined in #1432.

The comments say nothing about how a seat that was not a deliberate move can still grow from rest. Earlier revisions tried, and review found three such paths (Grid::arrive, the wake from Grid::dormant, a landing takeover's rise), each missing from the list before it. Those rules are the grid's own, documented in ui/src/cards/grid.rs, and this doc does not need them.

This is a follow-up to the accessibility-id series (#1431, #1432, #1442).

The re-seal

machine.rs is pinned by hash in ci/proofs/platform-generated-enums.json. Like #1432, this PR:

  • appends the new hash to MACHINE_SOURCES in ci/readonly_generated.py and to the certificate's list, keeping every older hash;
  • adds one clause to the comment in source_hashes();
  • recomputes CERTIFICATE_SHA256, which is _sha(_json(cert)) over the canonical JSON.

No other certificate field changes, and produce_certificate(root) equals the committed certificate.

  • Doc-only. Every changed line in machine.rs is a /// line, and every changed line in tabs.rs is a //! line.
  • Hashes. 1fafb56d…4975 becomes 8f46da48…f7b5 for machine.rs. The certificate hash d0ba11c0…37f3 becomes 541c1582…3b0b. The hashes of this branch's earlier commits were replaced, not kept, because those variants never landed.
  • No other pins. Nothing else pins either file. The old machine.rs hash appears only in these two files, and tabs.rs is not pinned.

Gates

On the committed head 397e6af, with the tree clean before and after:

  • ci/test_readonly_generated.py: Ran 22 tests OK
  • ci/test_transition_arguments.py: Ran 10 tests OK
  • make check-python-rest: ==== check: 143 steps — all ok ====. This includes ci/check-deps.sh and ci/check-module-layers.py, both green.
  • make test-crate C=plx_machine: test result: ok. 118 passed; 0 failed
  • make test-crate C=plx_ui: test result: ok. 1753 passed; 0 failed
  • make check-nodef: green.

There is no Makefile, Cargo or workflow change, so there is no build-bench table.

🤖 Generated with Claude Code

GLinnik21 and others added 4 commits November 18, 2026 18:59
Two doc comments (FirstInGroupAnimated's in machine.rs, the module doc of containers/tabs.rs)
still named library::LibraryScreen's pop_from_rest, which no longer exists, gated on
By::Dir | By::Pointer. They now name the shared card grid's deliberate read in plx_ui::cards,
which since #1432 also counts By::Script.

machine.rs is pinned by hash, so the new hash is appended to MACHINE_SOURCES and the
certificate's list (every changed line in machine.rs is a `///` line), and CERTIFICATE_SHA256
is recomputed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ve overrides

The previous commit said the shared card grid's deliberate read is gated on
By::Dir | By::Pointer | By::Script. It is that for Seen::of, but Grid::arrive arms
an arrival on any By (the Library's seat_arrival does, ahead of a seat reported as
By::Restore). Both docs now keep the fixed bug's history in the past tense with its old
name (pop_from_rest) and state today's rule in one clause, in file-path style. tabs.rs is
rewrapped.

machine.rs's reviewed hash is replaced, not appended (the variant of the previous commit
never landed), and CERTIFICATE_SHA256 is recomputed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sentence added in the previous commit named Grid::arrive as the only exception to the
By-based rule. Grid::dormant is a second one: a seat reported as By::Restore under a dissolve
grows when the grid wakes. The docs now say the grid reads By::Dir | By::Pointer | By::Script as
deliberate (Seen::of) and that any other seat grows from rest only where the grid's owner asks
for it (Grid::arrive, Grid::dormant).

machine.rs's reviewed hash is replaced again (the previous variant never landed) and
CERTIFICATE_SHA256 is recomputed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The previous commit listed Grid::arrive and Grid::dormant as the only ways a seat not
read as a deliberate move grows from rest. A landing takeover (GridPop::rise) is a third,
for a seat reported as By::Reconcile, so the list was wrong again. Both docs now keep the
fixed bug's history in the past tense and say only what the shared grid reads as deliberate
(ui/src/cards/mod.rs's Seen::of).

machine.rs's reviewed hash is replaced again (the previous variant never landed) and
CERTIFICATE_SHA256 is recomputed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit dab26ad into main Nov 18, 2026
14 checks passed
@GLinnik21
GLinnik21 deleted the a11y/machine-doc branch November 18, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant