Skip to content

capabilities: Rename arm_trial to set_trial_pending - #534

Merged
chrysh merged 1 commit into
OpenPRoT:ocp-global-demo-wipfrom
9elements:rename-trial-pending
Oct 3, 2026
Merged

chrysh merged 1 commit into
OpenPRoT:ocp-global-demo-wipfrom
9elements:rename-trial-pending

Conversation

@chrysh

@chrysh chrysh commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

arm_trial was borrowed from watchdogs and alarms. A/B update systems call this marking the image pending, which is also what the state it writes is called, TrialPending.

The method becomes set_trial_pending, and the prose follows: "armed" becomes "marked pending", "the arming" becomes "the pending mark", "record-then-arm" becomes "record-then-mark", and "undoing the arming" becomes "clearing the pending mark".

One file, the method name and its documentation. No behaviour change.

Other uses of "arm" in the tree are left alone: the i2c notification arming and the boot walk's arm() and Phase::Armed are the watchdog sense, where the word reads correctly.

@chrysh
chrysh marked this pull request as ready for review October 3, 2026 19:43
The word was borrowed from watchdogs and alarms. A/B update systems call
this marking the image pending, which is also what the state it writes is
called. The prose follows: a pending mark the boot selector reads, set
once and cleared when the trial is decided.

The method name and the prose, no behaviour change.

Assisted-by: Claude
@chrysh
chrysh force-pushed the rename-trial-pending branch from 486bf08 to 1e16f44 Compare October 3, 2026 19:43
@chrysh
chrysh merged commit 3b8ef26 into OpenPRoT:ocp-global-demo-wip Oct 3, 2026
2 checks passed
@chrysh
chrysh deleted the rename-trial-pending branch October 3, 2026 19:43
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