Scenario: if, elseif, else, foreach

Control flow and branch guides

specified graph-owned fixture
Open in Inspector ->
source src://controls/branching.html rendered rendered://public/controls/branching.html control predicate edits, branch guides, foreach scope specified
source src://controls/branching.html rendered rendered://public/controls/branching.html corpus public://_hypermake/testing/latest.json
Control source.html
<if if="{{ mode == 'released' }}">
  <p>Released branch active</p>
</if>
<elseif if="{{ mode == 'archived' }}">
  <p>Archived branch active</p>
</elseif>
<else>
  <p>Fallback branch active</p>
</else>

<foreach items="{{ items }}" key="item">
  {{ index + 1 }}: {{ item.title }}
</foreach>
src://controls/branching.html
Branch guide expectation

if released branch active

elseif archived branch inactive

else fallback branch inactive

foreach item/index scope 3 rows

What this tests

  • if, elseif, else, and foreach control-shape edits.
  • Control predicate mutation where tape shape may change.
  • Foreach-local variable highlighting and scope isolation.

Expected behavior

  • Predicate edits refresh control frames, not plain payload spans.
  • Branch guides use gutter lines, not large tinted backgrounds.
  • Loop variables remain scoped to their own foreach occurrence.

Effect policy

policy refresh_control_frame

scope cache://hypermake/lzr/tape-ledgers/rendered/public/controls/branching.tape-ledger.json

Live control targets

Released branch active

Unreleased hidden

1: Alpha

2: Beta

3: Draft