Repository navigation
Implement node.showIf; move the pin to v0.12.0 - #1
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The contract gained node-level
showIfin v0.11.0: advancing to (or stepping onto) a node whoseshowIfgate fails skips it and continues at itsnext, until a shown node is reached.onEnterof 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 implementedshowIfonly on choices and ladder rungs — not on nodes. So advancing landed on hidden nodes and stepping rendered them.Change
AdvanceNodeandStepDialogue: added the node-level skip walk.step_dialoguenow comparesnodeId+ the fullonEnterEffectslist (the runtime already returns both) to match the v0.11.0 vectors.parlance@v0.12.0(byte-identical); PIN moved off the provisionalv0.9.0commit to thev0.12.0tag.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.