Skip to content

way-dsl: typed full targets with ancestor payloads #21

Closed

Description

@rinekri

Follow-up to #18.

A generated target has a short form and a full form. The full form carries a payload for every parameterized node on the path, e.g. Target.app.packageDetails(eSimId, packageId). The runtime uses those payloads to rebuild ancestors that are not alive. It is needed for a cold start, FlowNode.initial, deep links, or a jump into a branch that is not alive.

The DSL only has short targets: ref.target(payload) carries the node's own payload. The workaround is AbsoluteTarget, but its path and payload map are built by hand with no type checks.

Proposal: a typed full-target overload on DSL refs, e.g. ref.target(ancestorPayload1, ..., payload) or a builder. Requirements:

  • It is additive, so the existing target(...) API stays unchanged.
  • With fan-in it combines with via = parent, mirroring the generated permViaB(bId, reason).

Acceptance: a parity test in DslParityTest where the generated full target and the DSL full target, sent cold into a non-alive branch, produce the same alive paths and payloads.

Activity

  1. added a commit that references this issue on Nov 9, 2026
  2. rinekri commented on Nov 9, 2026

    @rinekri
    ContributorAuthor

    Fixed in #23 (1d25d49), released in 0.13.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions