{
  "format": "decision-lab-workflow-package/1",
  "workflow": {
    "format": "decision-lab-workflow/1",
    "id": "review-gift-kit-flexible",
    "version": "2.11.0",
    "title": "Plan a gift-kit commitment",
    "description": "Compare complete gift-kit correction arrangements against the recorded configuration, work, handoff, capacity, permission and expense requirements.",
    "question": "What must we verify or correct, and can we finish before committing these gift kits?",
    "dependencies": [
      {
        "id": "evidence",
        "app": {
          "format": "decision-lab-app/1",
          "template": {
            "format": "decision-lab-template/1",
            "definition": {
              "format": "decision-lab-template-definition/1",
              "templateId": "evidence-review",
              "version": "1.0.0",
              "pattern": "evidence-review/1",
              "title": "Establish the required answer",
              "description": "Shared installed reasoning contract; gifting meaning is supplied by the module.",
              "authoring": {
                "requiredModuleFields": [],
                "guidance": ""
              },
              "contract": {
                "format": "decision-lab-installed-contract/1",
                "pattern": "evidence-review/1",
                "definition": {
                  "id": "evidence-review",
                  "version": "1.0.0",
                  "evaluator": "finite-relational-evidence/1",
                  "title": "Establish the required answer",
                  "responsibility": "Generate interpretations from declared finite rules, retain evidence-compatible alternatives, and test stability of the required answer.",
                  "invariants": [
                    "Establishment requires a nonempty admissible basis and a completed counterexample check.",
                    "Different admissible answers demonstrate underdetermination even before enumeration completes.",
                    "An empty interrupted search does not establish inconsistency.",
                    "A Boolean false answer can be established. Counts do not imply probabilities.",
                    "Results are relative to the authored finite model, submitted evidence and exact query."
                  ]
                },
                "schema": {
                  "kind": "installed-validator-descriptor/1",
                  "modelFormat": "evidence-review/1",
                  "moduleValidator": "assertEvidenceModule",
                  "caseValidator": "validateEvidenceCase",
                  "requiredModelFields": [
                    "format",
                    "module",
                    "case"
                  ],
                  "requiredModuleFields": [
                    "id",
                    "version",
                    "title",
                    "description",
                    "question",
                    "boundary",
                    "relations",
                    "generation",
                    "rules",
                    "constraints",
                    "queries"
                  ],
                  "moduleFields": [
                    "id",
                    "version",
                    "title",
                    "description",
                    "question",
                    "boundary",
                    "relations",
                    "generation",
                    "rules",
                    "constraints",
                    "queries",
                    "parameters",
                    "admission",
                    "assumptions",
                    "reports",
                    "reports.tables",
                    "metadata",
                    "metadata.catalog",
                    "metadata.catalog.domain",
                    "metadata.catalog.domain.id",
                    "metadata.catalog.domain.label",
                    "metadata.catalog.domain.description",
                    "metadata.catalog.useCase",
                    "metadata.catalog.useCase.id",
                    "metadata.catalog.useCase.label",
                    "metadata.catalog.useCase.description",
                    "presentation",
                    "presentation.description",
                    "presentation.question",
                    "presentation.labels",
                    "presentation.entities",
                    "presentation.columns",
                    "presentation.parameters",
                    "presentation.queries",
                    "presentation.reports",
                    "presentation.tableGroups",
                    "presentation.findingGroups",
                    "presentation.views",
                    "presentation.explanationGroups",
                    "presentation.labels.scenario",
                    "presentation.labels.scenarios",
                    "presentation.labels.assignment",
                    "presentation.labels.answer",
                    "presentation.labels.examples",
                    "presentation.reports.answer",
                    "presentation.reports.answer.title",
                    "presentation.reports.answer.question",
                    "presentation.reports.answer.description",
                    "presentation.reports.interpretations",
                    "presentation.reports.interpretations.title",
                    "presentation.reports.interpretations.question",
                    "presentation.reports.interpretations.description",
                    "presentation.reports.stability",
                    "presentation.reports.stability.title",
                    "presentation.reports.stability.question",
                    "presentation.reports.stability.description",
                    "presentation.reports.findings",
                    "presentation.reports.findings.title",
                    "presentation.reports.findings.question",
                    "presentation.reports.findings.description",
                    "presentation.reports.basis",
                    "presentation.reports.basis.title",
                    "presentation.reports.basis.question",
                    "presentation.reports.basis.description",
                    "presentation.reports.changes",
                    "presentation.reports.changes.title",
                    "presentation.reports.changes.question",
                    "presentation.reports.changes.description"
                  ],
                  "requiredCaseFields": [
                    "id",
                    "scope",
                    "parameters",
                    "basis",
                    "evidence",
                    "queryIds"
                  ],
                  "optionalCaseFields": [
                    "evaluation",
                    "title"
                  ],
                  "caseDerivation": [
                    "Basis and evidence relation IDs, columns, scalar types, keys and references come from the frozen module.relations.",
                    "Case parameters use frozen module.parameters types, defaults, bounds and enumerations.",
                    "Case queryIds select distinct frozen module.queries; evaluation settings can only lower installed finite limits."
                  ],
                  "description": "This describes the installed validators and supported presence-restriction paths; it is not a complete JSON Schema."
                },
                "structuralSlots": [
                  {
                    "path": "relations",
                    "owner": "module-author",
                    "description": "Declare typed basis, evidence, assignment and derived relation schemas."
                  },
                  {
                    "path": "parameters",
                    "owner": "module-author",
                    "description": "Declare typed case parameters, defaults and permitted bounds."
                  },
                  {
                    "path": "generation",
                    "owner": "module-author",
                    "description": "Declare bounded finite subset dimensions over submitted input relation columns."
                  },
                  {
                    "path": "rules",
                    "owner": "module-author",
                    "description": "Declare finite relational rules with stratified negation and count."
                  },
                  {
                    "path": "constraints",
                    "owner": "module-author",
                    "description": "Declare consistency checks on generated interpretations."
                  },
                  {
                    "path": "admission",
                    "owner": "module-author",
                    "description": "Declare checks on submitted basis and evidence facts before enumeration."
                  },
                  {
                    "path": "queries",
                    "owner": "module-author",
                    "description": "Declare the exact required Boolean, value or set answer."
                  },
                  {
                    "path": "presentation",
                    "owner": "module-author",
                    "description": "Bind domain vocabulary and report organization to declared entities and calculated values."
                  },
                  {
                    "path": "reports",
                    "owner": "module-author",
                    "description": "Declare report tables over declared relations."
                  },
                  {
                    "path": "assumptions",
                    "owner": "module-author",
                    "description": "State the premises and conclusion boundary reviewed by people."
                  }
                ],
                "caseInputs": [
                  {
                    "path": "id",
                    "owner": "case-worker",
                    "description": "Identify this case."
                  },
                  {
                    "path": "scope",
                    "owner": "case-worker",
                    "description": "State the scope of the supplied information."
                  },
                  {
                    "path": "parameters",
                    "owner": "case-worker",
                    "description": "Supply values within the published parameter declarations."
                  },
                  {
                    "path": "basis",
                    "owner": "case-worker",
                    "description": "Supply typed facts for relations marked basis."
                  },
                  {
                    "path": "evidence",
                    "owner": "case-worker",
                    "description": "Supply typed facts for relations marked evidence."
                  },
                  {
                    "path": "queryIds",
                    "owner": "case-worker",
                    "description": "Select the published questions to assess."
                  },
                  {
                    "path": "evaluation",
                    "owner": "case-worker",
                    "description": "Optionally lower finite evaluation limits."
                  },
                  {
                    "path": "title",
                    "owner": "case-worker",
                    "description": "Optionally name this case."
                  }
                ],
                "capabilities": {
                  "language": "finite-relational/1",
                  "supported": [
                    "finite-subsets",
                    "relational-joins",
                    "positive-recursion",
                    "stratified-negation",
                    "stratified-count",
                    "bounded-arithmetic-comparisons",
                    "boolean-answers",
                    "value-answers",
                    "set-answers"
                  ],
                  "unsupported": [
                    "probability",
                    "global-identifiability",
                    "minimal-conflict-explanations",
                    "arbitrary-code"
                  ]
                },
                "limits": {
                  "relations": 64,
                  "columns": 16,
                  "rules": 128,
                  "queries": 64,
                  "rows": 20000,
                  "candidates": 100000,
                  "ruleRounds": 1000,
                  "facts": 100000,
                  "operations": 10000000
                },
                "reportResponsibilities": {
                  "assessmentContract": "evidence-assessment/1",
                  "reportIds": [
                    "answer",
                    "interpretations",
                    "stability",
                    "findings",
                    "basis",
                    "changes"
                  ],
                  "responsibilities": [
                    "Required answers and their status",
                    "Evidence-compatible and excluded interpretations",
                    "Answer stability and counterexamples",
                    "Derived findings",
                    "Supplied basis, evidence, assumptions and assessment checks",
                    "Case changes when comparison context is supplied"
                  ],
                  "completeReportDocument": "A later report-materialization service supplies the complete renderer contract; these authoring services do not claim to implement it."
                }
              }
            },
            "createdAt": "2026-11-17T20:00:00.000Z",
            "contentHash": "b2558bd36b140795dd078736b9cd7e6ca8655fa41ac4aa46fdf4c1ec5c7eac4b"
          },
          "app": {
            "schemaVersion": 5,
            "kind": "hermod-published-app",
            "runtime": "diagnostic-evidence",
            "id": "review-gift-kit-flexible-evidence",
            "version": 4,
            "name": "Review gift-kit records",
            "description": "A fictional campaign review: interpret scoped checks, compare complete corrective arrangements, and finish before the handoff cutoff.",
            "source": "{\"format\":\"evidence-review/1\",\"module\":{\"id\":\"review-gift-kit-flexible-evidence\",\"version\":\"2.0.2\",\"title\":\"Review gift-kit records\",\"description\":\"A fictional campaign review: interpret scoped checks, compare complete corrective arrangements, and finish before the handoff cutoff.\",\"question\":\"Which fault combinations still agree with these gift-kit records?\",\"boundary\":\"Only the published configurations and check predictions for one exact batch and journey revision.\",\"assumptions\":[\"Current scoped reports are treated as accurate under the author-declared possible outcomes.\",\"All declared joint fault configurations remain possible until excluded by reports; none has an implied probability.\",\"An unreadable printed code can conceal its destination. Planned corrections do not establish successful completion.\",\"Input acceptance records a named role judgment; it does not authenticate identity or issue permission.\"],\"parameters\":[{\"id\":\"nowMinute\",\"type\":\"integer\",\"min\":0,\"label\":\"Review time in whole minutes from the declared origin\"}],\"relations\":[{\"id\":\"expectedScope\",\"source\":\"basis\",\"columns\":[{\"id\":\"field\",\"type\":\"string\"},{\"id\":\"value\",\"type\":\"string\"}],\"key\":[\"field\"]},{\"id\":\"state\",\"source\":\"basis\",\"columns\":[{\"id\":\"id\",\"type\":\"string\"},{\"id\":\"label\",\"type\":\"string\"}],\"key\":[\"id\"]},{\"id\":\"stateFault\",\"source\":\"basis\",\"columns\":[{\"id\":\"state\",\"type\":\"string\"},{\"id\":\"fault\",\"type\":\"string\"}],\"key\":[\"state\",\"fault\"]},{\"id\":\"stateCorrection\",\"source\":\"basis\",\"columns\":[{\"id\":\"state\",\"type\":\"string\"},{\"id\":\"correction\",\"type\":\"string\"}],\"key\":[\"state\",\"correction\"]},{\"id\":\"checkOutcome\",\"source\":\"basis\",\"columns\":[{\"id\":\"check\",\"type\":\"string\"},{\"id\":\"outcome\",\"type\":\"string\"}],\"key\":[\"check\",\"outcome\"]},{\"id\":\"prediction\",\"source\":\"basis\",\"columns\":[{\"id\":\"state\",\"type\":\"string\"},{\"id\":\"check\",\"type\":\"string\"},{\"id\":\"outcome\",\"type\":\"string\"}],\"key\":[\"state\",\"check\",\"outcome\"]},{\"id\":\"correction\",\"source\":\"basis\",\"columns\":[{\"id\":\"id\",\"type\":\"string\"}],\"key\":[\"id\"]},{\"id\":\"observation\",\"source\":\"evidence\",\"columns\":[{\"id\":\"id\",\"type\":\"string\"},{\"id\":\"check\",\"type\":\"string\"},{\"id\":\"outcome\",\"type\":\"string\"},{\"id\":\"observed\",\"type\":\"integer\"},{\"id\":\"source\",\"type\":\"string\"},{\"id\":\"person\",\"type\":\"string\"},{\"id\":\"text\",\"type\":\"string\"}],\"key\":[\"id\"]},{\"id\":\"recordScope\",\"source\":\"evidence\",\"columns\":[{\"id\":\"record\",\"type\":\"string\"},{\"id\":\"field\",\"type\":\"string\"},{\"id\":\"value\",\"type\":\"string\"}],\"key\":[\"record\",\"field\"]},{\"id\":\"wrongScope\",\"source\":\"derived\",\"columns\":[{\"id\":\"record\",\"type\":\"string\"}]},{\"id\":\"futureRecord\",\"source\":\"derived\",\"columns\":[{\"id\":\"record\",\"type\":\"string\"}]},{\"id\":\"usedRecord\",\"source\":\"derived\",\"columns\":[{\"id\":\"record\",\"type\":\"string\"},{\"id\":\"check\",\"type\":\"string\"},{\"id\":\"outcome\",\"type\":\"string\"}]},{\"id\":\"recordDisposition\",\"source\":\"derived\",\"columns\":[{\"id\":\"record\",\"type\":\"string\"},{\"id\":\"disposition\",\"type\":\"string\"},{\"id\":\"code\",\"type\":\"string\"},{\"id\":\"reason\",\"type\":\"string\"}]},{\"id\":\"stateMismatch\",\"source\":\"derived\",\"columns\":[{\"id\":\"state\",\"type\":\"string\"},{\"id\":\"record\",\"type\":\"string\"},{\"id\":\"check\",\"type\":\"string\"},{\"id\":\"outcome\",\"type\":\"string\"}]},{\"id\":\"ruledOutState\",\"source\":\"derived\",\"columns\":[{\"id\":\"state\",\"type\":\"string\"}]},{\"id\":\"remainingState\",\"source\":\"derived\",\"columns\":[{\"id\":\"state\",\"type\":\"string\"},{\"id\":\"label\",\"type\":\"string\"}]},{\"id\":\"possibleCorrection\",\"source\":\"derived\",\"columns\":[{\"id\":\"correction\",\"type\":\"string\"}]},{\"id\":\"absentCorrection\",\"source\":\"derived\",\"columns\":[{\"id\":\"correction\",\"type\":\"string\"}]},{\"id\":\"variableCorrection\",\"source\":\"derived\",\"columns\":[{\"id\":\"correction\",\"type\":\"string\"}]},{\"id\":\"requiredCorrection\",\"source\":\"derived\",\"columns\":[{\"id\":\"correction\",\"type\":\"string\"}]},{\"id\":\"hasRemainingState\",\"source\":\"derived\",\"columns\":[{\"id\":\"value\",\"type\":\"boolean\"}]},{\"id\":\"correctionsEstablished\",\"source\":\"derived\",\"columns\":[{\"id\":\"value\",\"type\":\"boolean\"}]}],\"rules\":[{\"id\":\"RECORD.SCOPE.MISSING\",\"head\":{\"relation\":\"wrongScope\",\"args\":[\"?record\"]},\"body\":[{\"relation\":\"observation\",\"args\":[\"?record\",\"?check\",\"?outcome\",\"?observed\",\"?source\",\"?person\",\"?text\"]},{\"relation\":\"expectedScope\",\"args\":[\"?field\",\"?expected\"]},{\"op\":\"notExists\",\"atom\":{\"relation\":\"recordScope\",\"args\":[\"?record\",\"?field\",\"?expected\"]}}]},{\"id\":\"RECORD.SCOPE.EXTRA\",\"head\":{\"relation\":\"wrongScope\",\"args\":[\"?record\"]},\"body\":[{\"relation\":\"recordScope\",\"args\":[\"?record\",\"?field\",\"?value\"]},{\"op\":\"notExists\",\"atom\":{\"relation\":\"expectedScope\",\"args\":[\"?field\",\"?value\"]}}]},{\"id\":\"RECORD.FUTURE\",\"head\":{\"relation\":\"futureRecord\",\"args\":[\"?record\"]},\"body\":[{\"relation\":\"observation\",\"args\":[\"?record\",\"?check\",\"?outcome\",\"?observed\",\"?source\",\"?person\",\"?text\"]},{\"op\":\"gt\",\"args\":[\"?observed\",{\"parameter\":\"nowMinute\"}]}]},{\"id\":\"RECORD.USED\",\"head\":{\"relation\":\"usedRecord\",\"args\":[\"?record\",\"?check\",\"?outcome\"]},\"body\":[{\"relation\":\"observation\",\"args\":[\"?record\",\"?check\",\"?outcome\",\"?observed\",\"?source\",\"?person\",\"?text\"]},{\"op\":\"notExists\",\"atom\":{\"relation\":\"wrongScope\",\"args\":[\"?record\"]}},{\"op\":\"notExists\",\"atom\":{\"relation\":\"futureRecord\",\"args\":[\"?record\"]}}]},{\"id\":\"RECORD.WRONG.SCOPE.DISPOSITION\",\"head\":{\"relation\":\"recordDisposition\",\"args\":[\"?record\",\"ignored\",\"wrong-scope\",\"The record describes a different batch, revision, device or account scope.\"]},\"body\":[{\"relation\":\"wrongScope\",\"args\":[\"?record\"]}]},{\"id\":\"RECORD.FUTURE.DISPOSITION\",\"head\":{\"relation\":\"recordDisposition\",\"args\":[\"?record\",\"ignored\",\"future-observation\",\"The reported observation is later than the explicit review time.\"]},\"body\":[{\"relation\":\"futureRecord\",\"args\":[\"?record\"]},{\"op\":\"notExists\",\"atom\":{\"relation\":\"wrongScope\",\"args\":[\"?record\"]}}]},{\"id\":\"RECORD.USED.DISPOSITION\",\"head\":{\"relation\":\"recordDisposition\",\"args\":[\"?record\",\"used\",\"current-scoped-report\",\"The report is used under the published check predictions for this exact scope.\"]},\"body\":[{\"relation\":\"usedRecord\",\"args\":[\"?record\",\"?check\",\"?outcome\"]}]},{\"id\":\"STATE.REPORT.MISMATCH\",\"head\":{\"relation\":\"stateMismatch\",\"args\":[\"?state\",\"?record\",\"?check\",\"?outcome\"]},\"body\":[{\"relation\":\"state\",\"args\":[\"?state\",\"?label\"]},{\"relation\":\"usedRecord\",\"args\":[\"?record\",\"?check\",\"?outcome\"]},{\"op\":\"notExists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"?state\",\"?check\",\"?outcome\"]}}]},{\"id\":\"STATE.RULED.OUT\",\"head\":{\"relation\":\"ruledOutState\",\"args\":[\"?state\"]},\"body\":[{\"relation\":\"stateMismatch\",\"args\":[\"?state\",\"?record\",\"?check\",\"?outcome\"]}]},{\"id\":\"STATE.REMAINS\",\"head\":{\"relation\":\"remainingState\",\"args\":[\"?state\",\"?label\"]},\"body\":[{\"relation\":\"state\",\"args\":[\"?state\",\"?label\"]},{\"op\":\"notExists\",\"atom\":{\"relation\":\"ruledOutState\",\"args\":[\"?state\"]}}]},{\"id\":\"CORRECTION.POSSIBLE\",\"head\":{\"relation\":\"possibleCorrection\",\"args\":[\"?correction\"]},\"body\":[{\"relation\":\"remainingState\",\"args\":[\"?state\",\"?label\"]},{\"relation\":\"stateCorrection\",\"args\":[\"?state\",\"?correction\"]}]},{\"id\":\"CORRECTION.ABSENT\",\"head\":{\"relation\":\"absentCorrection\",\"args\":[\"?correction\"]},\"body\":[{\"relation\":\"remainingState\",\"args\":[\"?state\",\"?label\"]},{\"relation\":\"correction\",\"args\":[\"?correction\"]},{\"op\":\"notExists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"?state\",\"?correction\"]}}]},{\"id\":\"CORRECTION.VARIES\",\"head\":{\"relation\":\"variableCorrection\",\"args\":[\"?correction\"]},\"body\":[{\"relation\":\"possibleCorrection\",\"args\":[\"?correction\"]},{\"relation\":\"absentCorrection\",\"args\":[\"?correction\"]}]},{\"id\":\"BASIS.NONEMPTY\",\"head\":{\"relation\":\"hasRemainingState\",\"args\":[true]},\"body\":[{\"relation\":\"remainingState\",\"args\":[\"?state\",\"?label\"]}]},{\"id\":\"CORRECTIONS.ESTABLISHED\",\"head\":{\"relation\":\"correctionsEstablished\",\"args\":[true]},\"body\":[{\"relation\":\"hasRemainingState\",\"args\":[true]},{\"op\":\"notExists\",\"atom\":{\"relation\":\"variableCorrection\",\"args\":[\"?correction\"]}}]},{\"id\":\"CORRECTION.REQUIRED\",\"head\":{\"relation\":\"requiredCorrection\",\"args\":[\"?correction\"]},\"body\":[{\"relation\":\"correctionsEstablished\",\"args\":[true]},{\"relation\":\"possibleCorrection\",\"args\":[\"?correction\"]}]}],\"admission\":[{\"id\":\"SCOPE.REQUIRED.0\",\"label\":\"Declare the current batchId\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"expectedScope\",\"args\":[\"batchId\",\"?value\"]}}},{\"id\":\"SCOPE.REQUIRED.1\",\"label\":\"Declare the current insertRevision\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"expectedScope\",\"args\":[\"insertRevision\",\"?value\"]}}},{\"id\":\"SCOPE.REQUIRED.2\",\"label\":\"Declare the current destinationRevision\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"expectedScope\",\"args\":[\"destinationRevision\",\"?value\"]}}},{\"id\":\"SCOPE.REQUIRED.3\",\"label\":\"Declare the current checkoutRevision\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"expectedScope\",\"args\":[\"checkoutRevision\",\"?value\"]}}},{\"id\":\"SCOPE.REQUIRED.4\",\"label\":\"Declare the current deviceScope\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"expectedScope\",\"args\":[\"deviceScope\",\"?value\"]}}},{\"id\":\"SCOPE.REQUIRED.5\",\"label\":\"Declare the current accountScope\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"expectedScope\",\"args\":[\"accountScope\",\"?value\"]}}},{\"id\":\"SCOPE.EXACT\",\"label\":\"Declare exactly the published scope fields\",\"when\":[{\"count\":{\"relation\":\"expectedScope\",\"args\":[\"?field\",\"?value\"]},\"as\":\"?n\"}],\"assert\":{\"op\":\"eq\",\"args\":[\"?n\",6]}},{\"id\":\"RECORD.KNOWN.CHECK.OUTCOME\",\"label\":\"Every report identifies an outcome supported for its check\",\"when\":[{\"relation\":\"observation\",\"args\":[\"?record\",\"?check\",\"?outcome\",\"?observed\",\"?source\",\"?person\",\"?text\"]}],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"checkOutcome\",\"args\":[\"?check\",\"?outcome\"]}}},{\"id\":\"RECORD.NONNEGATIVE.TIME\",\"label\":\"Each observation uses a nonnegative whole minute\",\"when\":[{\"relation\":\"observation\",\"args\":[\"?record\",\"?check\",\"?outcome\",\"?observed\",\"?source\",\"?person\",\"?text\"]}],\"assert\":{\"op\":\"gte\",\"args\":[\"?observed\",0]}},{\"id\":\"FIXED.state.COUNT\",\"label\":\"Retain the complete published state table\",\"when\":[{\"count\":{\"relation\":\"state\",\"args\":[\"?v0\",\"?v1\"]},\"as\":\"?n\"}],\"assert\":{\"op\":\"eq\",\"args\":[\"?n\",8]}},{\"id\":\"FIXED.state.0\",\"label\":\"Retain the published meaning of state row 1\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"state\",\"args\":[\"none\",\"No modeled fault\"]}}},{\"id\":\"FIXED.state.1\",\"label\":\"Retain the published meaning of state row 2\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"state\",\"args\":[\"print\",\"The printed code cannot be read\"]}}},{\"id\":\"FIXED.state.2\",\"label\":\"Retain the published meaning of state row 3\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"state\",\"args\":[\"destination\",\"The code leads to the wrong destination\"]}}},{\"id\":\"FIXED.state.3\",\"label\":\"Retain the published meaning of state row 4\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"state\",\"args\":[\"print-destination\",\"The printed code cannot be read; The code leads to the wrong destination\"]}}},{\"id\":\"FIXED.state.4\",\"label\":\"Retain the published meaning of state row 5\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"state\",\"args\":[\"checkout\",\"The intended checkout is restricted\"]}}},{\"id\":\"FIXED.state.5\",\"label\":\"Retain the published meaning of state row 6\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"state\",\"args\":[\"print-checkout\",\"The printed code cannot be read; The intended checkout is restricted\"]}}},{\"id\":\"FIXED.state.6\",\"label\":\"Retain the published meaning of state row 7\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"state\",\"args\":[\"destination-checkout\",\"The code leads to the wrong destination; The intended checkout is restricted\"]}}},{\"id\":\"FIXED.state.7\",\"label\":\"Retain the published meaning of state row 8\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"state\",\"args\":[\"print-destination-checkout\",\"The printed code cannot be read; The code leads to the wrong destination; The intended checkout is restricted\"]}}},{\"id\":\"FIXED.stateFault.COUNT\",\"label\":\"Retain the complete published stateFault table\",\"when\":[{\"count\":{\"relation\":\"stateFault\",\"args\":[\"?v0\",\"?v1\"]},\"as\":\"?n\"}],\"assert\":{\"op\":\"eq\",\"args\":[\"?n\",12]}},{\"id\":\"FIXED.stateFault.0\",\"label\":\"Retain the published meaning of stateFault row 1\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"print\",\"print\"]}}},{\"id\":\"FIXED.stateFault.1\",\"label\":\"Retain the published meaning of stateFault row 2\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"destination\",\"destination\"]}}},{\"id\":\"FIXED.stateFault.2\",\"label\":\"Retain the published meaning of stateFault row 3\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"print-destination\",\"print\"]}}},{\"id\":\"FIXED.stateFault.3\",\"label\":\"Retain the published meaning of stateFault row 4\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"print-destination\",\"destination\"]}}},{\"id\":\"FIXED.stateFault.4\",\"label\":\"Retain the published meaning of stateFault row 5\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"checkout\",\"checkout\"]}}},{\"id\":\"FIXED.stateFault.5\",\"label\":\"Retain the published meaning of stateFault row 6\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"print-checkout\",\"print\"]}}},{\"id\":\"FIXED.stateFault.6\",\"label\":\"Retain the published meaning of stateFault row 7\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"print-checkout\",\"checkout\"]}}},{\"id\":\"FIXED.stateFault.7\",\"label\":\"Retain the published meaning of stateFault row 8\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"destination-checkout\",\"destination\"]}}},{\"id\":\"FIXED.stateFault.8\",\"label\":\"Retain the published meaning of stateFault row 9\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"destination-checkout\",\"checkout\"]}}},{\"id\":\"FIXED.stateFault.9\",\"label\":\"Retain the published meaning of stateFault row 10\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"print-destination-checkout\",\"print\"]}}},{\"id\":\"FIXED.stateFault.10\",\"label\":\"Retain the published meaning of stateFault row 11\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"print-destination-checkout\",\"destination\"]}}},{\"id\":\"FIXED.stateFault.11\",\"label\":\"Retain the published meaning of stateFault row 12\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateFault\",\"args\":[\"print-destination-checkout\",\"checkout\"]}}},{\"id\":\"FIXED.stateCorrection.COUNT\",\"label\":\"Retain the complete published stateCorrection table\",\"when\":[{\"count\":{\"relation\":\"stateCorrection\",\"args\":[\"?v0\",\"?v1\"]},\"as\":\"?n\"}],\"assert\":{\"op\":\"eq\",\"args\":[\"?n\",12]}},{\"id\":\"FIXED.stateCorrection.0\",\"label\":\"Retain the published meaning of stateCorrection row 1\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"print\",\"replace-insert\"]}}},{\"id\":\"FIXED.stateCorrection.1\",\"label\":\"Retain the published meaning of stateCorrection row 2\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"destination\",\"correct-destination\"]}}},{\"id\":\"FIXED.stateCorrection.2\",\"label\":\"Retain the published meaning of stateCorrection row 3\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"print-destination\",\"replace-insert\"]}}},{\"id\":\"FIXED.stateCorrection.3\",\"label\":\"Retain the published meaning of stateCorrection row 4\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"print-destination\",\"correct-destination\"]}}},{\"id\":\"FIXED.stateCorrection.4\",\"label\":\"Retain the published meaning of stateCorrection row 5\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"checkout\",\"fix-checkout\"]}}},{\"id\":\"FIXED.stateCorrection.5\",\"label\":\"Retain the published meaning of stateCorrection row 6\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"print-checkout\",\"replace-insert\"]}}},{\"id\":\"FIXED.stateCorrection.6\",\"label\":\"Retain the published meaning of stateCorrection row 7\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"print-checkout\",\"fix-checkout\"]}}},{\"id\":\"FIXED.stateCorrection.7\",\"label\":\"Retain the published meaning of stateCorrection row 8\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"destination-checkout\",\"correct-destination\"]}}},{\"id\":\"FIXED.stateCorrection.8\",\"label\":\"Retain the published meaning of stateCorrection row 9\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"destination-checkout\",\"fix-checkout\"]}}},{\"id\":\"FIXED.stateCorrection.9\",\"label\":\"Retain the published meaning of stateCorrection row 10\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"print-destination-checkout\",\"replace-insert\"]}}},{\"id\":\"FIXED.stateCorrection.10\",\"label\":\"Retain the published meaning of stateCorrection row 11\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"print-destination-checkout\",\"correct-destination\"]}}},{\"id\":\"FIXED.stateCorrection.11\",\"label\":\"Retain the published meaning of stateCorrection row 12\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"stateCorrection\",\"args\":[\"print-destination-checkout\",\"fix-checkout\"]}}},{\"id\":\"FIXED.checkOutcome.COUNT\",\"label\":\"Retain the complete published checkOutcome table\",\"when\":[{\"count\":{\"relation\":\"checkOutcome\",\"args\":[\"?v0\",\"?v1\"]},\"as\":\"?n\"}],\"assert\":{\"op\":\"eq\",\"args\":[\"?n\",9]}},{\"id\":\"FIXED.checkOutcome.0\",\"label\":\"Retain the published meaning of checkOutcome row 1\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"checkOutcome\",\"args\":[\"rescan\",\"readable\"]}}},{\"id\":\"FIXED.checkOutcome.1\",\"label\":\"Retain the published meaning of checkOutcome row 2\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"checkOutcome\",\"args\":[\"rescan\",\"unreadable\"]}}},{\"id\":\"FIXED.checkOutcome.2\",\"label\":\"Retain the published meaning of checkOutcome row 3\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"checkOutcome\",\"args\":[\"decode\",\"unreadable\"]}}},{\"id\":\"FIXED.checkOutcome.3\",\"label\":\"Retain the published meaning of checkOutcome row 4\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"checkOutcome\",\"args\":[\"decode\",\"approved-target\"]}}},{\"id\":\"FIXED.checkOutcome.4\",\"label\":\"Retain the published meaning of checkOutcome row 5\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"checkOutcome\",\"args\":[\"decode\",\"wrong-target\"]}}},{\"id\":\"FIXED.checkOutcome.5\",\"label\":\"Retain the published meaning of checkOutcome row 6\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"checkOutcome\",\"args\":[\"proof\",\"approved-target\"]}}},{\"id\":\"FIXED.checkOutcome.6\",\"label\":\"Retain the published meaning of checkOutcome row 7\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"checkOutcome\",\"args\":[\"proof\",\"wrong-target\"]}}},{\"id\":\"FIXED.checkOutcome.7\",\"label\":\"Retain the published meaning of checkOutcome row 8\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"checkOutcome\",\"args\":[\"checkout\",\"usable\"]}}},{\"id\":\"FIXED.checkOutcome.8\",\"label\":\"Retain the published meaning of checkOutcome row 9\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"checkOutcome\",\"args\":[\"checkout\",\"blocked\"]}}},{\"id\":\"FIXED.prediction.COUNT\",\"label\":\"Retain the complete published prediction table\",\"when\":[{\"count\":{\"relation\":\"prediction\",\"args\":[\"?v0\",\"?v1\",\"?v2\"]},\"as\":\"?n\"}],\"assert\":{\"op\":\"eq\",\"args\":[\"?n\",32]}},{\"id\":\"FIXED.prediction.0\",\"label\":\"Retain the published meaning of prediction row 1\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"none\",\"rescan\",\"readable\"]}}},{\"id\":\"FIXED.prediction.1\",\"label\":\"Retain the published meaning of prediction row 2\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print\",\"rescan\",\"unreadable\"]}}},{\"id\":\"FIXED.prediction.2\",\"label\":\"Retain the published meaning of prediction row 3\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"destination\",\"rescan\",\"readable\"]}}},{\"id\":\"FIXED.prediction.3\",\"label\":\"Retain the published meaning of prediction row 4\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-destination\",\"rescan\",\"unreadable\"]}}},{\"id\":\"FIXED.prediction.4\",\"label\":\"Retain the published meaning of prediction row 5\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"checkout\",\"rescan\",\"readable\"]}}},{\"id\":\"FIXED.prediction.5\",\"label\":\"Retain the published meaning of prediction row 6\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-checkout\",\"rescan\",\"unreadable\"]}}},{\"id\":\"FIXED.prediction.6\",\"label\":\"Retain the published meaning of prediction row 7\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"destination-checkout\",\"rescan\",\"readable\"]}}},{\"id\":\"FIXED.prediction.7\",\"label\":\"Retain the published meaning of prediction row 8\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-destination-checkout\",\"rescan\",\"unreadable\"]}}},{\"id\":\"FIXED.prediction.8\",\"label\":\"Retain the published meaning of prediction row 9\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"none\",\"decode\",\"approved-target\"]}}},{\"id\":\"FIXED.prediction.9\",\"label\":\"Retain the published meaning of prediction row 10\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print\",\"decode\",\"unreadable\"]}}},{\"id\":\"FIXED.prediction.10\",\"label\":\"Retain the published meaning of prediction row 11\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"destination\",\"decode\",\"wrong-target\"]}}},{\"id\":\"FIXED.prediction.11\",\"label\":\"Retain the published meaning of prediction row 12\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-destination\",\"decode\",\"unreadable\"]}}},{\"id\":\"FIXED.prediction.12\",\"label\":\"Retain the published meaning of prediction row 13\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"checkout\",\"decode\",\"approved-target\"]}}},{\"id\":\"FIXED.prediction.13\",\"label\":\"Retain the published meaning of prediction row 14\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-checkout\",\"decode\",\"unreadable\"]}}},{\"id\":\"FIXED.prediction.14\",\"label\":\"Retain the published meaning of prediction row 15\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"destination-checkout\",\"decode\",\"wrong-target\"]}}},{\"id\":\"FIXED.prediction.15\",\"label\":\"Retain the published meaning of prediction row 16\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-destination-checkout\",\"decode\",\"unreadable\"]}}},{\"id\":\"FIXED.prediction.16\",\"label\":\"Retain the published meaning of prediction row 17\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"none\",\"proof\",\"approved-target\"]}}},{\"id\":\"FIXED.prediction.17\",\"label\":\"Retain the published meaning of prediction row 18\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print\",\"proof\",\"approved-target\"]}}},{\"id\":\"FIXED.prediction.18\",\"label\":\"Retain the published meaning of prediction row 19\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"destination\",\"proof\",\"wrong-target\"]}}},{\"id\":\"FIXED.prediction.19\",\"label\":\"Retain the published meaning of prediction row 20\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-destination\",\"proof\",\"wrong-target\"]}}},{\"id\":\"FIXED.prediction.20\",\"label\":\"Retain the published meaning of prediction row 21\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"checkout\",\"proof\",\"approved-target\"]}}},{\"id\":\"FIXED.prediction.21\",\"label\":\"Retain the published meaning of prediction row 22\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-checkout\",\"proof\",\"approved-target\"]}}},{\"id\":\"FIXED.prediction.22\",\"label\":\"Retain the published meaning of prediction row 23\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"destination-checkout\",\"proof\",\"wrong-target\"]}}},{\"id\":\"FIXED.prediction.23\",\"label\":\"Retain the published meaning of prediction row 24\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-destination-checkout\",\"proof\",\"wrong-target\"]}}},{\"id\":\"FIXED.prediction.24\",\"label\":\"Retain the published meaning of prediction row 25\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"none\",\"checkout\",\"usable\"]}}},{\"id\":\"FIXED.prediction.25\",\"label\":\"Retain the published meaning of prediction row 26\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print\",\"checkout\",\"usable\"]}}},{\"id\":\"FIXED.prediction.26\",\"label\":\"Retain the published meaning of prediction row 27\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"destination\",\"checkout\",\"usable\"]}}},{\"id\":\"FIXED.prediction.27\",\"label\":\"Retain the published meaning of prediction row 28\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-destination\",\"checkout\",\"usable\"]}}},{\"id\":\"FIXED.prediction.28\",\"label\":\"Retain the published meaning of prediction row 29\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"checkout\",\"checkout\",\"blocked\"]}}},{\"id\":\"FIXED.prediction.29\",\"label\":\"Retain the published meaning of prediction row 30\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-checkout\",\"checkout\",\"blocked\"]}}},{\"id\":\"FIXED.prediction.30\",\"label\":\"Retain the published meaning of prediction row 31\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"destination-checkout\",\"checkout\",\"blocked\"]}}},{\"id\":\"FIXED.prediction.31\",\"label\":\"Retain the published meaning of prediction row 32\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"prediction\",\"args\":[\"print-destination-checkout\",\"checkout\",\"blocked\"]}}},{\"id\":\"FIXED.correction.COUNT\",\"label\":\"Retain the complete published correction table\",\"when\":[{\"count\":{\"relation\":\"correction\",\"args\":[\"?v0\"]},\"as\":\"?n\"}],\"assert\":{\"op\":\"eq\",\"args\":[\"?n\",3]}},{\"id\":\"FIXED.correction.0\",\"label\":\"Retain the published meaning of correction row 1\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"correction\",\"args\":[\"replace-insert\"]}}},{\"id\":\"FIXED.correction.1\",\"label\":\"Retain the published meaning of correction row 2\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"correction\",\"args\":[\"correct-destination\"]}}},{\"id\":\"FIXED.correction.2\",\"label\":\"Retain the published meaning of correction row 3\",\"when\":[],\"assert\":{\"op\":\"exists\",\"atom\":{\"relation\":\"correction\",\"args\":[\"fix-checkout\"]}}}],\"generation\":[],\"constraints\":[],\"queries\":[{\"id\":\"remaining-configurations\",\"label\":\"Which fault combinations still agree with these gift-kit records?\",\"kind\":\"set\",\"body\":[{\"relation\":\"remainingState\",\"args\":[\"?state\",\"?label\"]}],\"select\":[\"?state\",\"?label\"]}],\"reports\":{\"tables\":[{\"id\":\"remaining-states\",\"label\":\"Fault combinations still possible\",\"relation\":\"remainingState\",\"columns\":[\"state\",\"label\"]},{\"id\":\"state-faults\",\"label\":\"Faults present in each published configuration\",\"relation\":\"stateFault\",\"columns\":[\"state\",\"fault\"]},{\"id\":\"state-corrections\",\"label\":\"Corrections associated with each configuration\",\"relation\":\"stateCorrection\",\"columns\":[\"state\",\"correction\"]},{\"id\":\"record-dispositions\",\"label\":\"How each supplied record was used\",\"relation\":\"recordDisposition\",\"columns\":[\"record\",\"disposition\",\"code\",\"reason\"]},{\"id\":\"ruled-out-by-records\",\"label\":\"Reports ruling out fault combinations\",\"relation\":\"stateMismatch\",\"columns\":[\"state\",\"record\",\"check\",\"outcome\"]},{\"id\":\"corrections-established\",\"label\":\"Do the remaining combinations require the same corrections?\",\"relation\":\"correctionsEstablished\",\"columns\":[\"value\"]},{\"id\":\"required-corrections\",\"label\":\"The complete established correction set\",\"relation\":\"requiredCorrection\",\"columns\":[\"correction\"]}]},\"metadata\":{\"decisionPresentation\":{\"format\":\"decision-presentation/1\",\"primaryQueryIds\":[\"remaining-configurations\"]},\"profileId\":\"gift-kit-readiness\",\"profileVersion\":\"1.0.0\",\"illustrative\":true,\"scopeFields\":[\"batchId\",\"insertRevision\",\"destinationRevision\",\"checkoutRevision\",\"deviceScope\",\"accountScope\"],\"faults\":[{\"id\":\"print\",\"label\":\"The printed code cannot be read\",\"correctionId\":\"replace-insert\"},{\"id\":\"destination\",\"label\":\"The code leads to the wrong destination\",\"correctionId\":\"correct-destination\"},{\"id\":\"checkout\",\"label\":\"The intended checkout is restricted\",\"correctionId\":\"fix-checkout\"}],\"checks\":[{\"id\":\"rescan\",\"label\":\"Rescan the printed insert\",\"outcomeIds\":[\"readable\",\"unreadable\"]},{\"id\":\"decode\",\"label\":\"Decode the printed destination\",\"outcomeIds\":[\"unreadable\",\"approved-target\",\"wrong-target\"]},{\"id\":\"proof\",\"label\":\"Inspect the destination in the source artwork\",\"outcomeIds\":[\"approved-target\",\"wrong-target\"]},{\"id\":\"checkout\",\"label\":\"Try checkout for the intended account\",\"outcomeIds\":[\"usable\",\"blocked\"]}],\"catalog\":{\"domain\":{\"id\":\"gifting-operations\",\"label\":\"Gifting operations\",\"description\":\"Review gift-kit evidence, corrective work and preparation commitments.\"},\"useCase\":{\"id\":\"prepare-gift-kit-campaign\",\"label\":\"Prepare a gift-kit campaign\",\"description\":\"Review failed preorder rehearsals and complete correction arrangements before committing gift kits.\"}},\"supportingReports\":{\"format\":\"supporting-reports/1\",\"reports\":[{\"id\":\"findings\",\"label\":\"Evidence findings\",\"question\":\"What does the supplied evidence establish for each question?\",\"template\":\"records/1\",\"source\":{\"kind\":\"report-dataset\",\"datasetId\":\"findings:all-findings\"},\"bindings\":{\"columns\":[{\"key\":\"label\",\"label\":\"Question\"},{\"key\":\"statusLabel\",\"label\":\"Finding\"},{\"key\":\"answerText\",\"label\":\"Supported answer\"},{\"key\":\"businessExplanation\",\"label\":\"Explanation\"}]}},{\"id\":\"explanations\",\"label\":\"Possible explanations\",\"question\":\"Which answers remain compatible with the supplied evidence?\",\"template\":\"records/1\",\"source\":{\"kind\":\"report-dataset\",\"datasetId\":\"explanations:matrix\"},\"bindings\":{\"columns\":[{\"key\":\"question\",\"label\":\"Question\"},{\"key\":\"finding\",\"label\":\"Finding across compatible explanations\"}]}},{\"id\":\"evaluation-coverage\",\"label\":\"Evaluation coverage\",\"question\":\"Were the declared possibilities checked completely?\",\"template\":\"records/1\",\"source\":{\"kind\":\"report-dataset\",\"datasetId\":\"checks:coverage\"},\"bindings\":{\"columns\":[{\"key\":\"measure\",\"label\":\"Coverage measure\"},{\"key\":\"value\",\"label\":\"Calculated value\"}]}}]},\"inputDesign\":{\"version\":1,\"form\":{\"type\":\"object\",\"label\":\"Case inputs\",\"fields\":{\"scope\":{\"type\":\"string\",\"label\":\"Scope\"},\"parameters\":{\"type\":\"object\",\"label\":\"Parameters\",\"fields\":{\"nowMinute\":{\"type\":\"number\",\"label\":\"Review time in whole minutes from the declared origin\",\"integer\":true,\"minimum\":0}}},\"basis\":{\"type\":\"object\",\"label\":\"Basis\",\"fields\":{\"expectedScope\":{\"type\":\"array\",\"label\":\"Expected Scope\",\"items\":{\"type\":\"object\",\"label\":\"Expected Scope record\",\"fields\":{\"field\":{\"type\":\"string\",\"label\":\"Field\"},\"value\":{\"type\":\"string\",\"label\":\"Value\"}}},\"keyFields\":[\"field\"]},\"state\":{\"type\":\"array\",\"label\":\"State\",\"items\":{\"type\":\"object\",\"label\":\"State record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"label\":{\"type\":\"string\",\"label\":\"Label\"}}},\"keyFields\":[\"id\"]},\"stateFault\":{\"type\":\"array\",\"label\":\"State Fault\",\"items\":{\"type\":\"object\",\"label\":\"State Fault record\",\"fields\":{\"state\":{\"type\":\"string\",\"label\":\"State\"},\"fault\":{\"type\":\"string\",\"label\":\"Fault\"}}},\"keyFields\":[\"state\",\"fault\"]},\"stateCorrection\":{\"type\":\"array\",\"label\":\"State Correction\",\"items\":{\"type\":\"object\",\"label\":\"State Correction record\",\"fields\":{\"state\":{\"type\":\"string\",\"label\":\"State\"},\"correction\":{\"type\":\"string\",\"label\":\"Correction\"}}},\"keyFields\":[\"state\",\"correction\"]},\"checkOutcome\":{\"type\":\"array\",\"label\":\"Check Outcome\",\"items\":{\"type\":\"object\",\"label\":\"Check Outcome record\",\"fields\":{\"check\":{\"type\":\"string\",\"label\":\"Check\"},\"outcome\":{\"type\":\"string\",\"label\":\"Outcome\"}}},\"keyFields\":[\"check\",\"outcome\"]},\"prediction\":{\"type\":\"array\",\"label\":\"Prediction\",\"items\":{\"type\":\"object\",\"label\":\"Prediction record\",\"fields\":{\"state\":{\"type\":\"string\",\"label\":\"State\"},\"check\":{\"type\":\"string\",\"label\":\"Check\"},\"outcome\":{\"type\":\"string\",\"label\":\"Outcome\"}}},\"keyFields\":[\"state\",\"check\",\"outcome\"]},\"correction\":{\"type\":\"array\",\"label\":\"Correction\",\"items\":{\"type\":\"object\",\"label\":\"Correction record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"}}},\"keyFields\":[\"id\"]}}},\"evidence\":{\"type\":\"object\",\"label\":\"Evidence\",\"fields\":{\"observation\":{\"type\":\"array\",\"label\":\"Observation\",\"items\":{\"type\":\"object\",\"label\":\"Observation record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"check\":{\"type\":\"string\",\"label\":\"Check\"},\"outcome\":{\"type\":\"string\",\"label\":\"Outcome\"},\"observed\":{\"type\":\"number\",\"label\":\"Observed\",\"integer\":true},\"source\":{\"type\":\"string\",\"label\":\"Source\"},\"person\":{\"type\":\"string\",\"label\":\"Person\"},\"text\":{\"type\":\"string\",\"label\":\"Text\"}}},\"keyFields\":[\"id\"]},\"recordScope\":{\"type\":\"array\",\"label\":\"Record Scope\",\"items\":{\"type\":\"object\",\"label\":\"Record Scope record\",\"fields\":{\"record\":{\"type\":\"string\",\"label\":\"Record\"},\"field\":{\"type\":\"string\",\"label\":\"Field\"},\"value\":{\"type\":\"string\",\"label\":\"Value\"}}},\"keyFields\":[\"record\",\"field\"]}}},\"queryIds\":{\"type\":\"array\",\"label\":\"Query Ids\",\"items\":{\"type\":\"string\",\"label\":\"Query Ids record\",\"options\":[\"remaining-configurations\"]}}}},\"groups\":[{\"id\":\"question-and-scope\",\"label\":\"Question and scope\",\"question\":\"Which question and exact configuration should the evidence establish?\",\"subtabs\":[{\"id\":\"scope\",\"label\":\"Question and scope\",\"fieldPaths\":[\"/scope\",\"/parameters\",\"/queryIds\",\"/basis/expectedScope\"]}]},{\"id\":\"observed-records\",\"label\":\"Evidence records\",\"question\":\"Which observations and scope records were supplied?\",\"subtabs\":[{\"id\":\"observation\",\"label\":\"Observation\",\"fieldPaths\":[\"/evidence/observation\"]},{\"id\":\"recordScope\",\"label\":\"Record Scope\",\"fieldPaths\":[\"/evidence/recordScope\"]}]},{\"id\":\"admitted-possibilities\",\"label\":\"Possibilities and checks\",\"question\":\"Which declared possibilities and check outcomes form the bounded evidence case?\",\"subtabs\":[{\"id\":\"state\",\"label\":\"State\",\"fieldPaths\":[\"/basis/state\"]},{\"id\":\"stateFault\",\"label\":\"State Fault\",\"fieldPaths\":[\"/basis/stateFault\"]},{\"id\":\"stateCorrection\",\"label\":\"State Correction\",\"fieldPaths\":[\"/basis/stateCorrection\"]},{\"id\":\"checkOutcome\",\"label\":\"Check Outcome\",\"fieldPaths\":[\"/basis/checkOutcome\"]},{\"id\":\"prediction\",\"label\":\"Prediction\",\"fieldPaths\":[\"/basis/prediction\"]},{\"id\":\"correction\",\"label\":\"Correction\",\"fieldPaths\":[\"/basis/correction\"]}]}]}}},\"case\":{\"id\":\"gift-campaign-example-evidence\",\"scope\":\"{\\\"batchId\\\":\\\"GIFT-120\\\",\\\"insertRevision\\\":\\\"insert-3\\\",\\\"destinationRevision\\\":\\\"destination-2\\\",\\\"checkoutRevision\\\":\\\"checkout-1\\\",\\\"deviceScope\\\":\\\"campaign-test-phone\\\",\\\"accountScope\\\":\\\"intended-recipient-account\\\"}\",\"parameters\":{\"nowMinute\":0},\"basis\":{\"expectedScope\":[{\"field\":\"batchId\",\"value\":\"\\\"GIFT-120\\\"\"},{\"field\":\"insertRevision\",\"value\":\"\\\"insert-3\\\"\"},{\"field\":\"destinationRevision\",\"value\":\"\\\"destination-2\\\"\"},{\"field\":\"checkoutRevision\",\"value\":\"\\\"checkout-1\\\"\"},{\"field\":\"deviceScope\",\"value\":\"\\\"campaign-test-phone\\\"\"},{\"field\":\"accountScope\",\"value\":\"\\\"intended-recipient-account\\\"\"}],\"state\":[{\"id\":\"none\",\"label\":\"No modeled fault\"},{\"id\":\"print\",\"label\":\"The printed code cannot be read\"},{\"id\":\"destination\",\"label\":\"The code leads to the wrong destination\"},{\"id\":\"print-destination\",\"label\":\"The printed code cannot be read; The code leads to the wrong destination\"},{\"id\":\"checkout\",\"label\":\"The intended checkout is restricted\"},{\"id\":\"print-checkout\",\"label\":\"The printed code cannot be read; The intended checkout is restricted\"},{\"id\":\"destination-checkout\",\"label\":\"The code leads to the wrong destination; The intended checkout is restricted\"},{\"id\":\"print-destination-checkout\",\"label\":\"The printed code cannot be read; The code leads to the wrong destination; The intended checkout is restricted\"}],\"stateFault\":[{\"state\":\"print\",\"fault\":\"print\"},{\"state\":\"destination\",\"fault\":\"destination\"},{\"state\":\"print-destination\",\"fault\":\"print\"},{\"state\":\"print-destination\",\"fault\":\"destination\"},{\"state\":\"checkout\",\"fault\":\"checkout\"},{\"state\":\"print-checkout\",\"fault\":\"print\"},{\"state\":\"print-checkout\",\"fault\":\"checkout\"},{\"state\":\"destination-checkout\",\"fault\":\"destination\"},{\"state\":\"destination-checkout\",\"fault\":\"checkout\"},{\"state\":\"print-destination-checkout\",\"fault\":\"print\"},{\"state\":\"print-destination-checkout\",\"fault\":\"destination\"},{\"state\":\"print-destination-checkout\",\"fault\":\"checkout\"}],\"stateCorrection\":[{\"state\":\"print\",\"correction\":\"replace-insert\"},{\"state\":\"destination\",\"correction\":\"correct-destination\"},{\"state\":\"print-destination\",\"correction\":\"replace-insert\"},{\"state\":\"print-destination\",\"correction\":\"correct-destination\"},{\"state\":\"checkout\",\"correction\":\"fix-checkout\"},{\"state\":\"print-checkout\",\"correction\":\"replace-insert\"},{\"state\":\"print-checkout\",\"correction\":\"fix-checkout\"},{\"state\":\"destination-checkout\",\"correction\":\"correct-destination\"},{\"state\":\"destination-checkout\",\"correction\":\"fix-checkout\"},{\"state\":\"print-destination-checkout\",\"correction\":\"replace-insert\"},{\"state\":\"print-destination-checkout\",\"correction\":\"correct-destination\"},{\"state\":\"print-destination-checkout\",\"correction\":\"fix-checkout\"}],\"checkOutcome\":[{\"check\":\"rescan\",\"outcome\":\"readable\"},{\"check\":\"rescan\",\"outcome\":\"unreadable\"},{\"check\":\"decode\",\"outcome\":\"unreadable\"},{\"check\":\"decode\",\"outcome\":\"approved-target\"},{\"check\":\"decode\",\"outcome\":\"wrong-target\"},{\"check\":\"proof\",\"outcome\":\"approved-target\"},{\"check\":\"proof\",\"outcome\":\"wrong-target\"},{\"check\":\"checkout\",\"outcome\":\"usable\"},{\"check\":\"checkout\",\"outcome\":\"blocked\"}],\"prediction\":[{\"state\":\"none\",\"check\":\"rescan\",\"outcome\":\"readable\"},{\"state\":\"print\",\"check\":\"rescan\",\"outcome\":\"unreadable\"},{\"state\":\"destination\",\"check\":\"rescan\",\"outcome\":\"readable\"},{\"state\":\"print-destination\",\"check\":\"rescan\",\"outcome\":\"unreadable\"},{\"state\":\"checkout\",\"check\":\"rescan\",\"outcome\":\"readable\"},{\"state\":\"print-checkout\",\"check\":\"rescan\",\"outcome\":\"unreadable\"},{\"state\":\"destination-checkout\",\"check\":\"rescan\",\"outcome\":\"readable\"},{\"state\":\"print-destination-checkout\",\"check\":\"rescan\",\"outcome\":\"unreadable\"},{\"state\":\"none\",\"check\":\"decode\",\"outcome\":\"approved-target\"},{\"state\":\"print\",\"check\":\"decode\",\"outcome\":\"unreadable\"},{\"state\":\"destination\",\"check\":\"decode\",\"outcome\":\"wrong-target\"},{\"state\":\"print-destination\",\"check\":\"decode\",\"outcome\":\"unreadable\"},{\"state\":\"checkout\",\"check\":\"decode\",\"outcome\":\"approved-target\"},{\"state\":\"print-checkout\",\"check\":\"decode\",\"outcome\":\"unreadable\"},{\"state\":\"destination-checkout\",\"check\":\"decode\",\"outcome\":\"wrong-target\"},{\"state\":\"print-destination-checkout\",\"check\":\"decode\",\"outcome\":\"unreadable\"},{\"state\":\"none\",\"check\":\"proof\",\"outcome\":\"approved-target\"},{\"state\":\"print\",\"check\":\"proof\",\"outcome\":\"approved-target\"},{\"state\":\"destination\",\"check\":\"proof\",\"outcome\":\"wrong-target\"},{\"state\":\"print-destination\",\"check\":\"proof\",\"outcome\":\"wrong-target\"},{\"state\":\"checkout\",\"check\":\"proof\",\"outcome\":\"approved-target\"},{\"state\":\"print-checkout\",\"check\":\"proof\",\"outcome\":\"approved-target\"},{\"state\":\"destination-checkout\",\"check\":\"proof\",\"outcome\":\"wrong-target\"},{\"state\":\"print-destination-checkout\",\"check\":\"proof\",\"outcome\":\"wrong-target\"},{\"state\":\"none\",\"check\":\"checkout\",\"outcome\":\"usable\"},{\"state\":\"print\",\"check\":\"checkout\",\"outcome\":\"usable\"},{\"state\":\"destination\",\"check\":\"checkout\",\"outcome\":\"usable\"},{\"state\":\"print-destination\",\"check\":\"checkout\",\"outcome\":\"usable\"},{\"state\":\"checkout\",\"check\":\"checkout\",\"outcome\":\"blocked\"},{\"state\":\"print-checkout\",\"check\":\"checkout\",\"outcome\":\"blocked\"},{\"state\":\"destination-checkout\",\"check\":\"checkout\",\"outcome\":\"blocked\"},{\"state\":\"print-destination-checkout\",\"check\":\"checkout\",\"outcome\":\"blocked\"}],\"correction\":[{\"id\":\"replace-insert\"},{\"id\":\"correct-destination\"},{\"id\":\"fix-checkout\"}]},\"evidence\":{\"observation\":[{\"id\":\"OBS-DECODE\",\"check\":\"decode\",\"outcome\":\"unreadable\",\"observed\":0,\"source\":\"Fictional rehearsal record\",\"person\":\"campaign-owner-1\",\"text\":\"The printed code cannot be decoded on the declared test phone.\"},{\"id\":\"OBS-PROOF\",\"check\":\"proof\",\"outcome\":\"wrong-target\",\"observed\":0,\"source\":\"Fictional rehearsal record\",\"person\":\"campaign-owner-1\",\"text\":\"The approved source artwork contains the wrong destination.\"},{\"id\":\"OBS-CHECKOUT\",\"check\":\"checkout\",\"outcome\":\"usable\",\"observed\":0,\"source\":\"Fictional rehearsal record\",\"person\":\"campaign-owner-1\",\"text\":\"The intended account can complete the scoped checkout rehearsal.\"}],\"recordScope\":[{\"record\":\"OBS-DECODE\",\"field\":\"batchId\",\"value\":\"\\\"GIFT-120\\\"\"},{\"record\":\"OBS-DECODE\",\"field\":\"insertRevision\",\"value\":\"\\\"insert-3\\\"\"},{\"record\":\"OBS-DECODE\",\"field\":\"destinationRevision\",\"value\":\"\\\"destination-2\\\"\"},{\"record\":\"OBS-DECODE\",\"field\":\"checkoutRevision\",\"value\":\"\\\"checkout-1\\\"\"},{\"record\":\"OBS-DECODE\",\"field\":\"deviceScope\",\"value\":\"\\\"campaign-test-phone\\\"\"},{\"record\":\"OBS-DECODE\",\"field\":\"accountScope\",\"value\":\"\\\"intended-recipient-account\\\"\"},{\"record\":\"OBS-PROOF\",\"field\":\"batchId\",\"value\":\"\\\"GIFT-120\\\"\"},{\"record\":\"OBS-PROOF\",\"field\":\"insertRevision\",\"value\":\"\\\"insert-3\\\"\"},{\"record\":\"OBS-PROOF\",\"field\":\"destinationRevision\",\"value\":\"\\\"destination-2\\\"\"},{\"record\":\"OBS-PROOF\",\"field\":\"checkoutRevision\",\"value\":\"\\\"checkout-1\\\"\"},{\"record\":\"OBS-PROOF\",\"field\":\"deviceScope\",\"value\":\"\\\"campaign-test-phone\\\"\"},{\"record\":\"OBS-PROOF\",\"field\":\"accountScope\",\"value\":\"\\\"intended-recipient-account\\\"\"},{\"record\":\"OBS-CHECKOUT\",\"field\":\"batchId\",\"value\":\"\\\"GIFT-120\\\"\"},{\"record\":\"OBS-CHECKOUT\",\"field\":\"insertRevision\",\"value\":\"\\\"insert-3\\\"\"},{\"record\":\"OBS-CHECKOUT\",\"field\":\"destinationRevision\",\"value\":\"\\\"destination-2\\\"\"},{\"record\":\"OBS-CHECKOUT\",\"field\":\"checkoutRevision\",\"value\":\"\\\"checkout-1\\\"\"},{\"record\":\"OBS-CHECKOUT\",\"field\":\"deviceScope\",\"value\":\"\\\"campaign-test-phone\\\"\"},{\"record\":\"OBS-CHECKOUT\",\"field\":\"accountScope\",\"value\":\"\\\"intended-recipient-account\\\"\"}]},\"queryIds\":[\"remaining-configurations\"],\"evaluation\":{\"maxCandidates\":2,\"maxRuleRounds\":100,\"maxFacts\":10000,\"maxOperations\":10000000}}}",
            "sourceHash": "fc703cbb9cd037044a979762aa6ec816b106343998c268cf296caee73fc4d81b",
            "definitionHash": "44de3e6fe3d76c81a5d58b5e80532d0673413653618fc9934a0526e9f66bf90e",
            "definitionContract": {
              "id": "evidence-review",
              "version": "1.0.0",
              "evaluator": "finite-relational-evidence/1",
              "title": "Establish the required answer",
              "responsibility": "Generate interpretations from declared finite rules, retain evidence-compatible alternatives, and test stability of the required answer.",
              "invariants": [
                "Establishment requires a nonempty admissible basis and a completed counterexample check.",
                "Different admissible answers demonstrate underdetermination even before enumeration completes.",
                "An empty interrupted search does not establish inconsistency.",
                "A Boolean false answer can be established. Counts do not imply probabilities.",
                "Results are relative to the authored finite model, submitted evidence and exact query."
              ]
            },
            "model": {
              "format": "evidence-review/1",
              "module": {
                "id": "review-gift-kit-flexible-evidence",
                "version": "2.0.2",
                "title": "Review gift-kit records",
                "description": "A fictional campaign review: interpret scoped checks, compare complete corrective arrangements, and finish before the handoff cutoff.",
                "question": "Which fault combinations still agree with these gift-kit records?",
                "boundary": "Only the published configurations and check predictions for one exact batch and journey revision.",
                "assumptions": [
                  "Current scoped reports are treated as accurate under the author-declared possible outcomes.",
                  "All declared joint fault configurations remain possible until excluded by reports; none has an implied probability.",
                  "An unreadable printed code can conceal its destination. Planned corrections do not establish successful completion.",
                  "Input acceptance records a named role judgment; it does not authenticate identity or issue permission."
                ],
                "parameters": [
                  {
                    "id": "nowMinute",
                    "type": "integer",
                    "min": 0,
                    "label": "Review time in whole minutes from the declared origin"
                  }
                ],
                "relations": [
                  {
                    "id": "expectedScope",
                    "source": "basis",
                    "columns": [
                      {
                        "id": "field",
                        "type": "string"
                      },
                      {
                        "id": "value",
                        "type": "string"
                      }
                    ],
                    "key": [
                      "field"
                    ]
                  },
                  {
                    "id": "state",
                    "source": "basis",
                    "columns": [
                      {
                        "id": "id",
                        "type": "string"
                      },
                      {
                        "id": "label",
                        "type": "string"
                      }
                    ],
                    "key": [
                      "id"
                    ]
                  },
                  {
                    "id": "stateFault",
                    "source": "basis",
                    "columns": [
                      {
                        "id": "state",
                        "type": "string"
                      },
                      {
                        "id": "fault",
                        "type": "string"
                      }
                    ],
                    "key": [
                      "state",
                      "fault"
                    ]
                  },
                  {
                    "id": "stateCorrection",
                    "source": "basis",
                    "columns": [
                      {
                        "id": "state",
                        "type": "string"
                      },
                      {
                        "id": "correction",
                        "type": "string"
                      }
                    ],
                    "key": [
                      "state",
                      "correction"
                    ]
                  },
                  {
                    "id": "checkOutcome",
                    "source": "basis",
                    "columns": [
                      {
                        "id": "check",
                        "type": "string"
                      },
                      {
                        "id": "outcome",
                        "type": "string"
                      }
                    ],
                    "key": [
                      "check",
                      "outcome"
                    ]
                  },
                  {
                    "id": "prediction",
                    "source": "basis",
                    "columns": [
                      {
                        "id": "state",
                        "type": "string"
                      },
                      {
                        "id": "check",
                        "type": "string"
                      },
                      {
                        "id": "outcome",
                        "type": "string"
                      }
                    ],
                    "key": [
                      "state",
                      "check",
                      "outcome"
                    ]
                  },
                  {
                    "id": "correction",
                    "source": "basis",
                    "columns": [
                      {
                        "id": "id",
                        "type": "string"
                      }
                    ],
                    "key": [
                      "id"
                    ]
                  },
                  {
                    "id": "observation",
                    "source": "evidence",
                    "columns": [
                      {
                        "id": "id",
                        "type": "string"
                      },
                      {
                        "id": "check",
                        "type": "string"
                      },
                      {
                        "id": "outcome",
                        "type": "string"
                      },
                      {
                        "id": "observed",
                        "type": "integer"
                      },
                      {
                        "id": "source",
                        "type": "string"
                      },
                      {
                        "id": "person",
                        "type": "string"
                      },
                      {
                        "id": "text",
                        "type": "string"
                      }
                    ],
                    "key": [
                      "id"
                    ]
                  },
                  {
                    "id": "recordScope",
                    "source": "evidence",
                    "columns": [
                      {
                        "id": "record",
                        "type": "string"
                      },
                      {
                        "id": "field",
                        "type": "string"
                      },
                      {
                        "id": "value",
                        "type": "string"
                      }
                    ],
                    "key": [
                      "record",
                      "field"
                    ]
                  },
                  {
                    "id": "wrongScope",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "record",
                        "type": "string"
                      }
                    ]
                  },
                  {
                    "id": "futureRecord",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "record",
                        "type": "string"
                      }
                    ]
                  },
                  {
                    "id": "usedRecord",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "record",
                        "type": "string"
                      },
                      {
                        "id": "check",
                        "type": "string"
                      },
                      {
                        "id": "outcome",
                        "type": "string"
                      }
                    ]
                  },
                  {
                    "id": "recordDisposition",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "record",
                        "type": "string"
                      },
                      {
                        "id": "disposition",
                        "type": "string"
                      },
                      {
                        "id": "code",
                        "type": "string"
                      },
                      {
                        "id": "reason",
                        "type": "string"
                      }
                    ]
                  },
                  {
                    "id": "stateMismatch",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "state",
                        "type": "string"
                      },
                      {
                        "id": "record",
                        "type": "string"
                      },
                      {
                        "id": "check",
                        "type": "string"
                      },
                      {
                        "id": "outcome",
                        "type": "string"
                      }
                    ]
                  },
                  {
                    "id": "ruledOutState",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "state",
                        "type": "string"
                      }
                    ]
                  },
                  {
                    "id": "remainingState",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "state",
                        "type": "string"
                      },
                      {
                        "id": "label",
                        "type": "string"
                      }
                    ]
                  },
                  {
                    "id": "possibleCorrection",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "correction",
                        "type": "string"
                      }
                    ]
                  },
                  {
                    "id": "absentCorrection",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "correction",
                        "type": "string"
                      }
                    ]
                  },
                  {
                    "id": "variableCorrection",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "correction",
                        "type": "string"
                      }
                    ]
                  },
                  {
                    "id": "requiredCorrection",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "correction",
                        "type": "string"
                      }
                    ]
                  },
                  {
                    "id": "hasRemainingState",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "value",
                        "type": "boolean"
                      }
                    ]
                  },
                  {
                    "id": "correctionsEstablished",
                    "source": "derived",
                    "columns": [
                      {
                        "id": "value",
                        "type": "boolean"
                      }
                    ]
                  }
                ],
                "rules": [
                  {
                    "id": "RECORD.SCOPE.MISSING",
                    "head": {
                      "relation": "wrongScope",
                      "args": [
                        "?record"
                      ]
                    },
                    "body": [
                      {
                        "relation": "observation",
                        "args": [
                          "?record",
                          "?check",
                          "?outcome",
                          "?observed",
                          "?source",
                          "?person",
                          "?text"
                        ]
                      },
                      {
                        "relation": "expectedScope",
                        "args": [
                          "?field",
                          "?expected"
                        ]
                      },
                      {
                        "op": "notExists",
                        "atom": {
                          "relation": "recordScope",
                          "args": [
                            "?record",
                            "?field",
                            "?expected"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "id": "RECORD.SCOPE.EXTRA",
                    "head": {
                      "relation": "wrongScope",
                      "args": [
                        "?record"
                      ]
                    },
                    "body": [
                      {
                        "relation": "recordScope",
                        "args": [
                          "?record",
                          "?field",
                          "?value"
                        ]
                      },
                      {
                        "op": "notExists",
                        "atom": {
                          "relation": "expectedScope",
                          "args": [
                            "?field",
                            "?value"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "id": "RECORD.FUTURE",
                    "head": {
                      "relation": "futureRecord",
                      "args": [
                        "?record"
                      ]
                    },
                    "body": [
                      {
                        "relation": "observation",
                        "args": [
                          "?record",
                          "?check",
                          "?outcome",
                          "?observed",
                          "?source",
                          "?person",
                          "?text"
                        ]
                      },
                      {
                        "op": "gt",
                        "args": [
                          "?observed",
                          {
                            "parameter": "nowMinute"
                          }
                        ]
                      }
                    ]
                  },
                  {
                    "id": "RECORD.USED",
                    "head": {
                      "relation": "usedRecord",
                      "args": [
                        "?record",
                        "?check",
                        "?outcome"
                      ]
                    },
                    "body": [
                      {
                        "relation": "observation",
                        "args": [
                          "?record",
                          "?check",
                          "?outcome",
                          "?observed",
                          "?source",
                          "?person",
                          "?text"
                        ]
                      },
                      {
                        "op": "notExists",
                        "atom": {
                          "relation": "wrongScope",
                          "args": [
                            "?record"
                          ]
                        }
                      },
                      {
                        "op": "notExists",
                        "atom": {
                          "relation": "futureRecord",
                          "args": [
                            "?record"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "id": "RECORD.WRONG.SCOPE.DISPOSITION",
                    "head": {
                      "relation": "recordDisposition",
                      "args": [
                        "?record",
                        "ignored",
                        "wrong-scope",
                        "The record describes a different batch, revision, device or account scope."
                      ]
                    },
                    "body": [
                      {
                        "relation": "wrongScope",
                        "args": [
                          "?record"
                        ]
                      }
                    ]
                  },
                  {
                    "id": "RECORD.FUTURE.DISPOSITION",
                    "head": {
                      "relation": "recordDisposition",
                      "args": [
                        "?record",
                        "ignored",
                        "future-observation",
                        "The reported observation is later than the explicit review time."
                      ]
                    },
                    "body": [
                      {
                        "relation": "futureRecord",
                        "args": [
                          "?record"
                        ]
                      },
                      {
                        "op": "notExists",
                        "atom": {
                          "relation": "wrongScope",
                          "args": [
                            "?record"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "id": "RECORD.USED.DISPOSITION",
                    "head": {
                      "relation": "recordDisposition",
                      "args": [
                        "?record",
                        "used",
                        "current-scoped-report",
                        "The report is used under the published check predictions for this exact scope."
                      ]
                    },
                    "body": [
                      {
                        "relation": "usedRecord",
                        "args": [
                          "?record",
                          "?check",
                          "?outcome"
                        ]
                      }
                    ]
                  },
                  {
                    "id": "STATE.REPORT.MISMATCH",
                    "head": {
                      "relation": "stateMismatch",
                      "args": [
                        "?state",
                        "?record",
                        "?check",
                        "?outcome"
                      ]
                    },
                    "body": [
                      {
                        "relation": "state",
                        "args": [
                          "?state",
                          "?label"
                        ]
                      },
                      {
                        "relation": "usedRecord",
                        "args": [
                          "?record",
                          "?check",
                          "?outcome"
                        ]
                      },
                      {
                        "op": "notExists",
                        "atom": {
                          "relation": "prediction",
                          "args": [
                            "?state",
                            "?check",
                            "?outcome"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "id": "STATE.RULED.OUT",
                    "head": {
                      "relation": "ruledOutState",
                      "args": [
                        "?state"
                      ]
                    },
                    "body": [
                      {
                        "relation": "stateMismatch",
                        "args": [
                          "?state",
                          "?record",
                          "?check",
                          "?outcome"
                        ]
                      }
                    ]
                  },
                  {
                    "id": "STATE.REMAINS",
                    "head": {
                      "relation": "remainingState",
                      "args": [
                        "?state",
                        "?label"
                      ]
                    },
                    "body": [
                      {
                        "relation": "state",
                        "args": [
                          "?state",
                          "?label"
                        ]
                      },
                      {
                        "op": "notExists",
                        "atom": {
                          "relation": "ruledOutState",
                          "args": [
                            "?state"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "id": "CORRECTION.POSSIBLE",
                    "head": {
                      "relation": "possibleCorrection",
                      "args": [
                        "?correction"
                      ]
                    },
                    "body": [
                      {
                        "relation": "remainingState",
                        "args": [
                          "?state",
                          "?label"
                        ]
                      },
                      {
                        "relation": "stateCorrection",
                        "args": [
                          "?state",
                          "?correction"
                        ]
                      }
                    ]
                  },
                  {
                    "id": "CORRECTION.ABSENT",
                    "head": {
                      "relation": "absentCorrection",
                      "args": [
                        "?correction"
                      ]
                    },
                    "body": [
                      {
                        "relation": "remainingState",
                        "args": [
                          "?state",
                          "?label"
                        ]
                      },
                      {
                        "relation": "correction",
                        "args": [
                          "?correction"
                        ]
                      },
                      {
                        "op": "notExists",
                        "atom": {
                          "relation": "stateCorrection",
                          "args": [
                            "?state",
                            "?correction"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "id": "CORRECTION.VARIES",
                    "head": {
                      "relation": "variableCorrection",
                      "args": [
                        "?correction"
                      ]
                    },
                    "body": [
                      {
                        "relation": "possibleCorrection",
                        "args": [
                          "?correction"
                        ]
                      },
                      {
                        "relation": "absentCorrection",
                        "args": [
                          "?correction"
                        ]
                      }
                    ]
                  },
                  {
                    "id": "BASIS.NONEMPTY",
                    "head": {
                      "relation": "hasRemainingState",
                      "args": [
                        true
                      ]
                    },
                    "body": [
                      {
                        "relation": "remainingState",
                        "args": [
                          "?state",
                          "?label"
                        ]
                      }
                    ]
                  },
                  {
                    "id": "CORRECTIONS.ESTABLISHED",
                    "head": {
                      "relation": "correctionsEstablished",
                      "args": [
                        true
                      ]
                    },
                    "body": [
                      {
                        "relation": "hasRemainingState",
                        "args": [
                          true
                        ]
                      },
                      {
                        "op": "notExists",
                        "atom": {
                          "relation": "variableCorrection",
                          "args": [
                            "?correction"
                          ]
                        }
                      }
                    ]
                  },
                  {
                    "id": "CORRECTION.REQUIRED",
                    "head": {
                      "relation": "requiredCorrection",
                      "args": [
                        "?correction"
                      ]
                    },
                    "body": [
                      {
                        "relation": "correctionsEstablished",
                        "args": [
                          true
                        ]
                      },
                      {
                        "relation": "possibleCorrection",
                        "args": [
                          "?correction"
                        ]
                      }
                    ]
                  }
                ],
                "admission": [
                  {
                    "id": "SCOPE.REQUIRED.0",
                    "label": "Declare the current batchId",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "expectedScope",
                        "args": [
                          "batchId",
                          "?value"
                        ]
                      }
                    }
                  },
                  {
                    "id": "SCOPE.REQUIRED.1",
                    "label": "Declare the current insertRevision",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "expectedScope",
                        "args": [
                          "insertRevision",
                          "?value"
                        ]
                      }
                    }
                  },
                  {
                    "id": "SCOPE.REQUIRED.2",
                    "label": "Declare the current destinationRevision",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "expectedScope",
                        "args": [
                          "destinationRevision",
                          "?value"
                        ]
                      }
                    }
                  },
                  {
                    "id": "SCOPE.REQUIRED.3",
                    "label": "Declare the current checkoutRevision",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "expectedScope",
                        "args": [
                          "checkoutRevision",
                          "?value"
                        ]
                      }
                    }
                  },
                  {
                    "id": "SCOPE.REQUIRED.4",
                    "label": "Declare the current deviceScope",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "expectedScope",
                        "args": [
                          "deviceScope",
                          "?value"
                        ]
                      }
                    }
                  },
                  {
                    "id": "SCOPE.REQUIRED.5",
                    "label": "Declare the current accountScope",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "expectedScope",
                        "args": [
                          "accountScope",
                          "?value"
                        ]
                      }
                    }
                  },
                  {
                    "id": "SCOPE.EXACT",
                    "label": "Declare exactly the published scope fields",
                    "when": [
                      {
                        "count": {
                          "relation": "expectedScope",
                          "args": [
                            "?field",
                            "?value"
                          ]
                        },
                        "as": "?n"
                      }
                    ],
                    "assert": {
                      "op": "eq",
                      "args": [
                        "?n",
                        6
                      ]
                    }
                  },
                  {
                    "id": "RECORD.KNOWN.CHECK.OUTCOME",
                    "label": "Every report identifies an outcome supported for its check",
                    "when": [
                      {
                        "relation": "observation",
                        "args": [
                          "?record",
                          "?check",
                          "?outcome",
                          "?observed",
                          "?source",
                          "?person",
                          "?text"
                        ]
                      }
                    ],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "checkOutcome",
                        "args": [
                          "?check",
                          "?outcome"
                        ]
                      }
                    }
                  },
                  {
                    "id": "RECORD.NONNEGATIVE.TIME",
                    "label": "Each observation uses a nonnegative whole minute",
                    "when": [
                      {
                        "relation": "observation",
                        "args": [
                          "?record",
                          "?check",
                          "?outcome",
                          "?observed",
                          "?source",
                          "?person",
                          "?text"
                        ]
                      }
                    ],
                    "assert": {
                      "op": "gte",
                      "args": [
                        "?observed",
                        0
                      ]
                    }
                  },
                  {
                    "id": "FIXED.state.COUNT",
                    "label": "Retain the complete published state table",
                    "when": [
                      {
                        "count": {
                          "relation": "state",
                          "args": [
                            "?v0",
                            "?v1"
                          ]
                        },
                        "as": "?n"
                      }
                    ],
                    "assert": {
                      "op": "eq",
                      "args": [
                        "?n",
                        8
                      ]
                    }
                  },
                  {
                    "id": "FIXED.state.0",
                    "label": "Retain the published meaning of state row 1",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "state",
                        "args": [
                          "none",
                          "No modeled fault"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.state.1",
                    "label": "Retain the published meaning of state row 2",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "state",
                        "args": [
                          "print",
                          "The printed code cannot be read"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.state.2",
                    "label": "Retain the published meaning of state row 3",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "state",
                        "args": [
                          "destination",
                          "The code leads to the wrong destination"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.state.3",
                    "label": "Retain the published meaning of state row 4",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "state",
                        "args": [
                          "print-destination",
                          "The printed code cannot be read; The code leads to the wrong destination"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.state.4",
                    "label": "Retain the published meaning of state row 5",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "state",
                        "args": [
                          "checkout",
                          "The intended checkout is restricted"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.state.5",
                    "label": "Retain the published meaning of state row 6",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "state",
                        "args": [
                          "print-checkout",
                          "The printed code cannot be read; The intended checkout is restricted"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.state.6",
                    "label": "Retain the published meaning of state row 7",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "state",
                        "args": [
                          "destination-checkout",
                          "The code leads to the wrong destination; The intended checkout is restricted"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.state.7",
                    "label": "Retain the published meaning of state row 8",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "state",
                        "args": [
                          "print-destination-checkout",
                          "The printed code cannot be read; The code leads to the wrong destination; The intended checkout is restricted"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.COUNT",
                    "label": "Retain the complete published stateFault table",
                    "when": [
                      {
                        "count": {
                          "relation": "stateFault",
                          "args": [
                            "?v0",
                            "?v1"
                          ]
                        },
                        "as": "?n"
                      }
                    ],
                    "assert": {
                      "op": "eq",
                      "args": [
                        "?n",
                        12
                      ]
                    }
                  },
                  {
                    "id": "FIXED.stateFault.0",
                    "label": "Retain the published meaning of stateFault row 1",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "print",
                          "print"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.1",
                    "label": "Retain the published meaning of stateFault row 2",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "destination",
                          "destination"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.2",
                    "label": "Retain the published meaning of stateFault row 3",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "print-destination",
                          "print"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.3",
                    "label": "Retain the published meaning of stateFault row 4",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "print-destination",
                          "destination"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.4",
                    "label": "Retain the published meaning of stateFault row 5",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "checkout",
                          "checkout"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.5",
                    "label": "Retain the published meaning of stateFault row 6",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "print-checkout",
                          "print"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.6",
                    "label": "Retain the published meaning of stateFault row 7",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "print-checkout",
                          "checkout"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.7",
                    "label": "Retain the published meaning of stateFault row 8",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "destination-checkout",
                          "destination"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.8",
                    "label": "Retain the published meaning of stateFault row 9",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "destination-checkout",
                          "checkout"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.9",
                    "label": "Retain the published meaning of stateFault row 10",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "print-destination-checkout",
                          "print"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.10",
                    "label": "Retain the published meaning of stateFault row 11",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "print-destination-checkout",
                          "destination"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateFault.11",
                    "label": "Retain the published meaning of stateFault row 12",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateFault",
                        "args": [
                          "print-destination-checkout",
                          "checkout"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.COUNT",
                    "label": "Retain the complete published stateCorrection table",
                    "when": [
                      {
                        "count": {
                          "relation": "stateCorrection",
                          "args": [
                            "?v0",
                            "?v1"
                          ]
                        },
                        "as": "?n"
                      }
                    ],
                    "assert": {
                      "op": "eq",
                      "args": [
                        "?n",
                        12
                      ]
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.0",
                    "label": "Retain the published meaning of stateCorrection row 1",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "print",
                          "replace-insert"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.1",
                    "label": "Retain the published meaning of stateCorrection row 2",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "destination",
                          "correct-destination"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.2",
                    "label": "Retain the published meaning of stateCorrection row 3",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "print-destination",
                          "replace-insert"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.3",
                    "label": "Retain the published meaning of stateCorrection row 4",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "print-destination",
                          "correct-destination"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.4",
                    "label": "Retain the published meaning of stateCorrection row 5",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "checkout",
                          "fix-checkout"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.5",
                    "label": "Retain the published meaning of stateCorrection row 6",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "print-checkout",
                          "replace-insert"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.6",
                    "label": "Retain the published meaning of stateCorrection row 7",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "print-checkout",
                          "fix-checkout"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.7",
                    "label": "Retain the published meaning of stateCorrection row 8",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "destination-checkout",
                          "correct-destination"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.8",
                    "label": "Retain the published meaning of stateCorrection row 9",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "destination-checkout",
                          "fix-checkout"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.9",
                    "label": "Retain the published meaning of stateCorrection row 10",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "print-destination-checkout",
                          "replace-insert"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.10",
                    "label": "Retain the published meaning of stateCorrection row 11",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "print-destination-checkout",
                          "correct-destination"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.stateCorrection.11",
                    "label": "Retain the published meaning of stateCorrection row 12",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "stateCorrection",
                        "args": [
                          "print-destination-checkout",
                          "fix-checkout"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.checkOutcome.COUNT",
                    "label": "Retain the complete published checkOutcome table",
                    "when": [
                      {
                        "count": {
                          "relation": "checkOutcome",
                          "args": [
                            "?v0",
                            "?v1"
                          ]
                        },
                        "as": "?n"
                      }
                    ],
                    "assert": {
                      "op": "eq",
                      "args": [
                        "?n",
                        9
                      ]
                    }
                  },
                  {
                    "id": "FIXED.checkOutcome.0",
                    "label": "Retain the published meaning of checkOutcome row 1",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "checkOutcome",
                        "args": [
                          "rescan",
                          "readable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.checkOutcome.1",
                    "label": "Retain the published meaning of checkOutcome row 2",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "checkOutcome",
                        "args": [
                          "rescan",
                          "unreadable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.checkOutcome.2",
                    "label": "Retain the published meaning of checkOutcome row 3",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "checkOutcome",
                        "args": [
                          "decode",
                          "unreadable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.checkOutcome.3",
                    "label": "Retain the published meaning of checkOutcome row 4",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "checkOutcome",
                        "args": [
                          "decode",
                          "approved-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.checkOutcome.4",
                    "label": "Retain the published meaning of checkOutcome row 5",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "checkOutcome",
                        "args": [
                          "decode",
                          "wrong-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.checkOutcome.5",
                    "label": "Retain the published meaning of checkOutcome row 6",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "checkOutcome",
                        "args": [
                          "proof",
                          "approved-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.checkOutcome.6",
                    "label": "Retain the published meaning of checkOutcome row 7",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "checkOutcome",
                        "args": [
                          "proof",
                          "wrong-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.checkOutcome.7",
                    "label": "Retain the published meaning of checkOutcome row 8",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "checkOutcome",
                        "args": [
                          "checkout",
                          "usable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.checkOutcome.8",
                    "label": "Retain the published meaning of checkOutcome row 9",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "checkOutcome",
                        "args": [
                          "checkout",
                          "blocked"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.COUNT",
                    "label": "Retain the complete published prediction table",
                    "when": [
                      {
                        "count": {
                          "relation": "prediction",
                          "args": [
                            "?v0",
                            "?v1",
                            "?v2"
                          ]
                        },
                        "as": "?n"
                      }
                    ],
                    "assert": {
                      "op": "eq",
                      "args": [
                        "?n",
                        32
                      ]
                    }
                  },
                  {
                    "id": "FIXED.prediction.0",
                    "label": "Retain the published meaning of prediction row 1",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "none",
                          "rescan",
                          "readable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.1",
                    "label": "Retain the published meaning of prediction row 2",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print",
                          "rescan",
                          "unreadable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.2",
                    "label": "Retain the published meaning of prediction row 3",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "destination",
                          "rescan",
                          "readable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.3",
                    "label": "Retain the published meaning of prediction row 4",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-destination",
                          "rescan",
                          "unreadable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.4",
                    "label": "Retain the published meaning of prediction row 5",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "checkout",
                          "rescan",
                          "readable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.5",
                    "label": "Retain the published meaning of prediction row 6",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-checkout",
                          "rescan",
                          "unreadable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.6",
                    "label": "Retain the published meaning of prediction row 7",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "destination-checkout",
                          "rescan",
                          "readable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.7",
                    "label": "Retain the published meaning of prediction row 8",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-destination-checkout",
                          "rescan",
                          "unreadable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.8",
                    "label": "Retain the published meaning of prediction row 9",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "none",
                          "decode",
                          "approved-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.9",
                    "label": "Retain the published meaning of prediction row 10",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print",
                          "decode",
                          "unreadable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.10",
                    "label": "Retain the published meaning of prediction row 11",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "destination",
                          "decode",
                          "wrong-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.11",
                    "label": "Retain the published meaning of prediction row 12",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-destination",
                          "decode",
                          "unreadable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.12",
                    "label": "Retain the published meaning of prediction row 13",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "checkout",
                          "decode",
                          "approved-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.13",
                    "label": "Retain the published meaning of prediction row 14",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-checkout",
                          "decode",
                          "unreadable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.14",
                    "label": "Retain the published meaning of prediction row 15",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "destination-checkout",
                          "decode",
                          "wrong-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.15",
                    "label": "Retain the published meaning of prediction row 16",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-destination-checkout",
                          "decode",
                          "unreadable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.16",
                    "label": "Retain the published meaning of prediction row 17",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "none",
                          "proof",
                          "approved-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.17",
                    "label": "Retain the published meaning of prediction row 18",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print",
                          "proof",
                          "approved-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.18",
                    "label": "Retain the published meaning of prediction row 19",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "destination",
                          "proof",
                          "wrong-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.19",
                    "label": "Retain the published meaning of prediction row 20",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-destination",
                          "proof",
                          "wrong-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.20",
                    "label": "Retain the published meaning of prediction row 21",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "checkout",
                          "proof",
                          "approved-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.21",
                    "label": "Retain the published meaning of prediction row 22",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-checkout",
                          "proof",
                          "approved-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.22",
                    "label": "Retain the published meaning of prediction row 23",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "destination-checkout",
                          "proof",
                          "wrong-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.23",
                    "label": "Retain the published meaning of prediction row 24",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-destination-checkout",
                          "proof",
                          "wrong-target"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.24",
                    "label": "Retain the published meaning of prediction row 25",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "none",
                          "checkout",
                          "usable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.25",
                    "label": "Retain the published meaning of prediction row 26",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print",
                          "checkout",
                          "usable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.26",
                    "label": "Retain the published meaning of prediction row 27",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "destination",
                          "checkout",
                          "usable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.27",
                    "label": "Retain the published meaning of prediction row 28",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-destination",
                          "checkout",
                          "usable"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.28",
                    "label": "Retain the published meaning of prediction row 29",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "checkout",
                          "checkout",
                          "blocked"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.29",
                    "label": "Retain the published meaning of prediction row 30",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-checkout",
                          "checkout",
                          "blocked"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.30",
                    "label": "Retain the published meaning of prediction row 31",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "destination-checkout",
                          "checkout",
                          "blocked"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.prediction.31",
                    "label": "Retain the published meaning of prediction row 32",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "prediction",
                        "args": [
                          "print-destination-checkout",
                          "checkout",
                          "blocked"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.correction.COUNT",
                    "label": "Retain the complete published correction table",
                    "when": [
                      {
                        "count": {
                          "relation": "correction",
                          "args": [
                            "?v0"
                          ]
                        },
                        "as": "?n"
                      }
                    ],
                    "assert": {
                      "op": "eq",
                      "args": [
                        "?n",
                        3
                      ]
                    }
                  },
                  {
                    "id": "FIXED.correction.0",
                    "label": "Retain the published meaning of correction row 1",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "correction",
                        "args": [
                          "replace-insert"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.correction.1",
                    "label": "Retain the published meaning of correction row 2",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "correction",
                        "args": [
                          "correct-destination"
                        ]
                      }
                    }
                  },
                  {
                    "id": "FIXED.correction.2",
                    "label": "Retain the published meaning of correction row 3",
                    "when": [],
                    "assert": {
                      "op": "exists",
                      "atom": {
                        "relation": "correction",
                        "args": [
                          "fix-checkout"
                        ]
                      }
                    }
                  }
                ],
                "generation": [],
                "constraints": [],
                "queries": [
                  {
                    "id": "remaining-configurations",
                    "label": "Which fault combinations still agree with these gift-kit records?",
                    "kind": "set",
                    "body": [
                      {
                        "relation": "remainingState",
                        "args": [
                          "?state",
                          "?label"
                        ]
                      }
                    ],
                    "select": [
                      "?state",
                      "?label"
                    ]
                  }
                ],
                "reports": {
                  "tables": [
                    {
                      "id": "remaining-states",
                      "label": "Fault combinations still possible",
                      "relation": "remainingState",
                      "columns": [
                        "state",
                        "label"
                      ]
                    },
                    {
                      "id": "state-faults",
                      "label": "Faults present in each published configuration",
                      "relation": "stateFault",
                      "columns": [
                        "state",
                        "fault"
                      ]
                    },
                    {
                      "id": "state-corrections",
                      "label": "Corrections associated with each configuration",
                      "relation": "stateCorrection",
                      "columns": [
                        "state",
                        "correction"
                      ]
                    },
                    {
                      "id": "record-dispositions",
                      "label": "How each supplied record was used",
                      "relation": "recordDisposition",
                      "columns": [
                        "record",
                        "disposition",
                        "code",
                        "reason"
                      ]
                    },
                    {
                      "id": "ruled-out-by-records",
                      "label": "Reports ruling out fault combinations",
                      "relation": "stateMismatch",
                      "columns": [
                        "state",
                        "record",
                        "check",
                        "outcome"
                      ]
                    },
                    {
                      "id": "corrections-established",
                      "label": "Do the remaining combinations require the same corrections?",
                      "relation": "correctionsEstablished",
                      "columns": [
                        "value"
                      ]
                    },
                    {
                      "id": "required-corrections",
                      "label": "The complete established correction set",
                      "relation": "requiredCorrection",
                      "columns": [
                        "correction"
                      ]
                    }
                  ]
                },
                "metadata": {
                  "decisionPresentation": {
                    "format": "decision-presentation/1",
                    "primaryQueryIds": [
                      "remaining-configurations"
                    ]
                  },
                  "profileId": "gift-kit-readiness",
                  "profileVersion": "1.0.0",
                  "illustrative": true,
                  "scopeFields": [
                    "batchId",
                    "insertRevision",
                    "destinationRevision",
                    "checkoutRevision",
                    "deviceScope",
                    "accountScope"
                  ],
                  "faults": [
                    {
                      "id": "print",
                      "label": "The printed code cannot be read",
                      "correctionId": "replace-insert"
                    },
                    {
                      "id": "destination",
                      "label": "The code leads to the wrong destination",
                      "correctionId": "correct-destination"
                    },
                    {
                      "id": "checkout",
                      "label": "The intended checkout is restricted",
                      "correctionId": "fix-checkout"
                    }
                  ],
                  "checks": [
                    {
                      "id": "rescan",
                      "label": "Rescan the printed insert",
                      "outcomeIds": [
                        "readable",
                        "unreadable"
                      ]
                    },
                    {
                      "id": "decode",
                      "label": "Decode the printed destination",
                      "outcomeIds": [
                        "unreadable",
                        "approved-target",
                        "wrong-target"
                      ]
                    },
                    {
                      "id": "proof",
                      "label": "Inspect the destination in the source artwork",
                      "outcomeIds": [
                        "approved-target",
                        "wrong-target"
                      ]
                    },
                    {
                      "id": "checkout",
                      "label": "Try checkout for the intended account",
                      "outcomeIds": [
                        "usable",
                        "blocked"
                      ]
                    }
                  ],
                  "catalog": {
                    "domain": {
                      "id": "gifting-operations",
                      "label": "Gifting operations",
                      "description": "Review gift-kit evidence, corrective work and preparation commitments."
                    },
                    "useCase": {
                      "id": "prepare-gift-kit-campaign",
                      "label": "Prepare a gift-kit campaign",
                      "description": "Review failed preorder rehearsals and complete correction arrangements before committing gift kits."
                    }
                  },
                  "supportingReports": {
                    "format": "supporting-reports/1",
                    "reports": [
                      {
                        "id": "findings",
                        "label": "Evidence findings",
                        "question": "What does the supplied evidence establish for each question?",
                        "template": "records/1",
                        "source": {
                          "kind": "report-dataset",
                          "datasetId": "findings:all-findings"
                        },
                        "bindings": {
                          "columns": [
                            {
                              "key": "label",
                              "label": "Question"
                            },
                            {
                              "key": "statusLabel",
                              "label": "Finding"
                            },
                            {
                              "key": "answerText",
                              "label": "Supported answer"
                            },
                            {
                              "key": "businessExplanation",
                              "label": "Explanation"
                            }
                          ]
                        }
                      },
                      {
                        "id": "explanations",
                        "label": "Possible explanations",
                        "question": "Which answers remain compatible with the supplied evidence?",
                        "template": "records/1",
                        "source": {
                          "kind": "report-dataset",
                          "datasetId": "explanations:matrix"
                        },
                        "bindings": {
                          "columns": [
                            {
                              "key": "question",
                              "label": "Question"
                            },
                            {
                              "key": "finding",
                              "label": "Finding across compatible explanations"
                            }
                          ]
                        }
                      },
                      {
                        "id": "evaluation-coverage",
                        "label": "Evaluation coverage",
                        "question": "Were the declared possibilities checked completely?",
                        "template": "records/1",
                        "source": {
                          "kind": "report-dataset",
                          "datasetId": "checks:coverage"
                        },
                        "bindings": {
                          "columns": [
                            {
                              "key": "measure",
                              "label": "Coverage measure"
                            },
                            {
                              "key": "value",
                              "label": "Calculated value"
                            }
                          ]
                        }
                      }
                    ]
                  },
                  "inputDesign": {
                    "version": 1,
                    "form": {
                      "type": "object",
                      "label": "Case inputs",
                      "fields": {
                        "scope": {
                          "type": "string",
                          "label": "Scope"
                        },
                        "parameters": {
                          "type": "object",
                          "label": "Parameters",
                          "fields": {
                            "nowMinute": {
                              "type": "number",
                              "label": "Review time in whole minutes from the declared origin",
                              "integer": true,
                              "minimum": 0
                            }
                          }
                        },
                        "basis": {
                          "type": "object",
                          "label": "Basis",
                          "fields": {
                            "expectedScope": {
                              "type": "array",
                              "label": "Expected Scope",
                              "items": {
                                "type": "object",
                                "label": "Expected Scope record",
                                "fields": {
                                  "field": {
                                    "type": "string",
                                    "label": "Field"
                                  },
                                  "value": {
                                    "type": "string",
                                    "label": "Value"
                                  }
                                }
                              },
                              "keyFields": [
                                "field"
                              ]
                            },
                            "state": {
                              "type": "array",
                              "label": "State",
                              "items": {
                                "type": "object",
                                "label": "State record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "label": {
                                    "type": "string",
                                    "label": "Label"
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "stateFault": {
                              "type": "array",
                              "label": "State Fault",
                              "items": {
                                "type": "object",
                                "label": "State Fault record",
                                "fields": {
                                  "state": {
                                    "type": "string",
                                    "label": "State"
                                  },
                                  "fault": {
                                    "type": "string",
                                    "label": "Fault"
                                  }
                                }
                              },
                              "keyFields": [
                                "state",
                                "fault"
                              ]
                            },
                            "stateCorrection": {
                              "type": "array",
                              "label": "State Correction",
                              "items": {
                                "type": "object",
                                "label": "State Correction record",
                                "fields": {
                                  "state": {
                                    "type": "string",
                                    "label": "State"
                                  },
                                  "correction": {
                                    "type": "string",
                                    "label": "Correction"
                                  }
                                }
                              },
                              "keyFields": [
                                "state",
                                "correction"
                              ]
                            },
                            "checkOutcome": {
                              "type": "array",
                              "label": "Check Outcome",
                              "items": {
                                "type": "object",
                                "label": "Check Outcome record",
                                "fields": {
                                  "check": {
                                    "type": "string",
                                    "label": "Check"
                                  },
                                  "outcome": {
                                    "type": "string",
                                    "label": "Outcome"
                                  }
                                }
                              },
                              "keyFields": [
                                "check",
                                "outcome"
                              ]
                            },
                            "prediction": {
                              "type": "array",
                              "label": "Prediction",
                              "items": {
                                "type": "object",
                                "label": "Prediction record",
                                "fields": {
                                  "state": {
                                    "type": "string",
                                    "label": "State"
                                  },
                                  "check": {
                                    "type": "string",
                                    "label": "Check"
                                  },
                                  "outcome": {
                                    "type": "string",
                                    "label": "Outcome"
                                  }
                                }
                              },
                              "keyFields": [
                                "state",
                                "check",
                                "outcome"
                              ]
                            },
                            "correction": {
                              "type": "array",
                              "label": "Correction",
                              "items": {
                                "type": "object",
                                "label": "Correction record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            }
                          }
                        },
                        "evidence": {
                          "type": "object",
                          "label": "Evidence",
                          "fields": {
                            "observation": {
                              "type": "array",
                              "label": "Observation",
                              "items": {
                                "type": "object",
                                "label": "Observation record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "check": {
                                    "type": "string",
                                    "label": "Check"
                                  },
                                  "outcome": {
                                    "type": "string",
                                    "label": "Outcome"
                                  },
                                  "observed": {
                                    "type": "number",
                                    "label": "Observed",
                                    "integer": true
                                  },
                                  "source": {
                                    "type": "string",
                                    "label": "Source"
                                  },
                                  "person": {
                                    "type": "string",
                                    "label": "Person"
                                  },
                                  "text": {
                                    "type": "string",
                                    "label": "Text"
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "recordScope": {
                              "type": "array",
                              "label": "Record Scope",
                              "items": {
                                "type": "object",
                                "label": "Record Scope record",
                                "fields": {
                                  "record": {
                                    "type": "string",
                                    "label": "Record"
                                  },
                                  "field": {
                                    "type": "string",
                                    "label": "Field"
                                  },
                                  "value": {
                                    "type": "string",
                                    "label": "Value"
                                  }
                                }
                              },
                              "keyFields": [
                                "record",
                                "field"
                              ]
                            }
                          }
                        },
                        "queryIds": {
                          "type": "array",
                          "label": "Query Ids",
                          "items": {
                            "type": "string",
                            "label": "Query Ids record",
                            "options": [
                              "remaining-configurations"
                            ]
                          }
                        }
                      }
                    },
                    "groups": [
                      {
                        "id": "question-and-scope",
                        "label": "Question and scope",
                        "question": "Which question and exact configuration should the evidence establish?",
                        "subtabs": [
                          {
                            "id": "scope",
                            "label": "Question and scope",
                            "fieldPaths": [
                              "/scope",
                              "/parameters",
                              "/queryIds",
                              "/basis/expectedScope"
                            ]
                          }
                        ]
                      },
                      {
                        "id": "observed-records",
                        "label": "Evidence records",
                        "question": "Which observations and scope records were supplied?",
                        "subtabs": [
                          {
                            "id": "observation",
                            "label": "Observation",
                            "fieldPaths": [
                              "/evidence/observation"
                            ]
                          },
                          {
                            "id": "recordScope",
                            "label": "Record Scope",
                            "fieldPaths": [
                              "/evidence/recordScope"
                            ]
                          }
                        ]
                      },
                      {
                        "id": "admitted-possibilities",
                        "label": "Possibilities and checks",
                        "question": "Which declared possibilities and check outcomes form the bounded evidence case?",
                        "subtabs": [
                          {
                            "id": "state",
                            "label": "State",
                            "fieldPaths": [
                              "/basis/state"
                            ]
                          },
                          {
                            "id": "stateFault",
                            "label": "State Fault",
                            "fieldPaths": [
                              "/basis/stateFault"
                            ]
                          },
                          {
                            "id": "stateCorrection",
                            "label": "State Correction",
                            "fieldPaths": [
                              "/basis/stateCorrection"
                            ]
                          },
                          {
                            "id": "checkOutcome",
                            "label": "Check Outcome",
                            "fieldPaths": [
                              "/basis/checkOutcome"
                            ]
                          },
                          {
                            "id": "prediction",
                            "label": "Prediction",
                            "fieldPaths": [
                              "/basis/prediction"
                            ]
                          },
                          {
                            "id": "correction",
                            "label": "Correction",
                            "fieldPaths": [
                              "/basis/correction"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              "case": {
                "id": "gift-campaign-example-evidence",
                "scope": "{\"batchId\":\"GIFT-120\",\"insertRevision\":\"insert-3\",\"destinationRevision\":\"destination-2\",\"checkoutRevision\":\"checkout-1\",\"deviceScope\":\"campaign-test-phone\",\"accountScope\":\"intended-recipient-account\"}",
                "parameters": {
                  "nowMinute": 0
                },
                "basis": {
                  "expectedScope": [
                    {
                      "field": "batchId",
                      "value": "\"GIFT-120\""
                    },
                    {
                      "field": "insertRevision",
                      "value": "\"insert-3\""
                    },
                    {
                      "field": "destinationRevision",
                      "value": "\"destination-2\""
                    },
                    {
                      "field": "checkoutRevision",
                      "value": "\"checkout-1\""
                    },
                    {
                      "field": "deviceScope",
                      "value": "\"campaign-test-phone\""
                    },
                    {
                      "field": "accountScope",
                      "value": "\"intended-recipient-account\""
                    }
                  ],
                  "state": [
                    {
                      "id": "none",
                      "label": "No modeled fault"
                    },
                    {
                      "id": "print",
                      "label": "The printed code cannot be read"
                    },
                    {
                      "id": "destination",
                      "label": "The code leads to the wrong destination"
                    },
                    {
                      "id": "print-destination",
                      "label": "The printed code cannot be read; The code leads to the wrong destination"
                    },
                    {
                      "id": "checkout",
                      "label": "The intended checkout is restricted"
                    },
                    {
                      "id": "print-checkout",
                      "label": "The printed code cannot be read; The intended checkout is restricted"
                    },
                    {
                      "id": "destination-checkout",
                      "label": "The code leads to the wrong destination; The intended checkout is restricted"
                    },
                    {
                      "id": "print-destination-checkout",
                      "label": "The printed code cannot be read; The code leads to the wrong destination; The intended checkout is restricted"
                    }
                  ],
                  "stateFault": [
                    {
                      "state": "print",
                      "fault": "print"
                    },
                    {
                      "state": "destination",
                      "fault": "destination"
                    },
                    {
                      "state": "print-destination",
                      "fault": "print"
                    },
                    {
                      "state": "print-destination",
                      "fault": "destination"
                    },
                    {
                      "state": "checkout",
                      "fault": "checkout"
                    },
                    {
                      "state": "print-checkout",
                      "fault": "print"
                    },
                    {
                      "state": "print-checkout",
                      "fault": "checkout"
                    },
                    {
                      "state": "destination-checkout",
                      "fault": "destination"
                    },
                    {
                      "state": "destination-checkout",
                      "fault": "checkout"
                    },
                    {
                      "state": "print-destination-checkout",
                      "fault": "print"
                    },
                    {
                      "state": "print-destination-checkout",
                      "fault": "destination"
                    },
                    {
                      "state": "print-destination-checkout",
                      "fault": "checkout"
                    }
                  ],
                  "stateCorrection": [
                    {
                      "state": "print",
                      "correction": "replace-insert"
                    },
                    {
                      "state": "destination",
                      "correction": "correct-destination"
                    },
                    {
                      "state": "print-destination",
                      "correction": "replace-insert"
                    },
                    {
                      "state": "print-destination",
                      "correction": "correct-destination"
                    },
                    {
                      "state": "checkout",
                      "correction": "fix-checkout"
                    },
                    {
                      "state": "print-checkout",
                      "correction": "replace-insert"
                    },
                    {
                      "state": "print-checkout",
                      "correction": "fix-checkout"
                    },
                    {
                      "state": "destination-checkout",
                      "correction": "correct-destination"
                    },
                    {
                      "state": "destination-checkout",
                      "correction": "fix-checkout"
                    },
                    {
                      "state": "print-destination-checkout",
                      "correction": "replace-insert"
                    },
                    {
                      "state": "print-destination-checkout",
                      "correction": "correct-destination"
                    },
                    {
                      "state": "print-destination-checkout",
                      "correction": "fix-checkout"
                    }
                  ],
                  "checkOutcome": [
                    {
                      "check": "rescan",
                      "outcome": "readable"
                    },
                    {
                      "check": "rescan",
                      "outcome": "unreadable"
                    },
                    {
                      "check": "decode",
                      "outcome": "unreadable"
                    },
                    {
                      "check": "decode",
                      "outcome": "approved-target"
                    },
                    {
                      "check": "decode",
                      "outcome": "wrong-target"
                    },
                    {
                      "check": "proof",
                      "outcome": "approved-target"
                    },
                    {
                      "check": "proof",
                      "outcome": "wrong-target"
                    },
                    {
                      "check": "checkout",
                      "outcome": "usable"
                    },
                    {
                      "check": "checkout",
                      "outcome": "blocked"
                    }
                  ],
                  "prediction": [
                    {
                      "state": "none",
                      "check": "rescan",
                      "outcome": "readable"
                    },
                    {
                      "state": "print",
                      "check": "rescan",
                      "outcome": "unreadable"
                    },
                    {
                      "state": "destination",
                      "check": "rescan",
                      "outcome": "readable"
                    },
                    {
                      "state": "print-destination",
                      "check": "rescan",
                      "outcome": "unreadable"
                    },
                    {
                      "state": "checkout",
                      "check": "rescan",
                      "outcome": "readable"
                    },
                    {
                      "state": "print-checkout",
                      "check": "rescan",
                      "outcome": "unreadable"
                    },
                    {
                      "state": "destination-checkout",
                      "check": "rescan",
                      "outcome": "readable"
                    },
                    {
                      "state": "print-destination-checkout",
                      "check": "rescan",
                      "outcome": "unreadable"
                    },
                    {
                      "state": "none",
                      "check": "decode",
                      "outcome": "approved-target"
                    },
                    {
                      "state": "print",
                      "check": "decode",
                      "outcome": "unreadable"
                    },
                    {
                      "state": "destination",
                      "check": "decode",
                      "outcome": "wrong-target"
                    },
                    {
                      "state": "print-destination",
                      "check": "decode",
                      "outcome": "unreadable"
                    },
                    {
                      "state": "checkout",
                      "check": "decode",
                      "outcome": "approved-target"
                    },
                    {
                      "state": "print-checkout",
                      "check": "decode",
                      "outcome": "unreadable"
                    },
                    {
                      "state": "destination-checkout",
                      "check": "decode",
                      "outcome": "wrong-target"
                    },
                    {
                      "state": "print-destination-checkout",
                      "check": "decode",
                      "outcome": "unreadable"
                    },
                    {
                      "state": "none",
                      "check": "proof",
                      "outcome": "approved-target"
                    },
                    {
                      "state": "print",
                      "check": "proof",
                      "outcome": "approved-target"
                    },
                    {
                      "state": "destination",
                      "check": "proof",
                      "outcome": "wrong-target"
                    },
                    {
                      "state": "print-destination",
                      "check": "proof",
                      "outcome": "wrong-target"
                    },
                    {
                      "state": "checkout",
                      "check": "proof",
                      "outcome": "approved-target"
                    },
                    {
                      "state": "print-checkout",
                      "check": "proof",
                      "outcome": "approved-target"
                    },
                    {
                      "state": "destination-checkout",
                      "check": "proof",
                      "outcome": "wrong-target"
                    },
                    {
                      "state": "print-destination-checkout",
                      "check": "proof",
                      "outcome": "wrong-target"
                    },
                    {
                      "state": "none",
                      "check": "checkout",
                      "outcome": "usable"
                    },
                    {
                      "state": "print",
                      "check": "checkout",
                      "outcome": "usable"
                    },
                    {
                      "state": "destination",
                      "check": "checkout",
                      "outcome": "usable"
                    },
                    {
                      "state": "print-destination",
                      "check": "checkout",
                      "outcome": "usable"
                    },
                    {
                      "state": "checkout",
                      "check": "checkout",
                      "outcome": "blocked"
                    },
                    {
                      "state": "print-checkout",
                      "check": "checkout",
                      "outcome": "blocked"
                    },
                    {
                      "state": "destination-checkout",
                      "check": "checkout",
                      "outcome": "blocked"
                    },
                    {
                      "state": "print-destination-checkout",
                      "check": "checkout",
                      "outcome": "blocked"
                    }
                  ],
                  "correction": [
                    {
                      "id": "replace-insert"
                    },
                    {
                      "id": "correct-destination"
                    },
                    {
                      "id": "fix-checkout"
                    }
                  ]
                },
                "evidence": {
                  "observation": [
                    {
                      "id": "OBS-DECODE",
                      "check": "decode",
                      "outcome": "unreadable",
                      "observed": 0,
                      "source": "Fictional rehearsal record",
                      "person": "campaign-owner-1",
                      "text": "The printed code cannot be decoded on the declared test phone."
                    },
                    {
                      "id": "OBS-PROOF",
                      "check": "proof",
                      "outcome": "wrong-target",
                      "observed": 0,
                      "source": "Fictional rehearsal record",
                      "person": "campaign-owner-1",
                      "text": "The approved source artwork contains the wrong destination."
                    },
                    {
                      "id": "OBS-CHECKOUT",
                      "check": "checkout",
                      "outcome": "usable",
                      "observed": 0,
                      "source": "Fictional rehearsal record",
                      "person": "campaign-owner-1",
                      "text": "The intended account can complete the scoped checkout rehearsal."
                    }
                  ],
                  "recordScope": [
                    {
                      "record": "OBS-DECODE",
                      "field": "batchId",
                      "value": "\"GIFT-120\""
                    },
                    {
                      "record": "OBS-DECODE",
                      "field": "insertRevision",
                      "value": "\"insert-3\""
                    },
                    {
                      "record": "OBS-DECODE",
                      "field": "destinationRevision",
                      "value": "\"destination-2\""
                    },
                    {
                      "record": "OBS-DECODE",
                      "field": "checkoutRevision",
                      "value": "\"checkout-1\""
                    },
                    {
                      "record": "OBS-DECODE",
                      "field": "deviceScope",
                      "value": "\"campaign-test-phone\""
                    },
                    {
                      "record": "OBS-DECODE",
                      "field": "accountScope",
                      "value": "\"intended-recipient-account\""
                    },
                    {
                      "record": "OBS-PROOF",
                      "field": "batchId",
                      "value": "\"GIFT-120\""
                    },
                    {
                      "record": "OBS-PROOF",
                      "field": "insertRevision",
                      "value": "\"insert-3\""
                    },
                    {
                      "record": "OBS-PROOF",
                      "field": "destinationRevision",
                      "value": "\"destination-2\""
                    },
                    {
                      "record": "OBS-PROOF",
                      "field": "checkoutRevision",
                      "value": "\"checkout-1\""
                    },
                    {
                      "record": "OBS-PROOF",
                      "field": "deviceScope",
                      "value": "\"campaign-test-phone\""
                    },
                    {
                      "record": "OBS-PROOF",
                      "field": "accountScope",
                      "value": "\"intended-recipient-account\""
                    },
                    {
                      "record": "OBS-CHECKOUT",
                      "field": "batchId",
                      "value": "\"GIFT-120\""
                    },
                    {
                      "record": "OBS-CHECKOUT",
                      "field": "insertRevision",
                      "value": "\"insert-3\""
                    },
                    {
                      "record": "OBS-CHECKOUT",
                      "field": "destinationRevision",
                      "value": "\"destination-2\""
                    },
                    {
                      "record": "OBS-CHECKOUT",
                      "field": "checkoutRevision",
                      "value": "\"checkout-1\""
                    },
                    {
                      "record": "OBS-CHECKOUT",
                      "field": "deviceScope",
                      "value": "\"campaign-test-phone\""
                    },
                    {
                      "record": "OBS-CHECKOUT",
                      "field": "accountScope",
                      "value": "\"intended-recipient-account\""
                    }
                  ]
                },
                "queryIds": [
                  "remaining-configurations"
                ],
                "evaluation": {
                  "maxCandidates": 2,
                  "maxRuleRounds": 100,
                  "maxFacts": 10000,
                  "maxOperations": 10000000
                }
              }
            },
            "presentation": {
              "schemaVersion": 1,
              "provider": "native-evidence-review",
              "contract": "evidence-assessment/1",
              "views": []
            },
            "viewContracts": [],
            "fields": [],
            "reports": [
              "answer",
              "interpretations",
              "stability",
              "findings",
              "basis",
              "changes"
            ],
            "defaultReport": "answer",
            "originWorkspaceId": null,
            "createdAt": "2026-11-23T16:59:01.941Z",
            "contentHash": "c91c3193e6def13aeb6b2f76940bc8aff1bac9e4a8ce2edcde0c7d16e325575d"
          },
          "sourceProvenance": "supplied",
          "contentHash": "1a0b6d5519121315e2e0c229972137dda5033fd1e09d6b9b540c95faa1d56f32"
        },
        "packageHash": "1a0b6d5519121315e2e0c229972137dda5033fd1e09d6b9b540c95faa1d56f32"
      },
      {
        "id": "planning",
        "app": {
          "format": "decision-lab-app/1",
          "template": {
            "format": "decision-lab-template/1",
            "definition": {
              "format": "decision-lab-template-definition/1",
              "templateId": "complete-a-commitment",
              "version": "1.0.0",
              "pattern": "complete-a-commitment/1",
              "title": "Complete a commitment",
              "description": "Shared installed reasoning contract; gifting meaning is supplied by the module.",
              "authoring": {
                "requiredModuleFields": [],
                "guidance": ""
              },
              "contract": {
                "format": "decision-lab-installed-contract/1",
                "pattern": "complete-a-commitment/1",
                "definition": {
                  "id": "complete-a-commitment",
                  "version": "1.0.0",
                  "evaluator": "bounded-static-commitment/1",
                  "title": "Complete a commitment",
                  "responsibility": "Find one complete static operating choice that satisfies every mandatory obligation across every explicitly admitted joint scenario, then compare feasible choices.",
                  "invariants": [
                    "Choices are finite, input-only controls. One complete assignment is shared across every admitted scenario and obligation.",
                    "Admitted joint scenarios are explicit facts; neither independence, probabilities nor unlisted scenarios are inferred.",
                    "An empty admitted basis is inconsistent, never a vacuous feasibility result.",
                    "Typed acyclic expressions separate static controls, scenario consequences and post-scenario preference aggregates.",
                    "Activities, calendars, bookings and permission validity use half-open intervals; adjacent intervals do not overlap.",
                    "Capacity is the sum of simultaneous renewable demands. A scoped grant must cover its entire required operation.",
                    "Expense sums nonrefundable charges. Refundable holds affect cash only; simultaneous cash events are netted before peak cash is measured.",
                    "Every mandatory condition must pass for the same choice in every admitted scenario. Preference cannot compensate for failure.",
                    "Ranking is lexicographic over feasible choices only; genuine ties are retained and identifiers only stabilize display order.",
                    "A fully checked witness establishes existence during partial search. No-plan and optimality claims require complete relevant coverage.",
                    "Missing data, unresolved lookups, unsafe arithmetic and unsupported declarations are invalid input, never invented facts.",
                    "Calculated feasibility is conditional on accepted facts and fixed assumptions, not permission, reservation or evidence of actual completion."
                  ],
                  "expressionLanguage": {
                    "id": "typed-static-commitment-expressions/1",
                    "literals": "Finite scalar or homogeneous scalar-array data; no executable code.",
                    "references": [
                      "parameter",
                      "choice",
                      "scenario",
                      "derived",
                      "activity",
                      "finance",
                      "row (inside exists.test)"
                    ],
                    "operators": {
                      "eq": "Two compatible scalars -> boolean",
                      "ne": "Two compatible scalars -> boolean",
                      "lt": "Two compatible numbers -> boolean",
                      "lte": "Two compatible numbers -> boolean",
                      "gt": "Two compatible numbers -> boolean",
                      "gte": "Two compatible numbers -> boolean",
                      "add": "At least two compatible numbers -> number",
                      "sub": "Two compatible numbers -> number",
                      "mul": "Two numbers with at most one dimensional operand -> number; count is a multiplicity",
                      "and": "At least two booleans -> boolean",
                      "or": "At least two booleans -> boolean",
                      "not": "One boolean -> boolean",
                      "in": "Scalar and compatible scalar-array -> boolean",
                      "lookup": "Complete primary-key binding in a typed input table -> exactly one selected scalar; missing or ambiguous lookup is invalid",
                      "exists": "Typed equality bindings plus optional row-scoped predicate -> boolean; no match is false",
                      "interval-covered": "Typed selected calendar rows and a positive half-open interval -> boolean; adjacent coverage may combine",
                      "worst-case": "Numeric expression -> maximum across admitted scenarios for preference only; nested or unreduced scenario aggregates are invalid"
                    }
                  }
                },
                "schema": {
                  "kind": "installed-validator-descriptor/1",
                  "modelFormat": "complete-a-commitment/1",
                  "moduleValidator": "assertCommitmentModule",
                  "caseValidator": "validateCommitmentCase",
                  "requiredModelFields": [
                    "format",
                    "module",
                    "case"
                  ],
                  "requiredModuleFields": [
                    "id",
                    "title",
                    "template",
                    "units",
                    "inputs",
                    "choices",
                    "scenarioDomain",
                    "derived",
                    "activities",
                    "resources",
                    "requirements",
                    "constraints",
                    "finance",
                    "preference",
                    "labels"
                  ],
                  "moduleFields": [
                    "id",
                    "title",
                    "template",
                    "template.id",
                    "template.version",
                    "description",
                    "question",
                    "assumptions",
                    "units",
                    "units.time",
                    "units.timeOrigin",
                    "units.money",
                    "inputs",
                    "inputs.parameters",
                    "inputs.tables",
                    "choices",
                    "scenarioDomain",
                    "derived",
                    "activities",
                    "resources",
                    "resources.definitions",
                    "resources.bookings",
                    "requirements",
                    "constraints",
                    "finance",
                    "finance.mode",
                    "finance.charges",
                    "finance.holds",
                    "preference",
                    "preference.direction",
                    "preference.expression",
                    "preference.then",
                    "labels",
                    "lookupCoverage"
                  ],
                  "requiredCaseFields": [
                    "id",
                    "parameters",
                    "tables",
                    "provenance"
                  ],
                  "optionalCaseFields": [],
                  "caseDerivation": [
                    "All case parameters and keyed input rows use the frozen module.inputs types, units, bounds, keys and references; no missing-value defaults or coercion are inferred.",
                    "Finite choices draw only from input arrays, input table columns or fixed literal domains; the same assignment applies to every scenario.",
                    "The scenarioDomain table explicitly lists admitted joint scenarios; an empty table is an inconsistent basis rather than vacuous feasibility.",
                    "Activity graphs, constraints, mandatory obligations, resource mappings, financial mode and preference remain frozen module declarations.",
                    "Provenance describes accepted factual sources; identifying a source does not authenticate it or infer readiness."
                  ],
                  "description": "Installed closed typed declaration and case-admission validators; this descriptor is not a complete JSON Schema. Publication checks admission, not computed feasibility."
                },
                "structuralSlots": [
                  {
                    "path": "units",
                    "owner": "module-author",
                    "description": "Declare one time origin, common time and money units, and additional numeric units."
                  },
                  {
                    "path": "inputs",
                    "owner": "module-author",
                    "description": "Declare required typed parameters and keyed relations."
                  },
                  {
                    "path": "choices",
                    "owner": "module-author",
                    "description": "Declare finite static controls from input-only domains."
                  },
                  {
                    "path": "scenarioDomain",
                    "owner": "module-author",
                    "description": "Bind the input relation containing explicit joint scenarios."
                  },
                  {
                    "path": "derived",
                    "owner": "module-author",
                    "description": "Bind typed acyclic consequences using the installed expression language."
                  },
                  {
                    "path": "activities",
                    "owner": "module-author",
                    "description": "Declare static activity actors, timing and renewable resource demands."
                  },
                  {
                    "path": "resources",
                    "owner": "module-author",
                    "description": "Map resource capacities and existing bookings."
                  },
                  {
                    "path": "requirements",
                    "owner": "module-author",
                    "description": "Name and explain every mandatory commitment obligation."
                  },
                  {
                    "path": "constraints",
                    "owner": "module-author",
                    "description": "Bind predicates and shared resource-capacity checks to obligations."
                  },
                  {
                    "path": "finance",
                    "owner": "module-author",
                    "description": "Declare nonrefundable charges and optional timed refundable holds."
                  },
                  {
                    "path": "preference",
                    "owner": "module-author",
                    "description": "Declare feasible-only lexicographic comparison."
                  },
                  {
                    "path": "lookupCoverage",
                    "owner": "module-author",
                    "description": "Optionally require complete finite lookup coverage."
                  },
                  {
                    "path": "labels",
                    "owner": "module-author",
                    "description": "Supply domain vocabulary without changing calculations."
                  },
                  {
                    "path": "assumptions",
                    "owner": "module-author",
                    "description": "State accepted premises and the applicability boundary."
                  }
                ],
                "caseInputs": [
                  {
                    "path": "id",
                    "owner": "case-worker",
                    "description": "Identify this case."
                  },
                  {
                    "path": "parameters",
                    "owner": "case-worker",
                    "description": "Supply every declared parameter, including finite choice grids and current limits."
                  },
                  {
                    "path": "tables",
                    "owner": "case-worker",
                    "description": "Supply typed records, accepted scenarios, calendars, grants, resources and other declared facts."
                  },
                  {
                    "path": "provenance",
                    "owner": "case-worker",
                    "description": "Record the accepted source and scope of supplied information."
                  }
                ],
                "capabilities": {
                  "language": "typed-static-commitment-expressions/1",
                  "supported": [
                    "finite-static-plans",
                    "explicit-joint-scenarios",
                    "typed-acyclic-expressions",
                    "variable-activity-graphs",
                    "half-open-intervals",
                    "renewable-capacity",
                    "scoped-permission-predicates",
                    "expense-and-cash-accounting",
                    "all-scenario-conjunction",
                    "coverage-qualified-findings",
                    "feasible-only-lexicographic-preference"
                  ],
                  "unsupported": [
                    "conditional-policy-synthesis",
                    "continuous-time-optimization",
                    "inferred-readiness-or-probabilities",
                    "live-reservations",
                    "permission-issuance",
                    "arbitrary-code"
                  ]
                },
                "limits": {
                  "admission": {
                    "nodes": 250000,
                    "depth": 80,
                    "list": 10000,
                    "text": 200000,
                    "expressions": 20000,
                    "expressionDepth": 64,
                    "dependencyDepth": 64,
                    "lookupTuples": 100000,
                    "errors": 200
                  },
                  "defaults": {
                    "maxPlans": 10000,
                    "maxScenarioChecks": 100000,
                    "maxOperations": 10000000
                  },
                  "hard": {
                    "maxPlans": 100000,
                    "maxScenarioChecks": 1000000,
                    "maxOperations": 50000000
                  }
                },
                "reportResponsibilities": {
                  "assessmentContract": "complete-a-commitment.assessment/1",
                  "reportIds": [],
                  "responsibilities": [
                    "Complete candidate assignments and all checked scenarios",
                    "Feasibility, coverage and feasible-only preference",
                    "Activities, interval/resource checks and scoped permission traces",
                    "Expense, timed cash events and peak cash where declared",
                    "Mandatory obligation results and blockers",
                    "Accepted basis and calculation provenance"
                  ],
                  "completeReportDocument": "Unavailable for this pattern until milestone 5. Public assessment artifacts expose complete calculation data without claiming renderer-ready report support."
                }
              }
            },
            "createdAt": "2026-11-17T20:00:00.000Z",
            "contentHash": "1b3c51e805899ae2e0811c24552f611eecc1c739844c56d71d61504ddd29dc08"
          },
          "app": {
            "schemaVersion": 5,
            "kind": "hermod-published-app",
            "runtime": "diagnostic-evidence",
            "id": "review-gift-kit-flexible-planning",
            "version": 4,
            "name": "Review a gift-kit commitment — complete arrangements",
            "description": "Compare one authored correction package across every remaining fault configuration, including simultaneous faults. Prospective correction is distinct from completed work.",
            "source": "{\"format\":\"complete-a-commitment/1\",\"module\":{\"id\":\"review-gift-kit-flexible-planning\",\"version\":\"2.0.2\",\"title\":\"Prepare gift kits before commitment\",\"template\":{\"id\":\"complete-a-commitment\",\"version\":1},\"question\":\"Which complete correction package addresses every remaining explanation and can finish before we commit the gift kits?\",\"description\":\"Compare one authored correction package across every remaining fault configuration, including simultaneous faults. Prospective correction is distinct from completed work.\",\"metadata\":{\"decisionPresentation\":{\"format\":\"decision-presentation/1\",\"title\":\"Complete gift-kit arrangements\",\"priorityLabel\":\"Lowest complete package cost, then earliest handoff\",\"moneyFormat\":{\"currency\":\"USD\",\"divisor\":100},\"columns\":[{\"id\":\"plan\",\"label\":\"Complete arrangement\"},{\"id\":\"status\",\"label\":\"Operating result\"},{\"id\":\"handoff\",\"source\":{\"kind\":\"activity\",\"id\":\"handoff\",\"field\":\"end\"},\"label\":\"Handoff complete\",\"format\":{\"kind\":\"time\",\"suffix\":\"minutes after the declared origin\"}},{\"id\":\"expense\",\"label\":\"Complete package cost\"},{\"id\":\"blockers\",\"label\":\"Conditions needing attention\"}],\"comparisonFields\":[{\"id\":\"package\",\"source\":\"choice:packageId\",\"label\":\"Package\",\"valueLabels\":{\"rehearse-unchanged\":\"Prepare, rehearse and hand off unchanged kits\",\"reprint\":\"Replace the printed inserts\",\"repair-journey\":\"Correct the destination and checkout\",\"replace-and-repair\":\"Replace inserts and repair the journey\",\"external-replace-and-repair\":\"External replacement and journey repair\"}},{\"id\":\"start\",\"source\":\"choice:startMinute\",\"label\":\"Start\",\"format\":{\"kind\":\"time\",\"suffix\":\"minutes after the declared origin\"}}],\"alternativeLabel\":{\"columnIds\":[\"package\",\"start\"]}},\"catalog\":{\"domain\":{\"id\":\"gifting-operations\",\"label\":\"Gifting operations\"},\"useCase\":{\"id\":\"prepare-gift-kit-campaign\",\"label\":\"Prepare a gift-kit campaign\"}},\"gifting\":{\"profileId\":\"gift-kit-readiness\",\"profileVersion\":\"1.0.0\",\"packages\":[{\"id\":\"rehearse-unchanged\",\"label\":\"Prepare, rehearse and hand off unchanged kits\",\"corrects\":[],\"requiresConfirmation\":false},{\"id\":\"reprint\",\"label\":\"Replace the printed inserts\",\"corrects\":[\"replace-insert\"],\"requiresConfirmation\":false},{\"id\":\"repair-journey\",\"label\":\"Correct the destination and checkout\",\"corrects\":[\"correct-destination\",\"fix-checkout\"],\"requiresConfirmation\":false},{\"id\":\"replace-and-repair\",\"label\":\"Replace inserts and repair the journey\",\"corrects\":[\"replace-insert\",\"correct-destination\",\"fix-checkout\"],\"requiresConfirmation\":false},{\"id\":\"external-replace-and-repair\",\"label\":\"External replacement and journey repair\",\"corrects\":[\"replace-insert\",\"correct-destination\",\"fix-checkout\"],\"requiresConfirmation\":true}],\"checks\":[{\"id\":\"declared-fault-state\",\"requirement\":\"COVERAGE\",\"label\":\"Use an admitted configuration from the published fault catalog\",\"evidence\":\"A current scoped evidence assessment admitting this fault configuration.\"},{\"id\":\"published-package-effects\",\"requirement\":\"COVERAGE\",\"label\":\"Retain the published correction effects of the selected package\",\"evidence\":\"The author-fixed correction effects from this exact published package version.\"},{\"id\":\"correct-fault-0\",\"requirement\":\"SUFFICIENCY\",\"label\":\"Address The printed code cannot be read whenever it remains possible\",\"evidence\":\"A complete package addressing The printed code cannot be read, or scoped evidence excluding that fault.\"},{\"id\":\"correct-fault-1\",\"requirement\":\"SUFFICIENCY\",\"label\":\"Address The code leads to the wrong destination whenever it remains possible\",\"evidence\":\"A complete package addressing The code leads to the wrong destination, or scoped evidence excluding that fault.\"},{\"id\":\"correct-fault-2\",\"requirement\":\"SUFFICIENCY\",\"label\":\"Address The intended checkout is restricted whenever it remains possible\",\"evidence\":\"A complete package addressing The intended checkout is restricted, or scoped evidence excluding that fault.\"},{\"id\":\"known-owner\",\"requirement\":\"ACCESS\",\"label\":\"Assign the complete work to a recorded responsible person\",\"evidence\":\"A recorded person responsible for this complete correction package.\"},{\"id\":\"scoped-package-permission\",\"requirement\":\"ACCESS\",\"label\":\"Hold recorded authority for this package, person, exact configuration, and whole working interval\",\"evidence\":\"A sourced permission for the selected package and person, matching all six scope fields and covering correction through handoff.\"},{\"id\":\"resource-calendar\",\"requirement\":\"ACCESS\",\"label\":\"Keep the full correction, rehearsal, and handoff within resource availability\",\"evidence\":\"An availability interval covering the complete proposed work.\"},{\"id\":\"resource-capacity\",\"requirement\":\"ACCESS\",\"label\":\"Keep all proposed work within recorded resource capacity\",\"evidence\":\"Enough recorded resource capacity throughout the proposed work.\"},{\"id\":\"not-in-past\",\"requirement\":\"TIME\",\"label\":\"Start correction at or after the current review time\",\"evidence\":\"A current proposed start time.\"},{\"id\":\"handoff-by-cutoff\",\"requirement\":\"TIME\",\"label\":\"Finish correction, scoped rehearsal, and handoff before the kit commitment cutoff\",\"evidence\":\"Durations and resource availability that fit the cutoff, or a revised commitment.\"},{\"id\":\"package-within-budget\",\"requirement\":\"COST\",\"label\":\"Keep the complete proposed package within the recorded spending ceiling\",\"evidence\":\"A current package quote within the spending ceiling, or an approved revised ceiling.\"},{\"id\":\"quoted-quantity\",\"requirement\":\"SUFFICIENCY\",\"label\":\"Use a complete-package quote for the current kit quantity\",\"evidence\":\"A current complete-package quote and duration explicitly covering the stated kit quantity.\"},{\"id\":\"minimum-rehearsal\",\"requirement\":\"SUFFICIENCY\",\"label\":\"Allow at least the published minimum duration for the scoped rehearsal\",\"evidence\":\"A proposed scoped rehearsal duration meeting the published minimum. This remains a plan, not evidence that rehearsal passed.\"},{\"id\":\"scoped-package-confirmation\",\"requirement\":\"CONFIRMATION\",\"label\":\"Confirm the selected arrangement for this exact gift-kit configuration\",\"evidence\":\"A sourced positive package confirmation, recorded by a named person, for this exact batch, insert, destination, checkout, device and account, effective at the planned start and valid through handoff.\"}]},\"supportingReports\":{\"format\":\"supporting-reports/1\",\"reports\":[{\"id\":\"complete-options\",\"label\":\"Complete options\",\"question\":\"How do the complete options compare against the operating requirements?\",\"template\":\"comparison/1\",\"source\":{\"kind\":\"report-dataset\",\"datasetId\":\"commitment:comparison\"},\"bindings\":{\"columns\":[{\"key\":\"plan\",\"label\":\"Complete gift-kit correction arrangement\"},{\"key\":\"status\",\"label\":\"Operating fit\"},{\"key\":\"expense\",\"label\":\"Complete package cost\",\"format\":{\"type\":\"money\",\"currency\":\"USD\",\"scale\":100}},{\"key\":\"cash\",\"label\":\"Peak cash in use\",\"format\":{\"type\":\"money\",\"currency\":\"USD\",\"scale\":100}},{\"key\":\"blockers\",\"label\":\"Unmet checks\",\"format\":\"number\"}]}},{\"id\":\"work-and-timing\",\"label\":\"Work and timing\",\"question\":\"When does each complete plan perform the selected activity?\",\"template\":\"timeline/1\",\"source\":{\"kind\":\"commitment-schedules\"},\"representations\":[\"table\",\"timeline\"],\"defaultRepresentation\":\"table\",\"bindings\":{\"timeline\":{\"extent\":\"activities\",\"label\":\"Operating activities\"}}},{\"id\":\"requirements\",\"label\":\"Requirements\",\"question\":\"Which mandatory requirements must every complete option meet?\",\"template\":\"records/1\",\"source\":{\"kind\":\"report-dataset\",\"datasetId\":\"commitment:requirements\"},\"bindings\":{\"columns\":[{\"key\":\"requirement\",\"label\":\"Requirement\"},{\"key\":\"meaning\",\"label\":\"Operating meaning\"},{\"key\":\"coverage\",\"label\":\"Complete plans passing in every situation\",\"format\":\"number\"},{\"key\":\"waivable\",\"label\":\"Can be waived\",\"format\":\"boolean\"}]}}]},\"inputDesign\":{\"version\":1,\"form\":{\"type\":\"object\",\"label\":\"Case inputs\",\"fields\":{\"parameters\":{\"type\":\"object\",\"label\":\"Parameters\",\"fields\":{\"batchId\":{\"type\":\"string\",\"label\":\"Batch Id\"},\"insertRevision\":{\"type\":\"string\",\"label\":\"Insert Revision\"},\"destinationRevision\":{\"type\":\"string\",\"label\":\"Destination Revision\"},\"checkoutRevision\":{\"type\":\"string\",\"label\":\"Checkout Revision\"},\"deviceScope\":{\"type\":\"string\",\"label\":\"Device Scope\"},\"accountScope\":{\"type\":\"string\",\"label\":\"Account Scope\"},\"actorId\":{\"type\":\"string\",\"label\":\"Actor Id\"},\"quantity\":{\"type\":\"number\",\"label\":\"Quantity\",\"integer\":true,\"unit\":\"gift kit\",\"minimum\":1},\"nowMinute\":{\"type\":\"number\",\"label\":\"Now Minute\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"handoffDeadlineMinute\":{\"type\":\"number\",\"label\":\"Handoff Deadline Minute\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"budgetMinor\":{\"type\":\"number\",\"label\":\"Budget Minor\",\"integer\":true,\"unit\":\"USD cent\",\"minimum\":0},\"rehearsalMinutes\":{\"type\":\"number\",\"label\":\"Rehearsal Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":1},\"handoffMinutes\":{\"type\":\"number\",\"label\":\"Handoff Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":1},\"startOptions\":{\"type\":\"array\",\"label\":\"Start Options\",\"items\":{\"type\":\"number\",\"label\":\"Start Options record\",\"integer\":true,\"unit\":\"time\",\"minimum\":0}}}},\"tables\":{\"type\":\"object\",\"label\":\"Tables\",\"fields\":{\"packages\":{\"type\":\"array\",\"label\":\"Packages\",\"items\":{\"type\":\"object\",\"label\":\"Packages record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"quantity\":{\"type\":\"number\",\"label\":\"Quantity\",\"integer\":true,\"unit\":\"gift kit\",\"minimum\":1},\"repairMinutes\":{\"type\":\"number\",\"label\":\"Repair Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":1},\"repairCostMinor\":{\"type\":\"number\",\"label\":\"Repair Cost Minor\",\"integer\":true,\"unit\":\"USD cent\",\"minimum\":0},\"fixes0\":{\"type\":\"boolean\",\"label\":\"Fixes0\"},\"fixes1\":{\"type\":\"boolean\",\"label\":\"Fixes1\"},\"fixes2\":{\"type\":\"boolean\",\"label\":\"Fixes2\"}}},\"keyFields\":[\"id\"]},\"scenarios\":{\"type\":\"array\",\"label\":\"Scenarios\",\"items\":{\"type\":\"object\",\"label\":\"Scenarios record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"fault0\":{\"type\":\"boolean\",\"label\":\"Fault0\"},\"fault1\":{\"type\":\"boolean\",\"label\":\"Fault1\"},\"fault2\":{\"type\":\"boolean\",\"label\":\"Fault2\"}}},\"keyFields\":[\"id\"]},\"people\":{\"type\":\"array\",\"label\":\"People\",\"items\":{\"type\":\"object\",\"label\":\"People record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"name\":{\"type\":\"string\",\"label\":\"Name\"},\"role\":{\"type\":\"string\",\"label\":\"Role\"}}},\"keyFields\":[\"id\"]},\"permissions\":{\"type\":\"array\",\"label\":\"Permissions\",\"items\":{\"type\":\"object\",\"label\":\"Permissions record\",\"fields\":{\"batchId\":{\"type\":\"string\",\"label\":\"Batch Id\"},\"insertRevision\":{\"type\":\"string\",\"label\":\"Insert Revision\"},\"destinationRevision\":{\"type\":\"string\",\"label\":\"Destination Revision\"},\"checkoutRevision\":{\"type\":\"string\",\"label\":\"Checkout Revision\"},\"deviceScope\":{\"type\":\"string\",\"label\":\"Device Scope\"},\"accountScope\":{\"type\":\"string\",\"label\":\"Account Scope\"},\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"packageId\":{\"type\":\"string\",\"label\":\"Package Id\"},\"actorId\":{\"type\":\"string\",\"label\":\"Actor Id\"},\"validFrom\":{\"type\":\"number\",\"label\":\"Valid From\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"validThrough\":{\"type\":\"number\",\"label\":\"Valid Through\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"source\":{\"type\":\"string\",\"label\":\"Source\"}}},\"keyFields\":[\"id\"]},\"resources\":{\"type\":\"array\",\"label\":\"Resources\",\"items\":{\"type\":\"object\",\"label\":\"Resources record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"capacity\":{\"type\":\"number\",\"label\":\"Capacity\",\"integer\":true,\"unit\":\"unit of resource capacity\",\"minimum\":0}}},\"keyFields\":[\"id\"]},\"calendars\":{\"type\":\"array\",\"label\":\"Calendars\",\"items\":{\"type\":\"object\",\"label\":\"Calendars record\",\"fields\":{\"resource\":{\"type\":\"string\",\"label\":\"Resource\"},\"start\":{\"type\":\"number\",\"label\":\"Start\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"end\":{\"type\":\"number\",\"label\":\"End\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0}}},\"keyFields\":[\"resource\",\"start\",\"end\"]},\"bookings\":{\"type\":\"array\",\"label\":\"Bookings\",\"items\":{\"type\":\"object\",\"label\":\"Bookings record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"resource\":{\"type\":\"string\",\"label\":\"Resource\"},\"start\":{\"type\":\"number\",\"label\":\"Start\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"end\":{\"type\":\"number\",\"label\":\"End\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"amount\":{\"type\":\"number\",\"label\":\"Amount\",\"integer\":true,\"unit\":\"unit of resource capacity\",\"minimum\":1}}},\"keyFields\":[\"id\"]},\"confirmations\":{\"type\":\"array\",\"label\":\"Recorded exact-configuration confirmations\",\"items\":{\"type\":\"object\",\"label\":\"Confirmations record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"packageId\":{\"type\":\"string\",\"label\":\"Package Id\"},\"batchId\":{\"type\":\"string\",\"label\":\"Batch Id\"},\"insertRevision\":{\"type\":\"string\",\"label\":\"Insert Revision\"},\"destinationRevision\":{\"type\":\"string\",\"label\":\"Destination Revision\"},\"checkoutRevision\":{\"type\":\"string\",\"label\":\"Checkout Revision\"},\"deviceScope\":{\"type\":\"string\",\"label\":\"Device Scope\"},\"accountScope\":{\"type\":\"string\",\"label\":\"Account Scope\"},\"confirmed\":{\"type\":\"boolean\",\"label\":\"Confirmed\"},\"validFrom\":{\"type\":\"number\",\"label\":\"Valid From\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"validThrough\":{\"type\":\"number\",\"label\":\"Valid Through\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"recordedAt\":{\"type\":\"number\",\"label\":\"Recorded At\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"source\":{\"type\":\"string\",\"label\":\"Source\"},\"recordedBy\":{\"type\":\"string\",\"label\":\"Recorded By\"}}},\"keyFields\":[\"id\"]}}}}},\"groups\":[{\"id\":\"operating-parameters\",\"label\":\"Commitment and limits\",\"question\":\"Which quantities, deadlines and limits should the calculation use?\",\"subtabs\":[{\"id\":\"parameters\",\"label\":\"Operating parameters\",\"fieldPaths\":[\"/parameters\"]}]},{\"id\":\"operating-records\",\"label\":\"Operating records\",\"question\":\"Which operating records and possibilities apply to this commitment?\",\"subtabs\":[{\"id\":\"packages\",\"label\":\"Packages\",\"fieldPaths\":[\"/tables/packages\"]},{\"id\":\"scenarios\",\"label\":\"Scenarios\",\"fieldPaths\":[\"/tables/scenarios\"]},{\"id\":\"people\",\"label\":\"People\",\"fieldPaths\":[\"/tables/people\"]},{\"id\":\"permissions\",\"label\":\"Permissions\",\"fieldPaths\":[\"/tables/permissions\"]},{\"id\":\"resources\",\"label\":\"Resources\",\"fieldPaths\":[\"/tables/resources\"]},{\"id\":\"calendars\",\"label\":\"Calendars\",\"fieldPaths\":[\"/tables/calendars\"]},{\"id\":\"bookings\",\"label\":\"Bookings\",\"fieldPaths\":[\"/tables/bookings\"]},{\"id\":\"confirmations\",\"label\":\"Recorded exact-configuration confirmations\",\"fieldPaths\":[\"/tables/confirmations\"]}]}]}},\"units\":{\"time\":\"minute\",\"timeOrigin\":\"Start of this gift-kit preparation review\",\"money\":\"USD cent\",\"count\":\"unit of resource capacity\",\"quantity\":\"gift kit\"},\"assumptions\":[\"The module author declares the complete fault catalog and the deterministic prospective correction effects of each package. These are reviewed modeling premises, not evidence that correction finished.\",\"One static complete package must work across all admitted configurations. This model does not synthesize sequential investigations or choose a different package for each possible fault configuration.\",\"Quoted repair cost is the complete prospective package charge in this bounded profile. Rehearsal and handoff have recorded durations and no separate monetary charge.\",\"The supplied permission registry is complete. An empty registry supplies no permission; evaluating a plan grants no authority.\",\"The same recorded person and production resource perform correction, scoped rehearsal, and handoff in that order. Resource intervals are half-open; permission valid-through includes the endpoint.\",\"Quantity scopes this review but does not scale time or expense automatically. Each complete-package quote must explicitly match the stated kit quantity; changing quantity requires a matching quote and duration.\",\"An unchanged-kit package may have a positive preparation duration and no correction effects or monetary charge. Its preparation is not a repair or evidence of a successful rehearsal.\"],\"inputs\":{\"parameters\":{\"batchId\":{\"type\":\"string\"},\"insertRevision\":{\"type\":\"string\"},\"destinationRevision\":{\"type\":\"string\"},\"checkoutRevision\":{\"type\":\"string\"},\"deviceScope\":{\"type\":\"string\"},\"accountScope\":{\"type\":\"string\"},\"actorId\":{\"type\":\"string\"},\"quantity\":{\"type\":\"integer\",\"unit\":\"quantity\",\"minimum\":1},\"nowMinute\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0},\"handoffDeadlineMinute\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0},\"budgetMinor\":{\"type\":\"integer\",\"unit\":\"money\",\"minimum\":0},\"rehearsalMinutes\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":1},\"handoffMinutes\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":1},\"startOptions\":{\"type\":\"array\",\"items\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0}}},\"tables\":{\"packages\":{\"key\":[\"id\"],\"columns\":{\"id\":{\"type\":\"string\"},\"quantity\":{\"type\":\"integer\",\"unit\":\"quantity\",\"minimum\":1},\"repairMinutes\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":1},\"repairCostMinor\":{\"type\":\"integer\",\"unit\":\"money\",\"minimum\":0},\"fixes0\":{\"type\":\"boolean\"},\"fixes1\":{\"type\":\"boolean\"},\"fixes2\":{\"type\":\"boolean\"}}},\"scenarios\":{\"key\":[\"id\"],\"columns\":{\"id\":{\"type\":\"string\"},\"fault0\":{\"type\":\"boolean\"},\"fault1\":{\"type\":\"boolean\"},\"fault2\":{\"type\":\"boolean\"}}},\"people\":{\"key\":[\"id\"],\"columns\":{\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"role\":{\"type\":\"string\"}}},\"permissions\":{\"key\":[\"id\"],\"columns\":{\"batchId\":{\"type\":\"string\"},\"insertRevision\":{\"type\":\"string\"},\"destinationRevision\":{\"type\":\"string\"},\"checkoutRevision\":{\"type\":\"string\"},\"deviceScope\":{\"type\":\"string\"},\"accountScope\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"packageId\":{\"type\":\"string\"},\"actorId\":{\"type\":\"string\"},\"validFrom\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0},\"validThrough\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0},\"source\":{\"type\":\"string\"}}},\"resources\":{\"key\":[\"id\"],\"columns\":{\"id\":{\"type\":\"string\"},\"capacity\":{\"type\":\"integer\",\"unit\":\"count\",\"minimum\":0}}},\"calendars\":{\"key\":[\"resource\",\"start\",\"end\"],\"columns\":{\"resource\":{\"type\":\"string\"},\"start\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0},\"end\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0}}},\"bookings\":{\"key\":[\"id\"],\"columns\":{\"id\":{\"type\":\"string\"},\"resource\":{\"type\":\"string\"},\"start\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0},\"end\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0},\"amount\":{\"type\":\"integer\",\"unit\":\"count\",\"minimum\":1}}},\"confirmations\":{\"key\":[\"id\"],\"columns\":{\"id\":{\"type\":\"string\"},\"packageId\":{\"type\":\"string\"},\"batchId\":{\"type\":\"string\"},\"insertRevision\":{\"type\":\"string\"},\"destinationRevision\":{\"type\":\"string\"},\"checkoutRevision\":{\"type\":\"string\"},\"deviceScope\":{\"type\":\"string\"},\"accountScope\":{\"type\":\"string\"},\"confirmed\":{\"type\":\"boolean\"},\"validFrom\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0},\"validThrough\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0},\"recordedAt\":{\"type\":\"integer\",\"unit\":\"time\",\"minimum\":0},\"source\":{\"type\":\"string\"},\"recordedBy\":{\"type\":\"string\"}}}}},\"choices\":[{\"id\":\"packageId\",\"domain\":{\"values\":[\"rehearse-unchanged\",\"reprint\",\"repair-journey\",\"replace-and-repair\",\"external-replace-and-repair\"]}},{\"id\":\"startMinute\",\"domain\":{\"parameter\":\"startOptions\"}}],\"scenarioDomain\":{\"table\":\"scenarios\"},\"derived\":[],\"activities\":[{\"id\":\"correct\",\"actor\":{\"ref\":\"parameter.actorId\"},\"start\":{\"ref\":\"choice.startMinute\"},\"duration\":{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"repairMinutes\"},\"resources\":[{\"resource\":{\"literal\":\"production-team\"},\"amount\":{\"literal\":1}}]},{\"id\":\"rehearse\",\"actor\":{\"ref\":\"parameter.actorId\"},\"start\":{\"ref\":\"activity.correct.end\"},\"duration\":{\"ref\":\"parameter.rehearsalMinutes\"},\"resources\":[{\"resource\":{\"literal\":\"production-team\"},\"amount\":{\"literal\":1}}]},{\"id\":\"handoff\",\"actor\":{\"ref\":\"parameter.actorId\"},\"start\":{\"ref\":\"activity.rehearse.end\"},\"duration\":{\"ref\":\"parameter.handoffMinutes\"},\"resources\":[{\"resource\":{\"literal\":\"production-team\"},\"amount\":{\"literal\":1}}]}],\"resources\":{\"definitions\":{\"table\":\"resources\",\"idColumn\":\"id\",\"capacityColumn\":\"capacity\"},\"bookings\":{\"table\":\"bookings\",\"resourceColumn\":\"resource\",\"startColumn\":\"start\",\"endColumn\":\"end\",\"amountColumn\":\"amount\"}},\"requirements\":[{\"id\":\"SUFFICIENCY\",\"label\":\"Complete correction\",\"meaning\":\"The selected complete package addresses each fault in every remaining explanation.\",\"waivable\":false},{\"id\":\"COVERAGE\",\"label\":\"Remaining explanations\",\"meaning\":\"Every scenario comes from the author-declared fault catalog and the engine checks the whole admitted relation.\",\"waivable\":false},{\"id\":\"ACCESS\",\"label\":\"People, resources, and permissions\",\"meaning\":\"The proposed work has a known owner, resource capacity and availability, and recorded exact-scope permission.\",\"waivable\":false},{\"id\":\"TIME\",\"label\":\"Commitment cutoff\",\"meaning\":\"The complete prospective work fits between now and the kit commitment cutoff.\",\"waivable\":false},{\"id\":\"COST\",\"label\":\"Spending ceiling\",\"meaning\":\"The complete package cost fits the recorded spending ceiling.\",\"waivable\":false},{\"id\":\"CONFIRMATION\",\"label\":\"Confirm the selected arrangement for this exact gift-kit configuration\",\"meaning\":\"For any author-designated package, retain a named, sourced positive confirmation matching its package and all six configuration fields, recorded by the current review time, effective when correction starts, and valid through handoff.\",\"waivable\":false}],\"constraints\":[{\"id\":\"declared-fault-state\",\"requirement\":\"COVERAGE\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"or\",\"args\":[{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.id\"},{\"literal\":\"none\"}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault0\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault1\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault2\"},{\"literal\":false}]}]},{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.id\"},{\"literal\":\"print\"}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault0\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault1\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault2\"},{\"literal\":false}]}]},{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.id\"},{\"literal\":\"destination\"}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault0\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault1\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault2\"},{\"literal\":false}]}]},{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.id\"},{\"literal\":\"print-destination\"}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault0\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault1\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault2\"},{\"literal\":false}]}]},{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.id\"},{\"literal\":\"checkout\"}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault0\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault1\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault2\"},{\"literal\":true}]}]},{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.id\"},{\"literal\":\"print-checkout\"}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault0\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault1\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault2\"},{\"literal\":true}]}]},{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.id\"},{\"literal\":\"destination-checkout\"}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault0\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault1\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault2\"},{\"literal\":true}]}]},{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.id\"},{\"literal\":\"print-destination-checkout\"}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault0\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault1\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"ref\":\"scenario.fault2\"},{\"literal\":true}]}]}]}},{\"id\":\"published-package-effects\",\"requirement\":\"COVERAGE\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"or\",\"args\":[{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"choice.packageId\"},{\"literal\":\"rehearse-unchanged\"}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes0\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes1\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes2\"},{\"literal\":false}]}]},{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"choice.packageId\"},{\"literal\":\"reprint\"}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes0\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes1\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes2\"},{\"literal\":false}]}]},{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"choice.packageId\"},{\"literal\":\"repair-journey\"}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes0\"},{\"literal\":false}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes1\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes2\"},{\"literal\":true}]}]},{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"choice.packageId\"},{\"literal\":\"replace-and-repair\"}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes0\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes1\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes2\"},{\"literal\":true}]}]},{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"choice.packageId\"},{\"literal\":\"external-replace-and-repair\"}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes0\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes1\"},{\"literal\":true}]},{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes2\"},{\"literal\":true}]}]}]}},{\"id\":\"correct-fault-0\",\"requirement\":\"SUFFICIENCY\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"or\",\"args\":[{\"op\":\"not\",\"args\":[{\"ref\":\"scenario.fault0\"}]},{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes0\"}]}},{\"id\":\"correct-fault-1\",\"requirement\":\"SUFFICIENCY\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"or\",\"args\":[{\"op\":\"not\",\"args\":[{\"ref\":\"scenario.fault1\"}]},{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes1\"}]}},{\"id\":\"correct-fault-2\",\"requirement\":\"SUFFICIENCY\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"or\",\"args\":[{\"op\":\"not\",\"args\":[{\"ref\":\"scenario.fault2\"}]},{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"fixes2\"}]}},{\"id\":\"known-owner\",\"requirement\":\"ACCESS\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"exists\",\"table\":\"people\",\"where\":{\"id\":{\"ref\":\"parameter.actorId\"}},\"test\":{\"op\":\"and\",\"args\":[{\"op\":\"ne\",\"args\":[{\"ref\":\"row.name\"},{\"literal\":\"\"}]},{\"op\":\"ne\",\"args\":[{\"ref\":\"row.role\"},{\"literal\":\"\"}]}]}}},{\"id\":\"scoped-package-permission\",\"requirement\":\"ACCESS\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"exists\",\"table\":\"permissions\",\"where\":{\"batchId\":{\"ref\":\"parameter.batchId\"},\"insertRevision\":{\"ref\":\"parameter.insertRevision\"},\"destinationRevision\":{\"ref\":\"parameter.destinationRevision\"},\"checkoutRevision\":{\"ref\":\"parameter.checkoutRevision\"},\"deviceScope\":{\"ref\":\"parameter.deviceScope\"},\"accountScope\":{\"ref\":\"parameter.accountScope\"},\"packageId\":{\"ref\":\"choice.packageId\"},\"actorId\":{\"ref\":\"parameter.actorId\"}},\"test\":{\"op\":\"and\",\"args\":[{\"op\":\"ne\",\"args\":[{\"ref\":\"row.source\"},{\"literal\":\"\"}]},{\"op\":\"lte\",\"args\":[{\"ref\":\"row.validFrom\"},{\"ref\":\"activity.correct.start\"}]},{\"op\":\"gte\",\"args\":[{\"ref\":\"row.validThrough\"},{\"ref\":\"activity.handoff.end\"}]}]}}},{\"id\":\"resource-calendar\",\"requirement\":\"ACCESS\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"interval-covered\",\"table\":\"calendars\",\"where\":{\"resource\":{\"literal\":\"production-team\"}},\"start\":{\"ref\":\"activity.correct.start\"},\"end\":{\"ref\":\"activity.handoff.end\"},\"startColumn\":\"start\",\"endColumn\":\"end\"}},{\"id\":\"resource-capacity\",\"requirement\":\"ACCESS\",\"kind\":\"resource-capacity\"},{\"id\":\"not-in-past\",\"requirement\":\"TIME\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"gte\",\"args\":[{\"ref\":\"activity.correct.start\"},{\"ref\":\"parameter.nowMinute\"}]}},{\"id\":\"handoff-by-cutoff\",\"requirement\":\"TIME\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"lte\",\"args\":[{\"ref\":\"activity.handoff.end\"},{\"ref\":\"parameter.handoffDeadlineMinute\"}]}},{\"id\":\"package-within-budget\",\"requirement\":\"COST\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"lte\",\"args\":[{\"ref\":\"finance.expense\"},{\"ref\":\"parameter.budgetMinor\"}]}},{\"id\":\"quoted-quantity\",\"requirement\":\"SUFFICIENCY\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"eq\",\"args\":[{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"quantity\"},{\"ref\":\"parameter.quantity\"}]}},{\"id\":\"minimum-rehearsal\",\"requirement\":\"SUFFICIENCY\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"gte\",\"args\":[{\"ref\":\"parameter.rehearsalMinutes\"},{\"literal\":5}]}},{\"id\":\"scoped-package-confirmation\",\"requirement\":\"CONFIRMATION\",\"kind\":\"predicate\",\"predicate\":{\"op\":\"or\",\"args\":[{\"literal\":false},{\"op\":\"not\",\"args\":[{\"op\":\"in\",\"args\":[{\"ref\":\"choice.packageId\"},{\"literal\":[\"external-replace-and-repair\"]}]}]},{\"op\":\"exists\",\"table\":\"confirmations\",\"where\":{\"packageId\":{\"ref\":\"choice.packageId\"},\"batchId\":{\"ref\":\"parameter.batchId\"},\"insertRevision\":{\"ref\":\"parameter.insertRevision\"},\"destinationRevision\":{\"ref\":\"parameter.destinationRevision\"},\"checkoutRevision\":{\"ref\":\"parameter.checkoutRevision\"},\"deviceScope\":{\"ref\":\"parameter.deviceScope\"},\"accountScope\":{\"ref\":\"parameter.accountScope\"}},\"test\":{\"op\":\"and\",\"args\":[{\"op\":\"eq\",\"args\":[{\"ref\":\"row.confirmed\"},{\"literal\":true}]},{\"op\":\"ne\",\"args\":[{\"ref\":\"row.source\"},{\"literal\":\"\"}]},{\"op\":\"ne\",\"args\":[{\"ref\":\"row.recordedBy\"},{\"literal\":\"\"}]},{\"op\":\"lte\",\"args\":[{\"ref\":\"row.recordedAt\"},{\"ref\":\"parameter.nowMinute\"}]},{\"op\":\"lte\",\"args\":[{\"ref\":\"row.validFrom\"},{\"ref\":\"activity.correct.start\"}]},{\"op\":\"gte\",\"args\":[{\"ref\":\"row.validThrough\"},{\"ref\":\"activity.handoff.end\"}]}]}}]}}],\"finance\":{\"mode\":\"expense\",\"charges\":[{\"id\":\"complete-correction-package\",\"amount\":{\"op\":\"lookup\",\"table\":\"packages\",\"where\":{\"id\":{\"ref\":\"choice.packageId\"}},\"column\":\"repairCostMinor\"}}],\"holds\":[]},\"preference\":{\"direction\":\"min\",\"expression\":{\"ref\":\"finance.expense\"},\"then\":[{\"direction\":\"min\",\"expression\":{\"ref\":\"activity.handoff.end\"}}]},\"labels\":{\"plan\":\"Complete gift-kit correction arrangement\",\"actor\":\"Responsible person\",\"expense\":\"Complete package cost\",\"choice.packageId\":\"Preparation or correction package\",\"choice.startMinute\":\"Proposed start minute\",\"activity.correct\":\"Prepare or correct the gift-kit arrangement\",\"activity.rehearse\":\"Repeat the scoped gift journey rehearsal\",\"activity.handoff\":\"Prepare and complete the kit handoff\",\"activity.handoff.end\":\"Handoff completion\",\"constraint.declared-fault-state\":\"Use an admitted configuration from the published fault catalog\",\"constraint.published-package-effects\":\"Retain the published correction effects of the selected package\",\"constraint.correct-fault-0\":\"Address The printed code cannot be read whenever it remains possible\",\"constraint.correct-fault-1\":\"Address The code leads to the wrong destination whenever it remains possible\",\"constraint.correct-fault-2\":\"Address The intended checkout is restricted whenever it remains possible\",\"constraint.known-owner\":\"Assign the complete work to a recorded responsible person\",\"constraint.scoped-package-permission\":\"Hold recorded authority for this package, person, exact configuration, and whole working interval\",\"constraint.resource-calendar\":\"Keep the full correction, rehearsal, and handoff within resource availability\",\"constraint.resource-capacity\":\"Keep all proposed work within recorded resource capacity\",\"constraint.not-in-past\":\"Start correction at or after the current review time\",\"constraint.handoff-by-cutoff\":\"Finish correction, scoped rehearsal, and handoff before the kit commitment cutoff\",\"constraint.package-within-budget\":\"Keep the complete proposed package within the recorded spending ceiling\",\"constraint.quoted-quantity\":\"Use a complete-package quote for the current kit quantity\",\"constraint.minimum-rehearsal\":\"Allow at least the published minimum duration for the scoped rehearsal\",\"constraint.scoped-package-confirmation\":\"Confirm the selected arrangement for this exact gift-kit configuration\",\"table.confirmations\":\"Recorded exact-configuration confirmations\"}},\"case\":{\"id\":\"gift-campaign-example-planning\",\"parameters\":{\"batchId\":\"GIFT-120\",\"insertRevision\":\"insert-3\",\"destinationRevision\":\"destination-2\",\"checkoutRevision\":\"checkout-1\",\"deviceScope\":\"campaign-test-phone\",\"accountScope\":\"intended-recipient-account\",\"actorId\":\"campaign-owner-1\",\"quantity\":120,\"nowMinute\":0,\"handoffDeadlineMinute\":60,\"budgetMinor\":60000,\"rehearsalMinutes\":5,\"handoffMinutes\":5,\"startOptions\":[0]},\"tables\":{\"packages\":[{\"id\":\"rehearse-unchanged\",\"quantity\":120,\"repairMinutes\":1,\"repairCostMinor\":0,\"fixes0\":false,\"fixes1\":false,\"fixes2\":false},{\"id\":\"reprint\",\"quantity\":120,\"repairMinutes\":10,\"repairCostMinor\":10000,\"fixes0\":true,\"fixes1\":false,\"fixes2\":false},{\"id\":\"repair-journey\",\"quantity\":120,\"repairMinutes\":15,\"repairCostMinor\":18000,\"fixes0\":false,\"fixes1\":true,\"fixes2\":true},{\"id\":\"replace-and-repair\",\"quantity\":120,\"repairMinutes\":25,\"repairCostMinor\":30000,\"fixes0\":true,\"fixes1\":true,\"fixes2\":true},{\"id\":\"external-replace-and-repair\",\"quantity\":120,\"repairMinutes\":10,\"repairCostMinor\":40000,\"fixes0\":true,\"fixes1\":true,\"fixes2\":true}],\"scenarios\":[{\"id\":\"none\",\"fault0\":false,\"fault1\":false,\"fault2\":false},{\"id\":\"print\",\"fault0\":true,\"fault1\":false,\"fault2\":false},{\"id\":\"destination\",\"fault0\":false,\"fault1\":true,\"fault2\":false},{\"id\":\"print-destination\",\"fault0\":true,\"fault1\":true,\"fault2\":false},{\"id\":\"checkout\",\"fault0\":false,\"fault1\":false,\"fault2\":true},{\"id\":\"print-checkout\",\"fault0\":true,\"fault1\":false,\"fault2\":true},{\"id\":\"destination-checkout\",\"fault0\":false,\"fault1\":true,\"fault2\":true},{\"id\":\"print-destination-checkout\",\"fault0\":true,\"fault1\":true,\"fault2\":true}],\"people\":[{\"id\":\"campaign-owner-1\",\"name\":\"Fictional campaign owner\",\"role\":\"campaign-owner\"}],\"permissions\":[{\"batchId\":\"GIFT-120\",\"insertRevision\":\"insert-3\",\"destinationRevision\":\"destination-2\",\"checkoutRevision\":\"checkout-1\",\"deviceScope\":\"campaign-test-phone\",\"accountScope\":\"intended-recipient-account\",\"id\":\"PERMISSION-rehearse-unchanged\",\"packageId\":\"rehearse-unchanged\",\"actorId\":\"campaign-owner-1\",\"validFrom\":0,\"validThrough\":120,\"source\":\"Fictional recorded campaign authorization\"},{\"batchId\":\"GIFT-120\",\"insertRevision\":\"insert-3\",\"destinationRevision\":\"destination-2\",\"checkoutRevision\":\"checkout-1\",\"deviceScope\":\"campaign-test-phone\",\"accountScope\":\"intended-recipient-account\",\"id\":\"PERMISSION-reprint\",\"packageId\":\"reprint\",\"actorId\":\"campaign-owner-1\",\"validFrom\":0,\"validThrough\":120,\"source\":\"Fictional recorded campaign authorization\"},{\"batchId\":\"GIFT-120\",\"insertRevision\":\"insert-3\",\"destinationRevision\":\"destination-2\",\"checkoutRevision\":\"checkout-1\",\"deviceScope\":\"campaign-test-phone\",\"accountScope\":\"intended-recipient-account\",\"id\":\"PERMISSION-repair-journey\",\"packageId\":\"repair-journey\",\"actorId\":\"campaign-owner-1\",\"validFrom\":0,\"validThrough\":120,\"source\":\"Fictional recorded campaign authorization\"},{\"batchId\":\"GIFT-120\",\"insertRevision\":\"insert-3\",\"destinationRevision\":\"destination-2\",\"checkoutRevision\":\"checkout-1\",\"deviceScope\":\"campaign-test-phone\",\"accountScope\":\"intended-recipient-account\",\"id\":\"PERMISSION-replace-and-repair\",\"packageId\":\"replace-and-repair\",\"actorId\":\"campaign-owner-1\",\"validFrom\":0,\"validThrough\":120,\"source\":\"Fictional recorded campaign authorization\"},{\"batchId\":\"GIFT-120\",\"insertRevision\":\"insert-3\",\"destinationRevision\":\"destination-2\",\"checkoutRevision\":\"checkout-1\",\"deviceScope\":\"campaign-test-phone\",\"accountScope\":\"intended-recipient-account\",\"id\":\"PERMISSION-external\",\"packageId\":\"external-replace-and-repair\",\"actorId\":\"campaign-owner-1\",\"validFrom\":0,\"validThrough\":120,\"source\":\"Fictional recorded campaign authorization\"}],\"resources\":[{\"id\":\"production-team\",\"capacity\":1}],\"calendars\":[{\"resource\":\"production-team\",\"start\":0,\"end\":120}],\"bookings\":[],\"confirmations\":[]},\"provenance\":[]}}",
            "sourceHash": "8c250d389d83747d103fb7ca3abc04c2d1f3e0ba807fa31de3191aea3e52aa0a",
            "definitionHash": "681928cdfc0f220a5a206dfbabd76b2bb410406cbba7afc4fbbff0dae9831972",
            "definitionContract": {
              "id": "complete-a-commitment",
              "version": "1.0.0",
              "evaluator": "bounded-static-commitment/1",
              "title": "Complete a commitment",
              "responsibility": "Find one complete static operating choice that satisfies every mandatory obligation across every explicitly admitted joint scenario, then compare feasible choices.",
              "invariants": [
                "Choices are finite, input-only controls. One complete assignment is shared across every admitted scenario and obligation.",
                "Admitted joint scenarios are explicit facts; neither independence, probabilities nor unlisted scenarios are inferred.",
                "An empty admitted basis is inconsistent, never a vacuous feasibility result.",
                "Typed acyclic expressions separate static controls, scenario consequences and post-scenario preference aggregates.",
                "Activities, calendars, bookings and permission validity use half-open intervals; adjacent intervals do not overlap.",
                "Capacity is the sum of simultaneous renewable demands. A scoped grant must cover its entire required operation.",
                "Expense sums nonrefundable charges. Refundable holds affect cash only; simultaneous cash events are netted before peak cash is measured.",
                "Every mandatory condition must pass for the same choice in every admitted scenario. Preference cannot compensate for failure.",
                "Ranking is lexicographic over feasible choices only; genuine ties are retained and identifiers only stabilize display order.",
                "A fully checked witness establishes existence during partial search. No-plan and optimality claims require complete relevant coverage.",
                "Missing data, unresolved lookups, unsafe arithmetic and unsupported declarations are invalid input, never invented facts.",
                "Calculated feasibility is conditional on accepted facts and fixed assumptions, not permission, reservation or evidence of actual completion."
              ],
              "expressionLanguage": {
                "id": "typed-static-commitment-expressions/1",
                "literals": "Finite scalar or homogeneous scalar-array data; no executable code.",
                "references": [
                  "parameter",
                  "choice",
                  "scenario",
                  "derived",
                  "activity",
                  "finance",
                  "row (inside exists.test)"
                ],
                "operators": {
                  "eq": "Two compatible scalars -> boolean",
                  "ne": "Two compatible scalars -> boolean",
                  "lt": "Two compatible numbers -> boolean",
                  "lte": "Two compatible numbers -> boolean",
                  "gt": "Two compatible numbers -> boolean",
                  "gte": "Two compatible numbers -> boolean",
                  "add": "At least two compatible numbers -> number",
                  "sub": "Two compatible numbers -> number",
                  "mul": "Two numbers with at most one dimensional operand -> number; count is a multiplicity",
                  "and": "At least two booleans -> boolean",
                  "or": "At least two booleans -> boolean",
                  "not": "One boolean -> boolean",
                  "in": "Scalar and compatible scalar-array -> boolean",
                  "lookup": "Complete primary-key binding in a typed input table -> exactly one selected scalar; missing or ambiguous lookup is invalid",
                  "exists": "Typed equality bindings plus optional row-scoped predicate -> boolean; no match is false",
                  "interval-covered": "Typed selected calendar rows and a positive half-open interval -> boolean; adjacent coverage may combine",
                  "worst-case": "Numeric expression -> maximum across admitted scenarios for preference only; nested or unreduced scenario aggregates are invalid"
                }
              }
            },
            "model": {
              "format": "complete-a-commitment/1",
              "module": {
                "id": "review-gift-kit-flexible-planning",
                "version": "2.0.2",
                "title": "Prepare gift kits before commitment",
                "template": {
                  "id": "complete-a-commitment",
                  "version": 1
                },
                "question": "Which complete correction package addresses every remaining explanation and can finish before we commit the gift kits?",
                "description": "Compare one authored correction package across every remaining fault configuration, including simultaneous faults. Prospective correction is distinct from completed work.",
                "metadata": {
                  "decisionPresentation": {
                    "format": "decision-presentation/1",
                    "title": "Complete gift-kit arrangements",
                    "priorityLabel": "Lowest complete package cost, then earliest handoff",
                    "moneyFormat": {
                      "currency": "USD",
                      "divisor": 100
                    },
                    "columns": [
                      {
                        "id": "plan",
                        "label": "Complete arrangement"
                      },
                      {
                        "id": "status",
                        "label": "Operating result"
                      },
                      {
                        "id": "handoff",
                        "source": {
                          "kind": "activity",
                          "id": "handoff",
                          "field": "end"
                        },
                        "label": "Handoff complete",
                        "format": {
                          "kind": "time",
                          "suffix": "minutes after the declared origin"
                        }
                      },
                      {
                        "id": "expense",
                        "label": "Complete package cost"
                      },
                      {
                        "id": "blockers",
                        "label": "Conditions needing attention"
                      }
                    ],
                    "comparisonFields": [
                      {
                        "id": "package",
                        "source": "choice:packageId",
                        "label": "Package",
                        "valueLabels": {
                          "rehearse-unchanged": "Prepare, rehearse and hand off unchanged kits",
                          "reprint": "Replace the printed inserts",
                          "repair-journey": "Correct the destination and checkout",
                          "replace-and-repair": "Replace inserts and repair the journey",
                          "external-replace-and-repair": "External replacement and journey repair"
                        }
                      },
                      {
                        "id": "start",
                        "source": "choice:startMinute",
                        "label": "Start",
                        "format": {
                          "kind": "time",
                          "suffix": "minutes after the declared origin"
                        }
                      }
                    ],
                    "alternativeLabel": {
                      "columnIds": [
                        "package",
                        "start"
                      ]
                    }
                  },
                  "catalog": {
                    "domain": {
                      "id": "gifting-operations",
                      "label": "Gifting operations"
                    },
                    "useCase": {
                      "id": "prepare-gift-kit-campaign",
                      "label": "Prepare a gift-kit campaign"
                    }
                  },
                  "gifting": {
                    "profileId": "gift-kit-readiness",
                    "profileVersion": "1.0.0",
                    "packages": [
                      {
                        "id": "rehearse-unchanged",
                        "label": "Prepare, rehearse and hand off unchanged kits",
                        "corrects": [],
                        "requiresConfirmation": false
                      },
                      {
                        "id": "reprint",
                        "label": "Replace the printed inserts",
                        "corrects": [
                          "replace-insert"
                        ],
                        "requiresConfirmation": false
                      },
                      {
                        "id": "repair-journey",
                        "label": "Correct the destination and checkout",
                        "corrects": [
                          "correct-destination",
                          "fix-checkout"
                        ],
                        "requiresConfirmation": false
                      },
                      {
                        "id": "replace-and-repair",
                        "label": "Replace inserts and repair the journey",
                        "corrects": [
                          "replace-insert",
                          "correct-destination",
                          "fix-checkout"
                        ],
                        "requiresConfirmation": false
                      },
                      {
                        "id": "external-replace-and-repair",
                        "label": "External replacement and journey repair",
                        "corrects": [
                          "replace-insert",
                          "correct-destination",
                          "fix-checkout"
                        ],
                        "requiresConfirmation": true
                      }
                    ],
                    "checks": [
                      {
                        "id": "declared-fault-state",
                        "requirement": "COVERAGE",
                        "label": "Use an admitted configuration from the published fault catalog",
                        "evidence": "A current scoped evidence assessment admitting this fault configuration."
                      },
                      {
                        "id": "published-package-effects",
                        "requirement": "COVERAGE",
                        "label": "Retain the published correction effects of the selected package",
                        "evidence": "The author-fixed correction effects from this exact published package version."
                      },
                      {
                        "id": "correct-fault-0",
                        "requirement": "SUFFICIENCY",
                        "label": "Address The printed code cannot be read whenever it remains possible",
                        "evidence": "A complete package addressing The printed code cannot be read, or scoped evidence excluding that fault."
                      },
                      {
                        "id": "correct-fault-1",
                        "requirement": "SUFFICIENCY",
                        "label": "Address The code leads to the wrong destination whenever it remains possible",
                        "evidence": "A complete package addressing The code leads to the wrong destination, or scoped evidence excluding that fault."
                      },
                      {
                        "id": "correct-fault-2",
                        "requirement": "SUFFICIENCY",
                        "label": "Address The intended checkout is restricted whenever it remains possible",
                        "evidence": "A complete package addressing The intended checkout is restricted, or scoped evidence excluding that fault."
                      },
                      {
                        "id": "known-owner",
                        "requirement": "ACCESS",
                        "label": "Assign the complete work to a recorded responsible person",
                        "evidence": "A recorded person responsible for this complete correction package."
                      },
                      {
                        "id": "scoped-package-permission",
                        "requirement": "ACCESS",
                        "label": "Hold recorded authority for this package, person, exact configuration, and whole working interval",
                        "evidence": "A sourced permission for the selected package and person, matching all six scope fields and covering correction through handoff."
                      },
                      {
                        "id": "resource-calendar",
                        "requirement": "ACCESS",
                        "label": "Keep the full correction, rehearsal, and handoff within resource availability",
                        "evidence": "An availability interval covering the complete proposed work."
                      },
                      {
                        "id": "resource-capacity",
                        "requirement": "ACCESS",
                        "label": "Keep all proposed work within recorded resource capacity",
                        "evidence": "Enough recorded resource capacity throughout the proposed work."
                      },
                      {
                        "id": "not-in-past",
                        "requirement": "TIME",
                        "label": "Start correction at or after the current review time",
                        "evidence": "A current proposed start time."
                      },
                      {
                        "id": "handoff-by-cutoff",
                        "requirement": "TIME",
                        "label": "Finish correction, scoped rehearsal, and handoff before the kit commitment cutoff",
                        "evidence": "Durations and resource availability that fit the cutoff, or a revised commitment."
                      },
                      {
                        "id": "package-within-budget",
                        "requirement": "COST",
                        "label": "Keep the complete proposed package within the recorded spending ceiling",
                        "evidence": "A current package quote within the spending ceiling, or an approved revised ceiling."
                      },
                      {
                        "id": "quoted-quantity",
                        "requirement": "SUFFICIENCY",
                        "label": "Use a complete-package quote for the current kit quantity",
                        "evidence": "A current complete-package quote and duration explicitly covering the stated kit quantity."
                      },
                      {
                        "id": "minimum-rehearsal",
                        "requirement": "SUFFICIENCY",
                        "label": "Allow at least the published minimum duration for the scoped rehearsal",
                        "evidence": "A proposed scoped rehearsal duration meeting the published minimum. This remains a plan, not evidence that rehearsal passed."
                      },
                      {
                        "id": "scoped-package-confirmation",
                        "requirement": "CONFIRMATION",
                        "label": "Confirm the selected arrangement for this exact gift-kit configuration",
                        "evidence": "A sourced positive package confirmation, recorded by a named person, for this exact batch, insert, destination, checkout, device and account, effective at the planned start and valid through handoff."
                      }
                    ]
                  },
                  "supportingReports": {
                    "format": "supporting-reports/1",
                    "reports": [
                      {
                        "id": "complete-options",
                        "label": "Complete options",
                        "question": "How do the complete options compare against the operating requirements?",
                        "template": "comparison/1",
                        "source": {
                          "kind": "report-dataset",
                          "datasetId": "commitment:comparison"
                        },
                        "bindings": {
                          "columns": [
                            {
                              "key": "plan",
                              "label": "Complete gift-kit correction arrangement"
                            },
                            {
                              "key": "status",
                              "label": "Operating fit"
                            },
                            {
                              "key": "expense",
                              "label": "Complete package cost",
                              "format": {
                                "type": "money",
                                "currency": "USD",
                                "scale": 100
                              }
                            },
                            {
                              "key": "cash",
                              "label": "Peak cash in use",
                              "format": {
                                "type": "money",
                                "currency": "USD",
                                "scale": 100
                              }
                            },
                            {
                              "key": "blockers",
                              "label": "Unmet checks",
                              "format": "number"
                            }
                          ]
                        }
                      },
                      {
                        "id": "work-and-timing",
                        "label": "Work and timing",
                        "question": "When does each complete plan perform the selected activity?",
                        "template": "timeline/1",
                        "source": {
                          "kind": "commitment-schedules"
                        },
                        "representations": [
                          "table",
                          "timeline"
                        ],
                        "defaultRepresentation": "table",
                        "bindings": {
                          "timeline": {
                            "extent": "activities",
                            "label": "Operating activities"
                          }
                        }
                      },
                      {
                        "id": "requirements",
                        "label": "Requirements",
                        "question": "Which mandatory requirements must every complete option meet?",
                        "template": "records/1",
                        "source": {
                          "kind": "report-dataset",
                          "datasetId": "commitment:requirements"
                        },
                        "bindings": {
                          "columns": [
                            {
                              "key": "requirement",
                              "label": "Requirement"
                            },
                            {
                              "key": "meaning",
                              "label": "Operating meaning"
                            },
                            {
                              "key": "coverage",
                              "label": "Complete plans passing in every situation",
                              "format": "number"
                            },
                            {
                              "key": "waivable",
                              "label": "Can be waived",
                              "format": "boolean"
                            }
                          ]
                        }
                      }
                    ]
                  },
                  "inputDesign": {
                    "version": 1,
                    "form": {
                      "type": "object",
                      "label": "Case inputs",
                      "fields": {
                        "parameters": {
                          "type": "object",
                          "label": "Parameters",
                          "fields": {
                            "batchId": {
                              "type": "string",
                              "label": "Batch Id"
                            },
                            "insertRevision": {
                              "type": "string",
                              "label": "Insert Revision"
                            },
                            "destinationRevision": {
                              "type": "string",
                              "label": "Destination Revision"
                            },
                            "checkoutRevision": {
                              "type": "string",
                              "label": "Checkout Revision"
                            },
                            "deviceScope": {
                              "type": "string",
                              "label": "Device Scope"
                            },
                            "accountScope": {
                              "type": "string",
                              "label": "Account Scope"
                            },
                            "actorId": {
                              "type": "string",
                              "label": "Actor Id"
                            },
                            "quantity": {
                              "type": "number",
                              "label": "Quantity",
                              "integer": true,
                              "unit": "gift kit",
                              "minimum": 1
                            },
                            "nowMinute": {
                              "type": "number",
                              "label": "Now Minute",
                              "integer": true,
                              "unit": "minute",
                              "minimum": 0
                            },
                            "handoffDeadlineMinute": {
                              "type": "number",
                              "label": "Handoff Deadline Minute",
                              "integer": true,
                              "unit": "minute",
                              "minimum": 0
                            },
                            "budgetMinor": {
                              "type": "number",
                              "label": "Budget Minor",
                              "integer": true,
                              "unit": "USD cent",
                              "minimum": 0
                            },
                            "rehearsalMinutes": {
                              "type": "number",
                              "label": "Rehearsal Minutes",
                              "integer": true,
                              "unit": "minute",
                              "minimum": 1
                            },
                            "handoffMinutes": {
                              "type": "number",
                              "label": "Handoff Minutes",
                              "integer": true,
                              "unit": "minute",
                              "minimum": 1
                            },
                            "startOptions": {
                              "type": "array",
                              "label": "Start Options",
                              "items": {
                                "type": "number",
                                "label": "Start Options record",
                                "integer": true,
                                "unit": "time",
                                "minimum": 0
                              }
                            }
                          }
                        },
                        "tables": {
                          "type": "object",
                          "label": "Tables",
                          "fields": {
                            "packages": {
                              "type": "array",
                              "label": "Packages",
                              "items": {
                                "type": "object",
                                "label": "Packages record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "label": "Quantity",
                                    "integer": true,
                                    "unit": "gift kit",
                                    "minimum": 1
                                  },
                                  "repairMinutes": {
                                    "type": "number",
                                    "label": "Repair Minutes",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 1
                                  },
                                  "repairCostMinor": {
                                    "type": "number",
                                    "label": "Repair Cost Minor",
                                    "integer": true,
                                    "unit": "USD cent",
                                    "minimum": 0
                                  },
                                  "fixes0": {
                                    "type": "boolean",
                                    "label": "Fixes0"
                                  },
                                  "fixes1": {
                                    "type": "boolean",
                                    "label": "Fixes1"
                                  },
                                  "fixes2": {
                                    "type": "boolean",
                                    "label": "Fixes2"
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "scenarios": {
                              "type": "array",
                              "label": "Scenarios",
                              "items": {
                                "type": "object",
                                "label": "Scenarios record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "fault0": {
                                    "type": "boolean",
                                    "label": "Fault0"
                                  },
                                  "fault1": {
                                    "type": "boolean",
                                    "label": "Fault1"
                                  },
                                  "fault2": {
                                    "type": "boolean",
                                    "label": "Fault2"
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "people": {
                              "type": "array",
                              "label": "People",
                              "items": {
                                "type": "object",
                                "label": "People record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "name": {
                                    "type": "string",
                                    "label": "Name"
                                  },
                                  "role": {
                                    "type": "string",
                                    "label": "Role"
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "permissions": {
                              "type": "array",
                              "label": "Permissions",
                              "items": {
                                "type": "object",
                                "label": "Permissions record",
                                "fields": {
                                  "batchId": {
                                    "type": "string",
                                    "label": "Batch Id"
                                  },
                                  "insertRevision": {
                                    "type": "string",
                                    "label": "Insert Revision"
                                  },
                                  "destinationRevision": {
                                    "type": "string",
                                    "label": "Destination Revision"
                                  },
                                  "checkoutRevision": {
                                    "type": "string",
                                    "label": "Checkout Revision"
                                  },
                                  "deviceScope": {
                                    "type": "string",
                                    "label": "Device Scope"
                                  },
                                  "accountScope": {
                                    "type": "string",
                                    "label": "Account Scope"
                                  },
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "packageId": {
                                    "type": "string",
                                    "label": "Package Id"
                                  },
                                  "actorId": {
                                    "type": "string",
                                    "label": "Actor Id"
                                  },
                                  "validFrom": {
                                    "type": "number",
                                    "label": "Valid From",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "validThrough": {
                                    "type": "number",
                                    "label": "Valid Through",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "source": {
                                    "type": "string",
                                    "label": "Source"
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "resources": {
                              "type": "array",
                              "label": "Resources",
                              "items": {
                                "type": "object",
                                "label": "Resources record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "capacity": {
                                    "type": "number",
                                    "label": "Capacity",
                                    "integer": true,
                                    "unit": "unit of resource capacity",
                                    "minimum": 0
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "calendars": {
                              "type": "array",
                              "label": "Calendars",
                              "items": {
                                "type": "object",
                                "label": "Calendars record",
                                "fields": {
                                  "resource": {
                                    "type": "string",
                                    "label": "Resource"
                                  },
                                  "start": {
                                    "type": "number",
                                    "label": "Start",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "end": {
                                    "type": "number",
                                    "label": "End",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  }
                                }
                              },
                              "keyFields": [
                                "resource",
                                "start",
                                "end"
                              ]
                            },
                            "bookings": {
                              "type": "array",
                              "label": "Bookings",
                              "items": {
                                "type": "object",
                                "label": "Bookings record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "resource": {
                                    "type": "string",
                                    "label": "Resource"
                                  },
                                  "start": {
                                    "type": "number",
                                    "label": "Start",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "end": {
                                    "type": "number",
                                    "label": "End",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "amount": {
                                    "type": "number",
                                    "label": "Amount",
                                    "integer": true,
                                    "unit": "unit of resource capacity",
                                    "minimum": 1
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "confirmations": {
                              "type": "array",
                              "label": "Recorded exact-configuration confirmations",
                              "items": {
                                "type": "object",
                                "label": "Confirmations record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "packageId": {
                                    "type": "string",
                                    "label": "Package Id"
                                  },
                                  "batchId": {
                                    "type": "string",
                                    "label": "Batch Id"
                                  },
                                  "insertRevision": {
                                    "type": "string",
                                    "label": "Insert Revision"
                                  },
                                  "destinationRevision": {
                                    "type": "string",
                                    "label": "Destination Revision"
                                  },
                                  "checkoutRevision": {
                                    "type": "string",
                                    "label": "Checkout Revision"
                                  },
                                  "deviceScope": {
                                    "type": "string",
                                    "label": "Device Scope"
                                  },
                                  "accountScope": {
                                    "type": "string",
                                    "label": "Account Scope"
                                  },
                                  "confirmed": {
                                    "type": "boolean",
                                    "label": "Confirmed"
                                  },
                                  "validFrom": {
                                    "type": "number",
                                    "label": "Valid From",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "validThrough": {
                                    "type": "number",
                                    "label": "Valid Through",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "recordedAt": {
                                    "type": "number",
                                    "label": "Recorded At",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "source": {
                                    "type": "string",
                                    "label": "Source"
                                  },
                                  "recordedBy": {
                                    "type": "string",
                                    "label": "Recorded By"
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            }
                          }
                        }
                      }
                    },
                    "groups": [
                      {
                        "id": "operating-parameters",
                        "label": "Commitment and limits",
                        "question": "Which quantities, deadlines and limits should the calculation use?",
                        "subtabs": [
                          {
                            "id": "parameters",
                            "label": "Operating parameters",
                            "fieldPaths": [
                              "/parameters"
                            ]
                          }
                        ]
                      },
                      {
                        "id": "operating-records",
                        "label": "Operating records",
                        "question": "Which operating records and possibilities apply to this commitment?",
                        "subtabs": [
                          {
                            "id": "packages",
                            "label": "Packages",
                            "fieldPaths": [
                              "/tables/packages"
                            ]
                          },
                          {
                            "id": "scenarios",
                            "label": "Scenarios",
                            "fieldPaths": [
                              "/tables/scenarios"
                            ]
                          },
                          {
                            "id": "people",
                            "label": "People",
                            "fieldPaths": [
                              "/tables/people"
                            ]
                          },
                          {
                            "id": "permissions",
                            "label": "Permissions",
                            "fieldPaths": [
                              "/tables/permissions"
                            ]
                          },
                          {
                            "id": "resources",
                            "label": "Resources",
                            "fieldPaths": [
                              "/tables/resources"
                            ]
                          },
                          {
                            "id": "calendars",
                            "label": "Calendars",
                            "fieldPaths": [
                              "/tables/calendars"
                            ]
                          },
                          {
                            "id": "bookings",
                            "label": "Bookings",
                            "fieldPaths": [
                              "/tables/bookings"
                            ]
                          },
                          {
                            "id": "confirmations",
                            "label": "Recorded exact-configuration confirmations",
                            "fieldPaths": [
                              "/tables/confirmations"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                },
                "units": {
                  "time": "minute",
                  "timeOrigin": "Start of this gift-kit preparation review",
                  "money": "USD cent",
                  "count": "unit of resource capacity",
                  "quantity": "gift kit"
                },
                "assumptions": [
                  "The module author declares the complete fault catalog and the deterministic prospective correction effects of each package. These are reviewed modeling premises, not evidence that correction finished.",
                  "One static complete package must work across all admitted configurations. This model does not synthesize sequential investigations or choose a different package for each possible fault configuration.",
                  "Quoted repair cost is the complete prospective package charge in this bounded profile. Rehearsal and handoff have recorded durations and no separate monetary charge.",
                  "The supplied permission registry is complete. An empty registry supplies no permission; evaluating a plan grants no authority.",
                  "The same recorded person and production resource perform correction, scoped rehearsal, and handoff in that order. Resource intervals are half-open; permission valid-through includes the endpoint.",
                  "Quantity scopes this review but does not scale time or expense automatically. Each complete-package quote must explicitly match the stated kit quantity; changing quantity requires a matching quote and duration.",
                  "An unchanged-kit package may have a positive preparation duration and no correction effects or monetary charge. Its preparation is not a repair or evidence of a successful rehearsal."
                ],
                "inputs": {
                  "parameters": {
                    "batchId": {
                      "type": "string"
                    },
                    "insertRevision": {
                      "type": "string"
                    },
                    "destinationRevision": {
                      "type": "string"
                    },
                    "checkoutRevision": {
                      "type": "string"
                    },
                    "deviceScope": {
                      "type": "string"
                    },
                    "accountScope": {
                      "type": "string"
                    },
                    "actorId": {
                      "type": "string"
                    },
                    "quantity": {
                      "type": "integer",
                      "unit": "quantity",
                      "minimum": 1
                    },
                    "nowMinute": {
                      "type": "integer",
                      "unit": "time",
                      "minimum": 0
                    },
                    "handoffDeadlineMinute": {
                      "type": "integer",
                      "unit": "time",
                      "minimum": 0
                    },
                    "budgetMinor": {
                      "type": "integer",
                      "unit": "money",
                      "minimum": 0
                    },
                    "rehearsalMinutes": {
                      "type": "integer",
                      "unit": "time",
                      "minimum": 1
                    },
                    "handoffMinutes": {
                      "type": "integer",
                      "unit": "time",
                      "minimum": 1
                    },
                    "startOptions": {
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "unit": "time",
                        "minimum": 0
                      }
                    }
                  },
                  "tables": {
                    "packages": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "integer",
                          "unit": "quantity",
                          "minimum": 1
                        },
                        "repairMinutes": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 1
                        },
                        "repairCostMinor": {
                          "type": "integer",
                          "unit": "money",
                          "minimum": 0
                        },
                        "fixes0": {
                          "type": "boolean"
                        },
                        "fixes1": {
                          "type": "boolean"
                        },
                        "fixes2": {
                          "type": "boolean"
                        }
                      }
                    },
                    "scenarios": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "fault0": {
                          "type": "boolean"
                        },
                        "fault1": {
                          "type": "boolean"
                        },
                        "fault2": {
                          "type": "boolean"
                        }
                      }
                    },
                    "people": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "role": {
                          "type": "string"
                        }
                      }
                    },
                    "permissions": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "batchId": {
                          "type": "string"
                        },
                        "insertRevision": {
                          "type": "string"
                        },
                        "destinationRevision": {
                          "type": "string"
                        },
                        "checkoutRevision": {
                          "type": "string"
                        },
                        "deviceScope": {
                          "type": "string"
                        },
                        "accountScope": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "packageId": {
                          "type": "string"
                        },
                        "actorId": {
                          "type": "string"
                        },
                        "validFrom": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "validThrough": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "source": {
                          "type": "string"
                        }
                      }
                    },
                    "resources": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "capacity": {
                          "type": "integer",
                          "unit": "count",
                          "minimum": 0
                        }
                      }
                    },
                    "calendars": {
                      "key": [
                        "resource",
                        "start",
                        "end"
                      ],
                      "columns": {
                        "resource": {
                          "type": "string"
                        },
                        "start": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "end": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        }
                      }
                    },
                    "bookings": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "resource": {
                          "type": "string"
                        },
                        "start": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "end": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "amount": {
                          "type": "integer",
                          "unit": "count",
                          "minimum": 1
                        }
                      }
                    },
                    "confirmations": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "packageId": {
                          "type": "string"
                        },
                        "batchId": {
                          "type": "string"
                        },
                        "insertRevision": {
                          "type": "string"
                        },
                        "destinationRevision": {
                          "type": "string"
                        },
                        "checkoutRevision": {
                          "type": "string"
                        },
                        "deviceScope": {
                          "type": "string"
                        },
                        "accountScope": {
                          "type": "string"
                        },
                        "confirmed": {
                          "type": "boolean"
                        },
                        "validFrom": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "validThrough": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "recordedAt": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "source": {
                          "type": "string"
                        },
                        "recordedBy": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "choices": [
                  {
                    "id": "packageId",
                    "domain": {
                      "values": [
                        "rehearse-unchanged",
                        "reprint",
                        "repair-journey",
                        "replace-and-repair",
                        "external-replace-and-repair"
                      ]
                    }
                  },
                  {
                    "id": "startMinute",
                    "domain": {
                      "parameter": "startOptions"
                    }
                  }
                ],
                "scenarioDomain": {
                  "table": "scenarios"
                },
                "derived": [],
                "activities": [
                  {
                    "id": "correct",
                    "actor": {
                      "ref": "parameter.actorId"
                    },
                    "start": {
                      "ref": "choice.startMinute"
                    },
                    "duration": {
                      "op": "lookup",
                      "table": "packages",
                      "where": {
                        "id": {
                          "ref": "choice.packageId"
                        }
                      },
                      "column": "repairMinutes"
                    },
                    "resources": [
                      {
                        "resource": {
                          "literal": "production-team"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "rehearse",
                    "actor": {
                      "ref": "parameter.actorId"
                    },
                    "start": {
                      "ref": "activity.correct.end"
                    },
                    "duration": {
                      "ref": "parameter.rehearsalMinutes"
                    },
                    "resources": [
                      {
                        "resource": {
                          "literal": "production-team"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "handoff",
                    "actor": {
                      "ref": "parameter.actorId"
                    },
                    "start": {
                      "ref": "activity.rehearse.end"
                    },
                    "duration": {
                      "ref": "parameter.handoffMinutes"
                    },
                    "resources": [
                      {
                        "resource": {
                          "literal": "production-team"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  }
                ],
                "resources": {
                  "definitions": {
                    "table": "resources",
                    "idColumn": "id",
                    "capacityColumn": "capacity"
                  },
                  "bookings": {
                    "table": "bookings",
                    "resourceColumn": "resource",
                    "startColumn": "start",
                    "endColumn": "end",
                    "amountColumn": "amount"
                  }
                },
                "requirements": [
                  {
                    "id": "SUFFICIENCY",
                    "label": "Complete correction",
                    "meaning": "The selected complete package addresses each fault in every remaining explanation.",
                    "waivable": false
                  },
                  {
                    "id": "COVERAGE",
                    "label": "Remaining explanations",
                    "meaning": "Every scenario comes from the author-declared fault catalog and the engine checks the whole admitted relation.",
                    "waivable": false
                  },
                  {
                    "id": "ACCESS",
                    "label": "People, resources, and permissions",
                    "meaning": "The proposed work has a known owner, resource capacity and availability, and recorded exact-scope permission.",
                    "waivable": false
                  },
                  {
                    "id": "TIME",
                    "label": "Commitment cutoff",
                    "meaning": "The complete prospective work fits between now and the kit commitment cutoff.",
                    "waivable": false
                  },
                  {
                    "id": "COST",
                    "label": "Spending ceiling",
                    "meaning": "The complete package cost fits the recorded spending ceiling.",
                    "waivable": false
                  },
                  {
                    "id": "CONFIRMATION",
                    "label": "Confirm the selected arrangement for this exact gift-kit configuration",
                    "meaning": "For any author-designated package, retain a named, sourced positive confirmation matching its package and all six configuration fields, recorded by the current review time, effective when correction starts, and valid through handoff.",
                    "waivable": false
                  }
                ],
                "constraints": [
                  {
                    "id": "declared-fault-state",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.id"
                                },
                                {
                                  "literal": "none"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault0"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault1"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault2"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.id"
                                },
                                {
                                  "literal": "print"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault0"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault1"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault2"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.id"
                                },
                                {
                                  "literal": "destination"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault0"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault1"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault2"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.id"
                                },
                                {
                                  "literal": "print-destination"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault0"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault1"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault2"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.id"
                                },
                                {
                                  "literal": "checkout"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault0"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault1"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault2"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.id"
                                },
                                {
                                  "literal": "print-checkout"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault0"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault1"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault2"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.id"
                                },
                                {
                                  "literal": "destination-checkout"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault0"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault1"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault2"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.id"
                                },
                                {
                                  "literal": "print-destination-checkout"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault0"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault1"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "scenario.fault2"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "published-package-effects",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "choice.packageId"
                                },
                                {
                                  "literal": "rehearse-unchanged"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes0"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes1"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes2"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "choice.packageId"
                                },
                                {
                                  "literal": "reprint"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes0"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes1"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes2"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "choice.packageId"
                                },
                                {
                                  "literal": "repair-journey"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes0"
                                },
                                {
                                  "literal": false
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes1"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes2"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "choice.packageId"
                                },
                                {
                                  "literal": "replace-and-repair"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes0"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes1"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes2"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "and",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "choice.packageId"
                                },
                                {
                                  "literal": "external-replace-and-repair"
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes0"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes1"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "lookup",
                                  "table": "packages",
                                  "where": {
                                    "id": {
                                      "ref": "choice.packageId"
                                    }
                                  },
                                  "column": "fixes2"
                                },
                                {
                                  "literal": true
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "correct-fault-0",
                    "requirement": "SUFFICIENCY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "not",
                          "args": [
                            {
                              "ref": "scenario.fault0"
                            }
                          ]
                        },
                        {
                          "op": "lookup",
                          "table": "packages",
                          "where": {
                            "id": {
                              "ref": "choice.packageId"
                            }
                          },
                          "column": "fixes0"
                        }
                      ]
                    }
                  },
                  {
                    "id": "correct-fault-1",
                    "requirement": "SUFFICIENCY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "not",
                          "args": [
                            {
                              "ref": "scenario.fault1"
                            }
                          ]
                        },
                        {
                          "op": "lookup",
                          "table": "packages",
                          "where": {
                            "id": {
                              "ref": "choice.packageId"
                            }
                          },
                          "column": "fixes1"
                        }
                      ]
                    }
                  },
                  {
                    "id": "correct-fault-2",
                    "requirement": "SUFFICIENCY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "not",
                          "args": [
                            {
                              "ref": "scenario.fault2"
                            }
                          ]
                        },
                        {
                          "op": "lookup",
                          "table": "packages",
                          "where": {
                            "id": {
                              "ref": "choice.packageId"
                            }
                          },
                          "column": "fixes2"
                        }
                      ]
                    }
                  },
                  {
                    "id": "known-owner",
                    "requirement": "ACCESS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "people",
                      "where": {
                        "id": {
                          "ref": "parameter.actorId"
                        }
                      },
                      "test": {
                        "op": "and",
                        "args": [
                          {
                            "op": "ne",
                            "args": [
                              {
                                "ref": "row.name"
                              },
                              {
                                "literal": ""
                              }
                            ]
                          },
                          {
                            "op": "ne",
                            "args": [
                              {
                                "ref": "row.role"
                              },
                              {
                                "literal": ""
                              }
                            ]
                          }
                        ]
                      }
                    }
                  },
                  {
                    "id": "scoped-package-permission",
                    "requirement": "ACCESS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "permissions",
                      "where": {
                        "batchId": {
                          "ref": "parameter.batchId"
                        },
                        "insertRevision": {
                          "ref": "parameter.insertRevision"
                        },
                        "destinationRevision": {
                          "ref": "parameter.destinationRevision"
                        },
                        "checkoutRevision": {
                          "ref": "parameter.checkoutRevision"
                        },
                        "deviceScope": {
                          "ref": "parameter.deviceScope"
                        },
                        "accountScope": {
                          "ref": "parameter.accountScope"
                        },
                        "packageId": {
                          "ref": "choice.packageId"
                        },
                        "actorId": {
                          "ref": "parameter.actorId"
                        }
                      },
                      "test": {
                        "op": "and",
                        "args": [
                          {
                            "op": "ne",
                            "args": [
                              {
                                "ref": "row.source"
                              },
                              {
                                "literal": ""
                              }
                            ]
                          },
                          {
                            "op": "lte",
                            "args": [
                              {
                                "ref": "row.validFrom"
                              },
                              {
                                "ref": "activity.correct.start"
                              }
                            ]
                          },
                          {
                            "op": "gte",
                            "args": [
                              {
                                "ref": "row.validThrough"
                              },
                              {
                                "ref": "activity.handoff.end"
                              }
                            ]
                          }
                        ]
                      }
                    }
                  },
                  {
                    "id": "resource-calendar",
                    "requirement": "ACCESS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "calendars",
                      "where": {
                        "resource": {
                          "literal": "production-team"
                        }
                      },
                      "start": {
                        "ref": "activity.correct.start"
                      },
                      "end": {
                        "ref": "activity.handoff.end"
                      },
                      "startColumn": "start",
                      "endColumn": "end"
                    }
                  },
                  {
                    "id": "resource-capacity",
                    "requirement": "ACCESS",
                    "kind": "resource-capacity"
                  },
                  {
                    "id": "not-in-past",
                    "requirement": "TIME",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "ref": "activity.correct.start"
                        },
                        {
                          "ref": "parameter.nowMinute"
                        }
                      ]
                    }
                  },
                  {
                    "id": "handoff-by-cutoff",
                    "requirement": "TIME",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "activity.handoff.end"
                        },
                        {
                          "ref": "parameter.handoffDeadlineMinute"
                        }
                      ]
                    }
                  },
                  {
                    "id": "package-within-budget",
                    "requirement": "COST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "finance.expense"
                        },
                        {
                          "ref": "parameter.budgetMinor"
                        }
                      ]
                    }
                  },
                  {
                    "id": "quoted-quantity",
                    "requirement": "SUFFICIENCY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "packages",
                          "where": {
                            "id": {
                              "ref": "choice.packageId"
                            }
                          },
                          "column": "quantity"
                        },
                        {
                          "ref": "parameter.quantity"
                        }
                      ]
                    }
                  },
                  {
                    "id": "minimum-rehearsal",
                    "requirement": "SUFFICIENCY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "ref": "parameter.rehearsalMinutes"
                        },
                        {
                          "literal": 5
                        }
                      ]
                    }
                  },
                  {
                    "id": "scoped-package-confirmation",
                    "requirement": "CONFIRMATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "literal": false
                        },
                        {
                          "op": "not",
                          "args": [
                            {
                              "op": "in",
                              "args": [
                                {
                                  "ref": "choice.packageId"
                                },
                                {
                                  "literal": [
                                    "external-replace-and-repair"
                                  ]
                                }
                              ]
                            }
                          ]
                        },
                        {
                          "op": "exists",
                          "table": "confirmations",
                          "where": {
                            "packageId": {
                              "ref": "choice.packageId"
                            },
                            "batchId": {
                              "ref": "parameter.batchId"
                            },
                            "insertRevision": {
                              "ref": "parameter.insertRevision"
                            },
                            "destinationRevision": {
                              "ref": "parameter.destinationRevision"
                            },
                            "checkoutRevision": {
                              "ref": "parameter.checkoutRevision"
                            },
                            "deviceScope": {
                              "ref": "parameter.deviceScope"
                            },
                            "accountScope": {
                              "ref": "parameter.accountScope"
                            }
                          },
                          "test": {
                            "op": "and",
                            "args": [
                              {
                                "op": "eq",
                                "args": [
                                  {
                                    "ref": "row.confirmed"
                                  },
                                  {
                                    "literal": true
                                  }
                                ]
                              },
                              {
                                "op": "ne",
                                "args": [
                                  {
                                    "ref": "row.source"
                                  },
                                  {
                                    "literal": ""
                                  }
                                ]
                              },
                              {
                                "op": "ne",
                                "args": [
                                  {
                                    "ref": "row.recordedBy"
                                  },
                                  {
                                    "literal": ""
                                  }
                                ]
                              },
                              {
                                "op": "lte",
                                "args": [
                                  {
                                    "ref": "row.recordedAt"
                                  },
                                  {
                                    "ref": "parameter.nowMinute"
                                  }
                                ]
                              },
                              {
                                "op": "lte",
                                "args": [
                                  {
                                    "ref": "row.validFrom"
                                  },
                                  {
                                    "ref": "activity.correct.start"
                                  }
                                ]
                              },
                              {
                                "op": "gte",
                                "args": [
                                  {
                                    "ref": "row.validThrough"
                                  },
                                  {
                                    "ref": "activity.handoff.end"
                                  }
                                ]
                              }
                            ]
                          }
                        }
                      ]
                    }
                  }
                ],
                "finance": {
                  "mode": "expense",
                  "charges": [
                    {
                      "id": "complete-correction-package",
                      "amount": {
                        "op": "lookup",
                        "table": "packages",
                        "where": {
                          "id": {
                            "ref": "choice.packageId"
                          }
                        },
                        "column": "repairCostMinor"
                      }
                    }
                  ],
                  "holds": []
                },
                "preference": {
                  "direction": "min",
                  "expression": {
                    "ref": "finance.expense"
                  },
                  "then": [
                    {
                      "direction": "min",
                      "expression": {
                        "ref": "activity.handoff.end"
                      }
                    }
                  ]
                },
                "labels": {
                  "plan": "Complete gift-kit correction arrangement",
                  "actor": "Responsible person",
                  "expense": "Complete package cost",
                  "choice.packageId": "Preparation or correction package",
                  "choice.startMinute": "Proposed start minute",
                  "activity.correct": "Prepare or correct the gift-kit arrangement",
                  "activity.rehearse": "Repeat the scoped gift journey rehearsal",
                  "activity.handoff": "Prepare and complete the kit handoff",
                  "activity.handoff.end": "Handoff completion",
                  "constraint.declared-fault-state": "Use an admitted configuration from the published fault catalog",
                  "constraint.published-package-effects": "Retain the published correction effects of the selected package",
                  "constraint.correct-fault-0": "Address The printed code cannot be read whenever it remains possible",
                  "constraint.correct-fault-1": "Address The code leads to the wrong destination whenever it remains possible",
                  "constraint.correct-fault-2": "Address The intended checkout is restricted whenever it remains possible",
                  "constraint.known-owner": "Assign the complete work to a recorded responsible person",
                  "constraint.scoped-package-permission": "Hold recorded authority for this package, person, exact configuration, and whole working interval",
                  "constraint.resource-calendar": "Keep the full correction, rehearsal, and handoff within resource availability",
                  "constraint.resource-capacity": "Keep all proposed work within recorded resource capacity",
                  "constraint.not-in-past": "Start correction at or after the current review time",
                  "constraint.handoff-by-cutoff": "Finish correction, scoped rehearsal, and handoff before the kit commitment cutoff",
                  "constraint.package-within-budget": "Keep the complete proposed package within the recorded spending ceiling",
                  "constraint.quoted-quantity": "Use a complete-package quote for the current kit quantity",
                  "constraint.minimum-rehearsal": "Allow at least the published minimum duration for the scoped rehearsal",
                  "constraint.scoped-package-confirmation": "Confirm the selected arrangement for this exact gift-kit configuration",
                  "table.confirmations": "Recorded exact-configuration confirmations"
                }
              },
              "case": {
                "id": "gift-campaign-example-planning",
                "parameters": {
                  "batchId": "GIFT-120",
                  "insertRevision": "insert-3",
                  "destinationRevision": "destination-2",
                  "checkoutRevision": "checkout-1",
                  "deviceScope": "campaign-test-phone",
                  "accountScope": "intended-recipient-account",
                  "actorId": "campaign-owner-1",
                  "quantity": 120,
                  "nowMinute": 0,
                  "handoffDeadlineMinute": 60,
                  "budgetMinor": 60000,
                  "rehearsalMinutes": 5,
                  "handoffMinutes": 5,
                  "startOptions": [
                    0
                  ]
                },
                "tables": {
                  "packages": [
                    {
                      "id": "rehearse-unchanged",
                      "quantity": 120,
                      "repairMinutes": 1,
                      "repairCostMinor": 0,
                      "fixes0": false,
                      "fixes1": false,
                      "fixes2": false
                    },
                    {
                      "id": "reprint",
                      "quantity": 120,
                      "repairMinutes": 10,
                      "repairCostMinor": 10000,
                      "fixes0": true,
                      "fixes1": false,
                      "fixes2": false
                    },
                    {
                      "id": "repair-journey",
                      "quantity": 120,
                      "repairMinutes": 15,
                      "repairCostMinor": 18000,
                      "fixes0": false,
                      "fixes1": true,
                      "fixes2": true
                    },
                    {
                      "id": "replace-and-repair",
                      "quantity": 120,
                      "repairMinutes": 25,
                      "repairCostMinor": 30000,
                      "fixes0": true,
                      "fixes1": true,
                      "fixes2": true
                    },
                    {
                      "id": "external-replace-and-repair",
                      "quantity": 120,
                      "repairMinutes": 10,
                      "repairCostMinor": 40000,
                      "fixes0": true,
                      "fixes1": true,
                      "fixes2": true
                    }
                  ],
                  "scenarios": [
                    {
                      "id": "none",
                      "fault0": false,
                      "fault1": false,
                      "fault2": false
                    },
                    {
                      "id": "print",
                      "fault0": true,
                      "fault1": false,
                      "fault2": false
                    },
                    {
                      "id": "destination",
                      "fault0": false,
                      "fault1": true,
                      "fault2": false
                    },
                    {
                      "id": "print-destination",
                      "fault0": true,
                      "fault1": true,
                      "fault2": false
                    },
                    {
                      "id": "checkout",
                      "fault0": false,
                      "fault1": false,
                      "fault2": true
                    },
                    {
                      "id": "print-checkout",
                      "fault0": true,
                      "fault1": false,
                      "fault2": true
                    },
                    {
                      "id": "destination-checkout",
                      "fault0": false,
                      "fault1": true,
                      "fault2": true
                    },
                    {
                      "id": "print-destination-checkout",
                      "fault0": true,
                      "fault1": true,
                      "fault2": true
                    }
                  ],
                  "people": [
                    {
                      "id": "campaign-owner-1",
                      "name": "Fictional campaign owner",
                      "role": "campaign-owner"
                    }
                  ],
                  "permissions": [
                    {
                      "batchId": "GIFT-120",
                      "insertRevision": "insert-3",
                      "destinationRevision": "destination-2",
                      "checkoutRevision": "checkout-1",
                      "deviceScope": "campaign-test-phone",
                      "accountScope": "intended-recipient-account",
                      "id": "PERMISSION-rehearse-unchanged",
                      "packageId": "rehearse-unchanged",
                      "actorId": "campaign-owner-1",
                      "validFrom": 0,
                      "validThrough": 120,
                      "source": "Fictional recorded campaign authorization"
                    },
                    {
                      "batchId": "GIFT-120",
                      "insertRevision": "insert-3",
                      "destinationRevision": "destination-2",
                      "checkoutRevision": "checkout-1",
                      "deviceScope": "campaign-test-phone",
                      "accountScope": "intended-recipient-account",
                      "id": "PERMISSION-reprint",
                      "packageId": "reprint",
                      "actorId": "campaign-owner-1",
                      "validFrom": 0,
                      "validThrough": 120,
                      "source": "Fictional recorded campaign authorization"
                    },
                    {
                      "batchId": "GIFT-120",
                      "insertRevision": "insert-3",
                      "destinationRevision": "destination-2",
                      "checkoutRevision": "checkout-1",
                      "deviceScope": "campaign-test-phone",
                      "accountScope": "intended-recipient-account",
                      "id": "PERMISSION-repair-journey",
                      "packageId": "repair-journey",
                      "actorId": "campaign-owner-1",
                      "validFrom": 0,
                      "validThrough": 120,
                      "source": "Fictional recorded campaign authorization"
                    },
                    {
                      "batchId": "GIFT-120",
                      "insertRevision": "insert-3",
                      "destinationRevision": "destination-2",
                      "checkoutRevision": "checkout-1",
                      "deviceScope": "campaign-test-phone",
                      "accountScope": "intended-recipient-account",
                      "id": "PERMISSION-replace-and-repair",
                      "packageId": "replace-and-repair",
                      "actorId": "campaign-owner-1",
                      "validFrom": 0,
                      "validThrough": 120,
                      "source": "Fictional recorded campaign authorization"
                    },
                    {
                      "batchId": "GIFT-120",
                      "insertRevision": "insert-3",
                      "destinationRevision": "destination-2",
                      "checkoutRevision": "checkout-1",
                      "deviceScope": "campaign-test-phone",
                      "accountScope": "intended-recipient-account",
                      "id": "PERMISSION-external",
                      "packageId": "external-replace-and-repair",
                      "actorId": "campaign-owner-1",
                      "validFrom": 0,
                      "validThrough": 120,
                      "source": "Fictional recorded campaign authorization"
                    }
                  ],
                  "resources": [
                    {
                      "id": "production-team",
                      "capacity": 1
                    }
                  ],
                  "calendars": [
                    {
                      "resource": "production-team",
                      "start": 0,
                      "end": 120
                    }
                  ],
                  "bookings": [],
                  "confirmations": []
                },
                "provenance": []
              }
            },
            "presentation": {
              "schemaVersion": 1,
              "provider": "native-commitment-planning",
              "contract": "complete-a-commitment.assessment/1",
              "views": []
            },
            "viewContracts": [],
            "fields": [],
            "reports": [],
            "defaultReport": null,
            "originWorkspaceId": null,
            "createdAt": "2026-11-23T16:59:01.941Z",
            "contentHash": "0cfbd611df95c3e1f9cc59d4ab7cb547f7bcea787b8a55c91ed42ebd21829c0e"
          },
          "sourceProvenance": "supplied",
          "contentHash": "9162e13abe114321455cd7138fada5d2c59b26bd90e3abf0f100ab47bcd0e792"
        },
        "packageHash": "9162e13abe114321455cd7138fada5d2c59b26bd90e3abf0f100ab47bcd0e792"
      }
    ],
    "questions": [
      {
        "id": "case-reference",
        "path": "gifting.id",
        "label": "Scenario reference",
        "question": "Which gift-kit scenario is this?",
        "meaning": "Identify this scenario independently from its batch and exact configuration.",
        "role": "campaign-owner",
        "type": "string",
        "required": true
      },
      {
        "id": "configuration",
        "path": "gifting.scope",
        "label": "Exact gift-kit configuration",
        "question": "Which batch, printed insert, destination, checkout and intended users are included?",
        "meaning": "Reports and permissions must match this exact six-field scope. Revising it requires reassessing the evidence.",
        "role": "campaign-owner",
        "type": "object",
        "required": true
      },
      {
        "id": "commitment",
        "path": "gifting.commitment",
        "label": "Kit quantity, cutoff and expense",
        "question": "What must be ready, by when and within which expense limit?",
        "meaning": "Times are minutes from one declared review origin. Quotes cover the complete kit quantity. Monetary inputs are integer USD cents in YAML and JSON; Forms and Excel money cells use US dollars. Quantity does not silently scale quoted work.",
        "role": "campaign-owner",
        "type": "object",
        "required": true
      },
      {
        "id": "observations",
        "path": "gifting.observations",
        "label": "Actual rehearsal and check reports",
        "question": "What did each scoped check report, and where is the original record?",
        "meaning": "Retain exact configuration, observation time, recorder and original source text. The initial broad rehearsal failure does not mean a printed code was unreadable: record only the stated diagnostic result. This profile assumes accurate current scoped reports. Planned or simulated checks are not observations.",
        "role": "evidence-reviewer",
        "type": "array",
        "required": true
      },
      {
        "id": "quotes",
        "path": "gifting.work.quotes",
        "label": "Complete correction quotes",
        "question": "What does each complete correction package cost, and how long will it take?",
        "meaning": "Supply every published package quote for this batch. Frozen package effects and task dependencies cannot be edited through quotes.",
        "role": "production-owner",
        "type": "array",
        "required": true
      },
      {
        "id": "rehearsal",
        "path": "gifting.work.rehearsalMinutes",
        "label": "Fresh rehearsal duration",
        "question": "How long will the scoped rehearsal after correction require?",
        "meaning": "Reserve the complete fresh rehearsal duration, subject to the published minimum. Scheduling it does not establish a passing result.",
        "role": "production-owner",
        "type": "number",
        "required": true
      },
      {
        "id": "handoff",
        "path": "gifting.work.handoffMinutes",
        "label": "Handoff duration",
        "question": "How much time remains for the final handoff?",
        "meaning": "Reserve the complete final handoff duration after correction and rehearsal. A calculated finish does not record actual handoff.",
        "role": "production-owner",
        "type": "number",
        "required": true
      },
      {
        "id": "work-owner",
        "path": "gifting.work.actorId",
        "label": "Person responsible for the work",
        "question": "Who will perform correction, rehearsal and handoff?",
        "meaning": "The same recorded person performs the three sequential activities in this bounded profile. Declared responsibility is not authenticated identity.",
        "role": "production-owner",
        "type": "string",
        "required": true
      },
      {
        "id": "people",
        "path": "gifting.work.people",
        "label": "Responsible people",
        "question": "Which named people hold the recorded responsibilities?",
        "meaning": "A person must be recorded before assignment. Permission is supplied and checked separately.",
        "role": "production-owner",
        "type": "array",
        "required": true
      },
      {
        "id": "resources",
        "path": "gifting.work.resources",
        "label": "Production capacity and availability",
        "question": "When can the production resource support the complete work?",
        "meaning": "Available intervals and capacity constrain correction, rehearsal and handoff. This profile has no other booked work or concurrent campaigns.",
        "role": "production-owner",
        "type": "array",
        "required": true
      },
      {
        "id": "permissions",
        "path": "gifting.work.permissions",
        "label": "Recorded arrangement permissions",
        "question": "Which complete arrangements and working intervals have recorded permission?",
        "meaning": "The supplied register is stipulated complete. Each permission must match the exact configuration, person and package and cover the full work interval; an empty register supplies no permission.",
        "role": "campaign-owner",
        "type": "array",
        "required": true
      },
      {
        "id": "confirmations",
        "path": "gifting.work.confirmations",
        "label": "Recorded package confirmations",
        "question": "Which arrangements have a current confirmation for this exact kit configuration?",
        "meaning": "Keep the original source and recorder, exact package and six-field configuration, positive or negative status, observation time and validity interval. Empty records establish no confirmation. A confirmation does not replace operating permission or completed correction evidence.",
        "role": "production-owner",
        "type": "array",
        "required": true
      }
    ],
    "initialCase": {
      "gifting": {
        "id": "gift-campaign-example",
        "scope": {
          "batchId": "GIFT-120",
          "insertRevision": "insert-3",
          "destinationRevision": "destination-2",
          "checkoutRevision": "checkout-1",
          "deviceScope": "campaign-test-phone",
          "accountScope": "intended-recipient-account"
        },
        "commitment": {
          "quantity": 120,
          "nowMinute": 0,
          "handoffDeadlineMinute": 60,
          "budgetMinor": 60000
        },
        "observations": [
          {
            "id": "OBS-DECODE",
            "checkId": "decode",
            "outcomeId": "unreadable",
            "scope": {
              "batchId": "GIFT-120",
              "insertRevision": "insert-3",
              "destinationRevision": "destination-2",
              "checkoutRevision": "checkout-1",
              "deviceScope": "campaign-test-phone",
              "accountScope": "intended-recipient-account"
            },
            "observedAtMinute": 0,
            "source": "Fictional rehearsal record",
            "recordedBy": "campaign-owner-1",
            "originalText": "The printed code cannot be decoded on the declared test phone."
          },
          {
            "id": "OBS-PROOF",
            "checkId": "proof",
            "outcomeId": "wrong-target",
            "scope": {
              "batchId": "GIFT-120",
              "insertRevision": "insert-3",
              "destinationRevision": "destination-2",
              "checkoutRevision": "checkout-1",
              "deviceScope": "campaign-test-phone",
              "accountScope": "intended-recipient-account"
            },
            "observedAtMinute": 0,
            "source": "Fictional rehearsal record",
            "recordedBy": "campaign-owner-1",
            "originalText": "The approved source artwork contains the wrong destination."
          },
          {
            "id": "OBS-CHECKOUT",
            "checkId": "checkout",
            "outcomeId": "usable",
            "scope": {
              "batchId": "GIFT-120",
              "insertRevision": "insert-3",
              "destinationRevision": "destination-2",
              "checkoutRevision": "checkout-1",
              "deviceScope": "campaign-test-phone",
              "accountScope": "intended-recipient-account"
            },
            "observedAtMinute": 0,
            "source": "Fictional rehearsal record",
            "recordedBy": "campaign-owner-1",
            "originalText": "The intended account can complete the scoped checkout rehearsal."
          }
        ],
        "work": {
          "actorId": "campaign-owner-1",
          "people": [
            {
              "id": "campaign-owner-1",
              "name": "Fictional campaign owner",
              "role": "campaign-owner"
            }
          ],
          "quotes": [
            {
              "packageId": "rehearse-unchanged",
              "quantity": 120,
              "repairMinutes": 1,
              "repairCostMinor": 0
            },
            {
              "packageId": "reprint",
              "quantity": 120,
              "repairMinutes": 10,
              "repairCostMinor": 10000
            },
            {
              "packageId": "repair-journey",
              "quantity": 120,
              "repairMinutes": 15,
              "repairCostMinor": 18000
            },
            {
              "packageId": "replace-and-repair",
              "quantity": 120,
              "repairMinutes": 25,
              "repairCostMinor": 30000
            },
            {
              "packageId": "external-replace-and-repair",
              "quantity": 120,
              "repairMinutes": 10,
              "repairCostMinor": 40000
            }
          ],
          "rehearsalMinutes": 5,
          "handoffMinutes": 5,
          "resources": [
            {
              "id": "production-team",
              "capacity": 1,
              "availableFromMinute": 0,
              "availableThroughMinute": 120
            }
          ],
          "permissions": [
            {
              "id": "PERMISSION-rehearse-unchanged",
              "packageId": "rehearse-unchanged",
              "actorId": "campaign-owner-1",
              "scope": {
                "batchId": "GIFT-120",
                "insertRevision": "insert-3",
                "destinationRevision": "destination-2",
                "checkoutRevision": "checkout-1",
                "deviceScope": "campaign-test-phone",
                "accountScope": "intended-recipient-account"
              },
              "validFromMinute": 0,
              "validThroughMinute": 120,
              "source": "Fictional recorded campaign authorization"
            },
            {
              "id": "PERMISSION-reprint",
              "packageId": "reprint",
              "actorId": "campaign-owner-1",
              "scope": {
                "batchId": "GIFT-120",
                "insertRevision": "insert-3",
                "destinationRevision": "destination-2",
                "checkoutRevision": "checkout-1",
                "deviceScope": "campaign-test-phone",
                "accountScope": "intended-recipient-account"
              },
              "validFromMinute": 0,
              "validThroughMinute": 120,
              "source": "Fictional recorded campaign authorization"
            },
            {
              "id": "PERMISSION-repair-journey",
              "packageId": "repair-journey",
              "actorId": "campaign-owner-1",
              "scope": {
                "batchId": "GIFT-120",
                "insertRevision": "insert-3",
                "destinationRevision": "destination-2",
                "checkoutRevision": "checkout-1",
                "deviceScope": "campaign-test-phone",
                "accountScope": "intended-recipient-account"
              },
              "validFromMinute": 0,
              "validThroughMinute": 120,
              "source": "Fictional recorded campaign authorization"
            },
            {
              "id": "PERMISSION-replace-and-repair",
              "packageId": "replace-and-repair",
              "actorId": "campaign-owner-1",
              "scope": {
                "batchId": "GIFT-120",
                "insertRevision": "insert-3",
                "destinationRevision": "destination-2",
                "checkoutRevision": "checkout-1",
                "deviceScope": "campaign-test-phone",
                "accountScope": "intended-recipient-account"
              },
              "validFromMinute": 0,
              "validThroughMinute": 120,
              "source": "Fictional recorded campaign authorization"
            },
            {
              "id": "PERMISSION-external",
              "packageId": "external-replace-and-repair",
              "actorId": "campaign-owner-1",
              "scope": {
                "batchId": "GIFT-120",
                "insertRevision": "insert-3",
                "destinationRevision": "destination-2",
                "checkoutRevision": "checkout-1",
                "deviceScope": "campaign-test-phone",
                "accountScope": "intended-recipient-account"
              },
              "validFromMinute": 0,
              "validThroughMinute": 120,
              "source": "Fictional recorded campaign authorization"
            }
          ],
          "confirmations": []
        }
      }
    },
    "steps": [
      {
        "id": "evidence",
        "title": "Establish the required gift-kit corrections",
        "app": "evidence",
        "role": "evidence-reviewer",
        "dependsOn": [],
        "requires": [
          "case-reference",
          "configuration",
          "commitment",
          "observations"
        ],
        "questionBindings": {
          "commitment": {
            "ref": "case.gifting.commitment.nowMinute"
          }
        },
        "input": {
          "id": {
            "op": "stringConcat",
            "args": [
              {
                "ref": "case.gifting.id"
              },
              "-evidence"
            ]
          },
          "scope": {
            "op": "stringify",
            "args": [
              {
                "ref": "case.gifting.scope"
              }
            ]
          },
          "parameters": {
            "nowMinute": {
              "ref": "case.gifting.commitment.nowMinute"
            }
          },
          "basis": {
            "expectedScope": {
              "op": "map",
              "args": [
                {
                  "op": "entries",
                  "args": [
                    {
                      "ref": "case.gifting.scope"
                    }
                  ]
                },
                {
                  "field": {
                    "op": "get",
                    "args": [
                      {
                        "ref": "vars.scopeEntryCase"
                      },
                      0
                    ]
                  },
                  "value": {
                    "op": "stringify",
                    "args": [
                      {
                        "op": "get",
                        "args": [
                          {
                            "ref": "vars.scopeEntryCase"
                          },
                          1
                        ]
                      }
                    ]
                  }
                }
              ],
              "as": "scopeEntryCase"
            },
            "state": {
              "literal": [
                {
                  "id": "none",
                  "label": "No modeled fault"
                },
                {
                  "id": "print",
                  "label": "The printed code cannot be read"
                },
                {
                  "id": "destination",
                  "label": "The code leads to the wrong destination"
                },
                {
                  "id": "print-destination",
                  "label": "The printed code cannot be read; The code leads to the wrong destination"
                },
                {
                  "id": "checkout",
                  "label": "The intended checkout is restricted"
                },
                {
                  "id": "print-checkout",
                  "label": "The printed code cannot be read; The intended checkout is restricted"
                },
                {
                  "id": "destination-checkout",
                  "label": "The code leads to the wrong destination; The intended checkout is restricted"
                },
                {
                  "id": "print-destination-checkout",
                  "label": "The printed code cannot be read; The code leads to the wrong destination; The intended checkout is restricted"
                }
              ]
            },
            "stateFault": {
              "literal": [
                {
                  "state": "print",
                  "fault": "print"
                },
                {
                  "state": "destination",
                  "fault": "destination"
                },
                {
                  "state": "print-destination",
                  "fault": "print"
                },
                {
                  "state": "print-destination",
                  "fault": "destination"
                },
                {
                  "state": "checkout",
                  "fault": "checkout"
                },
                {
                  "state": "print-checkout",
                  "fault": "print"
                },
                {
                  "state": "print-checkout",
                  "fault": "checkout"
                },
                {
                  "state": "destination-checkout",
                  "fault": "destination"
                },
                {
                  "state": "destination-checkout",
                  "fault": "checkout"
                },
                {
                  "state": "print-destination-checkout",
                  "fault": "print"
                },
                {
                  "state": "print-destination-checkout",
                  "fault": "destination"
                },
                {
                  "state": "print-destination-checkout",
                  "fault": "checkout"
                }
              ]
            },
            "stateCorrection": {
              "literal": [
                {
                  "state": "print",
                  "correction": "replace-insert"
                },
                {
                  "state": "destination",
                  "correction": "correct-destination"
                },
                {
                  "state": "print-destination",
                  "correction": "replace-insert"
                },
                {
                  "state": "print-destination",
                  "correction": "correct-destination"
                },
                {
                  "state": "checkout",
                  "correction": "fix-checkout"
                },
                {
                  "state": "print-checkout",
                  "correction": "replace-insert"
                },
                {
                  "state": "print-checkout",
                  "correction": "fix-checkout"
                },
                {
                  "state": "destination-checkout",
                  "correction": "correct-destination"
                },
                {
                  "state": "destination-checkout",
                  "correction": "fix-checkout"
                },
                {
                  "state": "print-destination-checkout",
                  "correction": "replace-insert"
                },
                {
                  "state": "print-destination-checkout",
                  "correction": "correct-destination"
                },
                {
                  "state": "print-destination-checkout",
                  "correction": "fix-checkout"
                }
              ]
            },
            "checkOutcome": {
              "literal": [
                {
                  "check": "rescan",
                  "outcome": "readable"
                },
                {
                  "check": "rescan",
                  "outcome": "unreadable"
                },
                {
                  "check": "decode",
                  "outcome": "unreadable"
                },
                {
                  "check": "decode",
                  "outcome": "approved-target"
                },
                {
                  "check": "decode",
                  "outcome": "wrong-target"
                },
                {
                  "check": "proof",
                  "outcome": "approved-target"
                },
                {
                  "check": "proof",
                  "outcome": "wrong-target"
                },
                {
                  "check": "checkout",
                  "outcome": "usable"
                },
                {
                  "check": "checkout",
                  "outcome": "blocked"
                }
              ]
            },
            "prediction": {
              "literal": [
                {
                  "state": "none",
                  "check": "rescan",
                  "outcome": "readable"
                },
                {
                  "state": "print",
                  "check": "rescan",
                  "outcome": "unreadable"
                },
                {
                  "state": "destination",
                  "check": "rescan",
                  "outcome": "readable"
                },
                {
                  "state": "print-destination",
                  "check": "rescan",
                  "outcome": "unreadable"
                },
                {
                  "state": "checkout",
                  "check": "rescan",
                  "outcome": "readable"
                },
                {
                  "state": "print-checkout",
                  "check": "rescan",
                  "outcome": "unreadable"
                },
                {
                  "state": "destination-checkout",
                  "check": "rescan",
                  "outcome": "readable"
                },
                {
                  "state": "print-destination-checkout",
                  "check": "rescan",
                  "outcome": "unreadable"
                },
                {
                  "state": "none",
                  "check": "decode",
                  "outcome": "approved-target"
                },
                {
                  "state": "print",
                  "check": "decode",
                  "outcome": "unreadable"
                },
                {
                  "state": "destination",
                  "check": "decode",
                  "outcome": "wrong-target"
                },
                {
                  "state": "print-destination",
                  "check": "decode",
                  "outcome": "unreadable"
                },
                {
                  "state": "checkout",
                  "check": "decode",
                  "outcome": "approved-target"
                },
                {
                  "state": "print-checkout",
                  "check": "decode",
                  "outcome": "unreadable"
                },
                {
                  "state": "destination-checkout",
                  "check": "decode",
                  "outcome": "wrong-target"
                },
                {
                  "state": "print-destination-checkout",
                  "check": "decode",
                  "outcome": "unreadable"
                },
                {
                  "state": "none",
                  "check": "proof",
                  "outcome": "approved-target"
                },
                {
                  "state": "print",
                  "check": "proof",
                  "outcome": "approved-target"
                },
                {
                  "state": "destination",
                  "check": "proof",
                  "outcome": "wrong-target"
                },
                {
                  "state": "print-destination",
                  "check": "proof",
                  "outcome": "wrong-target"
                },
                {
                  "state": "checkout",
                  "check": "proof",
                  "outcome": "approved-target"
                },
                {
                  "state": "print-checkout",
                  "check": "proof",
                  "outcome": "approved-target"
                },
                {
                  "state": "destination-checkout",
                  "check": "proof",
                  "outcome": "wrong-target"
                },
                {
                  "state": "print-destination-checkout",
                  "check": "proof",
                  "outcome": "wrong-target"
                },
                {
                  "state": "none",
                  "check": "checkout",
                  "outcome": "usable"
                },
                {
                  "state": "print",
                  "check": "checkout",
                  "outcome": "usable"
                },
                {
                  "state": "destination",
                  "check": "checkout",
                  "outcome": "usable"
                },
                {
                  "state": "print-destination",
                  "check": "checkout",
                  "outcome": "usable"
                },
                {
                  "state": "checkout",
                  "check": "checkout",
                  "outcome": "blocked"
                },
                {
                  "state": "print-checkout",
                  "check": "checkout",
                  "outcome": "blocked"
                },
                {
                  "state": "destination-checkout",
                  "check": "checkout",
                  "outcome": "blocked"
                },
                {
                  "state": "print-destination-checkout",
                  "check": "checkout",
                  "outcome": "blocked"
                }
              ]
            },
            "correction": {
              "literal": [
                {
                  "id": "replace-insert"
                },
                {
                  "id": "correct-destination"
                },
                {
                  "id": "fix-checkout"
                }
              ]
            }
          },
          "evidence": {
            "observation": {
              "op": "map",
              "args": [
                {
                  "ref": "case.gifting.observations"
                },
                {
                  "id": {
                    "ref": "vars.observation.id"
                  },
                  "check": {
                    "ref": "vars.observation.checkId"
                  },
                  "outcome": {
                    "ref": "vars.observation.outcomeId"
                  },
                  "observed": {
                    "ref": "vars.observation.observedAtMinute"
                  },
                  "source": {
                    "ref": "vars.observation.source"
                  },
                  "person": {
                    "ref": "vars.observation.recordedBy"
                  },
                  "text": {
                    "ref": "vars.observation.originalText"
                  }
                }
              ],
              "as": "observation"
            },
            "recordScope": {
              "op": "flatMap",
              "args": [
                {
                  "ref": "case.gifting.observations"
                },
                {
                  "op": "map",
                  "args": [
                    {
                      "op": "entries",
                      "args": [
                        {
                          "ref": "vars.scopedRecord.scope"
                        }
                      ]
                    },
                    {
                      "record": {
                        "ref": "vars.scopedRecord.id"
                      },
                      "field": {
                        "op": "get",
                        "args": [
                          {
                            "ref": "vars.scopeEntryRecord"
                          },
                          0
                        ]
                      },
                      "value": {
                        "op": "stringify",
                        "args": [
                          {
                            "op": "get",
                            "args": [
                              {
                                "ref": "vars.scopeEntryRecord"
                              },
                              1
                            ]
                          }
                        ]
                      }
                    }
                  ],
                  "as": "scopeEntryRecord"
                }
              ],
              "as": "scopedRecord"
            }
          },
          "queryIds": [
            "remaining-configurations"
          ],
          "evaluation": {
            "maxCandidates": 2,
            "maxRuleRounds": 100,
            "maxFacts": 10000,
            "maxOperations": 10000000
          }
        },
        "output": {
          "op": "get",
          "args": [
            {
              "op": "map",
              "args": [
                [
                  {
                    "op": "get",
                    "args": [
                      {
                        "ref": "assessment.interpretations"
                      },
                      0
                    ]
                  }
                ],
                {
                  "op": "get",
                  "args": [
                    {
                      "op": "map",
                      "args": [
                        [
                          {
                            "op": "map",
                            "args": [
                              {
                                "ref": "case.gifting.observations"
                              },
                              {
                                "op": "get",
                                "args": [
                                  {
                                    "op": "map",
                                    "args": [
                                      [
                                        {
                                          "op": "find",
                                          "args": [
                                            {
                                              "op": "get",
                                              "args": [
                                                {
                                                  "ref": "vars.evidenceInterpretation.tables"
                                                },
                                                "record-dispositions"
                                              ]
                                            },
                                            {
                                              "op": "eq",
                                              "args": [
                                                {
                                                  "ref": "vars.disposition.record"
                                                },
                                                {
                                                  "ref": "vars.reportedObservation.id"
                                                }
                                              ]
                                            }
                                          ],
                                          "as": "disposition"
                                        }
                                      ],
                                      {
                                        "op": "merge",
                                        "args": [
                                          {
                                            "ref": "vars.reportedObservation"
                                          },
                                          {
                                            "disposition": {
                                              "ref": "vars.recordDisposition.disposition"
                                            },
                                            "dispositionCode": {
                                              "ref": "vars.recordDisposition.code"
                                            },
                                            "reason": {
                                              "ref": "vars.recordDisposition.reason"
                                            }
                                          }
                                        ]
                                      }
                                    ],
                                    "as": "recordDisposition"
                                  },
                                  0
                                ]
                              }
                            ],
                            "as": "reportedObservation"
                          }
                        ],
                        {
                          "status": {
                            "op": "if",
                            "args": [
                              {
                                "op": "and",
                                "args": [
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "result.execution.status"
                                      },
                                      "completed"
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.status"
                                      },
                                      "complete"
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.coverage.complete"
                                      },
                                      true
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.admission.valid"
                                      },
                                      true
                                    ]
                                  }
                                ]
                              },
                              {
                                "op": "if",
                                "args": [
                                  {
                                    "op": "gt",
                                    "args": [
                                      {
                                        "op": "length",
                                        "args": [
                                          {
                                            "op": "get",
                                            "args": [
                                              {
                                                "ref": "vars.evidenceInterpretation.tables"
                                              },
                                              "remaining-states"
                                            ]
                                          }
                                        ]
                                      },
                                      0
                                    ]
                                  },
                                  "complete",
                                  "inconsistent"
                                ]
                              },
                              "invalid"
                            ]
                          },
                          "states": {
                            "op": "if",
                            "args": [
                              {
                                "op": "and",
                                "args": [
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "result.execution.status"
                                      },
                                      "completed"
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.status"
                                      },
                                      "complete"
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.coverage.complete"
                                      },
                                      true
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.admission.valid"
                                      },
                                      true
                                    ]
                                  }
                                ]
                              },
                              {
                                "op": "map",
                                "args": [
                                  {
                                    "op": "get",
                                    "args": [
                                      {
                                        "ref": "vars.evidenceInterpretation.tables"
                                      },
                                      "remaining-states"
                                    ]
                                  },
                                  {
                                    "id": {
                                      "ref": "vars.remaining.state"
                                    },
                                    "label": {
                                      "ref": "vars.remaining.label"
                                    },
                                    "faultIds": {
                                      "op": "map",
                                      "args": [
                                        {
                                          "op": "filter",
                                          "args": [
                                            {
                                              "op": "get",
                                              "args": [
                                                {
                                                  "ref": "vars.evidenceInterpretation.tables"
                                                },
                                                "state-faults"
                                              ]
                                            },
                                            {
                                              "op": "eq",
                                              "args": [
                                                {
                                                  "ref": "vars.stateFault.state"
                                                },
                                                {
                                                  "ref": "vars.remaining.state"
                                                }
                                              ]
                                            }
                                          ],
                                          "as": "stateFault"
                                        },
                                        {
                                          "ref": "vars.fault.fault"
                                        }
                                      ],
                                      "as": "fault"
                                    },
                                    "correctionIds": {
                                      "op": "map",
                                      "args": [
                                        {
                                          "op": "filter",
                                          "args": [
                                            {
                                              "op": "get",
                                              "args": [
                                                {
                                                  "ref": "vars.evidenceInterpretation.tables"
                                                },
                                                "state-corrections"
                                              ]
                                            },
                                            {
                                              "op": "eq",
                                              "args": [
                                                {
                                                  "ref": "vars.stateCorrection.state"
                                                },
                                                {
                                                  "ref": "vars.remaining.state"
                                                }
                                              ]
                                            }
                                          ],
                                          "as": "stateCorrection"
                                        },
                                        {
                                          "ref": "vars.correction.correction"
                                        }
                                      ],
                                      "as": "correction"
                                    }
                                  }
                                ],
                                "as": "remaining"
                              },
                              []
                            ]
                          },
                          "correctionsSetEstablished": {
                            "op": "and",
                            "args": [
                              {
                                "op": "and",
                                "args": [
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "result.execution.status"
                                      },
                                      "completed"
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.status"
                                      },
                                      "complete"
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.coverage.complete"
                                      },
                                      true
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.admission.valid"
                                      },
                                      true
                                    ]
                                  }
                                ]
                              },
                              {
                                "op": "gt",
                                "args": [
                                  {
                                    "op": "length",
                                    "args": [
                                      {
                                        "op": "get",
                                        "args": [
                                          {
                                            "ref": "vars.evidenceInterpretation.tables"
                                          },
                                          "corrections-established"
                                        ]
                                      }
                                    ]
                                  },
                                  0
                                ]
                              }
                            ]
                          },
                          "requiredCorrections": {
                            "op": "if",
                            "args": [
                              {
                                "op": "and",
                                "args": [
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "result.execution.status"
                                      },
                                      "completed"
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.status"
                                      },
                                      "complete"
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.coverage.complete"
                                      },
                                      true
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "assessment.admission.valid"
                                      },
                                      true
                                    ]
                                  }
                                ]
                              },
                              {
                                "op": "map",
                                "args": [
                                  {
                                    "op": "get",
                                    "args": [
                                      {
                                        "ref": "vars.evidenceInterpretation.tables"
                                      },
                                      "required-corrections"
                                    ]
                                  },
                                  {
                                    "ref": "vars.requiredCorrection.correction"
                                  }
                                ],
                                "as": "requiredCorrection"
                              },
                              []
                            ]
                          },
                          "records": {
                            "ref": "vars.evidenceRecords"
                          },
                          "usedRecords": {
                            "op": "filter",
                            "args": [
                              {
                                "ref": "vars.evidenceRecords"
                              },
                              {
                                "op": "eq",
                                "args": [
                                  {
                                    "ref": "vars.usedRecord.disposition"
                                  },
                                  "used"
                                ]
                              }
                            ],
                            "as": "usedRecord"
                          },
                          "ignoredRecords": {
                            "op": "filter",
                            "args": [
                              {
                                "ref": "vars.evidenceRecords"
                              },
                              {
                                "op": "eq",
                                "args": [
                                  {
                                    "ref": "vars.ignoredRecord.disposition"
                                  },
                                  "ignored"
                                ]
                              }
                            ],
                            "as": "ignoredRecord"
                          },
                          "ruledOutByRecords": {
                            "op": "get",
                            "args": [
                              {
                                "ref": "vars.evidenceInterpretation.tables"
                              },
                              "ruled-out-by-records"
                            ]
                          },
                          "provenance": {
                            "profileId": "gift-kit-readiness",
                            "profileVersion": "1.0.0",
                            "basisHash": {
                              "op": "hash",
                              "args": [
                                {
                                  "scope": {
                                    "ref": "case.gifting.scope"
                                  },
                                  "nowMinute": {
                                    "ref": "case.gifting.commitment.nowMinute"
                                  },
                                  "observations": {
                                    "ref": "case.gifting.observations"
                                  }
                                }
                              ]
                            },
                            "scopeHash": {
                              "op": "hash",
                              "args": [
                                {
                                  "ref": "case.gifting.scope"
                                }
                              ]
                            },
                            "runHash": {
                              "op": "hash",
                              "args": [
                                {
                                  "ref": "result"
                                }
                              ]
                            }
                          },
                          "qualification": "These findings concern the declared batch and journey revisions. They supply no probabilities, issued permissions or evidence that planned corrections have finished."
                        }
                      ],
                      "as": "evidenceRecords"
                    },
                    0
                  ]
                }
              ],
              "as": "evidenceInterpretation"
            },
            0
          ]
        },
        "acceptWhen": {
          "op": "and",
          "args": [
            {
              "op": "eq",
              "args": [
                {
                  "ref": "result.execution.status"
                },
                "completed"
              ]
            },
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.status"
                },
                "complete"
              ]
            },
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.admission.valid"
                },
                true
              ]
            },
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.coverage.complete"
                },
                true
              ]
            }
          ]
        },
        "checks": [
          {
            "id": "scoped-evidence-shape",
            "message": "Supply this review reference, exact configuration, current time and actual diagnostic reports. Correction quotes are not needed to assess the evidence.",
            "test": {
              "op": "matchesSchema",
              "args": [
                {
                  "id": {
                    "ref": "case.gifting.id"
                  },
                  "scope": {
                    "ref": "case.gifting.scope"
                  },
                  "nowMinute": {
                    "ref": "case.gifting.commitment.nowMinute"
                  },
                  "observations": {
                    "ref": "case.gifting.observations"
                  }
                },
                {
                  "literal": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000,
                        "title": "Reference"
                      },
                      "scope": {
                        "type": "object",
                        "properties": {
                          "batchId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000,
                            "title": "Gift-kit batch"
                          },
                          "insertRevision": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000,
                            "title": "Printed insert revision"
                          },
                          "destinationRevision": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000,
                            "title": "Approved destination revision"
                          },
                          "checkoutRevision": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000,
                            "title": "Checkout revision"
                          },
                          "deviceScope": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000,
                            "title": "Intended device scope"
                          },
                          "accountScope": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000,
                            "title": "Intended account and offer scope"
                          }
                        },
                        "required": [
                          "batchId",
                          "insertRevision",
                          "destinationRevision",
                          "checkoutRevision",
                          "deviceScope",
                          "accountScope"
                        ],
                        "additionalProperties": false,
                        "title": "Exact configuration"
                      },
                      "nowMinute": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100000000,
                        "title": "Current review time (minute from review origin)"
                      },
                      "observations": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "title": "Reference"
                            },
                            "checkId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "enum": [
                                "rescan",
                                "decode",
                                "proof",
                                "checkout"
                              ],
                              "title": "Recorded check"
                            },
                            "outcomeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "enum": [
                                "readable",
                                "unreadable",
                                "approved-target",
                                "wrong-target",
                                "usable",
                                "blocked"
                              ],
                              "title": "Reported result"
                            },
                            "scope": {
                              "type": "object",
                              "properties": {
                                "batchId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2000,
                                  "title": "Gift-kit batch"
                                },
                                "insertRevision": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2000,
                                  "title": "Printed insert revision"
                                },
                                "destinationRevision": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2000,
                                  "title": "Approved destination revision"
                                },
                                "checkoutRevision": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2000,
                                  "title": "Checkout revision"
                                },
                                "deviceScope": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2000,
                                  "title": "Intended device scope"
                                },
                                "accountScope": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2000,
                                  "title": "Intended account and offer scope"
                                }
                              },
                              "required": [
                                "batchId",
                                "insertRevision",
                                "destinationRevision",
                                "checkoutRevision",
                                "deviceScope",
                                "accountScope"
                              ],
                              "additionalProperties": false,
                              "title": "Exact configuration"
                            },
                            "observedAtMinute": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 100000000,
                              "title": "Observed at (minute from review origin)"
                            },
                            "source": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "title": "Source reference"
                            },
                            "recordedBy": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "title": "Recorded by"
                            },
                            "originalText": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 20000,
                              "title": "Original report"
                            }
                          },
                          "required": [
                            "id",
                            "checkId",
                            "outcomeId",
                            "scope",
                            "observedAtMinute",
                            "source",
                            "recordedBy",
                            "originalText"
                          ],
                          "additionalProperties": false
                        },
                        "maxItems": 200,
                        "title": "Actual reports"
                      }
                    },
                    "required": [
                      "id",
                      "scope",
                      "nowMinute",
                      "observations"
                    ]
                  }
                }
              ]
            }
          }
        ]
      },
      {
        "id": "planning",
        "title": "Compare complete correction arrangements",
        "app": "planning",
        "role": "production-owner",
        "dependsOn": [
          "evidence"
        ],
        "requires": [
          "case-reference",
          "configuration",
          "commitment",
          "observations",
          "quotes",
          "rehearsal",
          "handoff",
          "work-owner",
          "people",
          "resources",
          "permissions",
          "confirmations"
        ],
        "when": {
          "ref": "conditions.corrections-established"
        },
        "input": {
          "op": "require",
          "args": [
            {
              "op": "and",
              "args": [
                {
                  "op": "eq",
                  "args": [
                    {
                      "ref": "steps.evidence.output.status"
                    },
                    "complete"
                  ]
                },
                {
                  "op": "gt",
                  "args": [
                    {
                      "op": "length",
                      "args": [
                        {
                          "ref": "steps.evidence.output.states"
                        }
                      ]
                    },
                    0
                  ]
                },
                {
                  "op": "eq",
                  "args": [
                    {
                      "ref": "steps.evidence.output.provenance.basisHash"
                    },
                    {
                      "op": "hash",
                      "args": [
                        {
                          "scope": {
                            "ref": "case.gifting.scope"
                          },
                          "nowMinute": {
                            "ref": "case.gifting.commitment.nowMinute"
                          },
                          "observations": {
                            "ref": "case.gifting.observations"
                          }
                        }
                      ]
                    }
                  ]
                },
                {
                  "op": "eq",
                  "args": [
                    {
                      "ref": "steps.evidence.output.provenance.scopeHash"
                    },
                    {
                      "op": "hash",
                      "args": [
                        {
                          "ref": "case.gifting.scope"
                        }
                      ]
                    }
                  ]
                },
                {
                  "op": "eq",
                  "args": [
                    {
                      "ref": "steps.evidence.output.provenance.profileId"
                    },
                    "gift-kit-readiness"
                  ]
                },
                {
                  "op": "eq",
                  "args": [
                    {
                      "ref": "steps.evidence.output.provenance.profileVersion"
                    },
                    "1.0.0"
                  ]
                }
              ]
            },
            {
              "id": {
                "op": "stringConcat",
                "args": [
                  {
                    "ref": "case.gifting.id"
                  },
                  "-planning"
                ]
              },
              "parameters": {
                "batchId": {
                  "ref": "case.gifting.scope.batchId"
                },
                "insertRevision": {
                  "ref": "case.gifting.scope.insertRevision"
                },
                "destinationRevision": {
                  "ref": "case.gifting.scope.destinationRevision"
                },
                "checkoutRevision": {
                  "ref": "case.gifting.scope.checkoutRevision"
                },
                "deviceScope": {
                  "ref": "case.gifting.scope.deviceScope"
                },
                "accountScope": {
                  "ref": "case.gifting.scope.accountScope"
                },
                "actorId": {
                  "ref": "case.gifting.work.actorId"
                },
                "quantity": {
                  "ref": "case.gifting.commitment.quantity"
                },
                "nowMinute": {
                  "ref": "case.gifting.commitment.nowMinute"
                },
                "handoffDeadlineMinute": {
                  "ref": "case.gifting.commitment.handoffDeadlineMinute"
                },
                "budgetMinor": {
                  "ref": "case.gifting.commitment.budgetMinor"
                },
                "rehearsalMinutes": {
                  "ref": "case.gifting.work.rehearsalMinutes"
                },
                "handoffMinutes": {
                  "ref": "case.gifting.work.handoffMinutes"
                },
                "startOptions": {
                  "op": "unique",
                  "args": [
                    {
                      "op": "concat",
                      "args": [
                        [
                          {
                            "ref": "case.gifting.commitment.nowMinute"
                          }
                        ],
                        {
                          "op": "map",
                          "args": [
                            {
                              "ref": "case.gifting.work.resources"
                            },
                            {
                              "ref": "vars.startResource.availableFromMinute"
                            }
                          ],
                          "as": "startResource"
                        },
                        {
                          "op": "map",
                          "args": [
                            {
                              "ref": "case.gifting.work.permissions"
                            },
                            {
                              "ref": "vars.startPermission.validFromMinute"
                            }
                          ],
                          "as": "startPermission"
                        },
                        {
                          "op": "map",
                          "args": [
                            {
                              "ref": "case.gifting.work.confirmations"
                            },
                            {
                              "ref": "vars.confirmationStart.validFromMinute"
                            }
                          ],
                          "as": "confirmationStart"
                        }
                      ]
                    }
                  ]
                }
              },
              "tables": {
                "packages": {
                  "op": "map",
                  "args": [
                    {
                      "literal": [
                        {
                          "id": "rehearse-unchanged",
                          "label": "Prepare, rehearse and hand off unchanged kits",
                          "corrects": [],
                          "requiresConfirmation": false
                        },
                        {
                          "id": "reprint",
                          "label": "Replace the printed inserts",
                          "corrects": [
                            "replace-insert"
                          ],
                          "requiresConfirmation": false
                        },
                        {
                          "id": "repair-journey",
                          "label": "Correct the destination and checkout",
                          "corrects": [
                            "correct-destination",
                            "fix-checkout"
                          ],
                          "requiresConfirmation": false
                        },
                        {
                          "id": "replace-and-repair",
                          "label": "Replace inserts and repair the journey",
                          "corrects": [
                            "replace-insert",
                            "correct-destination",
                            "fix-checkout"
                          ],
                          "requiresConfirmation": false
                        },
                        {
                          "id": "external-replace-and-repair",
                          "label": "External replacement and journey repair",
                          "corrects": [
                            "replace-insert",
                            "correct-destination",
                            "fix-checkout"
                          ],
                          "requiresConfirmation": true
                        }
                      ]
                    },
                    {
                      "op": "get",
                      "args": [
                        {
                          "op": "map",
                          "args": [
                            [
                              {
                                "op": "find",
                                "args": [
                                  {
                                    "ref": "case.gifting.work.quotes"
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "vars.selectedQuote.packageId"
                                      },
                                      {
                                        "ref": "vars.authoredPackage.id"
                                      }
                                    ]
                                  }
                                ],
                                "as": "selectedQuote"
                              }
                            ],
                            {
                              "id": {
                                "ref": "vars.authoredPackage.id"
                              },
                              "quantity": {
                                "ref": "vars.quoteRow.quantity"
                              },
                              "repairMinutes": {
                                "ref": "vars.quoteRow.repairMinutes"
                              },
                              "repairCostMinor": {
                                "ref": "vars.quoteRow.repairCostMinor"
                              },
                              "fixes0": {
                                "op": "any",
                                "args": [
                                  {
                                    "ref": "vars.authoredPackage.corrects"
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "vars.correctionId"
                                      },
                                      "replace-insert"
                                    ]
                                  }
                                ],
                                "as": "correctionId"
                              },
                              "fixes1": {
                                "op": "any",
                                "args": [
                                  {
                                    "ref": "vars.authoredPackage.corrects"
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "vars.correctionId"
                                      },
                                      "correct-destination"
                                    ]
                                  }
                                ],
                                "as": "correctionId"
                              },
                              "fixes2": {
                                "op": "any",
                                "args": [
                                  {
                                    "ref": "vars.authoredPackage.corrects"
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "vars.correctionId"
                                      },
                                      "fix-checkout"
                                    ]
                                  }
                                ],
                                "as": "correctionId"
                              }
                            }
                          ],
                          "as": "quoteRow"
                        },
                        0
                      ]
                    }
                  ],
                  "as": "authoredPackage"
                },
                "scenarios": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "steps.evidence.output.states"
                    },
                    {
                      "id": {
                        "ref": "vars.planningState.id"
                      },
                      "fault0": {
                        "op": "any",
                        "args": [
                          {
                            "ref": "vars.planningState.faultIds"
                          },
                          {
                            "op": "eq",
                            "args": [
                              {
                                "ref": "vars.faultId0"
                              },
                              "print"
                            ]
                          }
                        ],
                        "as": "faultId0"
                      },
                      "fault1": {
                        "op": "any",
                        "args": [
                          {
                            "ref": "vars.planningState.faultIds"
                          },
                          {
                            "op": "eq",
                            "args": [
                              {
                                "ref": "vars.faultId1"
                              },
                              "destination"
                            ]
                          }
                        ],
                        "as": "faultId1"
                      },
                      "fault2": {
                        "op": "any",
                        "args": [
                          {
                            "ref": "vars.planningState.faultIds"
                          },
                          {
                            "op": "eq",
                            "args": [
                              {
                                "ref": "vars.faultId2"
                              },
                              "checkout"
                            ]
                          }
                        ],
                        "as": "faultId2"
                      }
                    }
                  ],
                  "as": "planningState"
                },
                "people": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "case.gifting.work.people"
                    },
                    {
                      "id": {
                        "ref": "vars.person.id"
                      },
                      "name": {
                        "ref": "vars.person.name"
                      },
                      "role": {
                        "ref": "vars.person.role"
                      }
                    }
                  ],
                  "as": "person"
                },
                "permissions": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "case.gifting.work.permissions"
                    },
                    {
                      "batchId": {
                        "ref": "vars.permission.scope.batchId"
                      },
                      "insertRevision": {
                        "ref": "vars.permission.scope.insertRevision"
                      },
                      "destinationRevision": {
                        "ref": "vars.permission.scope.destinationRevision"
                      },
                      "checkoutRevision": {
                        "ref": "vars.permission.scope.checkoutRevision"
                      },
                      "deviceScope": {
                        "ref": "vars.permission.scope.deviceScope"
                      },
                      "accountScope": {
                        "ref": "vars.permission.scope.accountScope"
                      },
                      "id": {
                        "ref": "vars.permission.id"
                      },
                      "packageId": {
                        "ref": "vars.permission.packageId"
                      },
                      "actorId": {
                        "ref": "vars.permission.actorId"
                      },
                      "validFrom": {
                        "ref": "vars.permission.validFromMinute"
                      },
                      "validThrough": {
                        "ref": "vars.permission.validThroughMinute"
                      },
                      "source": {
                        "ref": "vars.permission.source"
                      }
                    }
                  ],
                  "as": "permission"
                },
                "resources": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "case.gifting.work.resources"
                    },
                    {
                      "id": {
                        "ref": "vars.resource.id"
                      },
                      "capacity": {
                        "ref": "vars.resource.capacity"
                      }
                    }
                  ],
                  "as": "resource"
                },
                "calendars": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "case.gifting.work.resources"
                    },
                    {
                      "resource": {
                        "ref": "vars.calendar.id"
                      },
                      "start": {
                        "ref": "vars.calendar.availableFromMinute"
                      },
                      "end": {
                        "ref": "vars.calendar.availableThroughMinute"
                      }
                    }
                  ],
                  "as": "calendar"
                },
                "bookings": [],
                "confirmations": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "case.gifting.work.confirmations"
                    },
                    {
                      "id": {
                        "ref": "vars.confirmationRecord.id"
                      },
                      "packageId": {
                        "ref": "vars.confirmationRecord.packageId"
                      },
                      "batchId": {
                        "ref": "vars.confirmationRecord.scope.batchId"
                      },
                      "insertRevision": {
                        "ref": "vars.confirmationRecord.scope.insertRevision"
                      },
                      "destinationRevision": {
                        "ref": "vars.confirmationRecord.scope.destinationRevision"
                      },
                      "checkoutRevision": {
                        "ref": "vars.confirmationRecord.scope.checkoutRevision"
                      },
                      "deviceScope": {
                        "ref": "vars.confirmationRecord.scope.deviceScope"
                      },
                      "accountScope": {
                        "ref": "vars.confirmationRecord.scope.accountScope"
                      },
                      "confirmed": {
                        "ref": "vars.confirmationRecord.confirmed"
                      },
                      "validFrom": {
                        "ref": "vars.confirmationRecord.validFromMinute"
                      },
                      "validThrough": {
                        "ref": "vars.confirmationRecord.validThroughMinute"
                      },
                      "recordedAt": {
                        "ref": "vars.confirmationRecord.recordedAtMinute"
                      },
                      "source": {
                        "ref": "vars.confirmationRecord.source"
                      },
                      "recordedBy": {
                        "ref": "vars.confirmationRecord.recordedBy"
                      }
                    }
                  ],
                  "as": "confirmationRecord"
                }
              },
              "provenance": [
                {
                  "id": {
                    "op": "stringConcat",
                    "args": [
                      {
                        "ref": "case.gifting.id"
                      },
                      "-review-basis"
                    ]
                  },
                  "profileId": "gift-kit-readiness",
                  "profileVersion": "1.0.0",
                  "businessCase": {
                    "ref": "case.gifting"
                  },
                  "caseHash": {
                    "op": "hash",
                    "args": [
                      {
                        "ref": "case.gifting"
                      }
                    ]
                  },
                  "scopeHash": {
                    "op": "hash",
                    "args": [
                      {
                        "ref": "case.gifting.scope"
                      }
                    ]
                  },
                  "meaning": "Fictional current case and reviewed evidence states; proposed work is not completed work."
                }
              ]
            },
            "Planning needs a nonempty current evidence basis for this exact case, scope, and published gifting profile."
          ]
        },
        "output": {
          "op": "get",
          "args": [
            {
              "op": "map",
              "args": [
                [
                  {
                    "op": "map",
                    "args": [
                      {
                        "ref": "assessment.plans"
                      },
                      {
                        "op": "get",
                        "args": [
                          {
                            "op": "map",
                            "args": [
                              [
                                {
                                  "op": "find",
                                  "args": [
                                    {
                                      "literal": [
                                        {
                                          "id": "rehearse-unchanged",
                                          "label": "Prepare, rehearse and hand off unchanged kits",
                                          "corrects": [],
                                          "requiresConfirmation": false
                                        },
                                        {
                                          "id": "reprint",
                                          "label": "Replace the printed inserts",
                                          "corrects": [
                                            "replace-insert"
                                          ],
                                          "requiresConfirmation": false
                                        },
                                        {
                                          "id": "repair-journey",
                                          "label": "Correct the destination and checkout",
                                          "corrects": [
                                            "correct-destination",
                                            "fix-checkout"
                                          ],
                                          "requiresConfirmation": false
                                        },
                                        {
                                          "id": "replace-and-repair",
                                          "label": "Replace inserts and repair the journey",
                                          "corrects": [
                                            "replace-insert",
                                            "correct-destination",
                                            "fix-checkout"
                                          ],
                                          "requiresConfirmation": false
                                        },
                                        {
                                          "id": "external-replace-and-repair",
                                          "label": "External replacement and journey repair",
                                          "corrects": [
                                            "replace-insert",
                                            "correct-destination",
                                            "fix-checkout"
                                          ],
                                          "requiresConfirmation": true
                                        }
                                      ]
                                    },
                                    {
                                      "op": "eq",
                                      "args": [
                                        {
                                          "ref": "vars.authoredPackage.id"
                                        },
                                        {
                                          "ref": "vars.packagePlan.choices.packageId"
                                        }
                                      ]
                                    }
                                  ],
                                  "as": "authoredPackage"
                                }
                              ],
                              {
                                "id": {
                                  "ref": "vars.packagePlan.id"
                                },
                                "packageId": {
                                  "ref": "vars.packagePlan.choices.packageId"
                                },
                                "label": {
                                  "ref": "vars.packageDescription.label"
                                },
                                "description": {
                                  "op": "if",
                                  "args": [
                                    {
                                      "op": "isSet",
                                      "args": [
                                        {
                                          "ref": "vars.packageDescription.description"
                                        }
                                      ]
                                    },
                                    {
                                      "ref": "vars.packageDescription.description"
                                    },
                                    {
                                      "ref": "vars.packageDescription.label"
                                    }
                                  ]
                                },
                                "corrects": {
                                  "ref": "vars.packageDescription.corrects"
                                },
                                "complete": {
                                  "ref": "vars.packagePlan.complete"
                                },
                                "feasible": {
                                  "ref": "vars.packagePlan.feasible"
                                },
                                "status": {
                                  "op": "if",
                                  "args": [
                                    {
                                      "op": "eq",
                                      "args": [
                                        {
                                          "ref": "vars.packagePlan.feasible"
                                        },
                                        true
                                      ]
                                    },
                                    "supported",
                                    {
                                      "op": "if",
                                      "args": [
                                        {
                                          "op": "eq",
                                          "args": [
                                            {
                                              "ref": "vars.packagePlan.complete"
                                            },
                                            true
                                          ]
                                        },
                                        "blocked",
                                        "unassessed"
                                      ]
                                    }
                                  ]
                                },
                                "expense": {
                                  "ref": "vars.packagePlan.expense"
                                },
                                "activities": {
                                  "ref": "vars.packagePlan.activities"
                                },
                                "startMinute": {
                                  "ref": "vars.packagePlan.choices.startMinute"
                                },
                                "finishMinute": {
                                  "op": "get",
                                  "args": [
                                    {
                                      "op": "find",
                                      "args": [
                                        {
                                          "ref": "vars.packagePlan.activities"
                                        },
                                        {
                                          "op": "eq",
                                          "args": [
                                            {
                                              "ref": "vars.handoffActivity.id"
                                            },
                                            "handoff"
                                          ]
                                        }
                                      ],
                                      "as": "handoffActivity"
                                    },
                                    "end"
                                  ]
                                },
                                "ownerId": {
                                  "ref": "input.parameters.actorId"
                                },
                                "deadlineMinute": {
                                  "ref": "input.parameters.handoffDeadlineMinute"
                                },
                                "blockers": {
                                  "op": "map",
                                  "args": [
                                    {
                                      "ref": "vars.packagePlan.blockers"
                                    },
                                    {
                                      "op": "get",
                                      "args": [
                                        {
                                          "op": "map",
                                          "args": [
                                            [
                                              {
                                                "op": "get",
                                                "args": [
                                                  {
                                                    "literal": {
                                                      "declared-fault-state": {
                                                        "id": "declared-fault-state",
                                                        "requirement": "COVERAGE",
                                                        "label": "Use an admitted configuration from the published fault catalog",
                                                        "evidence": "A current scoped evidence assessment admitting this fault configuration."
                                                      },
                                                      "published-package-effects": {
                                                        "id": "published-package-effects",
                                                        "requirement": "COVERAGE",
                                                        "label": "Retain the published correction effects of the selected package",
                                                        "evidence": "The author-fixed correction effects from this exact published package version."
                                                      },
                                                      "correct-fault-0": {
                                                        "id": "correct-fault-0",
                                                        "requirement": "SUFFICIENCY",
                                                        "label": "Address The printed code cannot be read whenever it remains possible",
                                                        "evidence": "A complete package addressing The printed code cannot be read, or scoped evidence excluding that fault."
                                                      },
                                                      "correct-fault-1": {
                                                        "id": "correct-fault-1",
                                                        "requirement": "SUFFICIENCY",
                                                        "label": "Address The code leads to the wrong destination whenever it remains possible",
                                                        "evidence": "A complete package addressing The code leads to the wrong destination, or scoped evidence excluding that fault."
                                                      },
                                                      "correct-fault-2": {
                                                        "id": "correct-fault-2",
                                                        "requirement": "SUFFICIENCY",
                                                        "label": "Address The intended checkout is restricted whenever it remains possible",
                                                        "evidence": "A complete package addressing The intended checkout is restricted, or scoped evidence excluding that fault."
                                                      },
                                                      "known-owner": {
                                                        "id": "known-owner",
                                                        "requirement": "ACCESS",
                                                        "label": "Assign the complete work to a recorded responsible person",
                                                        "evidence": "A recorded person responsible for this complete correction package."
                                                      },
                                                      "scoped-package-permission": {
                                                        "id": "scoped-package-permission",
                                                        "requirement": "ACCESS",
                                                        "label": "Hold recorded authority for this package, person, exact configuration, and whole working interval",
                                                        "evidence": "A sourced permission for the selected package and person, matching all six scope fields and covering correction through handoff."
                                                      },
                                                      "resource-calendar": {
                                                        "id": "resource-calendar",
                                                        "requirement": "ACCESS",
                                                        "label": "Keep the full correction, rehearsal, and handoff within resource availability",
                                                        "evidence": "An availability interval covering the complete proposed work."
                                                      },
                                                      "resource-capacity": {
                                                        "id": "resource-capacity",
                                                        "requirement": "ACCESS",
                                                        "label": "Keep all proposed work within recorded resource capacity",
                                                        "evidence": "Enough recorded resource capacity throughout the proposed work."
                                                      },
                                                      "not-in-past": {
                                                        "id": "not-in-past",
                                                        "requirement": "TIME",
                                                        "label": "Start correction at or after the current review time",
                                                        "evidence": "A current proposed start time."
                                                      },
                                                      "handoff-by-cutoff": {
                                                        "id": "handoff-by-cutoff",
                                                        "requirement": "TIME",
                                                        "label": "Finish correction, scoped rehearsal, and handoff before the kit commitment cutoff",
                                                        "evidence": "Durations and resource availability that fit the cutoff, or a revised commitment."
                                                      },
                                                      "package-within-budget": {
                                                        "id": "package-within-budget",
                                                        "requirement": "COST",
                                                        "label": "Keep the complete proposed package within the recorded spending ceiling",
                                                        "evidence": "A current package quote within the spending ceiling, or an approved revised ceiling."
                                                      },
                                                      "quoted-quantity": {
                                                        "id": "quoted-quantity",
                                                        "requirement": "SUFFICIENCY",
                                                        "label": "Use a complete-package quote for the current kit quantity",
                                                        "evidence": "A current complete-package quote and duration explicitly covering the stated kit quantity."
                                                      },
                                                      "minimum-rehearsal": {
                                                        "id": "minimum-rehearsal",
                                                        "requirement": "SUFFICIENCY",
                                                        "label": "Allow at least the published minimum duration for the scoped rehearsal",
                                                        "evidence": "A proposed scoped rehearsal duration meeting the published minimum. This remains a plan, not evidence that rehearsal passed."
                                                      },
                                                      "scoped-package-confirmation": {
                                                        "id": "scoped-package-confirmation",
                                                        "requirement": "CONFIRMATION",
                                                        "label": "Confirm the selected arrangement for this exact gift-kit configuration",
                                                        "evidence": "A sourced positive package confirmation, recorded by a named person, for this exact batch, insert, destination, checkout, device and account, effective at the planned start and valid through handoff."
                                                      }
                                                    }
                                                  },
                                                  {
                                                    "ref": "vars.packageBlocker.constraintId"
                                                  }
                                                ]
                                              }
                                            ],
                                            {
                                              "constraintId": {
                                                "ref": "vars.packageBlocker.constraintId"
                                              },
                                              "requirementId": {
                                                "ref": "vars.packageBlocker.requirement"
                                              },
                                              "scenarioId": {
                                                "ref": "vars.packageBlocker.scenarioId"
                                              },
                                              "message": {
                                                "op": "if",
                                                "args": [
                                                  {
                                                    "op": "isSet",
                                                    "args": [
                                                      {
                                                        "op": "get",
                                                        "args": [
                                                          {
                                                            "ref": "apps.planning.module.labels"
                                                          },
                                                          {
                                                            "op": "stringConcat",
                                                            "args": [
                                                              "constraint.",
                                                              {
                                                                "ref": "vars.packageBlocker.constraintId"
                                                              }
                                                            ]
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "op": "get",
                                                    "args": [
                                                      {
                                                        "ref": "apps.planning.module.labels"
                                                      },
                                                      {
                                                        "op": "stringConcat",
                                                        "args": [
                                                          "constraint.",
                                                          {
                                                            "ref": "vars.packageBlocker.constraintId"
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "op": "if",
                                                    "args": [
                                                      {
                                                        "op": "isSet",
                                                        "args": [
                                                          {
                                                            "ref": "vars.checkMeaning.label"
                                                          }
                                                        ]
                                                      },
                                                      {
                                                        "ref": "vars.checkMeaning.label"
                                                      },
                                                      {
                                                        "op": "stringConcat",
                                                        "args": [
                                                          "Review requirement check ",
                                                          {
                                                            "ref": "vars.packageBlocker.constraintId"
                                                          }
                                                        ]
                                                      }
                                                    ]
                                                  }
                                                ]
                                              },
                                              "neededEvidence": {
                                                "op": "if",
                                                "args": [
                                                  {
                                                    "op": "isSet",
                                                    "args": [
                                                      {
                                                        "ref": "vars.checkMeaning.evidence"
                                                      }
                                                    ]
                                                  },
                                                  {
                                                    "ref": "vars.checkMeaning.evidence"
                                                  },
                                                  "The app author must define the supporting records, scope and responsible role for this added requirement. Inspect the retained native check before proposing work."
                                                ]
                                              },
                                              "ownerId": {
                                                "ref": "input.parameters.actorId"
                                              },
                                              "deadlineMinute": {
                                                "ref": "input.parameters.handoffDeadlineMinute"
                                              }
                                            }
                                          ],
                                          "as": "checkMeaning"
                                        },
                                        0
                                      ]
                                    }
                                  ],
                                  "as": "packageBlocker"
                                },
                                "scenarios": {
                                  "ref": "vars.packagePlan.scenarios"
                                }
                              }
                            ],
                            "as": "packageDescription"
                          },
                          0
                        ]
                      }
                    ],
                    "as": "packagePlan"
                  }
                ],
                {
                  "status": {
                    "ref": "assessment.status"
                  },
                  "finding": {
                    "ref": "assessment.finding"
                  },
                  "coverage": {
                    "ref": "assessment.coverage"
                  },
                  "preference": {
                    "ref": "assessment.preference"
                  },
                  "recommendation": {
                    "ref": "assessment.recommendation"
                  },
                  "plans": {
                    "ref": "vars.publishedPlans"
                  },
                  "recommendedPlans": {
                    "op": "filter",
                    "args": [
                      {
                        "ref": "vars.publishedPlans"
                      },
                      {
                        "op": "any",
                        "args": [
                          {
                            "op": "if",
                            "args": [
                              {
                                "op": "isSet",
                                "args": [
                                  {
                                    "ref": "assessment.recommendation"
                                  }
                                ]
                              },
                              {
                                "ref": "assessment.recommendation.tiedPlanIds"
                              },
                              []
                            ]
                          },
                          {
                            "op": "eq",
                            "args": [
                              {
                                "ref": "vars.tiedPlanId"
                              },
                              {
                                "ref": "vars.recommendedPlan.id"
                              }
                            ]
                          }
                        ],
                        "as": "tiedPlanId"
                      }
                    ],
                    "as": "recommendedPlan"
                  },
                  "recommendedPackageIds": {
                    "op": "unique",
                    "args": [
                      {
                        "op": "map",
                        "args": [
                          {
                            "op": "filter",
                            "args": [
                              {
                                "ref": "vars.publishedPlans"
                              },
                              {
                                "op": "any",
                                "args": [
                                  {
                                    "op": "if",
                                    "args": [
                                      {
                                        "op": "isSet",
                                        "args": [
                                          {
                                            "ref": "assessment.recommendation"
                                          }
                                        ]
                                      },
                                      {
                                        "ref": "assessment.recommendation.tiedPlanIds"
                                      },
                                      []
                                    ]
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "vars.preferredPlanId"
                                      },
                                      {
                                        "ref": "vars.recommendedPackage.id"
                                      }
                                    ]
                                  }
                                ],
                                "as": "preferredPlanId"
                              }
                            ],
                            "as": "recommendedPackage"
                          },
                          {
                            "ref": "vars.selectedPackage.packageId"
                          }
                        ],
                        "as": "selectedPackage"
                      }
                    ]
                  },
                  "qualification": "A supported arrangement is a prospective calculation under the published correction premises. It does not establish completed correction, a passed rehearsal, or actual release authority.",
                  "provenance": {
                    "profileId": "gift-kit-readiness",
                    "profileVersion": "1.0.0",
                    "modelHash": {
                      "ref": "result.identity.modelHash"
                    },
                    "inputHash": {
                      "ref": "result.identity.inputHash"
                    },
                    "caseHash": {
                      "ref": "input.provenance.0.caseHash"
                    },
                    "scopeHash": {
                      "ref": "input.provenance.0.scopeHash"
                    }
                  }
                }
              ],
              "as": "publishedPlans"
            },
            0
          ]
        },
        "acceptWhen": {
          "op": "and",
          "args": [
            {
              "op": "eq",
              "args": [
                {
                  "ref": "result.execution.status"
                },
                "completed"
              ]
            },
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.status"
                },
                "complete"
              ]
            },
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.admission.valid"
                },
                true
              ]
            },
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.coverage.complete"
                },
                true
              ]
            }
          ]
        },
        "checks": [
          {
            "id": "gifting-case-shape",
            "message": "Supply the published gifting case records, units and exact configuration before preparing this assessment.",
            "test": {
              "op": "matchesSchema",
              "args": [
                {
                  "ref": "case"
                },
                {
                  "ref": "definition.metadata.caseSchema"
                }
              ]
            }
          },
          {
            "id": "one-quote-per-package",
            "message": "Supply exactly one quantity-specific quote for every published arrangement; duplicate or missing arrangement quotes cannot be selected silently.",
            "test": {
              "op": "and",
              "args": [
                {
                  "op": "eq",
                  "args": [
                    {
                      "op": "length",
                      "args": [
                        {
                          "op": "map",
                          "args": [
                            {
                              "ref": "case.gifting.work.quotes"
                            },
                            {
                              "ref": "vars.quote.packageId"
                            }
                          ],
                          "as": "quote"
                        }
                      ]
                    },
                    5
                  ]
                },
                {
                  "op": "eq",
                  "args": [
                    {
                      "op": "length",
                      "args": [
                        {
                          "op": "unique",
                          "args": [
                            {
                              "op": "map",
                              "args": [
                                {
                                  "ref": "case.gifting.work.quotes"
                                },
                                {
                                  "ref": "vars.quote.packageId"
                                }
                              ],
                              "as": "quote"
                            }
                          ]
                        }
                      ]
                    },
                    5
                  ]
                },
                {
                  "op": "all",
                  "args": [
                    {
                      "literal": [
                        "rehearse-unchanged",
                        "reprint",
                        "repair-journey",
                        "replace-and-repair",
                        "external-replace-and-repair"
                      ]
                    },
                    {
                      "op": "any",
                      "args": [
                        {
                          "op": "map",
                          "args": [
                            {
                              "ref": "case.gifting.work.quotes"
                            },
                            {
                              "ref": "vars.quote.packageId"
                            }
                          ],
                          "as": "quote"
                        },
                        {
                          "op": "eq",
                          "args": [
                            {
                              "ref": "vars.expectedPackage"
                            },
                            {
                              "ref": "vars.quote"
                            }
                          ]
                        }
                      ],
                      "as": "quote"
                    }
                  ],
                  "as": "expectedPackage"
                }
              ]
            }
          }
        ]
      }
    ],
    "metadata": {
      "patternContext": {
        "primaryStepId": "planning"
      },
      "caseSchema": {
        "type": "object",
        "properties": {
          "gifting": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000,
                "title": "Reference"
              },
              "scope": {
                "type": "object",
                "properties": {
                  "batchId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "title": "Gift-kit batch"
                  },
                  "insertRevision": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "title": "Printed insert revision"
                  },
                  "destinationRevision": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "title": "Approved destination revision"
                  },
                  "checkoutRevision": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "title": "Checkout revision"
                  },
                  "deviceScope": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "title": "Intended device scope"
                  },
                  "accountScope": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "title": "Intended account and offer scope"
                  }
                },
                "required": [
                  "batchId",
                  "insertRevision",
                  "destinationRevision",
                  "checkoutRevision",
                  "deviceScope",
                  "accountScope"
                ],
                "additionalProperties": false,
                "title": "Exact configuration"
              },
              "commitment": {
                "type": "object",
                "properties": {
                  "quantity": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000000,
                    "title": "Committed kits"
                  },
                  "nowMinute": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000000,
                    "title": "Current review time (minute from review origin)"
                  },
                  "handoffDeadlineMinute": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000000,
                    "title": "Gift-kit handoff cutoff (minute from review origin)"
                  },
                  "budgetMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 100000000,
                    "title": "Correction expense limit (USD cents)",
                    "unit": "USD cent"
                  }
                },
                "required": [
                  "quantity",
                  "nowMinute",
                  "handoffDeadlineMinute",
                  "budgetMinor"
                ],
                "additionalProperties": false
              },
              "observations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2000,
                      "title": "Reference"
                    },
                    "checkId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2000,
                      "enum": [
                        "rescan",
                        "decode",
                        "proof",
                        "checkout"
                      ],
                      "title": "Recorded check"
                    },
                    "outcomeId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2000,
                      "enum": [
                        "readable",
                        "unreadable",
                        "approved-target",
                        "wrong-target",
                        "usable",
                        "blocked"
                      ],
                      "title": "Reported result"
                    },
                    "scope": {
                      "type": "object",
                      "properties": {
                        "batchId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Gift-kit batch"
                        },
                        "insertRevision": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Printed insert revision"
                        },
                        "destinationRevision": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Approved destination revision"
                        },
                        "checkoutRevision": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Checkout revision"
                        },
                        "deviceScope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Intended device scope"
                        },
                        "accountScope": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Intended account and offer scope"
                        }
                      },
                      "required": [
                        "batchId",
                        "insertRevision",
                        "destinationRevision",
                        "checkoutRevision",
                        "deviceScope",
                        "accountScope"
                      ],
                      "additionalProperties": false,
                      "title": "Exact configuration"
                    },
                    "observedAtMinute": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 100000000,
                      "title": "Observed at (minute from review origin)"
                    },
                    "source": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2000,
                      "title": "Source reference"
                    },
                    "recordedBy": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2000,
                      "title": "Recorded by"
                    },
                    "originalText": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 20000,
                      "title": "Original report"
                    }
                  },
                  "required": [
                    "id",
                    "checkId",
                    "outcomeId",
                    "scope",
                    "observedAtMinute",
                    "source",
                    "recordedBy",
                    "originalText"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 200,
                "title": "Actual reports"
              },
              "work": {
                "type": "object",
                "properties": {
                  "actorId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000,
                    "title": "Person responsible for the work"
                  },
                  "people": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Reference"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Name"
                        },
                        "role": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Recorded responsibility"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "role"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 200,
                    "title": "Responsible people"
                  },
                  "quotes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "packageId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Complete correction arrangement",
                          "enum": [
                            "rehearse-unchanged",
                            "reprint",
                            "repair-journey",
                            "replace-and-repair",
                            "external-replace-and-repair"
                          ]
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100000000,
                          "title": "Committed kits"
                        },
                        "repairMinutes": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100000000,
                          "title": "Package preparation or correction duration (minutes)"
                        },
                        "repairCostMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000,
                          "title": "Complete arrangement quote (USD cents)",
                          "unit": "USD cent"
                        }
                      },
                      "required": [
                        "packageId",
                        "quantity",
                        "repairMinutes",
                        "repairCostMinor"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 32,
                    "title": "Correction quotes"
                  },
                  "rehearsalMinutes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000000,
                    "title": "Fresh rehearsal duration (minutes)"
                  },
                  "handoffMinutes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000000,
                    "title": "Handoff duration (minutes)"
                  },
                  "resources": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Reference"
                        },
                        "capacity": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000,
                          "title": "Available capacity"
                        },
                        "availableFromMinute": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000,
                          "title": "Available from (minute from review origin)"
                        },
                        "availableThroughMinute": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000,
                          "title": "Available through (minute from review origin)"
                        }
                      },
                      "required": [
                        "id",
                        "capacity",
                        "availableFromMinute",
                        "availableThroughMinute"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 32,
                    "title": "Production resources"
                  },
                  "permissions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Reference"
                        },
                        "packageId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Complete correction arrangement",
                          "enum": [
                            "rehearse-unchanged",
                            "reprint",
                            "repair-journey",
                            "replace-and-repair",
                            "external-replace-and-repair"
                          ]
                        },
                        "actorId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Person responsible for the work"
                        },
                        "scope": {
                          "type": "object",
                          "properties": {
                            "batchId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "title": "Gift-kit batch"
                            },
                            "insertRevision": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "title": "Printed insert revision"
                            },
                            "destinationRevision": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "title": "Approved destination revision"
                            },
                            "checkoutRevision": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "title": "Checkout revision"
                            },
                            "deviceScope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "title": "Intended device scope"
                            },
                            "accountScope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000,
                              "title": "Intended account and offer scope"
                            }
                          },
                          "required": [
                            "batchId",
                            "insertRevision",
                            "destinationRevision",
                            "checkoutRevision",
                            "deviceScope",
                            "accountScope"
                          ],
                          "additionalProperties": false,
                          "title": "Exact configuration"
                        },
                        "validFromMinute": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000,
                          "title": "Permission valid from (minute from review origin)"
                        },
                        "validThroughMinute": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000,
                          "title": "Permission valid through (minute from review origin)"
                        },
                        "source": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "title": "Source reference"
                        }
                      },
                      "required": [
                        "id",
                        "packageId",
                        "actorId",
                        "scope",
                        "validFromMinute",
                        "validThroughMinute",
                        "source"
                      ],
                      "additionalProperties": false
                    },
                    "maxItems": 200,
                    "title": "Recorded permissions"
                  },
                  "confirmations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "packageId",
                        "scope",
                        "confirmed",
                        "validFromMinute",
                        "validThroughMinute",
                        "recordedAtMinute",
                        "source",
                        "recordedBy"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        },
                        "packageId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000,
                          "enum": [
                            "rehearse-unchanged",
                            "reprint",
                            "repair-journey",
                            "replace-and-repair",
                            "external-replace-and-repair"
                          ]
                        },
                        "scope": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "batchId",
                            "insertRevision",
                            "destinationRevision",
                            "checkoutRevision",
                            "deviceScope",
                            "accountScope"
                          ],
                          "properties": {
                            "batchId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            "insertRevision": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            "destinationRevision": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            "checkoutRevision": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            "deviceScope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            "accountScope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            }
                          }
                        },
                        "confirmed": {
                          "type": "boolean"
                        },
                        "validFromMinute": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000
                        },
                        "validThroughMinute": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000
                        },
                        "recordedAtMinute": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000000
                        },
                        "source": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        },
                        "recordedBy": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        }
                      }
                    },
                    "maxItems": 200,
                    "title": "Recorded package confirmations"
                  }
                },
                "required": [
                  "actorId",
                  "people",
                  "quotes",
                  "rehearsalMinutes",
                  "handoffMinutes",
                  "resources",
                  "permissions",
                  "confirmations"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "scope",
              "commitment",
              "observations",
              "work"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "gifting"
        ],
        "additionalProperties": false
      },
      "workbookHints": {
        "keys": {
          "/gifting/observations": [
            "id"
          ],
          "/gifting/work/people": [
            "id"
          ],
          "/gifting/work/quotes": [
            "packageId"
          ],
          "/gifting/work/resources": [
            "id"
          ],
          "/gifting/work/permissions": [
            "id"
          ],
          "/gifting/work/confirmations": [
            "id"
          ]
        },
        "units": {
          "/gifting/commitment/quantity": "gift kit",
          "/gifting/commitment/nowMinute": "minute",
          "/gifting/commitment/handoffDeadlineMinute": "minute",
          "/gifting/commitment/budgetMinor": "USD cent",
          "/gifting/observations/observedAtMinute": "minute",
          "/gifting/work/quotes/quantity": "gift kit",
          "/gifting/work/quotes/repairMinutes": "minute",
          "/gifting/work/quotes/repairCostMinor": "USD cent",
          "/gifting/work/rehearsalMinutes": "minute",
          "/gifting/work/handoffMinutes": "minute",
          "/gifting/work/resources/availableFromMinute": "minute",
          "/gifting/work/resources/availableThroughMinute": "minute",
          "/gifting/work/permissions/validFromMinute": "minute",
          "/gifting/work/permissions/validThroughMinute": "minute",
          "/gifting/work/confirmations/validFromMinute": "minute",
          "/gifting/work/confirmations/validThroughMinute": "minute",
          "/gifting/work/confirmations/recordedAtMinute": "minute"
        }
      },
      "giftingProfile": {
        "id": "gift-kit-readiness",
        "version": "1.0.0",
        "title": "Review gift-kit readiness and corrections",
        "description": "A fictional campaign review: interpret scoped checks, compare complete corrective arrangements, and finish before the handoff cutoff.",
        "faults": [
          {
            "id": "print",
            "label": "The printed code cannot be read",
            "correctionId": "replace-insert"
          },
          {
            "id": "destination",
            "label": "The code leads to the wrong destination",
            "correctionId": "correct-destination"
          },
          {
            "id": "checkout",
            "label": "The intended checkout is restricted",
            "correctionId": "fix-checkout"
          }
        ],
        "states": [
          {
            "id": "none",
            "label": "No modeled fault",
            "faultIds": []
          },
          {
            "id": "print",
            "label": "The printed code cannot be read",
            "faultIds": [
              "print"
            ]
          },
          {
            "id": "destination",
            "label": "The code leads to the wrong destination",
            "faultIds": [
              "destination"
            ]
          },
          {
            "id": "print-destination",
            "label": "The printed code cannot be read; The code leads to the wrong destination",
            "faultIds": [
              "print",
              "destination"
            ]
          },
          {
            "id": "checkout",
            "label": "The intended checkout is restricted",
            "faultIds": [
              "checkout"
            ]
          },
          {
            "id": "print-checkout",
            "label": "The printed code cannot be read; The intended checkout is restricted",
            "faultIds": [
              "print",
              "checkout"
            ]
          },
          {
            "id": "destination-checkout",
            "label": "The code leads to the wrong destination; The intended checkout is restricted",
            "faultIds": [
              "destination",
              "checkout"
            ]
          },
          {
            "id": "print-destination-checkout",
            "label": "The printed code cannot be read; The code leads to the wrong destination; The intended checkout is restricted",
            "faultIds": [
              "print",
              "destination",
              "checkout"
            ]
          }
        ],
        "checks": [
          {
            "id": "rescan",
            "label": "Rescan the printed insert",
            "outcomeIds": [
              "readable",
              "unreadable"
            ],
            "predictions": {
              "none": [
                "readable"
              ],
              "print": [
                "unreadable"
              ],
              "destination": [
                "readable"
              ],
              "print-destination": [
                "unreadable"
              ],
              "checkout": [
                "readable"
              ],
              "print-checkout": [
                "unreadable"
              ],
              "destination-checkout": [
                "readable"
              ],
              "print-destination-checkout": [
                "unreadable"
              ]
            }
          },
          {
            "id": "decode",
            "label": "Decode the printed destination",
            "outcomeIds": [
              "unreadable",
              "approved-target",
              "wrong-target"
            ],
            "predictions": {
              "none": [
                "approved-target"
              ],
              "print": [
                "unreadable"
              ],
              "destination": [
                "wrong-target"
              ],
              "print-destination": [
                "unreadable"
              ],
              "checkout": [
                "approved-target"
              ],
              "print-checkout": [
                "unreadable"
              ],
              "destination-checkout": [
                "wrong-target"
              ],
              "print-destination-checkout": [
                "unreadable"
              ]
            }
          },
          {
            "id": "proof",
            "label": "Inspect the destination in the source artwork",
            "outcomeIds": [
              "approved-target",
              "wrong-target"
            ],
            "predictions": {
              "none": [
                "approved-target"
              ],
              "print": [
                "approved-target"
              ],
              "destination": [
                "wrong-target"
              ],
              "print-destination": [
                "wrong-target"
              ],
              "checkout": [
                "approved-target"
              ],
              "print-checkout": [
                "approved-target"
              ],
              "destination-checkout": [
                "wrong-target"
              ],
              "print-destination-checkout": [
                "wrong-target"
              ]
            }
          },
          {
            "id": "checkout",
            "label": "Try checkout for the intended account",
            "outcomeIds": [
              "usable",
              "blocked"
            ],
            "predictions": {
              "none": [
                "usable"
              ],
              "print": [
                "usable"
              ],
              "destination": [
                "usable"
              ],
              "print-destination": [
                "usable"
              ],
              "checkout": [
                "blocked"
              ],
              "print-checkout": [
                "blocked"
              ],
              "destination-checkout": [
                "blocked"
              ],
              "print-destination-checkout": [
                "blocked"
              ]
            }
          }
        ],
        "packages": [
          {
            "id": "rehearse-unchanged",
            "label": "Prepare, rehearse and hand off unchanged kits",
            "corrects": [],
            "requiresConfirmation": false
          },
          {
            "id": "reprint",
            "label": "Replace the printed inserts",
            "corrects": [
              "replace-insert"
            ],
            "requiresConfirmation": false
          },
          {
            "id": "repair-journey",
            "label": "Correct the destination and checkout",
            "corrects": [
              "correct-destination",
              "fix-checkout"
            ],
            "requiresConfirmation": false
          },
          {
            "id": "replace-and-repair",
            "label": "Replace inserts and repair the journey",
            "corrects": [
              "replace-insert",
              "correct-destination",
              "fix-checkout"
            ],
            "requiresConfirmation": false
          },
          {
            "id": "external-replace-and-repair",
            "label": "External replacement and journey repair",
            "corrects": [
              "replace-insert",
              "correct-destination",
              "fix-checkout"
            ],
            "requiresConfirmation": true
          }
        ],
        "resourceId": "production-team",
        "preference": "lowest-cost",
        "minimumRehearsalMinutes": 5
      },
      "composition": {
        "templateId": "gift-kit-readiness-and-correction",
        "version": "2.0.0",
        "minimumRehearsalMinutes": 5,
        "preference": "lowest-cost"
      },
      "presentation": {
        "version": 1,
        "questions": {
          "case-reference": {
            "type": "string",
            "label": "Scenario reference",
            "help": "Identify this review independently from its batch and exact configuration."
          },
          "configuration": {
            "type": "object",
            "label": "Exact gift-kit configuration",
            "fields": {
              "batchId": {
                "type": "string",
                "label": "Gift-kit batch"
              },
              "insertRevision": {
                "type": "string",
                "label": "Printed insert revision"
              },
              "destinationRevision": {
                "type": "string",
                "label": "Approved destination revision"
              },
              "checkoutRevision": {
                "type": "string",
                "label": "Checkout revision"
              },
              "deviceScope": {
                "type": "string",
                "label": "Intended device scope"
              },
              "accountScope": {
                "type": "string",
                "label": "Intended account and offer scope"
              }
            },
            "help": "Reports and permissions must match this exact six-field scope. Revising it requires reassessing the evidence."
          },
          "commitment": {
            "type": "object",
            "label": "Kit quantity, cutoff and expense",
            "fields": {
              "quantity": {
                "type": "number",
                "label": "Committed kits",
                "integer": true,
                "minimum": 1,
                "maximum": 100000000
              },
              "nowMinute": {
                "type": "number",
                "label": "Current review time (minute from review origin)",
                "integer": true,
                "minimum": 0,
                "maximum": 100000000,
                "help": "Use the same declared time origin throughout this review."
              },
              "handoffDeadlineMinute": {
                "type": "number",
                "label": "Gift-kit handoff cutoff (minute from review origin)",
                "integer": true,
                "minimum": 0,
                "maximum": 100000000,
                "help": "Use the same declared time origin throughout this review."
              },
              "budgetMinor": {
                "type": "number",
                "label": "Correction expense limit",
                "integer": true,
                "minimum": 0,
                "maximum": 100000000,
                "help": "Forms and Excel use US dollars; YAML and JSON store integer USD cents. Quotes cover the complete recorded kit batch.",
                "unit": "USD cent",
                "display": {
                  "kind": "money",
                  "currency": "USD",
                  "divisor": 100
                }
              }
            },
            "help": "Times are minutes from one declared review origin. Quotes cover the complete kit quantity. Monetary inputs are integer USD cents in YAML and JSON; Forms and Excel money cells use US dollars. Quantity does not silently scale quoted work."
          },
          "observations": {
            "type": "array",
            "label": "Actual rehearsal and check reports",
            "items": {
              "type": "object",
              "label": "Record",
              "fields": {
                "id": {
                  "type": "string",
                  "label": "Reference"
                },
                "checkId": {
                  "type": "string",
                  "label": "Recorded check",
                  "options": [
                    {
                      "value": "rescan",
                      "label": "Rescan the printed insert"
                    },
                    {
                      "value": "decode",
                      "label": "Decode the printed destination"
                    },
                    {
                      "value": "proof",
                      "label": "Inspect the destination in the source artwork"
                    },
                    {
                      "value": "checkout",
                      "label": "Try checkout for the intended account"
                    }
                  ]
                },
                "outcomeId": {
                  "type": "string",
                  "label": "Reported result",
                  "options": [
                    {
                      "value": "readable",
                      "label": "Readable"
                    },
                    {
                      "value": "unreadable",
                      "label": "Unreadable"
                    },
                    {
                      "value": "approved-target",
                      "label": "Approved target"
                    },
                    {
                      "value": "wrong-target",
                      "label": "Wrong target"
                    },
                    {
                      "value": "usable",
                      "label": "Usable"
                    },
                    {
                      "value": "blocked",
                      "label": "Blocked"
                    }
                  ]
                },
                "scope": {
                  "type": "object",
                  "label": "Exact configuration",
                  "fields": {
                    "batchId": {
                      "type": "string",
                      "label": "Gift-kit batch"
                    },
                    "insertRevision": {
                      "type": "string",
                      "label": "Printed insert revision"
                    },
                    "destinationRevision": {
                      "type": "string",
                      "label": "Approved destination revision"
                    },
                    "checkoutRevision": {
                      "type": "string",
                      "label": "Checkout revision"
                    },
                    "deviceScope": {
                      "type": "string",
                      "label": "Intended device scope"
                    },
                    "accountScope": {
                      "type": "string",
                      "label": "Intended account and offer scope"
                    }
                  }
                },
                "observedAtMinute": {
                  "type": "number",
                  "label": "Observed at (minute from review origin)",
                  "integer": true,
                  "minimum": 0,
                  "maximum": 100000000,
                  "help": "Use the same declared time origin throughout this review."
                },
                "source": {
                  "type": "string",
                  "label": "Source reference"
                },
                "recordedBy": {
                  "type": "string",
                  "label": "Recorded by"
                },
                "originalText": {
                  "type": "string",
                  "label": "Original report",
                  "multiline": true
                }
              }
            },
            "collapseRecords": true,
            "summaryFields": [
              "id",
              "checkId"
            ],
            "valueLabels": {
              "campaign-owner": "Campaign owner",
              "evidence-reviewer": "Rehearsal checker",
              "production-owner": "Production owner",
              "rehearse-unchanged": "Prepare, rehearse and hand off unchanged kits",
              "reprint": "Replace the printed inserts",
              "repair-journey": "Correct the destination and checkout",
              "replace-and-repair": "Replace inserts and repair the journey",
              "print": "The printed code cannot be read",
              "destination": "The code leads to the wrong destination",
              "checkout": "Try checkout for the intended account",
              "replace-insert": "Replace the printed inserts",
              "correct-destination": "Correct the destination",
              "fix-checkout": "Fix checkout eligibility",
              "rescan": "Rescan the printed insert",
              "decode": "Decode the printed destination",
              "proof": "Inspect the destination in the source artwork",
              "external-replace-and-repair": "External replacement and journey repair"
            },
            "maxItems": 200,
            "help": "Retain exact configuration, observation time, recorder and original source text. The initial broad rehearsal failure does not mean a printed code was unreadable: record only the stated diagnostic result. This profile assumes accurate current scoped reports. Planned or simulated checks are not observations."
          },
          "quotes": {
            "type": "array",
            "label": "Complete correction quotes",
            "items": {
              "type": "object",
              "label": "Record",
              "fields": {
                "packageId": {
                  "type": "string",
                  "label": "Complete correction arrangement",
                  "options": [
                    {
                      "value": "rehearse-unchanged",
                      "label": "Prepare, rehearse and hand off unchanged kits"
                    },
                    {
                      "value": "reprint",
                      "label": "Replace the printed inserts"
                    },
                    {
                      "value": "repair-journey",
                      "label": "Correct the destination and checkout"
                    },
                    {
                      "value": "replace-and-repair",
                      "label": "Replace inserts and repair the journey"
                    },
                    {
                      "value": "external-replace-and-repair",
                      "label": "External replacement and journey repair"
                    }
                  ]
                },
                "quantity": {
                  "type": "number",
                  "label": "Committed kits",
                  "integer": true,
                  "minimum": 1,
                  "maximum": 100000000
                },
                "repairMinutes": {
                  "type": "number",
                  "label": "Package preparation or correction duration (minutes)",
                  "integer": true,
                  "minimum": 1,
                  "maximum": 100000000
                },
                "repairCostMinor": {
                  "type": "number",
                  "label": "Complete arrangement quote",
                  "integer": true,
                  "minimum": 0,
                  "maximum": 100000000,
                  "help": "Forms and Excel use US dollars; YAML and JSON store integer USD cents. Quotes cover the complete recorded kit batch.",
                  "unit": "USD cent",
                  "display": {
                    "kind": "money",
                    "currency": "USD",
                    "divisor": 100
                  }
                }
              }
            },
            "collapseRecords": true,
            "summaryFields": [
              "packageId"
            ],
            "valueLabels": {
              "campaign-owner": "Campaign owner",
              "evidence-reviewer": "Rehearsal checker",
              "production-owner": "Production owner",
              "rehearse-unchanged": "Prepare, rehearse and hand off unchanged kits",
              "reprint": "Replace the printed inserts",
              "repair-journey": "Correct the destination and checkout",
              "replace-and-repair": "Replace inserts and repair the journey",
              "print": "The printed code cannot be read",
              "destination": "The code leads to the wrong destination",
              "checkout": "Try checkout for the intended account",
              "replace-insert": "Replace the printed inserts",
              "correct-destination": "Correct the destination",
              "fix-checkout": "Fix checkout eligibility",
              "rescan": "Rescan the printed insert",
              "decode": "Decode the printed destination",
              "proof": "Inspect the destination in the source artwork",
              "external-replace-and-repair": "External replacement and journey repair"
            },
            "maxItems": 32,
            "help": "Supply every published package quote for this batch. Frozen package effects and task dependencies cannot be edited through quotes."
          },
          "rehearsal": {
            "type": "number",
            "label": "Fresh rehearsal duration",
            "integer": true,
            "minimum": 1,
            "maximum": 100000000,
            "help": "Reserve the complete fresh rehearsal duration, subject to the published minimum. Scheduling it does not establish a passing result."
          },
          "handoff": {
            "type": "number",
            "label": "Handoff duration",
            "integer": true,
            "minimum": 1,
            "maximum": 100000000,
            "help": "Reserve the complete final handoff duration after correction and rehearsal. A calculated finish does not record actual handoff."
          },
          "work-owner": {
            "type": "string",
            "label": "Person responsible for the work",
            "help": "The same recorded person performs the three sequential activities in this bounded profile. Declared responsibility is not authenticated identity."
          },
          "people": {
            "type": "array",
            "label": "Responsible people",
            "items": {
              "type": "object",
              "label": "Record",
              "fields": {
                "id": {
                  "type": "string",
                  "label": "Reference"
                },
                "name": {
                  "type": "string",
                  "label": "Name"
                },
                "role": {
                  "type": "string",
                  "label": "Recorded responsibility"
                }
              }
            },
            "collapseRecords": true,
            "summaryFields": [
              "id",
              "name"
            ],
            "valueLabels": {
              "campaign-owner": "Campaign owner",
              "evidence-reviewer": "Rehearsal checker",
              "production-owner": "Production owner",
              "rehearse-unchanged": "Prepare, rehearse and hand off unchanged kits",
              "reprint": "Replace the printed inserts",
              "repair-journey": "Correct the destination and checkout",
              "replace-and-repair": "Replace inserts and repair the journey",
              "print": "The printed code cannot be read",
              "destination": "The code leads to the wrong destination",
              "checkout": "Try checkout for the intended account",
              "replace-insert": "Replace the printed inserts",
              "correct-destination": "Correct the destination",
              "fix-checkout": "Fix checkout eligibility",
              "rescan": "Rescan the printed insert",
              "decode": "Decode the printed destination",
              "proof": "Inspect the destination in the source artwork",
              "external-replace-and-repair": "External replacement and journey repair"
            },
            "maxItems": 200,
            "help": "A person must be recorded before assignment. Permission is supplied and checked separately."
          },
          "resources": {
            "type": "array",
            "label": "Production capacity and availability",
            "items": {
              "type": "object",
              "label": "Record",
              "fields": {
                "id": {
                  "type": "string",
                  "label": "Reference"
                },
                "capacity": {
                  "type": "number",
                  "label": "Available capacity",
                  "integer": true,
                  "minimum": 0,
                  "maximum": 100000000
                },
                "availableFromMinute": {
                  "type": "number",
                  "label": "Available from (minute from review origin)",
                  "integer": true,
                  "minimum": 0,
                  "maximum": 100000000,
                  "help": "Use the same declared time origin throughout this review."
                },
                "availableThroughMinute": {
                  "type": "number",
                  "label": "Available through (minute from review origin)",
                  "integer": true,
                  "minimum": 0,
                  "maximum": 100000000,
                  "help": "Use the same declared time origin throughout this review."
                }
              }
            },
            "collapseRecords": true,
            "summaryFields": [
              "id",
              "capacity"
            ],
            "valueLabels": {
              "campaign-owner": "Campaign owner",
              "evidence-reviewer": "Rehearsal checker",
              "production-owner": "Production owner",
              "rehearse-unchanged": "Prepare, rehearse and hand off unchanged kits",
              "reprint": "Replace the printed inserts",
              "repair-journey": "Correct the destination and checkout",
              "replace-and-repair": "Replace inserts and repair the journey",
              "print": "The printed code cannot be read",
              "destination": "The code leads to the wrong destination",
              "checkout": "Try checkout for the intended account",
              "replace-insert": "Replace the printed inserts",
              "correct-destination": "Correct the destination",
              "fix-checkout": "Fix checkout eligibility",
              "rescan": "Rescan the printed insert",
              "decode": "Decode the printed destination",
              "proof": "Inspect the destination in the source artwork",
              "external-replace-and-repair": "External replacement and journey repair"
            },
            "maxItems": 32,
            "help": "Available intervals and capacity constrain correction, rehearsal and handoff. This profile has no other booked work or concurrent campaigns."
          },
          "permissions": {
            "type": "array",
            "label": "Recorded arrangement permissions",
            "items": {
              "type": "object",
              "label": "Record",
              "fields": {
                "id": {
                  "type": "string",
                  "label": "Reference"
                },
                "packageId": {
                  "type": "string",
                  "label": "Complete correction arrangement",
                  "options": [
                    {
                      "value": "rehearse-unchanged",
                      "label": "Prepare, rehearse and hand off unchanged kits"
                    },
                    {
                      "value": "reprint",
                      "label": "Replace the printed inserts"
                    },
                    {
                      "value": "repair-journey",
                      "label": "Correct the destination and checkout"
                    },
                    {
                      "value": "replace-and-repair",
                      "label": "Replace inserts and repair the journey"
                    },
                    {
                      "value": "external-replace-and-repair",
                      "label": "External replacement and journey repair"
                    }
                  ]
                },
                "actorId": {
                  "type": "string",
                  "label": "Person responsible for the work"
                },
                "scope": {
                  "type": "object",
                  "label": "Exact configuration",
                  "fields": {
                    "batchId": {
                      "type": "string",
                      "label": "Gift-kit batch"
                    },
                    "insertRevision": {
                      "type": "string",
                      "label": "Printed insert revision"
                    },
                    "destinationRevision": {
                      "type": "string",
                      "label": "Approved destination revision"
                    },
                    "checkoutRevision": {
                      "type": "string",
                      "label": "Checkout revision"
                    },
                    "deviceScope": {
                      "type": "string",
                      "label": "Intended device scope"
                    },
                    "accountScope": {
                      "type": "string",
                      "label": "Intended account and offer scope"
                    }
                  }
                },
                "validFromMinute": {
                  "type": "number",
                  "label": "Permission valid from (minute from review origin)",
                  "integer": true,
                  "minimum": 0,
                  "maximum": 100000000,
                  "help": "Use the same declared time origin throughout this review."
                },
                "validThroughMinute": {
                  "type": "number",
                  "label": "Permission valid through (minute from review origin)",
                  "integer": true,
                  "minimum": 0,
                  "maximum": 100000000,
                  "help": "Use the same declared time origin throughout this review."
                },
                "source": {
                  "type": "string",
                  "label": "Source reference"
                }
              }
            },
            "collapseRecords": true,
            "summaryFields": [
              "id",
              "packageId"
            ],
            "valueLabels": {
              "campaign-owner": "Campaign owner",
              "evidence-reviewer": "Rehearsal checker",
              "production-owner": "Production owner",
              "rehearse-unchanged": "Prepare, rehearse and hand off unchanged kits",
              "reprint": "Replace the printed inserts",
              "repair-journey": "Correct the destination and checkout",
              "replace-and-repair": "Replace inserts and repair the journey",
              "print": "The printed code cannot be read",
              "destination": "The code leads to the wrong destination",
              "checkout": "Try checkout for the intended account",
              "replace-insert": "Replace the printed inserts",
              "correct-destination": "Correct the destination",
              "fix-checkout": "Fix checkout eligibility",
              "rescan": "Rescan the printed insert",
              "decode": "Decode the printed destination",
              "proof": "Inspect the destination in the source artwork",
              "external-replace-and-repair": "External replacement and journey repair"
            },
            "maxItems": 200,
            "help": "The supplied register is stipulated complete. Each permission must match the exact configuration, person and package and cover the full work interval; an empty register supplies no permission."
          },
          "confirmations": {
            "type": "array",
            "label": "Recorded package confirmations",
            "items": {
              "type": "object",
              "label": "Record",
              "fields": {
                "id": {
                  "type": "string",
                  "label": "Reference"
                },
                "packageId": {
                  "type": "string",
                  "label": "Complete correction arrangement",
                  "options": [
                    {
                      "value": "rehearse-unchanged",
                      "label": "Prepare, rehearse and hand off unchanged kits"
                    },
                    {
                      "value": "reprint",
                      "label": "Replace the printed inserts"
                    },
                    {
                      "value": "repair-journey",
                      "label": "Correct the destination and checkout"
                    },
                    {
                      "value": "replace-and-repair",
                      "label": "Replace inserts and repair the journey"
                    },
                    {
                      "value": "external-replace-and-repair",
                      "label": "External replacement and journey repair"
                    }
                  ]
                },
                "scope": {
                  "type": "object",
                  "label": "Exact configuration",
                  "fields": {
                    "batchId": {
                      "type": "string",
                      "label": "Gift-kit batch"
                    },
                    "insertRevision": {
                      "type": "string",
                      "label": "Printed insert revision"
                    },
                    "destinationRevision": {
                      "type": "string",
                      "label": "Approved destination revision"
                    },
                    "checkoutRevision": {
                      "type": "string",
                      "label": "Checkout revision"
                    },
                    "deviceScope": {
                      "type": "string",
                      "label": "Intended device scope"
                    },
                    "accountScope": {
                      "type": "string",
                      "label": "Intended account and offer scope"
                    }
                  }
                },
                "confirmed": {
                  "type": "boolean",
                  "label": "Confirmed"
                },
                "validFromMinute": {
                  "type": "number",
                  "label": "Permission valid from (minute from review origin)",
                  "integer": true,
                  "minimum": 0,
                  "maximum": 100000000,
                  "help": "Use the same declared time origin throughout this review."
                },
                "validThroughMinute": {
                  "type": "number",
                  "label": "Permission valid through (minute from review origin)",
                  "integer": true,
                  "minimum": 0,
                  "maximum": 100000000,
                  "help": "Use the same declared time origin throughout this review."
                },
                "recordedAtMinute": {
                  "type": "number",
                  "label": "Recorded At Minute (minute from review origin)",
                  "integer": true,
                  "minimum": 0,
                  "maximum": 100000000,
                  "help": "Use the same declared time origin throughout this review."
                },
                "source": {
                  "type": "string",
                  "label": "Source reference"
                },
                "recordedBy": {
                  "type": "string",
                  "label": "Recorded by"
                }
              }
            },
            "collapseRecords": true,
            "summaryFields": [
              "id",
              "packageId"
            ],
            "valueLabels": {
              "campaign-owner": "Campaign owner",
              "evidence-reviewer": "Rehearsal checker",
              "production-owner": "Production owner",
              "rehearse-unchanged": "Prepare, rehearse and hand off unchanged kits",
              "reprint": "Replace the printed inserts",
              "repair-journey": "Correct the destination and checkout",
              "replace-and-repair": "Replace inserts and repair the journey",
              "print": "The printed code cannot be read",
              "destination": "The code leads to the wrong destination",
              "checkout": "Try checkout for the intended account",
              "replace-insert": "Replace the printed inserts",
              "correct-destination": "Correct the destination",
              "fix-checkout": "Fix checkout eligibility",
              "rescan": "Rescan the printed insert",
              "decode": "Decode the printed destination",
              "proof": "Inspect the destination in the source artwork",
              "external-replace-and-repair": "External replacement and journey repair"
            },
            "maxItems": 200,
            "help": "Keep the original source and recorder, exact package and six-field configuration, positive or negative status, observation time and validity interval. Empty records establish no confirmation. A confirmation does not replace operating permission or completed correction evidence."
          }
        },
        "groups": [
          {
            "id": "commitment",
            "label": "Commitment",
            "question": "Which gift-kit commitment are we reviewing?",
            "subtabs": [
              {
                "id": "configuration",
                "label": "Batch and configuration",
                "question": "Which exact inserts, destination and checkout are included?",
                "questionIds": [
                  "case-reference",
                  "configuration"
                ]
              },
              {
                "id": "limits",
                "label": "Quantity and limits",
                "question": "How many kits must be ready, by when and within which expense limit?",
                "questionIds": [
                  "commitment"
                ]
              }
            ]
          },
          {
            "id": "evidence",
            "label": "Rehearsal records",
            "question": "What do actual reports establish about this configuration?",
            "subtabs": [
              {
                "id": "reports",
                "label": "Recorded checks",
                "question": "What was checked, what was reported and by whom?",
                "questionIds": [
                  "observations"
                ]
              }
            ]
          },
          {
            "id": "arrangements",
            "label": "Correction arrangements",
            "question": "What complete corrective work is available?",
            "subtabs": [
              {
                "id": "quotes",
                "label": "Quotes and work",
                "question": "What will each correction, fresh rehearsal and handoff require?",
                "questionIds": [
                  "quotes",
                  "rehearsal",
                  "handoff"
                ]
              },
              {
                "id": "resources",
                "label": "People and capacity",
                "question": "Who can perform the work, and when is production capacity available?",
                "questionIds": [
                  "work-owner",
                  "people",
                  "resources"
                ]
              },
              {
                "id": "permissions",
                "label": "Permissions and confirmations",
                "question": "Which exact arrangements and intervals have recorded permission?",
                "questionIds": [
                  "permissions",
                  "confirmations"
                ]
              }
            ]
          },
          {
            "id": "planning",
            "label": "Calculation dependencies",
            "question": "Which calculations support this decision process?",
            "kind": "evaluations",
            "subtabs": []
          },
          {
            "id": "next-action",
            "label": "Decision summary",
            "question": "What must we verify or correct, and can we finish before committing these gift kits?",
            "kind": "brief",
            "subtabs": []
          }
        ],
        "display": {
          "labels": {
            "id": "Reference",
            "batchId": "Gift-kit batch",
            "insertRevision": "Printed insert revision",
            "destinationRevision": "Approved destination revision",
            "checkoutRevision": "Checkout revision",
            "deviceScope": "Intended device scope",
            "accountScope": "Intended account and offer scope",
            "quantity": "Committed kits",
            "nowMinute": "Current review time",
            "handoffDeadlineMinute": "Gift-kit handoff cutoff",
            "budgetMinor": "Correction expense limit",
            "checkId": "Recorded check",
            "outcomeId": "Reported result",
            "observedAtMinute": "Observed at",
            "source": "Source reference",
            "recordedBy": "Recorded by",
            "originalText": "Original report",
            "actorId": "Person responsible for the work",
            "people": "Responsible people",
            "name": "Name",
            "role": "Recorded responsibility",
            "packageId": "Complete correction arrangement",
            "repairMinutes": "Package preparation or correction duration",
            "repairCostMinor": "Complete arrangement quote",
            "rehearsalMinutes": "Fresh rehearsal duration",
            "handoffMinutes": "Handoff duration",
            "capacity": "Available capacity",
            "availableFromMinute": "Available from",
            "availableThroughMinute": "Available through",
            "validFromMinute": "Valid from",
            "validThroughMinute": "Valid through",
            "scope": "Exact configuration",
            "observations": "Actual reports",
            "quotes": "Correction quotes",
            "resources": "Production resources",
            "permissions": "Recorded permissions",
            "status": "Finding",
            "states": "Remaining explanations",
            "faultIds": "Possible problems",
            "requiredCorrections": "Established correction set",
            "correctionsSetEstablished": "The complete correction set is established",
            "records": "How reports were used",
            "ignoredRecords": "Reports outside this review",
            "usedRecords": "Reports used in this calculation",
            "recommended": "Proposed arrangement",
            "recommendedPlans": "Proposed complete arrangements",
            "preferredPlan": "Proposed complete arrangement",
            "arrangement": "Complete arrangement",
            "expense": "Total expense",
            "finishMinute": "Handoff ready",
            "ownerId": "Responsible person",
            "preferredCount": "Equally preferred complete plans",
            "blockers": "Conditions preventing completion",
            "ownerRole": "Responsible role",
            "requiredEvidence": "Evidence needed",
            "deadlineMinute": "Handoff cutoff",
            "confirmations": "Recorded package confirmations",
            "confirmed": "Confirmed for this arrangement",
            "recordedAtMinute": "Recorded at"
          },
          "names": {
            "campaign-owner": "Campaign owner",
            "evidence-reviewer": "Rehearsal checker",
            "production-owner": "Production owner",
            "rehearse-unchanged": "Prepare, rehearse and hand off unchanged kits",
            "reprint": "Replace the printed inserts",
            "repair-journey": "Correct the destination and checkout",
            "replace-and-repair": "Replace inserts and repair the journey",
            "print": "The printed code cannot be read",
            "destination": "The code leads to the wrong destination",
            "checkout": "Try checkout for the intended account",
            "replace-insert": "Replace the printed inserts",
            "correct-destination": "Correct the destination",
            "fix-checkout": "Fix checkout eligibility",
            "rescan": "Rescan the printed insert",
            "decode": "Decode the printed destination",
            "proof": "Inspect the destination in the source artwork",
            "external-replace-and-repair": "External replacement and journey repair"
          },
          "roles": {
            "campaign-owner": "Campaign owner",
            "evidence-reviewer": "Rehearsal checker",
            "production-owner": "Production owner"
          },
          "currency": "USD",
          "amountUnit": "cent",
          "timeUnit": "minute",
          "timeOrigin": "the declared gift-kit review origin",
          "nameSources": [
            {
              "questionId": "people",
              "idField": "id",
              "labelField": "name"
            }
          ],
          "formats": {
            "budgetMinor": "money",
            "repairCostMinor": "money",
            "deadlineMinute": {
              "type": "time",
              "unit": "minute"
            },
            "start": {
              "type": "time",
              "unit": "minute"
            },
            "end": {
              "type": "time",
              "unit": "minute"
            },
            "time": {
              "type": "time",
              "unit": "minute"
            },
            "duration": {
              "type": "duration",
              "unit": "minute"
            },
            "finishMinute": {
              "type": "time",
              "unit": "minute"
            }
          }
        },
        "report": {
          "title": "Plan a gift-kit commitment — results",
          "units": {
            "currency": "USD",
            "amount": "cent",
            "time": "minute"
          },
          "brief": {
            "leadSectionIds": [
              "correction-finding",
              "proposed-arrangement"
            ],
            "sectionOrder": [
              "commitment",
              "correction-finding",
              "proposed-arrangement",
              "plan-comparison",
              "next-responsibility",
              "qualification"
            ]
          },
          "decisionSummary": {
            "actionDetails": [
              {
                "actionId": "resolve-evidence",
                "descriptionPath": "0.nextAction",
                "fields": [
                  {
                    "path": "0.requiredEvidence",
                    "label": "Needed evidence"
                  },
                  {
                    "path": "0.deadlineMinute",
                    "label": "Handoff cutoff",
                    "format": "time"
                  },
                  {
                    "path": "0.deadlineMeaning",
                    "label": "Cutoff meaning"
                  }
                ],
                "links": [
                  {
                    "kind": "report",
                    "tabId": "records",
                    "label": "Inspect rehearsal reports"
                  },
                  {
                    "kind": "input",
                    "questionId": "observations",
                    "label": "Update observed reports"
                  }
                ]
              },
              {
                "actionId": "propose-correction",
                "descriptionPath": "0.nextAction",
                "fields": [
                  {
                    "path": "0.ownerPersonId",
                    "label": "Responsible person",
                    "format": "name"
                  },
                  {
                    "path": "0.requiredEvidence",
                    "label": "Completion evidence"
                  },
                  {
                    "path": "0.deadlineMinute",
                    "label": "Handoff cutoff",
                    "format": "time"
                  }
                ],
                "links": [
                  {
                    "kind": "summary",
                    "sectionId": "options",
                    "label": "Compare correction arrangements"
                  },
                  {
                    "kind": "report",
                    "tabId": "timing",
                    "label": "Inspect work and timing"
                  }
                ]
              },
              {
                "actionId": "revise-commitment",
                "descriptionPath": "0.nextAction",
                "fields": [
                  {
                    "path": "0.requiredEvidence",
                    "label": "Needed evidence"
                  },
                  {
                    "path": "0.deadlineMinute",
                    "label": "Handoff cutoff",
                    "format": "time"
                  },
                  {
                    "path": "0.deadlineMeaning",
                    "label": "Cutoff meaning"
                  }
                ],
                "links": [
                  {
                    "kind": "summary",
                    "sectionId": "assumptions",
                    "label": "Inspect unmet requirements"
                  },
                  {
                    "kind": "report",
                    "tabId": "responsibilities",
                    "label": "Inspect blocker handoff"
                  }
                ]
              },
              {
                "actionId": "calculate-arrangements",
                "descriptionPath": "0.nextAction",
                "fields": [
                  {
                    "path": "0.requiredEvidence",
                    "label": "Needed inputs"
                  },
                  {
                    "path": "0.deadlineMinute",
                    "label": "Handoff cutoff",
                    "format": "time"
                  }
                ],
                "links": [
                  {
                    "kind": "input",
                    "questionId": "quotes",
                    "label": "Check complete correction quotes"
                  },
                  {
                    "kind": "input",
                    "questionId": "permissions",
                    "label": "Check arrangement permissions"
                  }
                ]
              },
              {
                "actionId": "supply-diagnostic-reports",
                "description": "Supply the current, scoped rehearsal reports, then calculate to establish which fault explanations remain possible.",
                "links": [
                  {
                    "kind": "input",
                    "questionId": "observations",
                    "label": "Supply rehearsal reports"
                  },
                  {
                    "kind": "report",
                    "tabId": "records",
                    "label": "Inspect rehearsal basis"
                  }
                ]
              }
            ],
            "format": "workflow-decision-summary/1",
            "sectionId": "decision-summary",
            "sourceStepIds": [
              "evidence"
            ],
            "title": "Decision summary",
            "question": "What must we verify or correct, and can we finish before committing these gift kits?",
            "comparison": {
              "title": "Compare correction options",
              "keyField": "id",
              "labelField": "label",
              "rowsPath": "rows",
              "sourceStepIds": [
                "planning"
              ],
              "columns": [
                {
                  "key": "label",
                  "label": "Complete arrangement"
                },
                {
                  "key": "standing",
                  "label": "Calculated fit"
                },
                {
                  "key": "expense",
                  "label": "Complete expense",
                  "format": "money"
                },
                {
                  "key": "finishMinute",
                  "label": "Handoff ready",
                  "format": {
                    "type": "time",
                    "unit": "minute"
                  }
                }
              ],
              "tabId": "arrangements",
              "primaryField": "canOperate"
            },
            "actionGroups": [
              {
                "id": "available-next-actions",
                "presentation": "actions"
              }
            ],
            "links": [],
            "sections": [
              {
                "id": "options",
                "label": "Options",
                "question": "Which correction arrangements meet the requirements, and which best fits our stated priority?"
              },
              {
                "id": "next-actions",
                "label": "Next actions",
                "question": "What can we do next, given the current findings?"
              },
              {
                "id": "assumptions",
                "label": "Assumptions",
                "question": "What assumptions and limits do these results depend on?"
              },
              {
                "id": "questions",
                "label": "Questions",
                "question": "What still needs to be established before committing the kits?"
              }
            ]
          },
          "readableBrief": {
            "format": "workflow-readable-brief/1",
            "sectionId": "decision-basis",
            "sourceStepIds": []
          },
          "questionViews": [
            {
              "id": "correction-choice",
              "sectionId": "plan-comparison",
              "title": "Correction choice",
              "question": "Why does each complete correction arrangement pass or fail?",
              "selectorLabel": "Correction arrangement",
              "selection": {
                "group": "arrangement",
                "keyField": "id",
                "labelField": "label",
                "initial": {
                  "preferredField": "preferred",
                  "supportedField": "feasible"
                }
              },
              "summary": {
                "fields": [
                  {
                    "key": "feasible",
                    "label": "Meets the recorded requirements",
                    "presentation": "text",
                    "format": "boolean"
                  },
                  {
                    "key": "expense",
                    "label": "Complete correction expense",
                    "presentation": "metric",
                    "format": "money"
                  },
                  {
                    "key": "finishMinute",
                    "label": "Handoff ready",
                    "presentation": "metric",
                    "format": {
                      "type": "time",
                      "unit": "minute"
                    }
                  }
                ]
              },
              "comparison": {
                "title": "Compare correction arrangements",
                "columns": [
                  {
                    "key": "label",
                    "label": "Correction arrangement",
                    "presentation": "text"
                  },
                  {
                    "key": "feasible",
                    "label": "Meets requirements",
                    "presentation": "text",
                    "format": "boolean"
                  },
                  {
                    "key": "expense",
                    "label": "Complete expense",
                    "presentation": "text",
                    "format": "money"
                  },
                  {
                    "key": "finishMinute",
                    "label": "Handoff ready",
                    "presentation": "text",
                    "format": {
                      "type": "time",
                      "unit": "minute"
                    }
                  }
                ]
              },
              "details": [
                {
                  "id": "conditions",
                  "title": "Requirements",
                  "question": "Which recorded requirements prevent this arrangement?",
                  "fields": [
                    {
                      "key": "blockers",
                      "label": "Conditions preventing this arrangement",
                      "presentation": "records"
                    }
                  ]
                }
              ]
            }
          ],
          "supportingReports": {
            "format": "supporting-reports/1",
            "reports": [
              {
                "id": "arrangements",
                "label": "Correction choice",
                "question": "Why does each complete correction arrangement pass or fail?",
                "selection": {
                  "group": "arrangement",
                  "keyField": "id",
                  "labelField": "label"
                },
                "template": "option-details/1",
                "source": {
                  "kind": "question-view",
                  "viewId": "correction-choice"
                }
              },
              {
                "id": "timing",
                "label": "Work and timing",
                "question": "When does each arrangement perform the selected activity?",
                "selection": {
                  "group": "arrangement",
                  "keyField": "id",
                  "labelField": "id"
                },
                "template": "timeline/1",
                "source": {
                  "kind": "commitment-schedules",
                  "stepIds": [
                    "planning"
                  ]
                }
              },
              {
                "id": "records",
                "label": "Rehearsal basis",
                "question": "Which rehearsal records were used or excluded, and why?",
                "template": "records/1",
                "source": {
                  "kind": "brief-section",
                  "sectionId": "correction-finding",
                  "rowsPath": "records"
                },
                "bindings": {
                  "columns": [
                    {
                      "key": "checkId",
                      "label": "Rehearsal check",
                      "format": "name"
                    },
                    {
                      "key": "outcomeId",
                      "label": "Observed result",
                      "format": "name"
                    },
                    {
                      "key": "originalText",
                      "label": "Recorded observation"
                    },
                    {
                      "key": "disposition",
                      "label": "Use in this calculation",
                      "format": "name"
                    },
                    {
                      "key": "reason",
                      "label": "Why it is used or excluded"
                    }
                  ]
                }
              },
              {
                "id": "responsibilities",
                "label": "Blocker handoff",
                "question": "Who should resolve each blocker, with what evidence and by when?",
                "navigation": "advanced",
                "template": "records/1",
                "source": {
                  "kind": "brief-section",
                  "sectionId": "next-responsibility",
                  "rowsPath": ""
                },
                "bindings": {
                  "columns": [
                    {
                      "key": "nextAction",
                      "label": "Next Action"
                    },
                    {
                      "key": "ownerRole",
                      "label": "Responsible role"
                    },
                    {
                      "key": "ownerPersonId",
                      "label": "Owner Person Id"
                    },
                    {
                      "key": "requiredEvidence",
                      "label": "Evidence needed"
                    },
                    {
                      "key": "deadlineMinute",
                      "label": "Handoff cutoff",
                      "format": {
                        "type": "time",
                        "unit": "minute"
                      }
                    }
                  ]
                }
              },
              {
                "id": "conditions",
                "label": "Requirements",
                "question": "What would resolve each unmet requirement?",
                "navigation": "advanced",
                "template": "records/1",
                "source": {
                  "kind": "brief-section",
                  "sectionId": "decision-requirements",
                  "rowsPath": ""
                },
                "bindings": {
                  "columns": [
                    {
                      "key": "arrangement",
                      "label": "Arrangement"
                    },
                    {
                      "key": "condition",
                      "label": "Unmet condition"
                    },
                    {
                      "key": "requiredEvidence",
                      "label": "What would resolve it"
                    },
                    {
                      "key": "deadlineMinute",
                      "label": "Handoff cutoff",
                      "format": {
                        "type": "time",
                        "unit": "minute"
                      }
                    }
                  ]
                }
              }
            ]
          }
        },
        "workflowMap": {
          "title": "How the gift-kit answer is calculated",
          "description": "Diagnostic reports first establish the corrections needed. Complete correction arrangements are then compared using the same kit configuration and handoff commitment.",
          "steps": {
            "evidence": {
              "label": "Establish required kit corrections",
              "description": "Interpret the actual diagnostic reports within the declared fault and report-error bounds."
            },
            "planning": {
              "label": "Compare complete correction arrangements",
              "description": "Apply the established corrections to complete work packages, including rehearsal, handoff, people, resources, permissions and expense.",
              "inactiveReasons": [
                {
                  "id": "corrections-not-established",
                  "label": "The reports have not established the required corrections. Supply resolving reports or revise the diagnostic assumptions before comparing correction arrangements.",
                  "when": {
                    "op": "and",
                    "args": [
                      {
                        "ref": "conditions.reports-current"
                      },
                      {
                        "op": "ne",
                        "args": [
                          {
                            "ref": "steps.evidence.output.status"
                          },
                          "complete"
                        ]
                      }
                    ]
                  }
                }
              ]
            }
          }
        }
      },
      "qualification": "Fictional bounded gifting review. The fault catalog, accurate scoped reports, correction effects and complete permission register are authored premises. A feasible plan is prospective: it does not prove completed correction, a passing rehearsal, campaign effectiveness or actual release. No probability, economic learning value, or adaptive investigation policy is inferred.",
      "calculationSource": {
        "definitionHash": "ef8be37b85d8f1d0104115a033a7fb878f3f60c1b067f337b9c13492dd27c388",
        "packageHash": "2dbc1160dfb58e2b4365ec9eaae1f9f27617c6aaa5b482372f5cc1a007e6f443",
        "qualification": "Calculation from supplied scenario values. No answer or finding has been accepted by a reviewer."
      },
      "caseStart": {
        "starterMeaning": "example",
        "supportsOwnData": true,
        "scope": "The authored gift-kit checks and preparation arrangements within one handoff window. Supply campaign records and operating inputs; a different preparation method or rule requires adaptation."
      }
    },
    "brief": {
      "sections": [
        {
          "id": "commitment",
          "title": "Which gift-kit commitment is being reviewed?",
          "value": {
            "scope": {
              "ref": "case.gifting.scope"
            },
            "commitment": {
              "ref": "case.gifting.commitment"
            }
          }
        },
        {
          "id": "correction-finding",
          "title": "What do the actual reports establish?",
          "value": {
            "ref": "steps.evidence.output"
          }
        },
        {
          "id": "proposed-arrangement",
          "title": "Which complete arrangement can we propose?",
          "value": {
            "op": "if",
            "args": [
              {
                "ref": "conditions.arrangements-current"
              },
              {
                "op": "if",
                "args": [
                  {
                    "ref": "conditions.has-recommended-arrangements"
                  },
                  {
                    "preferredPlan": {
                      "arrangement": {
                        "op": "get",
                        "args": [
                          {
                            "op": "get",
                            "args": [
                              {
                                "ref": "steps.planning.output.recommendedPlans"
                              },
                              0
                            ]
                          },
                          "label"
                        ]
                      },
                      "expense": {
                        "op": "get",
                        "args": [
                          {
                            "op": "get",
                            "args": [
                              {
                                "ref": "steps.planning.output.recommendedPlans"
                              },
                              0
                            ]
                          },
                          "expense"
                        ]
                      },
                      "finishMinute": {
                        "op": "get",
                        "args": [
                          {
                            "op": "get",
                            "args": [
                              {
                                "ref": "steps.planning.output.recommendedPlans"
                              },
                              0
                            ]
                          },
                          "finishMinute"
                        ]
                      },
                      "ownerId": {
                        "op": "get",
                        "args": [
                          {
                            "op": "get",
                            "args": [
                              {
                                "ref": "steps.planning.output.recommendedPlans"
                              },
                              0
                            ]
                          },
                          "ownerId"
                        ]
                      },
                      "preferredCount": {
                        "op": "length",
                        "args": [
                          {
                            "ref": "steps.planning.output.recommendedPlans"
                          }
                        ]
                      }
                    },
                    "qualification": "This is a proposed complete arrangement under the reviewed basis. Any equally preferred alternatives and their complete records remain in the plan report. Work has not been performed or authorized by this calculation."
                  },
                  {
                    "finding": "No declared complete arrangement meets all recorded requirements.",
                    "nextAction": "Inspect the failed requirements before revising the records or commitment."
                  }
                ]
              },
              null
            ]
          }
        },
        {
          "id": "plan-comparison",
          "title": "How do the complete arrangements compare?",
          "value": {
            "op": "if",
            "args": [
              {
                "ref": "conditions.arrangements-current"
              },
              {
                "op": "map",
                "args": [
                  {
                    "ref": "steps.planning.output.plans"
                  },
                  {
                    "id": {
                      "ref": "vars.comparisonPlan.id"
                    },
                    "label": {
                      "ref": "vars.comparisonPlan.label"
                    },
                    "feasible": {
                      "ref": "vars.comparisonPlan.feasible"
                    },
                    "expense": {
                      "ref": "vars.comparisonPlan.expense"
                    },
                    "finishMinute": {
                      "ref": "vars.comparisonPlan.finishMinute"
                    },
                    "blockers": {
                      "ref": "vars.comparisonPlan.blockers"
                    },
                    "preferred": {
                      "op": "and",
                      "args": [
                        {
                          "ref": "vars.comparisonPlan.feasible"
                        },
                        {
                          "op": "any",
                          "args": [
                            {
                              "ref": "steps.planning.output.recommendedPackageIds"
                            },
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "ref": "vars.preferredId"
                                },
                                {
                                  "ref": "vars.comparisonPlan.packageId"
                                }
                              ]
                            }
                          ],
                          "as": "preferredId"
                        }
                      ]
                    }
                  }
                ],
                "as": "comparisonPlan"
              },
              null
            ]
          }
        },
        {
          "id": "next-responsibility",
          "title": "Who should do what next?",
          "value": {
            "op": "concat",
            "args": [
              {
                "ref": "actions.resolve-evidence.value"
              },
              {
                "ref": "actions.propose-correction.value"
              },
              {
                "ref": "actions.revise-commitment.value"
              },
              {
                "ref": "actions.calculate-arrangements.value"
              }
            ]
          }
        },
        {
          "id": "qualification",
          "title": "What does this review establish?",
          "value": {
            "meaning": "Fictional bounded gifting review. The fault catalog, accurate scoped reports, correction effects and complete permission register are authored premises. A feasible plan is prospective: it does not prove completed correction, a passing rehearsal, campaign effectiveness or actual release. No probability, economic learning value, or adaptive investigation policy is inferred.",
            "completionMeaning": "The relevant assessments have been reviewed, including findings that every arrangement is blocked. Actual operational completion remains separate."
          }
        },
        {
          "id": "decision-summary",
          "title": "Decision summary",
          "value": {
            "op": "if",
            "args": [
              {
                "ref": "conditions.arrangements-current"
              },
              {
                "status": {
                  "op": "if",
                  "args": [
                    {
                      "ref": "conditions.has-recommended-arrangements"
                    },
                    {
                      "op": "if",
                      "args": [
                        {
                          "op": "gt",
                          "args": [
                            {
                              "op": "length",
                              "args": [
                                {
                                  "ref": "steps.planning.output.recommendedPlans"
                                }
                              ]
                            },
                            1
                          ]
                        },
                        "choice",
                        "supported"
                      ]
                    },
                    "blocked"
                  ]
                },
                "heading": {
                  "op": "if",
                  "args": [
                    {
                      "ref": "conditions.has-recommended-arrangements"
                    },
                    {
                      "op": "if",
                      "args": [
                        {
                          "op": "gt",
                          "args": [
                            {
                              "op": "length",
                              "args": [
                                {
                                  "ref": "steps.planning.output.recommendedPlans"
                                }
                              ]
                            },
                            1
                          ]
                        },
                        "Several correction arrangements share the preferred result.",
                        {
                          "op": "stringConcat",
                          "args": [
                            "“",
                            {
                              "op": "get",
                              "args": [
                                {
                                  "op": "get",
                                  "args": [
                                    {
                                      "ref": "steps.planning.output.recommendedPlans"
                                    },
                                    0
                                  ]
                                },
                                "label"
                              ]
                            },
                            "” is the lowest-expense supported arrangement."
                          ]
                        }
                      ]
                    },
                    "No listed correction arrangement meets the recorded requirements."
                  ]
                },
                "detail": "The comparison includes the complete correction work, fresh rehearsal and handoff for the recorded gift-kit configuration.",
                "priorityLabel": "Lowest complete expense, then earliest handoff",
                "rows": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "steps.planning.output.plans"
                    },
                    {
                      "id": {
                        "ref": "vars.plan.id"
                      },
                      "label": {
                        "ref": "vars.plan.label"
                      },
                      "standing": {
                        "op": "if",
                        "args": [
                          {
                            "ref": "vars.plan.feasible"
                          },
                          {
                            "op": "if",
                            "args": [
                              {
                                "op": "any",
                                "args": [
                                  {
                                    "ref": "steps.planning.output.recommendedPackageIds"
                                  },
                                  {
                                    "op": "eq",
                                    "args": [
                                      {
                                        "ref": "vars.preferredId"
                                      },
                                      {
                                        "ref": "vars.plan.packageId"
                                      }
                                    ]
                                  }
                                ],
                                "as": "preferredId"
                              },
                              "Preferred",
                              "Meets requirements"
                            ]
                          },
                          "Blocked"
                        ]
                      },
                      "expense": {
                        "ref": "vars.plan.expense"
                      },
                      "finishMinute": {
                        "ref": "vars.plan.finishMinute"
                      },
                      "condition": {
                        "op": "if",
                        "args": [
                          {
                            "op": "eq",
                            "args": [
                              {
                                "op": "length",
                                "args": [
                                  {
                                    "ref": "vars.plan.blockers"
                                  }
                                ]
                              },
                              1
                            ]
                          },
                          {
                            "op": "get",
                            "args": [
                              {
                                "op": "get",
                                "args": [
                                  {
                                    "ref": "vars.plan.blockers"
                                  },
                                  0
                                ]
                              },
                              "message"
                            ]
                          },
                          {
                            "op": "if",
                            "args": [
                              {
                                "op": "gt",
                                "args": [
                                  {
                                    "op": "length",
                                    "args": [
                                      {
                                        "ref": "vars.plan.blockers"
                                      }
                                    ]
                                  },
                                  1
                                ]
                              },
                              {
                                "op": "stringConcat",
                                "args": [
                                  {
                                    "op": "stringify",
                                    "args": [
                                      {
                                        "op": "length",
                                        "args": [
                                          {
                                            "ref": "vars.plan.blockers"
                                          }
                                        ]
                                      }
                                    ]
                                  },
                                  " unmet requirements; inspect Requirements"
                                ]
                              },
                              "None"
                            ]
                          }
                        ]
                      },
                      "canOperate": {
                        "ref": "vars.plan.feasible"
                      }
                    }
                  ],
                  "as": "plan"
                },
                "metrics": [
                  {
                    "id": "arrangement-expense",
                    "label": "Supported arrangement expense",
                    "value": {
                      "op": "if",
                      "args": [
                        {
                          "ref": "conditions.has-recommended-arrangements"
                        },
                        {
                          "op": "get",
                          "args": [
                            {
                              "op": "get",
                              "args": [
                                {
                                  "ref": "steps.planning.output.recommendedPlans"
                                },
                                0
                              ]
                            },
                            "expense"
                          ]
                        },
                        null
                      ]
                    },
                    "format": "money"
                  },
                  {
                    "id": "handoff-ready",
                    "label": "Supported handoff ready",
                    "value": {
                      "op": "if",
                      "args": [
                        {
                          "ref": "conditions.has-recommended-arrangements"
                        },
                        {
                          "op": "get",
                          "args": [
                            {
                              "op": "get",
                              "args": [
                                {
                                  "ref": "steps.planning.output.recommendedPlans"
                                },
                                0
                              ]
                            },
                            "finishMinute"
                          ]
                        },
                        null
                      ]
                    },
                    "format": {
                      "type": "time",
                      "unit": "minute"
                    }
                  }
                ],
                "conditions": [],
                "qualification": "Calculated fit covers this recorded configuration; correction and rehearsal still need to be performed."
              },
              {
                "status": "unavailable",
                "heading": "Resolve the diagnostic reports before calculating a correction arrangement.",
                "rows": [],
                "metrics": [],
                "conditions": []
              }
            ]
          }
        },
        {
          "id": "decision-requirements",
          "title": "Unmet gift-kit requirements",
          "value": {
            "op": "if",
            "args": [
              {
                "ref": "conditions.arrangements-current"
              },
              {
                "op": "flatMap",
                "args": [
                  {
                    "ref": "steps.planning.output.plans"
                  },
                  {
                    "op": "map",
                    "args": [
                      {
                        "ref": "vars.plan.blockers"
                      },
                      {
                        "arrangement": {
                          "ref": "vars.plan.label"
                        },
                        "condition": {
                          "ref": "vars.blocker.message"
                        },
                        "requiredEvidence": {
                          "ref": "vars.blocker.neededEvidence"
                        },
                        "deadlineMinute": {
                          "ref": "vars.blocker.deadlineMinute"
                        }
                      }
                    ],
                    "as": "blocker"
                  }
                ],
                "as": "plan"
              },
              []
            ]
          }
        },
        {
          "id": "decision-basis",
          "title": "Material gift-kit basis",
          "value": {
            "caseLabel": {
              "ref": "case.gifting.id"
            },
            "scope": "One gift-kit batch under the recorded insert, destination and checkout revisions. Compare only the authored complete preparation packages across every remaining permitted explanation; a prospective fit does not establish completed correction, rehearsal or handoff. Recipient experience and campaign effectiveness are outside this calculation.",
            "assumptions": [
              "Current reports are treated as accurate only for their recorded batch, revisions, device and account scope. All declared fault combinations remain possible until excluded by those reports.",
              "Correction effects are authored planning assumptions. One complete static preparation package must work across every admitted fault combination; the calculation does not construct an adaptive sequence of checks.",
              "Each complete-package quotation must match the stated kit quantity and include its own duration and expense. Quantity does not automatically scale either amount.",
              "The recorded person, production resource, access and permission intervals apply throughout correction, scoped rehearsal and handoff. Available budget or a passing calculation does not supply missing permission."
            ],
            "unresolvedQuestions": [
              {
                "id": "actual-completion",
                "label": "Has the selected correction work finished, passed a rehearsal for the exact kit configuration, and completed handoff?",
                "detail": "Retain the actual correction, rehearsal and handoff evidence. A passing prospective arrangement does not establish completed work."
              }
            ]
          }
        }
      ],
      "actions": [
        {
          "id": "resolve-evidence",
          "label": "Resolve the conflicting rehearsal reports",
          "when": {
            "ref": "conditions.offer-resolve-evidence"
          },
          "value": [
            {
              "nextAction": "Resolve the conflicting current reports before selecting corrective work.",
              "ownerRole": "evidence-reviewer",
              "requiredEvidence": "Review the retained original reports and exact versions; record a corrected, newly reviewed evidence basis.",
              "deadlineMinute": {
                "ref": "case.gifting.commitment.handoffDeadlineMinute"
              },
              "deadlineMeaning": "Gift-kit handoff cutoff, not a calculated latest investigation time."
            }
          ]
        },
        {
          "id": "propose-correction",
          "label": "Choose among the supported complete correction arrangements",
          "when": {
            "ref": "conditions.offer-propose-correction"
          },
          "value": [
            {
              "nextAction": "Review the proposed complete arrangement with its responsible person; obtain any operational approval and record actual work separately.",
              "ownerRole": "production-owner",
              "ownerPersonId": {
                "ref": "case.gifting.work.actorId"
              },
              "requiredEvidence": "Actual package preparation or correction completion as applicable, the fresh scoped rehearsal result and the final handoff record. The proposal does not supply these records.",
              "deadlineMinute": {
                "ref": "case.gifting.commitment.handoffDeadlineMinute"
              },
              "deadlineMeaning": "Gift-kit handoff cutoff."
            }
          ]
        },
        {
          "id": "revise-commitment",
          "label": "Resolve blockers or revise the gift-kit commitment",
          "when": {
            "ref": "conditions.offer-revise-commitment"
          },
          "value": [
            {
              "nextAction": "Resolve the listed failed requirements or revise the gift-kit commitment before proceeding.",
              "ownerRole": "campaign-owner",
              "requiredEvidence": "The native plan findings identify the failed correction, capacity, timing, cost or permission requirement. Supply revised reviewed records and reassess.",
              "deadlineMinute": {
                "ref": "case.gifting.commitment.handoffDeadlineMinute"
              },
              "deadlineMeaning": "Gift-kit handoff cutoff; a blocked plan may require an earlier decision."
            }
          ]
        },
        {
          "id": "calculate-arrangements",
          "label": "Calculate complete correction arrangements",
          "when": {
            "ref": "conditions.offer-calculate-arrangements"
          },
          "value": [
            {
              "nextAction": "Assess complete correction arrangements against every remaining explanation.",
              "ownerRole": "production-owner",
              "requiredEvidence": "Reviewed correction quotes, durations, resources and exact arrangement permissions.",
              "deadlineMinute": {
                "ref": "case.gifting.commitment.handoffDeadlineMinute"
              }
            }
          ]
        },
        {
          "id": "supply-diagnostic-reports",
          "label": "Supply or calculate the current diagnostic reports",
          "when": {
            "ref": "conditions.offer-supply-diagnostic-reports"
          },
          "value": []
        }
      ],
      "completion": {
        "op": "and",
        "args": [
          {
            "ref": "conditions.reports-current"
          },
          {
            "op": "or",
            "args": [
              {
                "ref": "conditions.arrangements-current"
              },
              {
                "op": "eq",
                "args": [
                  {
                    "ref": "steps.planning.status"
                  },
                  "not-applicable"
                ]
              }
            ]
          }
        ]
      }
    },
    "execution": {
      "mode": "calculation"
    },
    "conditions": [
      {
        "id": "reports-current",
        "label": "The diagnostic reports have been calculated",
        "test": {
          "op": "eq",
          "args": [
            {
              "ref": "steps.evidence.status"
            },
            "complete"
          ]
        }
      },
      {
        "id": "corrections-established",
        "label": "The diagnostic reports establish the required corrections",
        "test": {
          "op": "eq",
          "args": [
            {
              "ref": "steps.evidence.output.status"
            },
            "complete"
          ]
        }
      },
      {
        "id": "arrangements-current",
        "label": "Complete correction arrangements have been calculated",
        "test": {
          "op": "eq",
          "args": [
            {
              "ref": "steps.planning.status"
            },
            "complete"
          ]
        }
      },
      {
        "id": "has-recommended-arrangements",
        "label": "At least one complete correction arrangement meets the requirements",
        "test": {
          "op": "gt",
          "args": [
            {
              "op": "length",
              "args": [
                {
                  "ref": "steps.planning.output.recommendedPlans"
                }
              ]
            },
            0
          ]
        }
      },
      {
        "id": "offer-resolve-evidence",
        "label": "Resolve the conflicting rehearsal reports",
        "test": {
          "op": "and",
          "args": [
            {
              "ref": "conditions.reports-current"
            },
            {
              "op": "not",
              "args": [
                {
                  "ref": "conditions.corrections-established"
                }
              ]
            }
          ]
        }
      },
      {
        "id": "offer-propose-correction",
        "label": "Review the proposed complete correction arrangement",
        "test": {
          "op": "and",
          "args": [
            {
              "ref": "conditions.arrangements-current"
            },
            {
              "ref": "conditions.has-recommended-arrangements"
            }
          ]
        }
      },
      {
        "id": "offer-revise-commitment",
        "label": "Resolve blockers or revise the gift-kit commitment",
        "test": {
          "op": "and",
          "args": [
            {
              "ref": "conditions.arrangements-current"
            },
            {
              "op": "eq",
              "args": [
                {
                  "op": "length",
                  "args": [
                    {
                      "ref": "steps.planning.output.recommendedPlans"
                    }
                  ]
                },
                0
              ]
            }
          ]
        }
      },
      {
        "id": "offer-calculate-arrangements",
        "label": "Calculate complete correction arrangements",
        "test": {
          "op": "and",
          "args": [
            {
              "ref": "conditions.reports-current"
            },
            {
              "ref": "conditions.corrections-established"
            },
            {
              "op": "not",
              "args": [
                {
                  "ref": "conditions.arrangements-current"
                }
              ]
            }
          ]
        }
      },
      {
        "id": "offer-supply-diagnostic-reports",
        "label": "Supply or calculate the current diagnostic reports",
        "test": {
          "op": "not",
          "args": [
            {
              "ref": "conditions.reports-current"
            }
          ]
        }
      }
    ],
    "decisionProcess": {
      "title": "Decide how to complete the gift-kit handoff",
      "description": "Establish the corrections required by the actual diagnostic reports, then compare complete correction arrangements. A calculated arrangement does not establish that correction work, rehearsal or handoff has happened.",
      "entryNodeIds": [
        "define-kit-commitment"
      ],
      "nodes": [
        {
          "id": "define-kit-commitment",
          "kind": "stage",
          "label": "Define the kit configuration and handoff",
          "questionIds": [
            "configuration",
            "commitment",
            "people",
            "resources",
            "permissions"
          ]
        },
        {
          "id": "establish-corrections",
          "kind": "stage",
          "label": "Establish the required kit corrections",
          "stepIds": [
            "evidence"
          ],
          "questionIds": [
            "observations"
          ],
          "sectionIds": [
            "correction-finding"
          ]
        },
        {
          "id": "corrections-supported",
          "kind": "decision",
          "label": "Do the diagnostic reports establish the corrections?",
          "conditionId": "corrections-established"
        },
        {
          "id": "compare-corrections",
          "kind": "stage",
          "label": "Compare complete correction arrangements",
          "stepIds": [
            "planning"
          ],
          "questionIds": [
            "quotes",
            "rehearsal",
            "handoff"
          ],
          "sectionIds": [
            "plan-comparison"
          ]
        },
        {
          "id": "correction-arrangement-feasible",
          "kind": "decision",
          "label": "Does a complete correction arrangement fit?",
          "conditionId": "has-recommended-arrangements"
        },
        {
          "id": "action-resolve-evidence",
          "kind": "action",
          "label": "Resolve the conflicting rehearsal reports",
          "actionId": "resolve-evidence"
        },
        {
          "id": "action-propose-correction",
          "kind": "action",
          "label": "Compare the supported complete correction arrangement",
          "actionId": "propose-correction"
        },
        {
          "id": "action-revise-commitment",
          "kind": "action",
          "label": "Resolve blockers or revise the gift-kit commitment",
          "actionId": "revise-commitment"
        },
        {
          "id": "action-calculate-arrangements",
          "kind": "action",
          "label": "Calculate complete correction arrangements",
          "actionId": "calculate-arrangements"
        },
        {
          "id": "use-calculated-arrangement",
          "kind": "outcome",
          "label": "Use the calculated arrangement to choose the next operating action",
          "description": "Arrange any required approval and perform the work separately; the calculation is not completion evidence.",
          "sectionIds": [
            "proposed-arrangement",
            "next-responsibility"
          ]
        },
        {
          "id": "action-supply-diagnostic-reports",
          "kind": "action",
          "label": "Supply or calculate the current diagnostic reports",
          "actionId": "supply-diagnostic-reports"
        }
      ],
      "edges": [
        {
          "id": "define-kit-commitment-to-establish-corrections",
          "from": "define-kit-commitment",
          "to": "establish-corrections",
          "label": "Use the exact kit configuration"
        },
        {
          "id": "establish-corrections-to-corrections-supported",
          "from": "establish-corrections",
          "to": "corrections-supported",
          "label": "Use the diagnostic finding"
        },
        {
          "id": "corrections-supported-to-compare-corrections-true",
          "from": "corrections-supported",
          "to": "compare-corrections",
          "label": "Corrections established",
          "outcome": "true"
        },
        {
          "id": "corrections-supported-to-action-resolve-evidence-false",
          "from": "corrections-supported",
          "to": "action-resolve-evidence",
          "label": "Reports do not establish usable corrections",
          "outcome": "false"
        },
        {
          "id": "compare-corrections-to-correction-arrangement-feasible",
          "from": "compare-corrections",
          "to": "correction-arrangement-feasible",
          "label": "Use complete-plan findings"
        },
        {
          "id": "correction-arrangement-feasible-to-action-propose-correction-true",
          "from": "correction-arrangement-feasible",
          "to": "action-propose-correction",
          "label": "A complete arrangement fits",
          "outcome": "true"
        },
        {
          "id": "correction-arrangement-feasible-to-action-revise-commitment-false",
          "from": "correction-arrangement-feasible",
          "to": "action-revise-commitment",
          "label": "No listed arrangement fits",
          "outcome": "false"
        },
        {
          "id": "correction-arrangement-feasible-to-action-calculate-arrangements-unknown",
          "from": "correction-arrangement-feasible",
          "to": "action-calculate-arrangements",
          "label": "Calculation still required",
          "outcome": "unknown"
        },
        {
          "id": "action-propose-correction-to-use-calculated-arrangement",
          "from": "action-propose-correction",
          "to": "use-calculated-arrangement",
          "label": "Compare the supported arrangement"
        },
        {
          "id": "action-resolve-evidence-to-establish-corrections",
          "from": "action-resolve-evidence",
          "to": "establish-corrections",
          "label": "Reassess corrected diagnostic reports",
          "kind": "reassessment"
        },
        {
          "id": "action-revise-commitment-to-define-kit-commitment",
          "from": "action-revise-commitment",
          "to": "define-kit-commitment",
          "label": "Reassess changed commitment or operating facts",
          "kind": "reassessment"
        },
        {
          "id": "corrections-supported-to-action-supply-diagnostic-reports-unknown",
          "from": "corrections-supported",
          "to": "action-supply-diagnostic-reports",
          "label": "Diagnostic inputs are unknown",
          "outcome": "unknown"
        },
        {
          "id": "corrections-supported-to-action-supply-diagnostic-reports-not-calculated",
          "from": "corrections-supported",
          "to": "action-supply-diagnostic-reports",
          "label": "Calculate the diagnostic reports",
          "outcome": "not-calculated"
        },
        {
          "id": "corrections-supported-to-action-supply-diagnostic-reports-stale",
          "from": "corrections-supported",
          "to": "action-supply-diagnostic-reports",
          "label": "Recalculate the changed diagnostic reports",
          "outcome": "stale"
        },
        {
          "id": "corrections-supported-to-action-supply-diagnostic-reports-error",
          "from": "corrections-supported",
          "to": "action-supply-diagnostic-reports",
          "label": "Resolve the diagnostic calculation error",
          "outcome": "error"
        },
        {
          "id": "correction-arrangement-feasible-to-action-calculate-arrangements-not-calculated",
          "from": "correction-arrangement-feasible",
          "to": "action-calculate-arrangements",
          "label": "Calculate complete correction arrangements",
          "outcome": "not-calculated"
        },
        {
          "id": "correction-arrangement-feasible-to-action-calculate-arrangements-stale",
          "from": "correction-arrangement-feasible",
          "to": "action-calculate-arrangements",
          "label": "Recalculate changed correction arrangements",
          "outcome": "stale"
        },
        {
          "id": "correction-arrangement-feasible-to-action-calculate-arrangements-error",
          "from": "correction-arrangement-feasible",
          "to": "action-calculate-arrangements",
          "label": "Resolve the correction arrangement calculation error",
          "outcome": "error"
        }
      ],
      "groups": [
        {
          "id": "kit-commitment",
          "label": "1. Define the handoff commitment",
          "nodeIds": [
            "define-kit-commitment"
          ]
        },
        {
          "id": "required-corrections",
          "label": "2. Establish the required corrections",
          "nodeIds": [
            "establish-corrections",
            "corrections-supported",
            "action-resolve-evidence",
            "action-supply-diagnostic-reports"
          ]
        },
        {
          "id": "correction-arrangements",
          "label": "3. Compare complete correction arrangements",
          "nodeIds": [
            "compare-corrections",
            "correction-arrangement-feasible",
            "action-calculate-arrangements",
            "action-revise-commitment"
          ]
        },
        {
          "id": "next-operating-action",
          "label": "4. Choose the next operating action",
          "nodeIds": [
            "action-propose-correction",
            "use-calculated-arrangement"
          ]
        }
      ],
      "actionGroups": [
        {
          "id": "available-next-actions",
          "label": "Available next actions",
          "selection": "all-matching",
          "actionIds": [
            "resolve-evidence",
            "propose-correction",
            "revise-commitment",
            "calculate-arrangements",
            "supply-diagnostic-reports"
          ]
        }
      ]
    },
    "contentHash": "adc569d0047077b74cf221c45faa5f81190d14b609c445112d8f30c009780757"
  },
  "catalog": {
    "domain": {
      "id": "gifting-operations",
      "label": "Gifting operations",
      "description": "Review gift-kit evidence, corrective work and preparation commitments."
    },
    "useCase": {
      "id": "prepare-gift-kit-campaign",
      "label": "Prepare a gift-kit campaign",
      "description": "Review failed preorder rehearsals and complete correction arrangements before committing gift kits."
    }
  },
  "publishedAt": "2026-11-23T16:59:01.941Z",
  "contentHash": "65b4cea81db6f78b84b3eabe96f1efc9f5b49898ae4426e1d349f5adf51d9db9"
}
