{
  "kind": "original-bounded-choice-workflow",
  "version": 1,
  "scope": "Classify explicit builder and reviewer instance records plus the reviewer input manifest. Produce a local review-input packet separating self-review, supplied builder context, artifact-only input and missing provenance. No provider session is created or inspected, and no patch is approved.",
  "question": "Use builder.instanceId, reviewer.instanceId and reviewer.visibleInputs. Self-review: same nonempty instance ID, even if display names differ. Builder-context supplied: distinct IDs but inputs include builder reasoning, plan or chat history. Artifact-only separate review: distinct IDs and only artifact plus requirements. Need provenance: identity or input manifest missing. Identity match takes priority. Review the declared setup only; do not grade or approve the patch.",
  "choices": [
    "Artifact-only separate review",
    "Self-review",
    "Builder-context supplied",
    "Need provenance"
  ],
  "actions": {
    "Artifact-only separate review": {
      "action": "preview_review_input_packet",
      "payload": {
        "provenanceOutcome": "Artifact-only separate review",
        "builderContextSupplied": false,
        "nextStep": "run-a-separate-content-review"
      },
      "pending": true
    },
    "Self-review": {
      "action": "preview_review_input_packet",
      "payload": {
        "provenanceOutcome": "Self-review",
        "builderContextSupplied": null,
        "nextStep": "choose-a-distinct-reviewer-instance"
      },
      "pending": true
    },
    "Builder-context supplied": {
      "action": "preview_review_input_packet",
      "payload": {
        "provenanceOutcome": "Builder-context supplied",
        "builderContextSupplied": true,
        "nextStep": "prepare-artifact-only-review-inputs"
      },
      "pending": true
    },
    "Need provenance": {
      "action": "preview_review_input_packet",
      "payload": {
        "provenanceOutcome": "Need provenance",
        "builderContextSupplied": null,
        "nextStep": "collect-instance-and-input-manifest"
      },
      "pending": true
    }
  },
  "samples": [
    {
      "id": "independent",
      "label": "A separate artifact-only reviewer",
      "expected": "Artifact-only separate review",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied builder identity and reviewer input manifest.\",\n  \"builder\": {\n    \"instanceId\": \"build-run-A\",\n    \"artifactId\": \"patch-1\"\n  },\n  \"reviewer\": {\n    \"instanceId\": \"review-run-B\",\n    \"visibleInputs\": [\n      {\n        \"kind\": \"artifact\",\n        \"id\": \"patch-1\"\n      },\n      {\n        \"kind\": \"requirements\",\n        \"id\": \"requirements-1\"\n      }\n    ]\n  },\n  \"manifestScope\": \"Original declared instance and input records; not an inspection of an actual provider session\"\n}",
        "question": "Use builder.instanceId, reviewer.instanceId and reviewer.visibleInputs. Self-review: same nonempty instance ID, even if display names differ. Builder-context supplied: distinct IDs but inputs include builder reasoning, plan or chat history. Artifact-only separate review: distinct IDs and only artifact plus requirements. Need provenance: identity or input manifest missing. Identity match takes priority. Review the declared setup only; do not grade or approve the patch.",
        "choices": [
          "Artifact-only separate review",
          "Self-review",
          "Builder-context supplied",
          "Need provenance"
        ]
      }
    },
    {
      "id": "same",
      "label": "One instance with two role names",
      "expected": "Self-review",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied builder identity and reviewer input manifest.\",\n  \"builder\": {\n    \"instanceId\": \"build-run-A\",\n    \"artifactId\": \"patch-1\"\n  },\n  \"reviewer\": {\n    \"instanceId\": \"build-run-A\",\n    \"visibleInputs\": [\n      {\n        \"kind\": \"artifact\",\n        \"id\": \"patch-1\"\n      },\n      {\n        \"kind\": \"requirements\",\n        \"id\": \"requirements-1\"\n      }\n    ],\n    \"displayName\": \"Reviewer\"\n  },\n  \"manifestScope\": \"Original declared instance and input records; not an inspection of an actual provider session\"\n}",
        "question": "Use builder.instanceId, reviewer.instanceId and reviewer.visibleInputs. Self-review: same nonempty instance ID, even if display names differ. Builder-context supplied: distinct IDs but inputs include builder reasoning, plan or chat history. Artifact-only separate review: distinct IDs and only artifact plus requirements. Need provenance: identity or input manifest missing. Identity match takes priority. Review the declared setup only; do not grade or approve the patch.",
        "choices": [
          "Artifact-only separate review",
          "Self-review",
          "Builder-context supplied",
          "Need provenance"
        ]
      }
    },
    {
      "id": "plan",
      "label": "A distinct reviewer with builder rationale",
      "expected": "Builder-context supplied",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied builder identity and reviewer input manifest.\",\n  \"builder\": {\n    \"instanceId\": \"build-run-A\",\n    \"artifactId\": \"patch-1\"\n  },\n  \"reviewer\": {\n    \"instanceId\": \"review-run-B\",\n    \"visibleInputs\": [\n      {\n        \"kind\": \"artifact\",\n        \"id\": \"patch-1\"\n      },\n      {\n        \"kind\": \"requirements\",\n        \"id\": \"requirements-1\"\n      },\n      {\n        \"kind\": \"builder-reasoning\",\n        \"id\": \"builder-plan-1\"\n      }\n    ]\n  },\n  \"manifestScope\": \"Original declared instance and input records; not an inspection of an actual provider session\"\n}",
        "question": "Use builder.instanceId, reviewer.instanceId and reviewer.visibleInputs. Self-review: same nonempty instance ID, even if display names differ. Builder-context supplied: distinct IDs but inputs include builder reasoning, plan or chat history. Artifact-only separate review: distinct IDs and only artifact plus requirements. Need provenance: identity or input manifest missing. Identity match takes priority. Review the declared setup only; do not grade or approve the patch.",
        "choices": [
          "Artifact-only separate review",
          "Self-review",
          "Builder-context supplied",
          "Need provenance"
        ]
      }
    },
    {
      "id": "unknown",
      "label": "Unspecified reviewer identity",
      "expected": "Need provenance",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied builder identity and reviewer input manifest.\",\n  \"builder\": {\n    \"instanceId\": \"build-run-A\",\n    \"artifactId\": \"patch-1\"\n  },\n  \"reviewer\": {\n    \"instanceId\": null,\n    \"visibleInputs\": null\n  },\n  \"manifestScope\": \"Original declared instance and input records; not an inspection of an actual provider session\"\n}",
        "question": "Use builder.instanceId, reviewer.instanceId and reviewer.visibleInputs. Self-review: same nonempty instance ID, even if display names differ. Builder-context supplied: distinct IDs but inputs include builder reasoning, plan or chat history. Artifact-only separate review: distinct IDs and only artifact plus requirements. Need provenance: identity or input manifest missing. Identity match takes priority. Review the declared setup only; do not grade or approve the patch.",
        "choices": [
          "Artifact-only separate review",
          "Self-review",
          "Builder-context supplied",
          "Need provenance"
        ]
      }
    },
    {
      "id": "requirements",
      "label": "Shared requirements without builder reasoning",
      "expected": "Artifact-only separate review",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied builder identity and reviewer input manifest.\",\n  \"builder\": {\n    \"instanceId\": \"build-run-A\",\n    \"artifactId\": \"patch-1\"\n  },\n  \"reviewer\": {\n    \"instanceId\": \"review-run-B\",\n    \"visibleInputs\": [\n      {\n        \"kind\": \"artifact\",\n        \"id\": \"patch-1\"\n      },\n      {\n        \"kind\": \"requirements\",\n        \"id\": \"requirements-1\"\n      }\n    ]\n  },\n  \"manifestScope\": \"Original declared instance and input records; not an inspection of an actual provider session\"\n}",
        "question": "Use builder.instanceId, reviewer.instanceId and reviewer.visibleInputs. Self-review: same nonempty instance ID, even if display names differ. Builder-context supplied: distinct IDs but inputs include builder reasoning, plan or chat history. Artifact-only separate review: distinct IDs and only artifact plus requirements. Need provenance: identity or input manifest missing. Identity match takes priority. Review the declared setup only; do not grade or approve the patch.",
        "choices": [
          "Artifact-only separate review",
          "Self-review",
          "Builder-context supplied",
          "Need provenance"
        ]
      }
    },
    {
      "id": "rationale",
      "label": "A separate reviewer given the prior chat",
      "expected": "Builder-context supplied",
      "request": {
        "context": "{\n  \"task\": \"Review the supplied builder identity and reviewer input manifest.\",\n  \"builder\": {\n    \"instanceId\": \"build-run-A\",\n    \"artifactId\": \"patch-1\"\n  },\n  \"reviewer\": {\n    \"instanceId\": \"review-run-B\",\n    \"visibleInputs\": [\n      {\n        \"kind\": \"artifact\",\n        \"id\": \"patch-1\"\n      },\n      {\n        \"kind\": \"requirements\",\n        \"id\": \"requirements-1\"\n      },\n      {\n        \"kind\": \"builder-chat-history\",\n        \"id\": \"builder-conversation-1\"\n      }\n    ]\n  },\n  \"manifestScope\": \"Original declared instance and input records; not an inspection of an actual provider session\"\n}",
        "question": "Use builder.instanceId, reviewer.instanceId and reviewer.visibleInputs. Self-review: same nonempty instance ID, even if display names differ. Builder-context supplied: distinct IDs but inputs include builder reasoning, plan or chat history. Artifact-only separate review: distinct IDs and only artifact plus requirements. Need provenance: identity or input manifest missing. Identity match takes priority. Review the declared setup only; do not grade or approve the patch.",
        "choices": [
          "Artifact-only separate review",
          "Self-review",
          "Builder-context supplied",
          "Need provenance"
        ]
      }
    }
  ],
  "consumer": "preview_choice_workflow_v2.py"
}
