Components · Decision

Alternative Set

Real, comparable options with their consequences. Nothing is pre-chosen; a recommended option is only visually primary.

Overview

This compact fixture shows the renderer inside the shared contract. The richer gallery below exercises additional states without changing the resolver’s authority.

States

Each state is live and resolved from contract fields. The indicator checks both the complete Representation Plan and the rendered DOM. Missing coverage is reported separately.

May claimMust not claim
The options are real and comparable.A hidden default presented as “the answer”.

Anatomy

01 · Real choicesComparable consequences remain visible; a recommendation is not selected.

02 · Recorded selectionOnly the decision field lights the chosen option.

03 · Bound controlsEach Choose control comes from the current plan.

The live specimen above follows these regions in reading order. Change a state to inspect the same anatomy under a different work condition.

Usage and avoid

Avoid

When not to use

A yes/no confirmation of one action. That is an Authority Gate.

Contract

A component without this contract may wear Lyotic’s style; it does not implement Lyotic.

Semantic inputsAlternatives with labels and consequences; supported claims as basis
Allowed statesTwo or more options; one may be recommended
Forbidden statesA single option; a pre-selected choice; options without consequences
Evidence requirementsShows the supported claims it is based on
Action scopechoose:<id> per option, from the plan
Meaning of authorityChoosing needs the decide permission; read-only Cases explain why not
External effectsNone until a proposal is approved and executed
Verification conditionsNone
Failure and recoveryAn option whose basis breaks is withdrawn with the reason
TransitionsChoosing moves to authorize when the option changes something
AccessibilityA fieldset with a legend; the first option receives focus when the person opened it
Observable eventsly-action choose
Test conditionsAlternatives count ≥ 2; controls ⊆ plan

Live boundary check

Use “Test a forbidden control” below the gallery. The checker receives an intentionally invalid, detached specimen and reports INV-03. No unsafe control is inserted into the live Work Case. This tests a boundary rather than teaching an unsafe success state.

In the Work Case

The same renderer below runs inside the existing anchored Work Object Shell. These are illustrative fixture states, not live business operations.

Accessibility

Keep action names, reasons, scope and state available to keyboard and assistive technology. Background updates preserve focus and control identity; reduced motion keeps the same semantic result.

Code

alternativeSet(state, plan)