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 claim | Must 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
- Include “keep as is” when it is a real option.
- State the consequence of each, including for future runs.
Avoid
- Don’t make the recommended option the only one with a consequence.
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 inputs | Alternatives with labels and consequences; supported claims as basis |
|---|---|
| Allowed states | Two or more options; one may be recommended |
| Forbidden states | A single option; a pre-selected choice; options without consequences |
| Evidence requirements | Shows the supported claims it is based on |
| Action scope | choose:<id> per option, from the plan |
| Meaning of authority | Choosing needs the decide permission; read-only Cases explain why not |
| External effects | None until a proposal is approved and executed |
| Verification conditions | None |
| Failure and recovery | An option whose basis breaks is withdrawn with the reason |
| Transitions | Choosing moves to authorize when the option changes something |
| Accessibility | A fieldset with a legend; the first option receives focus when the person opened it |
| Observable events | ly-action choose |
| Test conditions | Alternatives 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)