{
  "format": "graff.animation/1",
  "id": "assistant-decision-ambiguous",
  "title": "Ask which eval · Resume yesterday’s run",
  "description": "The three candidate results and their illustrative weights feed an application rule. In a separate lower row, a toy decoder chooses two reply tokens in sequence.",
  "width": 910,
  "height": 421,
  "posterStep": "action",
  "nodes": [
    {
      "id": "brief",
      "label": "User request",
      "x": 18,
      "y": 103,
      "w": 151,
      "h": 64,
      "detail": "Vague request",
      "kind": "data"
    },
    {
      "id": "retrieval",
      "label": "Retrieval eval",
      "x": 245,
      "y": 18,
      "w": 195,
      "h": 59,
      "detail": "20% · 1/5",
      "kind": "decision"
    },
    {
      "id": "other",
      "label": "Other saved eval",
      "x": 245,
      "y": 110,
      "w": 195,
      "h": 59,
      "detail": "20% · 1/5",
      "kind": "decision"
    },
    {
      "id": "unspecified",
      "label": "Unspecified",
      "x": 245,
      "y": 202,
      "w": 195,
      "h": 59,
      "detail": "60% · 3/5",
      "kind": "decision"
    },
    {
      "id": "rule",
      "label": "App rule",
      "x": 529,
      "y": 108,
      "w": 137,
      "h": 62,
      "detail": "Check saved eval",
      "kind": "decision"
    },
    {
      "id": "result",
      "label": "Ask which eval",
      "x": 687,
      "y": 108,
      "w": 210,
      "h": 62,
      "detail": "No job started",
      "kind": "data"
    },
    {
      "id": "context",
      "label": "Reply context",
      "x": 18,
      "y": 335,
      "w": 174,
      "h": 63,
      "detail": "Prompt + app action",
      "kind": "data"
    },
    {
      "id": "firsttoken",
      "label": "After token one",
      "x": 307,
      "y": 335,
      "w": 200,
      "h": 63,
      "detail": "Which",
      "kind": "data"
    },
    {
      "id": "nexttoken",
      "label": "After token two",
      "x": 652,
      "y": 335,
      "w": 213,
      "h": 63,
      "detail": "Which eval",
      "kind": "data"
    }
  ],
  "edges": [
    {
      "id": "weigh-retrieval",
      "from": "brief",
      "to": "retrieval",
      "points": [
        [
          169,
          135
        ],
        [
          225,
          135
        ],
        [
          225,
          47
        ],
        [
          245,
          47
        ]
      ],
      "kind": "solid"
    },
    {
      "id": "propose-retrieval",
      "from": "retrieval",
      "to": "rule",
      "points": [
        [
          440,
          47
        ],
        [
          470,
          47
        ],
        [
          470,
          139
        ],
        [
          529,
          139
        ]
      ],
      "kind": "solid"
    },
    {
      "id": "weigh-other",
      "from": "brief",
      "to": "other",
      "points": [
        [
          169,
          135
        ],
        [
          245,
          139
        ]
      ],
      "kind": "solid"
    },
    {
      "id": "propose-other",
      "from": "other",
      "to": "rule",
      "points": [
        [
          440,
          139
        ],
        [
          529,
          139
        ]
      ],
      "kind": "solid"
    },
    {
      "id": "weigh-unspecified",
      "from": "brief",
      "to": "unspecified",
      "points": [
        [
          169,
          135
        ],
        [
          225,
          135
        ],
        [
          225,
          231
        ],
        [
          245,
          231
        ]
      ],
      "kind": "solid"
    },
    {
      "id": "propose-unspecified",
      "from": "unspecified",
      "to": "rule",
      "points": [
        [
          440,
          231
        ],
        [
          470,
          231
        ],
        [
          470,
          139
        ],
        [
          529,
          139
        ]
      ],
      "kind": "solid"
    },
    {
      "id": "act",
      "from": "rule",
      "to": "result",
      "points": [
        [
          666,
          139
        ],
        [
          687,
          139
        ]
      ],
      "kind": "solid"
    },
    {
      "id": "wordone",
      "from": "context",
      "to": "firsttoken",
      "points": [
        [
          192,
          366
        ],
        [
          307,
          366
        ]
      ],
      "kind": "solid"
    },
    {
      "id": "wordtwo",
      "from": "firsttoken",
      "to": "nexttoken",
      "points": [
        [
          507,
          366
        ],
        [
          652,
          366
        ]
      ],
      "kind": "solid"
    }
  ],
  "marks": [
    {
      "id": "decision-label",
      "kind": "text",
      "x": 18,
      "y": 43,
      "label": "Jev-style Choice"
    },
    {
      "id": "input-quote",
      "kind": "text",
      "x": 18,
      "y": 70,
      "label": "Resume yesterday’s run"
    },
    {
      "id": "generation-label",
      "kind": "text",
      "x": 18,
      "y": 306,
      "label": "Generate reply text"
    }
  ],
  "steps": [
    {
      "id": "read",
      "title": "Read the request in context",
      "note": "“Resume yesterday’s run” could describe either saved evaluation. Both ran yesterday, and the request leaves the title open.",
      "focus": [
        "brief"
      ],
      "travelers": [],
      "arrivals": [],
      "motionMs": 0,
      "holdMs": 5850
    },
    {
      "id": "scores",
      "title": "Compare three possible results",
      "note": "A Jev-style Choice returns a selected option and a probability for each option. In this illustration, weights of one, one and three give unspecified the largest share.",
      "focus": [
        "retrieval",
        "other",
        "unspecified"
      ],
      "travelers": [
        {
          "id": "score-retrieval",
          "edge": "weigh-retrieval",
          "symbol": "dot"
        },
        {
          "id": "score-other",
          "edge": "weigh-other",
          "symbol": "dot"
        },
        {
          "id": "score-unspecified",
          "edge": "weigh-unspecified",
          "symbol": "dot"
        }
      ],
      "arrivals": [],
      "motionMs": 850,
      "holdMs": 8450
    },
    {
      "id": "propose",
      "title": "Propose an unspecified eval",
      "note": "Unspecified has the largest weight. The scorer passes that single result to the app, leaving the user’s intended evaluation unresolved.",
      "focus": [
        "propose-unspecified",
        "rule"
      ],
      "travelers": [
        {
          "id": "proposal",
          "edge": "propose-unspecified",
          "symbol": "job"
        }
      ],
      "arrivals": [],
      "motionMs": 740,
      "holdMs": 6450
    },
    {
      "id": "action",
      "title": "Ask the user to name the eval",
      "note": "The application rule calls for a clarification when the eval is unspecified. Both saved jobs remain idle while the app asks which one the user means.",
      "focus": [
        "act",
        "result"
      ],
      "travelers": [
        {
          "id": "chosen",
          "edge": "act",
          "symbol": "job"
        }
      ],
      "arrivals": [
        "result"
      ],
      "motionMs": 730,
      "holdMs": 8150
    },
    {
      "id": "token-one",
      "title": "Choose the first token of the reply",
      "note": "Now the app has chosen an action. For the reply wording, this toy decoder takes the most likely first token from a separate illustrative distribution.",
      "focus": [
        "context",
        "wordone",
        "firsttoken"
      ],
      "travelers": [
        {
          "id": "firstpiece",
          "edge": "wordone",
          "symbol": "dot"
        }
      ],
      "arrivals": [
        "firsttoken"
      ],
      "motionMs": 900,
      "holdMs": 7850
    },
    {
      "id": "token-two",
      "title": "Choose again using the new prefix",
      "note": "With “Which” already in the text, the next distribution is conditional on that prefix. Appending the selected token produces “Which eval”.",
      "focus": [
        "wordtwo",
        "nexttoken"
      ],
      "travelers": [
        {
          "id": "secondpiece",
          "edge": "wordtwo",
          "symbol": "dot"
        }
      ],
      "arrivals": [
        "nexttoken"
      ],
      "motionMs": 950,
      "holdMs": 6650
    }
  ]
}
