Skip to content

Implement node.showIf; move the pin to v0.12.0 - #1

Merged
mwburke merged 1 commit into
mainfrom
claude/node-showif-v0.12.0
Aug 27, 2026
Merged

mwburke merged 1 commit into
mainfrom
claude/node-showif-v0.12.0

Conversation

@mwburke

@mwburke mwburke commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What

The contract gained node-level showIf in v0.11.0: advancing to (or stepping onto) a node whose showIf gate fails skips it and continues at its next, until a shown node is reached. onEnter of a skipped node does not fire; a ring of all-failing gates is reported, not looped.

This port pinned a provisional v0.9.0 (pre-showIf) and implemented showIf only on choices and ladder rungs — not on nodes. So advancing landed on hidden nodes and stepping rendered them.

Change

  • AdvanceNode and StepDialogue: added the node-level skip walk.
  • Conformance harness: step_dialogue now compares nodeId + the full onEnterEffects list (the runtime already returns both) to match the v0.11.0 vectors.
  • Vectors re-copied from parlance@v0.12.0 (byte-identical); PIN moved off the provisional v0.9.0 commit to the v0.12.0 tag.

Verification

dotnet test — 9/9 conformance families pass locally. CI will confirm.

Part of moving all three runtimes onto a real tag that carries node.showIf, so the published migration examples (which use it) play correctly.

The contract gained node-level showIf in v0.11.0: advancing to (or stepping
onto) a node whose showIf gate fails skips it and continues at its `next`,
until a shown node is reached. onEnter of a skipped node does not fire, and a
ring of all-failing gates is COND-invalid data that is reported, not looped.

This port pinned v0.9.0 (provisional, pre-showIf) and implemented showIf only
on choices and ladder rungs — not on nodes. Advancing landed on hidden nodes;
stepping rendered them. Added the skip walk to AdvanceNode and StepDialogue.

Also updated the step_dialogue conformance check: the v0.11.0 vectors compare
`nodeId` and the full `onEnterEffects` list, which the runtime already returns.

Vectors re-copied from parlance@v0.12.0 (byte-identical); PIN moved off the
provisional v0.9.0 commit to the v0.12.0 tag. Conformance: 9/9 families pass.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@mwburke
mwburke merged commit 4f6e8dc into main Aug 27, 2026
1 check passed
@mwburke
mwburke deleted the claude/node-showif-v0.12.0 branch August 27, 2026 06:10
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