{
  "format": "decision-lab-workflow-package/1",
  "workflow": {
    "format": "decision-lab-workflow/1",
    "id": "repair-published-restaurant-roster",
    "version": "1.6.0",
    "title": "Repair a published restaurant roster",
    "question": "Which supplied complete repairs cover every remaining service, and which fit the chosen priority?",
    "description": "Compare complete repairs to a disrupted published restaurant roster across every remaining service. Check coverage, qualifications, availability, capacity, rest, hours and remaining payroll; optionally compare passing repairs by stability or payroll. The calculation compares supplied proposals and does not generate or publish a roster.",
    "execution": {
      "mode": "calculation"
    },
    "dependencies": [
      {
        "id": "feasibility",
        "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": "Determine whether one complete static plan can satisfy every mandatory obligation across every explicitly admitted scenario. Compare feasible plans only after whole-plan execution feasibility is established.",
              "authoring": {
                "requiredModuleFields": [
                  "description",
                  "question",
                  "assumptions",
                  "units",
                  "inputs",
                  "choices",
                  "scenarioDomain",
                  "derived",
                  "activities",
                  "resources",
                  "requirements",
                  "constraints",
                  "finance",
                  "preference",
                  "labels"
                ],
                "guidance": "What must be completed, for whom, and within which accepted limits?\nWhich objects, quantities, revisions and locations are covered?\nWhich factual records and admitted states are we relying on?\nWhich complete choices may the planner make?\nWhich activities, dependencies, calendars and capacities must the same plan respect?\nWhich scoped permissions must cover each required operation?\nWhich joint operating scenarios must this commitment withstand?\nWhich obligations are mandatory, and how will passing complete plans be compared?\nModule authors supply these declarations and domain vocabulary. Case workers supply only values allowed by the frozen module. Facts, scenarios and operating permission must never be inferred from a preferred plan."
              },
              "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-16T12:00:00.000Z",
            "contentHash": "2fe9902f4f2b8deebd5663a8467fc2d5c24aeaa9fdcdca1ccd1bb42574a144b2"
          },
          "app": {
            "schemaVersion": 5,
            "kind": "hermod-published-app",
            "runtime": "diagnostic-evidence",
            "id": "roster-repair-feasibility",
            "version": 1,
            "name": "Repair a published restaurant roster",
            "description": "Compare supplied complete repairs for a published roster. Every remaining authored position is checked; a preferred repair is established only among these alternatives.",
            "source": "{\n  \"format\": \"complete-a-commitment/1\",\n  \"module\": {\n    \"id\": \"roster-repair-feasibility\",\n    \"version\": \"1.0.0\",\n    \"template\": {\n      \"id\": \"complete-a-commitment\",\n      \"version\": 1\n    },\n    \"title\": \"Repair a published restaurant roster\",\n    \"question\": \"Which supplied complete repairs cover every remaining service within the recorded staffing and payroll limits?\",\n    \"description\": \"Compare supplied complete repairs for a published roster. Every remaining authored position is checked; a preferred repair is established only among these alternatives.\",\n    \"units\": {\n      \"time\": \"minute\",\n      \"timeOrigin\": \"Monday 00:00 of one fictional week; one local clock without a daylight-saving transition\",\n      \"money\": \"USD cent\",\n      \"count\": \"position\"\n    },\n    \"assumptions\": [\n      \"This bounded comparison evaluates supplied complete repairs; it does not search every possible employee assignment or generate service demand.\",\n      \"Every position has an authored role and fixed positive interval. Required breaks must be omitted from working availability and explicitly covered by a supplied repair.\",\n      \"Fees are flat accepted amounts per complete assignment. Different durations are counted accurately for hours; no hourly pay, proration, overtime premium or tax is inferred.\",\n      \"The retained baseline sums published assignments after removing explicitly unpaid cancellations. Changed positions compare assigned people with the published roster, not employee disruption, consent or fairness.\",\n      \"Earlier work is retained as totals and latest shift ends. Declared weekly-hours and rest limits are assumptions, not a labor-law assessment. Existing bookings are checked for capacity, not retrospectively audited for rest.\",\n      \"A calculated proposal does not obtain staff agreement, notify employees or publish a roster. Demand forecasts and actual operation require separate records or integrations.\"\n    ],\n    \"inputs\": {\n      \"parameters\": {\n        \"remainingLaborBudgetMinor\": {\n          \"type\": \"integer\",\n          \"unit\": \"money\",\n          \"minimum\": 0\n        },\n        \"minimumRestMinutes\": {\n          \"type\": \"integer\",\n          \"unit\": \"time\",\n          \"minimum\": 0\n        }\n      },\n      \"tables\": {\n        \"employees\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ]\n            },\n            \"name\": {\n              \"type\": \"string\"\n            },\n            \"assignmentFeeMinor\": {\n              \"type\": \"integer\",\n              \"unit\": \"money\",\n              \"minimum\": 0\n            },\n            \"earlierWeekMinutes\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"weeklyLimitMinutes\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"lastEarlierShiftEnd\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            }\n          }\n        },\n        \"qualifications\": {\n          \"key\": [\n            \"employee\",\n            \"role\"\n          ],\n          \"columns\": {\n            \"employee\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"role\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"cook\",\n                \"server\"\n              ]\n            }\n          }\n        },\n        \"assignments\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"hold\",\n                \"move-only\",\n                \"relief\",\n                \"coupled\"\n              ]\n            },\n            \"fri-dinner-cook-1\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"fri-dinner-cook-2\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"fri-dinner-server\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sat-dinner-cook-1\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sat-dinner-cook-2\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sat-dinner-server\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sun-lunch-cook-1\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sun-lunch-cook-2\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sun-lunch-server\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            }\n          }\n        },\n        \"availability\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\"\n            },\n            \"employee\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"from\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"through\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            }\n          }\n        },\n        \"_counts\": {\n          \"key\": [\n            \"flag\"\n          ],\n          \"columns\": {\n            \"flag\": {\n              \"type\": \"boolean\"\n            },\n            \"count\": {\n              \"type\": \"integer\",\n              \"unit\": \"count\",\n              \"minimum\": 0,\n              \"enum\": [\n                0,\n                1\n              ]\n            }\n          }\n        },\n        \"_resources\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"capacity\": {\n              \"type\": \"integer\",\n              \"unit\": \"count\",\n              \"minimum\": 0,\n              \"enum\": [\n                1\n              ]\n            }\n          }\n        },\n        \"scenarios\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"recorded-week\"\n              ]\n            }\n          }\n        },\n        \"bookings\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\"\n            },\n            \"employee\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"from\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"through\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"amount\": {\n              \"type\": \"integer\",\n              \"unit\": \"count\",\n              \"minimum\": 0,\n              \"enum\": [\n                1\n              ]\n            }\n          }\n        }\n      }\n    },\n    \"choices\": [\n      {\n        \"id\": \"repair\",\n        \"domain\": {\n          \"values\": [\n            \"hold\",\n            \"move-only\",\n            \"relief\",\n            \"coupled\"\n          ]\n        }\n      }\n    ],\n    \"scenarioDomain\": {\n      \"table\": \"scenarios\"\n    },\n    \"lookupCoverage\": [\n      {\n        \"table\": \"assignments\",\n        \"keys\": {\n          \"id\": {\n            \"domain\": {\n              \"values\": [\n                \"hold\",\n                \"move-only\",\n                \"relief\",\n                \"coupled\"\n              ]\n            }\n          }\n        }\n      },\n      {\n        \"table\": \"employees\",\n        \"keys\": {\n          \"id\": {\n            \"domain\": {\n              \"values\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ]\n            }\n          }\n        }\n      },\n      {\n        \"table\": \"_resources\",\n        \"keys\": {\n          \"id\": {\n            \"domain\": {\n              \"values\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ]\n            }\n          }\n        }\n      },\n      {\n        \"table\": \"_counts\",\n        \"keys\": {\n          \"flag\": {\n            \"domain\": {\n              \"values\": [\n                false,\n                true\n              ]\n            }\n          }\n        }\n      }\n    ],\n    \"derived\": [\n      {\n        \"id\": \"duration-fri-dinner-cook-1\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-fri-dinner-cook-2\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-fri-dinner-server\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sat-dinner-cook-1\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sat-dinner-cook-2\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sat-dinner-server\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sun-lunch-cook-1\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sun-lunch-cook-2\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sun-lunch-server\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"changedAssignments\",\n        \"type\": \"integer\",\n        \"unit\": \"count\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                    },\n                    {\n                      \"literal\": \"luis\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                    },\n                    {\n                      \"literal\": \"priya\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-server.actor\"\n                    },\n                    {\n                      \"literal\": \"ava\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                    },\n                    {\n                      \"literal\": \"luis\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                    },\n                    {\n                      \"literal\": \"nora\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.actor\"\n                    },\n                    {\n                      \"literal\": \"ava\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                    },\n                    {\n                      \"literal\": \"theo\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                    },\n                    {\n                      \"literal\": \"priya\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.actor\"\n                    },\n                    {\n                      \"literal\": \"ben\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"retainedBaselineExpense\",\n        \"type\": \"integer\",\n        \"unit\": \"money\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"additionalExpense\",\n        \"type\": \"integer\",\n        \"unit\": \"money\",\n        \"expr\": {\n          \"op\": \"sub\",\n          \"args\": [\n            {\n              \"ref\": \"finance.expense\"\n            },\n            {\n              \"ref\": \"derived.retainedBaselineExpense\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-luis\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-priya\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-theo\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-ava\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-ben\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-nora\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-rowan\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      }\n    ],\n    \"activities\": [\n      {\n        \"id\": \"fri-dinner-cook-1\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"fri-dinner-cook-1\"\n        },\n        \"start\": {\n          \"literal\": 6840\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-fri-dinner-cook-1\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"fri-dinner-cook-2\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"fri-dinner-cook-2\"\n        },\n        \"start\": {\n          \"literal\": 6840\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-fri-dinner-cook-2\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"fri-dinner-server\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"fri-dinner-server\"\n        },\n        \"start\": {\n          \"literal\": 6840\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-fri-dinner-server\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sat-dinner-cook-1\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sat-dinner-cook-1\"\n        },\n        \"start\": {\n          \"literal\": 8280\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sat-dinner-cook-1\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sat-dinner-cook-2\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sat-dinner-cook-2\"\n        },\n        \"start\": {\n          \"literal\": 8280\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sat-dinner-cook-2\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sat-dinner-server\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sat-dinner-server\"\n        },\n        \"start\": {\n          \"literal\": 8280\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sat-dinner-server\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sun-lunch-cook-1\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sun-lunch-cook-1\"\n        },\n        \"start\": {\n          \"literal\": 9360\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sun-lunch-cook-1\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sun-lunch-cook-2\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sun-lunch-cook-2\"\n        },\n        \"start\": {\n          \"literal\": 9360\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sun-lunch-cook-2\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sun-lunch-server\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sun-lunch-server\"\n        },\n        \"start\": {\n          \"literal\": 9360\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sun-lunch-server\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      }\n    ],\n    \"resources\": {\n      \"definitions\": {\n        \"table\": \"_resources\",\n        \"idColumn\": \"id\",\n        \"capacityColumn\": \"capacity\"\n      },\n      \"bookings\": {\n        \"table\": \"bookings\",\n        \"resourceColumn\": \"employee\",\n        \"startColumn\": \"from\",\n        \"endColumn\": \"through\",\n        \"amountColumn\": \"amount\"\n      }\n    },\n    \"requirements\": [\n      {\n        \"id\": \"COVERAGE\",\n        \"label\": \"Every required position filled\",\n        \"meaning\": \"Every authored position has an employee for its complete interval.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"QUALIFICATION\",\n        \"label\": \"Required qualifications\",\n        \"meaning\": \"Each assigned employee has the recorded qualification for that role.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"AVAILABILITY\",\n        \"label\": \"Full-interval availability\",\n        \"meaning\": \"Working availability covers the whole assignment; declared unpaid cancellations remain unavailable.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"CAPACITY\",\n        \"label\": \"One assignment at a time\",\n        \"meaning\": \"An employee cannot fill simultaneous positions or overlap an existing booking.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"REST\",\n        \"label\": \"Declared rest between assignments\",\n        \"meaning\": \"Prior work and remaining assignments leave the recorded minimum rest.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"HOURS\",\n        \"label\": \"Declared weekly hours\",\n        \"meaning\": \"Earlier worked minutes plus actual assignment durations fit the employee limit.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"BUDGET\",\n        \"label\": \"Remaining payroll limit\",\n        \"meaning\": \"Complete remaining payroll fits the recorded limit; unpaid cancellations are excluded from the retained baseline.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"BASIS\",\n        \"label\": \"Authored calculation basis\",\n        \"meaning\": \"Fixed identities, exclusive employee capacities and Boolean counts retain their authored meaning.\",\n        \"waivable\": false\n      }\n    ],\n    \"constraints\": [\n      {\n        \"id\": \"count-false\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"literal\": false\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"count-true\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"literal\": true\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-luis\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-priya\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-theo\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-ava\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-ben\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-nora\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-rowan\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-unfilled\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-luis\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Luis\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-priya\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Priya\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-theo\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Theo\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-ava\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Ava\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-ben\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Ben\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-nora\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Nora\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-rowan\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Rowan\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-unfilled\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-assignmentFeeMinor\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-earlierWeekMinutes\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-weeklyLimitMinutes\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-lastEarlierShiftEnd\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"lastEarlierShiftEnd\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-fri-dinner-cook-1\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-fri-dinner-cook-1\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-fri-dinner-cook-1\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.fri-dinner-cook-1.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.fri-dinner-cook-1.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-fri-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-fri-dinner-cook-2\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-fri-dinner-cook-2\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-fri-dinner-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.fri-dinner-cook-2.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.fri-dinner-cook-2.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-fri-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-fri-dinner-server\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-fri-dinner-server\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            },\n            \"role\": {\n              \"literal\": \"server\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-fri-dinner-server\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.fri-dinner-server.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.fri-dinner-server.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-fri-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.fri-dinner-server.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sat-dinner-cook-1\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sat-dinner-cook-1\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sat-dinner-cook-1\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sat-dinner-cook-1.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sat-dinner-cook-1.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sat-dinner-cook-2\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sat-dinner-cook-2\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sat-dinner-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sat-dinner-cook-2.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sat-dinner-cook-2.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sat-dinner-server\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sat-dinner-server\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            },\n            \"role\": {\n              \"literal\": \"server\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sat-dinner-server\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sat-dinner-server.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sat-dinner-server.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sat-dinner-server.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sun-lunch-cook-1\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sun-lunch-cook-1\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sun-lunch-cook-1\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sun-lunch-cook-1.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sun-lunch-cook-1.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sun-lunch-cook-2\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sun-lunch-cook-2\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sun-lunch-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sun-lunch-cook-2.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sun-lunch-cook-2.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sun-lunch-server\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sun-lunch-server\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            },\n            \"role\": {\n              \"literal\": \"server\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sun-lunch-server\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sun-lunch-server.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sun-lunch-server.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-server.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sun-lunch-server.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"cancelled-sat-dinner-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            {\n              \"literal\": \"nora\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-fri-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-fri-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-fri-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-server-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-server-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-server-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sun-lunch-cook-1-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sun-lunch-cook-1-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sun-lunch-cook-2-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"employee-capacity\",\n        \"requirement\": \"CAPACITY\",\n        \"kind\": \"resource-capacity\"\n      },\n      {\n        \"id\": \"hours-luis\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-luis\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-priya\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-priya\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-theo\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-theo\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-ava\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-ava\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-ben\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-ben\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-nora\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-nora\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-rowan\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-rowan\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"remaining-payroll-budget\",\n        \"requirement\": \"BUDGET\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"finance.expense\"\n            },\n            {\n              \"ref\": \"parameter.remainingLaborBudgetMinor\"\n            }\n          ]\n        }\n      }\n    ],\n    \"finance\": {\n      \"mode\": \"expense\",\n      \"charges\": [\n        {\n          \"id\": \"pay-fri-dinner-cook-1\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.fri-dinner-cook-1.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-fri-dinner-cook-2\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.fri-dinner-cook-2.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-fri-dinner-server\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.fri-dinner-server.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sat-dinner-cook-1\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sat-dinner-cook-1.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sat-dinner-cook-2\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sat-dinner-cook-2.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sat-dinner-server\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sat-dinner-server.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sun-lunch-cook-1\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sun-lunch-cook-1.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sun-lunch-cook-2\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sun-lunch-cook-2.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sun-lunch-server\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sun-lunch-server.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        }\n      ],\n      \"holds\": []\n    },\n    \"preference\": {\n      \"mode\": \"feasibility-only\"\n    },\n    \"labels\": {\n      \"plan\": \"Complete roster repair\",\n      \"actor\": \"Employee\",\n      \"scenario\": \"Recorded week\",\n      \"financeExpense\": \"Remaining payroll\",\n      \"choice.repair\": \"Supplied repair\",\n      \"view.schedule.title\": \"Complete remaining roster\",\n      \"activity.fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1)\",\n      \"activity.fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2)\",\n      \"activity.fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server)\",\n      \"activity.sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"activity.sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"activity.sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server)\",\n      \"activity.sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"activity.sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"activity.sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.count-false\": \"Authored calculation basis: count-false\",\n      \"constraint.count-true\": \"Authored calculation basis: count-true\",\n      \"constraint.capacity-luis\": \"Authored calculation basis: capacity-luis\",\n      \"constraint.capacity-priya\": \"Authored calculation basis: capacity-priya\",\n      \"constraint.capacity-theo\": \"Authored calculation basis: capacity-theo\",\n      \"constraint.capacity-ava\": \"Authored calculation basis: capacity-ava\",\n      \"constraint.capacity-ben\": \"Authored calculation basis: capacity-ben\",\n      \"constraint.capacity-nora\": \"Authored calculation basis: capacity-nora\",\n      \"constraint.capacity-rowan\": \"Authored calculation basis: capacity-rowan\",\n      \"constraint.capacity-unfilled\": \"Authored calculation basis: capacity-unfilled\",\n      \"constraint.identity-luis\": \"Authored calculation basis: identity-luis\",\n      \"constraint.identity-priya\": \"Authored calculation basis: identity-priya\",\n      \"constraint.identity-theo\": \"Authored calculation basis: identity-theo\",\n      \"constraint.identity-ava\": \"Authored calculation basis: identity-ava\",\n      \"constraint.identity-ben\": \"Authored calculation basis: identity-ben\",\n      \"constraint.identity-nora\": \"Authored calculation basis: identity-nora\",\n      \"constraint.identity-rowan\": \"Authored calculation basis: identity-rowan\",\n      \"constraint.identity-unfilled\": \"Authored calculation basis: identity-unfilled\",\n      \"constraint.unfilled-assignmentFeeMinor\": \"Authored calculation basis: unfilled-assignmentFeeMinor\",\n      \"constraint.unfilled-earlierWeekMinutes\": \"Authored calculation basis: unfilled-earlierWeekMinutes\",\n      \"constraint.unfilled-weeklyLimitMinutes\": \"Authored calculation basis: unfilled-weeklyLimitMinutes\",\n      \"constraint.unfilled-lastEarlierShiftEnd\": \"Authored calculation basis: unfilled-lastEarlierShiftEnd\",\n      \"constraint.filled-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) must be filled\",\n      \"constraint.qualified-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) needs a qualified employee\",\n      \"constraint.available-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) needs enough rest after earlier work\",\n      \"constraint.filled-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) must be filled\",\n      \"constraint.qualified-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) needs a qualified employee\",\n      \"constraint.available-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) needs enough rest after earlier work\",\n      \"constraint.filled-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) must be filled\",\n      \"constraint.qualified-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) needs a qualified employee\",\n      \"constraint.available-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) needs enough rest after earlier work\",\n      \"constraint.filled-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) must be filled\",\n      \"constraint.qualified-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) needs a qualified employee\",\n      \"constraint.available-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) needs enough rest after earlier work\",\n      \"constraint.filled-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) must be filled\",\n      \"constraint.qualified-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) needs a qualified employee\",\n      \"constraint.available-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) needs enough rest after earlier work\",\n      \"constraint.filled-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) must be filled\",\n      \"constraint.qualified-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) needs a qualified employee\",\n      \"constraint.available-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) needs enough rest after earlier work\",\n      \"constraint.filled-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) must be filled\",\n      \"constraint.qualified-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) needs a qualified employee\",\n      \"constraint.available-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) needs enough rest after earlier work\",\n      \"constraint.filled-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) must be filled\",\n      \"constraint.qualified-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) needs a qualified employee\",\n      \"constraint.available-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) needs enough rest after earlier work\",\n      \"constraint.filled-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) must be filled\",\n      \"constraint.qualified-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) needs a qualified employee\",\n      \"constraint.available-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) needs enough rest after earlier work\",\n      \"constraint.cancelled-sat-dinner-cook-2\": \"Nora's cancelled assignment remains unavailable\",\n      \"constraint.rest-fri-dinner-cook-1-fri-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Cook (fri-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-1-fri-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Server (fri-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-1-sat-dinner-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-1-sat-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-1-sat-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-1-sun-lunch-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-1-sun-lunch-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-1-sun-lunch-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-fri-dinner-cook-2-fri-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Friday dinner: Server (fri-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-2-sat-dinner-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-2-sat-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-2-sat-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-2-sun-lunch-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-2-sun-lunch-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-2-sun-lunch-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-fri-dinner-server-sat-dinner-cook-1\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"constraint.rest-fri-dinner-server-sat-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-server-sat-dinner-server\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-fri-dinner-server-sun-lunch-cook-1\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-fri-dinner-server-sun-lunch-cook-2\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-fri-dinner-server-sun-lunch-server\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sat-dinner-cook-1-sat-dinner-cook-2\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-sat-dinner-cook-1-sat-dinner-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-sat-dinner-cook-1-sun-lunch-cook-1\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-sat-dinner-cook-1-sun-lunch-cook-2\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sat-dinner-cook-1-sun-lunch-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sat-dinner-cook-2-sat-dinner-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-sat-dinner-cook-2-sun-lunch-cook-1\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-sat-dinner-cook-2-sun-lunch-cook-2\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sat-dinner-cook-2-sun-lunch-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sat-dinner-server-sun-lunch-cook-1\": \"The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-sat-dinner-server-sun-lunch-cook-2\": \"The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sat-dinner-server-sun-lunch-server\": \"The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sun-lunch-cook-1-sun-lunch-cook-2\": \"The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sun-lunch-cook-1-sun-lunch-server\": \"The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sun-lunch-cook-2-sun-lunch-server\": \"The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-2) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.employee-capacity\": \"An employee cannot cover overlapping assignments or bookings\",\n      \"constraint.hours-luis\": \"Luis's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-priya\": \"Priya's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-theo\": \"Theo's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-ava\": \"Ava's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-ben\": \"Ben's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-nora\": \"Nora's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-rowan\": \"Rowan's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.remaining-payroll-budget\": \"Complete remaining payroll must fit the recorded limit\",\n      \"resource.luis\": \"Luis\",\n      \"resource.priya\": \"Priya\",\n      \"resource.theo\": \"Theo\",\n      \"resource.ava\": \"Ava\",\n      \"resource.ben\": \"Ben\",\n      \"resource.nora\": \"Nora\",\n      \"resource.rowan\": \"Rowan\",\n      \"resource.unfilled\": \"Unfilled\",\n      \"choice.repair.hold\": \"Leave the gap\",\n      \"choice.repair.move-only\": \"Move Theo only\",\n      \"choice.repair.relief\": \"Bring in Rowan\",\n      \"choice.repair.coupled\": \"Repair three assignments\"\n    },\n    \"metadata\": {\n      \"decisionPresentation\": {\n        \"format\": \"decision-presentation/1\",\n        \"title\": \"Compare complete roster repairs\",\n        \"question\": \"Which supplied repairs can operate, and what does each change?\",\n        \"priorityLabel\": \"Compare without ranking\",\n        \"moneyFormat\": {\n          \"currency\": \"USD\",\n          \"divisor\": 100\n        },\n        \"columns\": [\n          {\n            \"id\": \"plan\",\n            \"label\": \"Complete repair\"\n          },\n          {\n            \"id\": \"status\",\n            \"label\": \"Operating result\"\n          },\n          {\n            \"id\": \"expense\",\n            \"label\": \"Remaining payroll\",\n            \"format\": {\n              \"kind\": \"money\",\n              \"currency\": \"USD\",\n              \"divisor\": 100\n            }\n          },\n          {\n            \"id\": \"additionalExpense\",\n            \"source\": {\n              \"kind\": \"derived\",\n              \"id\": \"additionalExpense\"\n            },\n            \"label\": \"Additional expense\",\n            \"format\": {\n              \"kind\": \"money\",\n              \"currency\": \"USD\",\n              \"divisor\": 100\n            }\n          },\n          {\n            \"id\": \"changes\",\n            \"source\": {\n              \"kind\": \"derived\",\n              \"id\": \"changedAssignments\"\n            },\n            \"label\": \"Changed positions\",\n            \"format\": {\n              \"kind\": \"number\"\n            }\n          },\n          {\n            \"id\": \"blockers\",\n            \"label\": \"Blocking condition\"\n          }\n        ],\n        \"charts\": [\n          {\n            \"viewId\": \"commitment:schedule\",\n            \"defaultRepresentation\": \"timeline\"\n          }\n        ]\n      }\n    }\n  },\n  \"case\": {\n    \"id\": \"restaurant-roster\",\n    \"parameters\": {\n      \"remainingLaborBudgetMinor\": 85600,\n      \"minimumRestMinutes\": 600\n    },\n    \"tables\": {\n      \"employees\": [\n        {\n          \"id\": \"luis\",\n          \"name\": \"Luis\",\n          \"assignmentFeeMinor\": 8800,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"priya\",\n          \"name\": \"Priya\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"theo\",\n          \"name\": \"Theo\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"ava\",\n          \"name\": \"Ava\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"ben\",\n          \"name\": \"Ben\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"nora\",\n          \"name\": \"Nora\",\n          \"assignmentFeeMinor\": 8800,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"rowan\",\n          \"name\": \"Rowan\",\n          \"assignmentFeeMinor\": 18000,\n          \"earlierWeekMinutes\": 0,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 0\n        },\n        {\n          \"id\": \"unfilled\",\n          \"name\": \"Unfilled\",\n          \"assignmentFeeMinor\": 0,\n          \"earlierWeekMinutes\": 0,\n          \"weeklyLimitMinutes\": 0,\n          \"lastEarlierShiftEnd\": 0\n        }\n      ],\n      \"qualifications\": [\n        {\n          \"employee\": \"luis\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"priya\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"theo\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"ava\",\n          \"role\": \"server\"\n        },\n        {\n          \"employee\": \"ben\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"ben\",\n          \"role\": \"server\"\n        },\n        {\n          \"employee\": \"nora\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"rowan\",\n          \"role\": \"cook\"\n        }\n      ],\n      \"assignments\": [\n        {\n          \"id\": \"hold\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"unfilled\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"theo\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ben\"\n        },\n        {\n          \"id\": \"move-only\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"theo\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"unfilled\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ben\"\n        },\n        {\n          \"id\": \"relief\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"rowan\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"theo\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ben\"\n        },\n        {\n          \"id\": \"coupled\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"theo\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"ben\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ava\"\n        }\n      ],\n      \"availability\": [\n        {\n          \"id\": \"availability-luis-1\",\n          \"employee\": \"luis\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-priya-1\",\n          \"employee\": \"priya\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-theo-1\",\n          \"employee\": \"theo\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-ava-1\",\n          \"employee\": \"ava\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-ben-1\",\n          \"employee\": \"ben\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-rowan-1\",\n          \"employee\": \"rowan\",\n          \"from\": 8280,\n          \"through\": 8520\n        }\n      ],\n      \"scenarios\": [\n        {\n          \"id\": \"recorded-week\"\n        }\n      ],\n      \"bookings\": [],\n      \"_counts\": [\n        {\n          \"flag\": false,\n          \"count\": 0\n        },\n        {\n          \"flag\": true,\n          \"count\": 1\n        }\n      ],\n      \"_resources\": [\n        {\n          \"id\": \"luis\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"priya\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"theo\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"ava\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"ben\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"nora\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"rowan\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"unfilled\",\n          \"capacity\": 1\n        }\n      ]\n    },\n    \"provenance\": [\n      {\n        \"id\": \"fictional-roster-basis\",\n        \"description\": \"Fictional accepted roster facts. Fees are flat amounts for each complete accepted assignment, with no implicit hourly prorating. Earlier work is retained as totals and latest shift ends. Unpaid cancellations are excluded from the remaining-payroll baseline. No staff agreement, notification or roster publication occurs.\"\n      }\n    ]\n  }\n}\n",
            "sourceHash": "acef2b9ee06182f67e5fdb45ec48747577581db630383f45de5260bfbaaa07b1",
            "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": "roster-repair-feasibility",
                "version": "1.0.0",
                "template": {
                  "id": "complete-a-commitment",
                  "version": 1
                },
                "title": "Repair a published restaurant roster",
                "question": "Which supplied complete repairs cover every remaining service within the recorded staffing and payroll limits?",
                "description": "Compare supplied complete repairs for a published roster. Every remaining authored position is checked; a preferred repair is established only among these alternatives.",
                "units": {
                  "time": "minute",
                  "timeOrigin": "Monday 00:00 of one fictional week; one local clock without a daylight-saving transition",
                  "money": "USD cent",
                  "count": "position"
                },
                "assumptions": [
                  "This bounded comparison evaluates supplied complete repairs; it does not search every possible employee assignment or generate service demand.",
                  "Every position has an authored role and fixed positive interval. Required breaks must be omitted from working availability and explicitly covered by a supplied repair.",
                  "Fees are flat accepted amounts per complete assignment. Different durations are counted accurately for hours; no hourly pay, proration, overtime premium or tax is inferred.",
                  "The retained baseline sums published assignments after removing explicitly unpaid cancellations. Changed positions compare assigned people with the published roster, not employee disruption, consent or fairness.",
                  "Earlier work is retained as totals and latest shift ends. Declared weekly-hours and rest limits are assumptions, not a labor-law assessment. Existing bookings are checked for capacity, not retrospectively audited for rest.",
                  "A calculated proposal does not obtain staff agreement, notify employees or publish a roster. Demand forecasts and actual operation require separate records or integrations."
                ],
                "inputs": {
                  "parameters": {
                    "remainingLaborBudgetMinor": {
                      "type": "integer",
                      "unit": "money",
                      "minimum": 0
                    },
                    "minimumRestMinutes": {
                      "type": "integer",
                      "unit": "time",
                      "minimum": 0
                    }
                  },
                  "tables": {
                    "employees": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ]
                        },
                        "name": {
                          "type": "string"
                        },
                        "assignmentFeeMinor": {
                          "type": "integer",
                          "unit": "money",
                          "minimum": 0
                        },
                        "earlierWeekMinutes": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "weeklyLimitMinutes": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "lastEarlierShiftEnd": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        }
                      }
                    },
                    "qualifications": {
                      "key": [
                        "employee",
                        "role"
                      ],
                      "columns": {
                        "employee": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "cook",
                            "server"
                          ]
                        }
                      }
                    },
                    "assignments": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "hold",
                            "move-only",
                            "relief",
                            "coupled"
                          ]
                        },
                        "fri-dinner-cook-1": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "fri-dinner-cook-2": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "fri-dinner-server": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sat-dinner-cook-1": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sat-dinner-cook-2": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sat-dinner-server": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sun-lunch-cook-1": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sun-lunch-cook-2": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sun-lunch-server": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        }
                      }
                    },
                    "availability": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "employee": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "from": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "through": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        }
                      }
                    },
                    "_counts": {
                      "key": [
                        "flag"
                      ],
                      "columns": {
                        "flag": {
                          "type": "boolean"
                        },
                        "count": {
                          "type": "integer",
                          "unit": "count",
                          "minimum": 0,
                          "enum": [
                            0,
                            1
                          ]
                        }
                      }
                    },
                    "_resources": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "capacity": {
                          "type": "integer",
                          "unit": "count",
                          "minimum": 0,
                          "enum": [
                            1
                          ]
                        }
                      }
                    },
                    "scenarios": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "recorded-week"
                          ]
                        }
                      }
                    },
                    "bookings": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "employee": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "from": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "through": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "amount": {
                          "type": "integer",
                          "unit": "count",
                          "minimum": 0,
                          "enum": [
                            1
                          ]
                        }
                      }
                    }
                  }
                },
                "choices": [
                  {
                    "id": "repair",
                    "domain": {
                      "values": [
                        "hold",
                        "move-only",
                        "relief",
                        "coupled"
                      ]
                    }
                  }
                ],
                "scenarioDomain": {
                  "table": "scenarios"
                },
                "lookupCoverage": [
                  {
                    "table": "assignments",
                    "keys": {
                      "id": {
                        "domain": {
                          "values": [
                            "hold",
                            "move-only",
                            "relief",
                            "coupled"
                          ]
                        }
                      }
                    }
                  },
                  {
                    "table": "employees",
                    "keys": {
                      "id": {
                        "domain": {
                          "values": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ]
                        }
                      }
                    }
                  },
                  {
                    "table": "_resources",
                    "keys": {
                      "id": {
                        "domain": {
                          "values": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ]
                        }
                      }
                    }
                  },
                  {
                    "table": "_counts",
                    "keys": {
                      "flag": {
                        "domain": {
                          "values": [
                            false,
                            true
                          ]
                        }
                      }
                    }
                  }
                ],
                "derived": [
                  {
                    "id": "duration-fri-dinner-cook-1",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-fri-dinner-cook-2",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-fri-dinner-server",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sat-dinner-cook-1",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sat-dinner-cook-2",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sat-dinner-server",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sun-lunch-cook-1",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sun-lunch-cook-2",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sun-lunch-server",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "changedAssignments",
                    "type": "integer",
                    "unit": "count",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-cook-1.actor"
                                },
                                {
                                  "literal": "luis"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-cook-2.actor"
                                },
                                {
                                  "literal": "priya"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-server.actor"
                                },
                                {
                                  "literal": "ava"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.actor"
                                },
                                {
                                  "literal": "luis"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.actor"
                                },
                                {
                                  "literal": "nora"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.actor"
                                },
                                {
                                  "literal": "ava"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.actor"
                                },
                                {
                                  "literal": "theo"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.actor"
                                },
                                {
                                  "literal": "priya"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.actor"
                                },
                                {
                                  "literal": "ben"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        }
                      ]
                    }
                  },
                  {
                    "id": "retainedBaselineExpense",
                    "type": "integer",
                    "unit": "money",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        }
                      ]
                    }
                  },
                  {
                    "id": "additionalExpense",
                    "type": "integer",
                    "unit": "money",
                    "expr": {
                      "op": "sub",
                      "args": [
                        {
                          "ref": "finance.expense"
                        },
                        {
                          "ref": "derived.retainedBaselineExpense"
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-luis",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-priya",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-theo",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-ava",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-ben",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-nora",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-rowan",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "activities": [
                  {
                    "id": "fri-dinner-cook-1",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "fri-dinner-cook-1"
                    },
                    "start": {
                      "literal": 6840
                    },
                    "duration": {
                      "ref": "derived.duration-fri-dinner-cook-1"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "fri-dinner-cook-2",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "fri-dinner-cook-2"
                    },
                    "start": {
                      "literal": 6840
                    },
                    "duration": {
                      "ref": "derived.duration-fri-dinner-cook-2"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "fri-dinner-server",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "fri-dinner-server"
                    },
                    "start": {
                      "literal": 6840
                    },
                    "duration": {
                      "ref": "derived.duration-fri-dinner-server"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.fri-dinner-server.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sat-dinner-cook-1",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sat-dinner-cook-1"
                    },
                    "start": {
                      "literal": 8280
                    },
                    "duration": {
                      "ref": "derived.duration-sat-dinner-cook-1"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sat-dinner-cook-2",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sat-dinner-cook-2"
                    },
                    "start": {
                      "literal": 8280
                    },
                    "duration": {
                      "ref": "derived.duration-sat-dinner-cook-2"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sat-dinner-server",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sat-dinner-server"
                    },
                    "start": {
                      "literal": 8280
                    },
                    "duration": {
                      "ref": "derived.duration-sat-dinner-server"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sat-dinner-server.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sun-lunch-cook-1",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sun-lunch-cook-1"
                    },
                    "start": {
                      "literal": 9360
                    },
                    "duration": {
                      "ref": "derived.duration-sun-lunch-cook-1"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sun-lunch-cook-2",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sun-lunch-cook-2"
                    },
                    "start": {
                      "literal": 9360
                    },
                    "duration": {
                      "ref": "derived.duration-sun-lunch-cook-2"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sun-lunch-server",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sun-lunch-server"
                    },
                    "start": {
                      "literal": 9360
                    },
                    "duration": {
                      "ref": "derived.duration-sun-lunch-server"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sun-lunch-server.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  }
                ],
                "resources": {
                  "definitions": {
                    "table": "_resources",
                    "idColumn": "id",
                    "capacityColumn": "capacity"
                  },
                  "bookings": {
                    "table": "bookings",
                    "resourceColumn": "employee",
                    "startColumn": "from",
                    "endColumn": "through",
                    "amountColumn": "amount"
                  }
                },
                "requirements": [
                  {
                    "id": "COVERAGE",
                    "label": "Every required position filled",
                    "meaning": "Every authored position has an employee for its complete interval.",
                    "waivable": false
                  },
                  {
                    "id": "QUALIFICATION",
                    "label": "Required qualifications",
                    "meaning": "Each assigned employee has the recorded qualification for that role.",
                    "waivable": false
                  },
                  {
                    "id": "AVAILABILITY",
                    "label": "Full-interval availability",
                    "meaning": "Working availability covers the whole assignment; declared unpaid cancellations remain unavailable.",
                    "waivable": false
                  },
                  {
                    "id": "CAPACITY",
                    "label": "One assignment at a time",
                    "meaning": "An employee cannot fill simultaneous positions or overlap an existing booking.",
                    "waivable": false
                  },
                  {
                    "id": "REST",
                    "label": "Declared rest between assignments",
                    "meaning": "Prior work and remaining assignments leave the recorded minimum rest.",
                    "waivable": false
                  },
                  {
                    "id": "HOURS",
                    "label": "Declared weekly hours",
                    "meaning": "Earlier worked minutes plus actual assignment durations fit the employee limit.",
                    "waivable": false
                  },
                  {
                    "id": "BUDGET",
                    "label": "Remaining payroll limit",
                    "meaning": "Complete remaining payroll fits the recorded limit; unpaid cancellations are excluded from the retained baseline.",
                    "waivable": false
                  },
                  {
                    "id": "BASIS",
                    "label": "Authored calculation basis",
                    "meaning": "Fixed identities, exclusive employee capacities and Boolean counts retain their authored meaning.",
                    "waivable": false
                  }
                ],
                "constraints": [
                  {
                    "id": "count-false",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "literal": false
                            }
                          },
                          "column": "count"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "count-true",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "literal": true
                            }
                          },
                          "column": "count"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-luis",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-priya",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-theo",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-ava",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-ben",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-nora",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-rowan",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-unfilled",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-luis",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Luis"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-priya",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Priya"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-theo",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Theo"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-ava",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Ava"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-ben",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Ben"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-nora",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Nora"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-rowan",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Rowan"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-unfilled",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-assignmentFeeMinor",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-earlierWeekMinutes",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-weeklyLimitMinutes",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-lastEarlierShiftEnd",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "lastEarlierShiftEnd"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-fri-dinner-cook-1",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-fri-dinner-cook-1",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-fri-dinner-cook-1",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.fri-dinner-cook-1.start"
                      },
                      "end": {
                        "ref": "activity.fri-dinner-cook-1.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-fri-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.fri-dinner-cook-1.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-fri-dinner-cook-2",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-fri-dinner-cook-2",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-fri-dinner-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.fri-dinner-cook-2.start"
                      },
                      "end": {
                        "ref": "activity.fri-dinner-cook-2.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-fri-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.fri-dinner-cook-2.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-fri-dinner-server",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.fri-dinner-server.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-fri-dinner-server",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-server.actor"
                        },
                        "role": {
                          "literal": "server"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-fri-dinner-server",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-server.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.fri-dinner-server.start"
                      },
                      "end": {
                        "ref": "activity.fri-dinner-server.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-fri-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.fri-dinner-server.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sat-dinner-cook-1",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sat-dinner-cook-1",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sat-dinner-cook-1",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sat-dinner-cook-1.start"
                      },
                      "end": {
                        "ref": "activity.sat-dinner-cook-1.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sat-dinner-cook-1.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sat-dinner-cook-2",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sat-dinner-cook-2",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sat-dinner-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sat-dinner-cook-2.start"
                      },
                      "end": {
                        "ref": "activity.sat-dinner-cook-2.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sat-dinner-cook-2.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sat-dinner-server",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-server.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sat-dinner-server",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-server.actor"
                        },
                        "role": {
                          "literal": "server"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sat-dinner-server",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-server.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sat-dinner-server.start"
                      },
                      "end": {
                        "ref": "activity.sat-dinner-server.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sat-dinner-server.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sun-lunch-cook-1",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sun-lunch-cook-1",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sun-lunch-cook-1",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sun-lunch-cook-1.start"
                      },
                      "end": {
                        "ref": "activity.sun-lunch-cook-1.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-1.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sun-lunch-cook-1.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sun-lunch-cook-2",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sun-lunch-cook-2",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sun-lunch-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sun-lunch-cook-2.start"
                      },
                      "end": {
                        "ref": "activity.sun-lunch-cook-2.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-2.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sun-lunch-cook-2.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sun-lunch-server",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sun-lunch-server.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sun-lunch-server",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-server.actor"
                        },
                        "role": {
                          "literal": "server"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sun-lunch-server",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-server.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sun-lunch-server.start"
                      },
                      "end": {
                        "ref": "activity.sun-lunch-server.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-server.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sun-lunch-server.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "cancelled-sat-dinner-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        {
                          "literal": "nora"
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-fri-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-fri-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-fri-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-server-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-server-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-server-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sun-lunch-cook-1-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sun-lunch-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sun-lunch-cook-1-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sun-lunch-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sun-lunch-cook-2-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sun-lunch-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "employee-capacity",
                    "requirement": "CAPACITY",
                    "kind": "resource-capacity"
                  },
                  {
                    "id": "hours-luis",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-luis"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-priya",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-priya"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-theo",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-theo"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-ava",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-ava"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-ben",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-ben"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-nora",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-nora"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-rowan",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-rowan"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "remaining-payroll-budget",
                    "requirement": "BUDGET",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "finance.expense"
                        },
                        {
                          "ref": "parameter.remainingLaborBudgetMinor"
                        }
                      ]
                    }
                  }
                ],
                "finance": {
                  "mode": "expense",
                  "charges": [
                    {
                      "id": "pay-fri-dinner-cook-1",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.fri-dinner-cook-1.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-fri-dinner-cook-2",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.fri-dinner-cook-2.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-fri-dinner-server",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.fri-dinner-server.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sat-dinner-cook-1",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sat-dinner-cook-1.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sat-dinner-cook-2",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sat-dinner-cook-2.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sat-dinner-server",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sat-dinner-server.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sun-lunch-cook-1",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sun-lunch-cook-1.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sun-lunch-cook-2",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sun-lunch-cook-2.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sun-lunch-server",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sun-lunch-server.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    }
                  ],
                  "holds": []
                },
                "preference": {
                  "mode": "feasibility-only"
                },
                "labels": {
                  "plan": "Complete roster repair",
                  "actor": "Employee",
                  "scenario": "Recorded week",
                  "financeExpense": "Remaining payroll",
                  "choice.repair": "Supplied repair",
                  "view.schedule.title": "Complete remaining roster",
                  "activity.fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1)",
                  "activity.fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2)",
                  "activity.fri-dinner-server": "Friday dinner: Server (fri-dinner-server)",
                  "activity.sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1)",
                  "activity.sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2)",
                  "activity.sat-dinner-server": "Saturday dinner: Server (sat-dinner-server)",
                  "activity.sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1)",
                  "activity.sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2)",
                  "activity.sun-lunch-server": "Sunday lunch: Server (sun-lunch-server)",
                  "constraint.count-false": "Authored calculation basis: count-false",
                  "constraint.count-true": "Authored calculation basis: count-true",
                  "constraint.capacity-luis": "Authored calculation basis: capacity-luis",
                  "constraint.capacity-priya": "Authored calculation basis: capacity-priya",
                  "constraint.capacity-theo": "Authored calculation basis: capacity-theo",
                  "constraint.capacity-ava": "Authored calculation basis: capacity-ava",
                  "constraint.capacity-ben": "Authored calculation basis: capacity-ben",
                  "constraint.capacity-nora": "Authored calculation basis: capacity-nora",
                  "constraint.capacity-rowan": "Authored calculation basis: capacity-rowan",
                  "constraint.capacity-unfilled": "Authored calculation basis: capacity-unfilled",
                  "constraint.identity-luis": "Authored calculation basis: identity-luis",
                  "constraint.identity-priya": "Authored calculation basis: identity-priya",
                  "constraint.identity-theo": "Authored calculation basis: identity-theo",
                  "constraint.identity-ava": "Authored calculation basis: identity-ava",
                  "constraint.identity-ben": "Authored calculation basis: identity-ben",
                  "constraint.identity-nora": "Authored calculation basis: identity-nora",
                  "constraint.identity-rowan": "Authored calculation basis: identity-rowan",
                  "constraint.identity-unfilled": "Authored calculation basis: identity-unfilled",
                  "constraint.unfilled-assignmentFeeMinor": "Authored calculation basis: unfilled-assignmentFeeMinor",
                  "constraint.unfilled-earlierWeekMinutes": "Authored calculation basis: unfilled-earlierWeekMinutes",
                  "constraint.unfilled-weeklyLimitMinutes": "Authored calculation basis: unfilled-weeklyLimitMinutes",
                  "constraint.unfilled-lastEarlierShiftEnd": "Authored calculation basis: unfilled-lastEarlierShiftEnd",
                  "constraint.filled-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) must be filled",
                  "constraint.qualified-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs a qualified employee",
                  "constraint.available-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs availability for the whole assignment",
                  "constraint.earlier-rest-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs enough rest after earlier work",
                  "constraint.filled-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) must be filled",
                  "constraint.qualified-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs a qualified employee",
                  "constraint.available-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs availability for the whole assignment",
                  "constraint.earlier-rest-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs enough rest after earlier work",
                  "constraint.filled-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) must be filled",
                  "constraint.qualified-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs a qualified employee",
                  "constraint.available-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs availability for the whole assignment",
                  "constraint.earlier-rest-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs enough rest after earlier work",
                  "constraint.filled-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) must be filled",
                  "constraint.qualified-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs a qualified employee",
                  "constraint.available-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs availability for the whole assignment",
                  "constraint.earlier-rest-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs enough rest after earlier work",
                  "constraint.filled-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) must be filled",
                  "constraint.qualified-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs a qualified employee",
                  "constraint.available-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs availability for the whole assignment",
                  "constraint.earlier-rest-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs enough rest after earlier work",
                  "constraint.filled-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) must be filled",
                  "constraint.qualified-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs a qualified employee",
                  "constraint.available-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs availability for the whole assignment",
                  "constraint.earlier-rest-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs enough rest after earlier work",
                  "constraint.filled-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) must be filled",
                  "constraint.qualified-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs a qualified employee",
                  "constraint.available-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs availability for the whole assignment",
                  "constraint.earlier-rest-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs enough rest after earlier work",
                  "constraint.filled-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) must be filled",
                  "constraint.qualified-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs a qualified employee",
                  "constraint.available-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs availability for the whole assignment",
                  "constraint.earlier-rest-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs enough rest after earlier work",
                  "constraint.filled-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) must be filled",
                  "constraint.qualified-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs a qualified employee",
                  "constraint.available-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs availability for the whole assignment",
                  "constraint.earlier-rest-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs enough rest after earlier work",
                  "constraint.cancelled-sat-dinner-cook-2": "Nora's cancelled assignment remains unavailable",
                  "constraint.rest-fri-dinner-cook-1-fri-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Cook (fri-dinner-cook-2)",
                  "constraint.rest-fri-dinner-cook-1-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Server (fri-dinner-server)",
                  "constraint.rest-fri-dinner-cook-1-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-1)",
                  "constraint.rest-fri-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-fri-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-fri-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-fri-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-fri-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-fri-dinner-cook-2-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Friday dinner: Server (fri-dinner-server)",
                  "constraint.rest-fri-dinner-cook-2-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-1)",
                  "constraint.rest-fri-dinner-cook-2-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-fri-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-fri-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-fri-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-fri-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-fri-dinner-server-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-1)",
                  "constraint.rest-fri-dinner-server-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-fri-dinner-server-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-fri-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-fri-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-fri-dinner-server-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sat-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-sat-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-sat-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-sat-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sat-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sat-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-sat-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-sat-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sat-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sat-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-sat-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sat-dinner-server-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sun-lunch-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sun-lunch-cook-1-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sun-lunch-cook-2-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.employee-capacity": "An employee cannot cover overlapping assignments or bookings",
                  "constraint.hours-luis": "Luis's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-priya": "Priya's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-theo": "Theo's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-ava": "Ava's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-ben": "Ben's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-nora": "Nora's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-rowan": "Rowan's total worked minutes must fit the recorded weekly limit",
                  "constraint.remaining-payroll-budget": "Complete remaining payroll must fit the recorded limit",
                  "resource.luis": "Luis",
                  "resource.priya": "Priya",
                  "resource.theo": "Theo",
                  "resource.ava": "Ava",
                  "resource.ben": "Ben",
                  "resource.nora": "Nora",
                  "resource.rowan": "Rowan",
                  "resource.unfilled": "Unfilled",
                  "choice.repair.hold": "Leave the gap",
                  "choice.repair.move-only": "Move Theo only",
                  "choice.repair.relief": "Bring in Rowan",
                  "choice.repair.coupled": "Repair three assignments"
                },
                "metadata": {
                  "decisionPresentation": {
                    "format": "decision-presentation/1",
                    "title": "Compare complete roster repairs",
                    "question": "Which supplied repairs can operate, and what does each change?",
                    "priorityLabel": "Compare without ranking",
                    "moneyFormat": {
                      "currency": "USD",
                      "divisor": 100
                    },
                    "columns": [
                      {
                        "id": "plan",
                        "label": "Complete repair"
                      },
                      {
                        "id": "status",
                        "label": "Operating result"
                      },
                      {
                        "id": "expense",
                        "label": "Remaining payroll",
                        "format": {
                          "kind": "money",
                          "currency": "USD",
                          "divisor": 100
                        }
                      },
                      {
                        "id": "additionalExpense",
                        "source": {
                          "kind": "derived",
                          "id": "additionalExpense"
                        },
                        "label": "Additional expense",
                        "format": {
                          "kind": "money",
                          "currency": "USD",
                          "divisor": 100
                        }
                      },
                      {
                        "id": "changes",
                        "source": {
                          "kind": "derived",
                          "id": "changedAssignments"
                        },
                        "label": "Changed positions",
                        "format": {
                          "kind": "number"
                        }
                      },
                      {
                        "id": "blockers",
                        "label": "Blocking condition"
                      }
                    ],
                    "charts": [
                      {
                        "viewId": "commitment:schedule",
                        "defaultRepresentation": "timeline"
                      }
                    ]
                  }
                }
              },
              "case": {
                "id": "restaurant-roster",
                "parameters": {
                  "remainingLaborBudgetMinor": 85600,
                  "minimumRestMinutes": 600
                },
                "tables": {
                  "employees": [
                    {
                      "id": "luis",
                      "name": "Luis",
                      "assignmentFeeMinor": 8800,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "priya",
                      "name": "Priya",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "theo",
                      "name": "Theo",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "ava",
                      "name": "Ava",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "ben",
                      "name": "Ben",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "nora",
                      "name": "Nora",
                      "assignmentFeeMinor": 8800,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "rowan",
                      "name": "Rowan",
                      "assignmentFeeMinor": 18000,
                      "earlierWeekMinutes": 0,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 0
                    },
                    {
                      "id": "unfilled",
                      "name": "Unfilled",
                      "assignmentFeeMinor": 0,
                      "earlierWeekMinutes": 0,
                      "weeklyLimitMinutes": 0,
                      "lastEarlierShiftEnd": 0
                    }
                  ],
                  "qualifications": [
                    {
                      "employee": "luis",
                      "role": "cook"
                    },
                    {
                      "employee": "priya",
                      "role": "cook"
                    },
                    {
                      "employee": "theo",
                      "role": "cook"
                    },
                    {
                      "employee": "ava",
                      "role": "server"
                    },
                    {
                      "employee": "ben",
                      "role": "cook"
                    },
                    {
                      "employee": "ben",
                      "role": "server"
                    },
                    {
                      "employee": "nora",
                      "role": "cook"
                    },
                    {
                      "employee": "rowan",
                      "role": "cook"
                    }
                  ],
                  "assignments": [
                    {
                      "id": "hold",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "unfilled",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "theo",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ben"
                    },
                    {
                      "id": "move-only",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "theo",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "unfilled",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ben"
                    },
                    {
                      "id": "relief",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "rowan",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "theo",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ben"
                    },
                    {
                      "id": "coupled",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "theo",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "ben",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ava"
                    }
                  ],
                  "availability": [
                    {
                      "id": "availability-luis-1",
                      "employee": "luis",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-priya-1",
                      "employee": "priya",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-theo-1",
                      "employee": "theo",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-ava-1",
                      "employee": "ava",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-ben-1",
                      "employee": "ben",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-rowan-1",
                      "employee": "rowan",
                      "from": 8280,
                      "through": 8520
                    }
                  ],
                  "scenarios": [
                    {
                      "id": "recorded-week"
                    }
                  ],
                  "bookings": [],
                  "_counts": [
                    {
                      "flag": false,
                      "count": 0
                    },
                    {
                      "flag": true,
                      "count": 1
                    }
                  ],
                  "_resources": [
                    {
                      "id": "luis",
                      "capacity": 1
                    },
                    {
                      "id": "priya",
                      "capacity": 1
                    },
                    {
                      "id": "theo",
                      "capacity": 1
                    },
                    {
                      "id": "ava",
                      "capacity": 1
                    },
                    {
                      "id": "ben",
                      "capacity": 1
                    },
                    {
                      "id": "nora",
                      "capacity": 1
                    },
                    {
                      "id": "rowan",
                      "capacity": 1
                    },
                    {
                      "id": "unfilled",
                      "capacity": 1
                    }
                  ]
                },
                "provenance": [
                  {
                    "id": "fictional-roster-basis",
                    "description": "Fictional accepted roster facts. Fees are flat amounts for each complete accepted assignment, with no implicit hourly prorating. Earlier work is retained as totals and latest shift ends. Unpaid cancellations are excluded from the remaining-payroll baseline. No staff agreement, notification or roster publication occurs."
                  }
                ]
              }
            },
            "presentation": {
              "schemaVersion": 1,
              "provider": "native-commitment-planning",
              "contract": "complete-a-commitment.assessment/1",
              "views": []
            },
            "viewContracts": [],
            "fields": [],
            "reports": [],
            "defaultReport": null,
            "originWorkspaceId": null,
            "createdAt": "2026-11-20T20:00:00.000Z",
            "contentHash": "2bc15e6ff9027b17ff3a9c2551d9c6cf7298f5fe94433d67d5d875fd13126eeb"
          },
          "sourceProvenance": "supplied",
          "contentHash": "81c15b280bbaed072ad420e8bcd81c270fc4c31942013941c1226e368eeec9e4"
        },
        "packageHash": "81c15b280bbaed072ad420e8bcd81c270fc4c31942013941c1226e368eeec9e4"
      },
      {
        "id": "stability",
        "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": "Determine whether one complete static plan can satisfy every mandatory obligation across every explicitly admitted scenario. Compare feasible plans only after whole-plan execution feasibility is established.",
              "authoring": {
                "requiredModuleFields": [
                  "description",
                  "question",
                  "assumptions",
                  "units",
                  "inputs",
                  "choices",
                  "scenarioDomain",
                  "derived",
                  "activities",
                  "resources",
                  "requirements",
                  "constraints",
                  "finance",
                  "preference",
                  "labels"
                ],
                "guidance": "What must be completed, for whom, and within which accepted limits?\nWhich objects, quantities, revisions and locations are covered?\nWhich factual records and admitted states are we relying on?\nWhich complete choices may the planner make?\nWhich activities, dependencies, calendars and capacities must the same plan respect?\nWhich scoped permissions must cover each required operation?\nWhich joint operating scenarios must this commitment withstand?\nWhich obligations are mandatory, and how will passing complete plans be compared?\nModule authors supply these declarations and domain vocabulary. Case workers supply only values allowed by the frozen module. Facts, scenarios and operating permission must never be inferred from a preferred plan."
              },
              "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-16T12:00:00.000Z",
            "contentHash": "2fe9902f4f2b8deebd5663a8467fc2d5c24aeaa9fdcdca1ccd1bb42574a144b2"
          },
          "app": {
            "schemaVersion": 5,
            "kind": "hermod-published-app",
            "runtime": "diagnostic-evidence",
            "id": "roster-repair-stability",
            "version": 1,
            "name": "Repair a published restaurant roster",
            "description": "Compare supplied complete repairs for a published roster. Every remaining authored position is checked; a preferred repair is established only among these alternatives.",
            "source": "{\n  \"format\": \"complete-a-commitment/1\",\n  \"module\": {\n    \"id\": \"roster-repair-stability\",\n    \"version\": \"1.0.0\",\n    \"template\": {\n      \"id\": \"complete-a-commitment\",\n      \"version\": 1\n    },\n    \"title\": \"Repair a published restaurant roster\",\n    \"question\": \"Which supplied complete repairs cover every remaining service within the recorded staffing and payroll limits?\",\n    \"description\": \"Compare supplied complete repairs for a published roster. Every remaining authored position is checked; a preferred repair is established only among these alternatives.\",\n    \"units\": {\n      \"time\": \"minute\",\n      \"timeOrigin\": \"Monday 00:00 of one fictional week; one local clock without a daylight-saving transition\",\n      \"money\": \"USD cent\",\n      \"count\": \"position\"\n    },\n    \"assumptions\": [\n      \"This bounded comparison evaluates supplied complete repairs; it does not search every possible employee assignment or generate service demand.\",\n      \"Every position has an authored role and fixed positive interval. Required breaks must be omitted from working availability and explicitly covered by a supplied repair.\",\n      \"Fees are flat accepted amounts per complete assignment. Different durations are counted accurately for hours; no hourly pay, proration, overtime premium or tax is inferred.\",\n      \"The retained baseline sums published assignments after removing explicitly unpaid cancellations. Changed positions compare assigned people with the published roster, not employee disruption, consent or fairness.\",\n      \"Earlier work is retained as totals and latest shift ends. Declared weekly-hours and rest limits are assumptions, not a labor-law assessment. Existing bookings are checked for capacity, not retrospectively audited for rest.\",\n      \"A calculated proposal does not obtain staff agreement, notify employees or publish a roster. Demand forecasts and actual operation require separate records or integrations.\"\n    ],\n    \"inputs\": {\n      \"parameters\": {\n        \"remainingLaborBudgetMinor\": {\n          \"type\": \"integer\",\n          \"unit\": \"money\",\n          \"minimum\": 0\n        },\n        \"minimumRestMinutes\": {\n          \"type\": \"integer\",\n          \"unit\": \"time\",\n          \"minimum\": 0\n        }\n      },\n      \"tables\": {\n        \"employees\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ]\n            },\n            \"name\": {\n              \"type\": \"string\"\n            },\n            \"assignmentFeeMinor\": {\n              \"type\": \"integer\",\n              \"unit\": \"money\",\n              \"minimum\": 0\n            },\n            \"earlierWeekMinutes\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"weeklyLimitMinutes\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"lastEarlierShiftEnd\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            }\n          }\n        },\n        \"qualifications\": {\n          \"key\": [\n            \"employee\",\n            \"role\"\n          ],\n          \"columns\": {\n            \"employee\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"role\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"cook\",\n                \"server\"\n              ]\n            }\n          }\n        },\n        \"assignments\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"hold\",\n                \"move-only\",\n                \"relief\",\n                \"coupled\"\n              ]\n            },\n            \"fri-dinner-cook-1\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"fri-dinner-cook-2\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"fri-dinner-server\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sat-dinner-cook-1\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sat-dinner-cook-2\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sat-dinner-server\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sun-lunch-cook-1\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sun-lunch-cook-2\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sun-lunch-server\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            }\n          }\n        },\n        \"availability\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\"\n            },\n            \"employee\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"from\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"through\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            }\n          }\n        },\n        \"_counts\": {\n          \"key\": [\n            \"flag\"\n          ],\n          \"columns\": {\n            \"flag\": {\n              \"type\": \"boolean\"\n            },\n            \"count\": {\n              \"type\": \"integer\",\n              \"unit\": \"count\",\n              \"minimum\": 0,\n              \"enum\": [\n                0,\n                1\n              ]\n            }\n          }\n        },\n        \"_resources\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"capacity\": {\n              \"type\": \"integer\",\n              \"unit\": \"count\",\n              \"minimum\": 0,\n              \"enum\": [\n                1\n              ]\n            }\n          }\n        },\n        \"scenarios\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"recorded-week\"\n              ]\n            }\n          }\n        },\n        \"bookings\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\"\n            },\n            \"employee\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"from\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"through\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"amount\": {\n              \"type\": \"integer\",\n              \"unit\": \"count\",\n              \"minimum\": 0,\n              \"enum\": [\n                1\n              ]\n            }\n          }\n        }\n      }\n    },\n    \"choices\": [\n      {\n        \"id\": \"repair\",\n        \"domain\": {\n          \"values\": [\n            \"hold\",\n            \"move-only\",\n            \"relief\",\n            \"coupled\"\n          ]\n        }\n      }\n    ],\n    \"scenarioDomain\": {\n      \"table\": \"scenarios\"\n    },\n    \"lookupCoverage\": [\n      {\n        \"table\": \"assignments\",\n        \"keys\": {\n          \"id\": {\n            \"domain\": {\n              \"values\": [\n                \"hold\",\n                \"move-only\",\n                \"relief\",\n                \"coupled\"\n              ]\n            }\n          }\n        }\n      },\n      {\n        \"table\": \"employees\",\n        \"keys\": {\n          \"id\": {\n            \"domain\": {\n              \"values\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ]\n            }\n          }\n        }\n      },\n      {\n        \"table\": \"_resources\",\n        \"keys\": {\n          \"id\": {\n            \"domain\": {\n              \"values\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ]\n            }\n          }\n        }\n      },\n      {\n        \"table\": \"_counts\",\n        \"keys\": {\n          \"flag\": {\n            \"domain\": {\n              \"values\": [\n                false,\n                true\n              ]\n            }\n          }\n        }\n      }\n    ],\n    \"derived\": [\n      {\n        \"id\": \"duration-fri-dinner-cook-1\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-fri-dinner-cook-2\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-fri-dinner-server\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sat-dinner-cook-1\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sat-dinner-cook-2\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sat-dinner-server\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sun-lunch-cook-1\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sun-lunch-cook-2\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sun-lunch-server\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"changedAssignments\",\n        \"type\": \"integer\",\n        \"unit\": \"count\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                    },\n                    {\n                      \"literal\": \"luis\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                    },\n                    {\n                      \"literal\": \"priya\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-server.actor\"\n                    },\n                    {\n                      \"literal\": \"ava\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                    },\n                    {\n                      \"literal\": \"luis\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                    },\n                    {\n                      \"literal\": \"nora\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.actor\"\n                    },\n                    {\n                      \"literal\": \"ava\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                    },\n                    {\n                      \"literal\": \"theo\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                    },\n                    {\n                      \"literal\": \"priya\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.actor\"\n                    },\n                    {\n                      \"literal\": \"ben\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"retainedBaselineExpense\",\n        \"type\": \"integer\",\n        \"unit\": \"money\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"additionalExpense\",\n        \"type\": \"integer\",\n        \"unit\": \"money\",\n        \"expr\": {\n          \"op\": \"sub\",\n          \"args\": [\n            {\n              \"ref\": \"finance.expense\"\n            },\n            {\n              \"ref\": \"derived.retainedBaselineExpense\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-luis\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-priya\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-theo\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-ava\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-ben\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-nora\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-rowan\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      }\n    ],\n    \"activities\": [\n      {\n        \"id\": \"fri-dinner-cook-1\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"fri-dinner-cook-1\"\n        },\n        \"start\": {\n          \"literal\": 6840\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-fri-dinner-cook-1\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"fri-dinner-cook-2\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"fri-dinner-cook-2\"\n        },\n        \"start\": {\n          \"literal\": 6840\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-fri-dinner-cook-2\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"fri-dinner-server\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"fri-dinner-server\"\n        },\n        \"start\": {\n          \"literal\": 6840\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-fri-dinner-server\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sat-dinner-cook-1\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sat-dinner-cook-1\"\n        },\n        \"start\": {\n          \"literal\": 8280\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sat-dinner-cook-1\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sat-dinner-cook-2\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sat-dinner-cook-2\"\n        },\n        \"start\": {\n          \"literal\": 8280\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sat-dinner-cook-2\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sat-dinner-server\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sat-dinner-server\"\n        },\n        \"start\": {\n          \"literal\": 8280\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sat-dinner-server\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sun-lunch-cook-1\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sun-lunch-cook-1\"\n        },\n        \"start\": {\n          \"literal\": 9360\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sun-lunch-cook-1\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sun-lunch-cook-2\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sun-lunch-cook-2\"\n        },\n        \"start\": {\n          \"literal\": 9360\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sun-lunch-cook-2\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sun-lunch-server\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sun-lunch-server\"\n        },\n        \"start\": {\n          \"literal\": 9360\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sun-lunch-server\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      }\n    ],\n    \"resources\": {\n      \"definitions\": {\n        \"table\": \"_resources\",\n        \"idColumn\": \"id\",\n        \"capacityColumn\": \"capacity\"\n      },\n      \"bookings\": {\n        \"table\": \"bookings\",\n        \"resourceColumn\": \"employee\",\n        \"startColumn\": \"from\",\n        \"endColumn\": \"through\",\n        \"amountColumn\": \"amount\"\n      }\n    },\n    \"requirements\": [\n      {\n        \"id\": \"COVERAGE\",\n        \"label\": \"Every required position filled\",\n        \"meaning\": \"Every authored position has an employee for its complete interval.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"QUALIFICATION\",\n        \"label\": \"Required qualifications\",\n        \"meaning\": \"Each assigned employee has the recorded qualification for that role.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"AVAILABILITY\",\n        \"label\": \"Full-interval availability\",\n        \"meaning\": \"Working availability covers the whole assignment; declared unpaid cancellations remain unavailable.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"CAPACITY\",\n        \"label\": \"One assignment at a time\",\n        \"meaning\": \"An employee cannot fill simultaneous positions or overlap an existing booking.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"REST\",\n        \"label\": \"Declared rest between assignments\",\n        \"meaning\": \"Prior work and remaining assignments leave the recorded minimum rest.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"HOURS\",\n        \"label\": \"Declared weekly hours\",\n        \"meaning\": \"Earlier worked minutes plus actual assignment durations fit the employee limit.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"BUDGET\",\n        \"label\": \"Remaining payroll limit\",\n        \"meaning\": \"Complete remaining payroll fits the recorded limit; unpaid cancellations are excluded from the retained baseline.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"BASIS\",\n        \"label\": \"Authored calculation basis\",\n        \"meaning\": \"Fixed identities, exclusive employee capacities and Boolean counts retain their authored meaning.\",\n        \"waivable\": false\n      }\n    ],\n    \"constraints\": [\n      {\n        \"id\": \"count-false\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"literal\": false\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"count-true\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"literal\": true\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-luis\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-priya\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-theo\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-ava\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-ben\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-nora\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-rowan\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-unfilled\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-luis\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Luis\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-priya\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Priya\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-theo\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Theo\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-ava\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Ava\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-ben\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Ben\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-nora\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Nora\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-rowan\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Rowan\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-unfilled\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-assignmentFeeMinor\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-earlierWeekMinutes\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-weeklyLimitMinutes\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-lastEarlierShiftEnd\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"lastEarlierShiftEnd\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-fri-dinner-cook-1\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-fri-dinner-cook-1\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-fri-dinner-cook-1\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.fri-dinner-cook-1.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.fri-dinner-cook-1.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-fri-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-fri-dinner-cook-2\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-fri-dinner-cook-2\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-fri-dinner-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.fri-dinner-cook-2.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.fri-dinner-cook-2.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-fri-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-fri-dinner-server\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-fri-dinner-server\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            },\n            \"role\": {\n              \"literal\": \"server\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-fri-dinner-server\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.fri-dinner-server.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.fri-dinner-server.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-fri-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.fri-dinner-server.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sat-dinner-cook-1\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sat-dinner-cook-1\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sat-dinner-cook-1\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sat-dinner-cook-1.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sat-dinner-cook-1.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sat-dinner-cook-2\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sat-dinner-cook-2\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sat-dinner-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sat-dinner-cook-2.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sat-dinner-cook-2.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sat-dinner-server\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sat-dinner-server\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            },\n            \"role\": {\n              \"literal\": \"server\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sat-dinner-server\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sat-dinner-server.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sat-dinner-server.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sat-dinner-server.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sun-lunch-cook-1\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sun-lunch-cook-1\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sun-lunch-cook-1\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sun-lunch-cook-1.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sun-lunch-cook-1.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sun-lunch-cook-2\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sun-lunch-cook-2\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sun-lunch-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sun-lunch-cook-2.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sun-lunch-cook-2.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sun-lunch-server\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sun-lunch-server\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            },\n            \"role\": {\n              \"literal\": \"server\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sun-lunch-server\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sun-lunch-server.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sun-lunch-server.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-server.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sun-lunch-server.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"cancelled-sat-dinner-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            {\n              \"literal\": \"nora\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-fri-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-fri-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-fri-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-server-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-server-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-server-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sun-lunch-cook-1-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sun-lunch-cook-1-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sun-lunch-cook-2-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"employee-capacity\",\n        \"requirement\": \"CAPACITY\",\n        \"kind\": \"resource-capacity\"\n      },\n      {\n        \"id\": \"hours-luis\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-luis\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-priya\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-priya\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-theo\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-theo\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-ava\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-ava\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-ben\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-ben\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-nora\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-nora\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-rowan\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-rowan\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"remaining-payroll-budget\",\n        \"requirement\": \"BUDGET\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"finance.expense\"\n            },\n            {\n              \"ref\": \"parameter.remainingLaborBudgetMinor\"\n            }\n          ]\n        }\n      }\n    ],\n    \"finance\": {\n      \"mode\": \"expense\",\n      \"charges\": [\n        {\n          \"id\": \"pay-fri-dinner-cook-1\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.fri-dinner-cook-1.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-fri-dinner-cook-2\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.fri-dinner-cook-2.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-fri-dinner-server\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.fri-dinner-server.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sat-dinner-cook-1\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sat-dinner-cook-1.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sat-dinner-cook-2\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sat-dinner-cook-2.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sat-dinner-server\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sat-dinner-server.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sun-lunch-cook-1\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sun-lunch-cook-1.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sun-lunch-cook-2\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sun-lunch-cook-2.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sun-lunch-server\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sun-lunch-server.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        }\n      ],\n      \"holds\": []\n    },\n    \"preference\": {\n      \"direction\": \"min\",\n      \"expression\": {\n        \"ref\": \"derived.changedAssignments\"\n      },\n      \"then\": [\n        {\n          \"direction\": \"min\",\n          \"expression\": {\n            \"ref\": \"finance.expense\"\n          }\n        }\n      ]\n    },\n    \"labels\": {\n      \"plan\": \"Complete roster repair\",\n      \"actor\": \"Employee\",\n      \"scenario\": \"Recorded week\",\n      \"financeExpense\": \"Remaining payroll\",\n      \"choice.repair\": \"Supplied repair\",\n      \"view.schedule.title\": \"Complete remaining roster\",\n      \"activity.fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1)\",\n      \"activity.fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2)\",\n      \"activity.fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server)\",\n      \"activity.sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"activity.sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"activity.sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server)\",\n      \"activity.sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"activity.sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"activity.sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.count-false\": \"Authored calculation basis: count-false\",\n      \"constraint.count-true\": \"Authored calculation basis: count-true\",\n      \"constraint.capacity-luis\": \"Authored calculation basis: capacity-luis\",\n      \"constraint.capacity-priya\": \"Authored calculation basis: capacity-priya\",\n      \"constraint.capacity-theo\": \"Authored calculation basis: capacity-theo\",\n      \"constraint.capacity-ava\": \"Authored calculation basis: capacity-ava\",\n      \"constraint.capacity-ben\": \"Authored calculation basis: capacity-ben\",\n      \"constraint.capacity-nora\": \"Authored calculation basis: capacity-nora\",\n      \"constraint.capacity-rowan\": \"Authored calculation basis: capacity-rowan\",\n      \"constraint.capacity-unfilled\": \"Authored calculation basis: capacity-unfilled\",\n      \"constraint.identity-luis\": \"Authored calculation basis: identity-luis\",\n      \"constraint.identity-priya\": \"Authored calculation basis: identity-priya\",\n      \"constraint.identity-theo\": \"Authored calculation basis: identity-theo\",\n      \"constraint.identity-ava\": \"Authored calculation basis: identity-ava\",\n      \"constraint.identity-ben\": \"Authored calculation basis: identity-ben\",\n      \"constraint.identity-nora\": \"Authored calculation basis: identity-nora\",\n      \"constraint.identity-rowan\": \"Authored calculation basis: identity-rowan\",\n      \"constraint.identity-unfilled\": \"Authored calculation basis: identity-unfilled\",\n      \"constraint.unfilled-assignmentFeeMinor\": \"Authored calculation basis: unfilled-assignmentFeeMinor\",\n      \"constraint.unfilled-earlierWeekMinutes\": \"Authored calculation basis: unfilled-earlierWeekMinutes\",\n      \"constraint.unfilled-weeklyLimitMinutes\": \"Authored calculation basis: unfilled-weeklyLimitMinutes\",\n      \"constraint.unfilled-lastEarlierShiftEnd\": \"Authored calculation basis: unfilled-lastEarlierShiftEnd\",\n      \"constraint.filled-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) must be filled\",\n      \"constraint.qualified-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) needs a qualified employee\",\n      \"constraint.available-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) needs enough rest after earlier work\",\n      \"constraint.filled-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) must be filled\",\n      \"constraint.qualified-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) needs a qualified employee\",\n      \"constraint.available-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) needs enough rest after earlier work\",\n      \"constraint.filled-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) must be filled\",\n      \"constraint.qualified-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) needs a qualified employee\",\n      \"constraint.available-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) needs enough rest after earlier work\",\n      \"constraint.filled-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) must be filled\",\n      \"constraint.qualified-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) needs a qualified employee\",\n      \"constraint.available-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) needs enough rest after earlier work\",\n      \"constraint.filled-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) must be filled\",\n      \"constraint.qualified-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) needs a qualified employee\",\n      \"constraint.available-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) needs enough rest after earlier work\",\n      \"constraint.filled-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) must be filled\",\n      \"constraint.qualified-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) needs a qualified employee\",\n      \"constraint.available-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) needs enough rest after earlier work\",\n      \"constraint.filled-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) must be filled\",\n      \"constraint.qualified-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) needs a qualified employee\",\n      \"constraint.available-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) needs enough rest after earlier work\",\n      \"constraint.filled-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) must be filled\",\n      \"constraint.qualified-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) needs a qualified employee\",\n      \"constraint.available-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) needs enough rest after earlier work\",\n      \"constraint.filled-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) must be filled\",\n      \"constraint.qualified-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) needs a qualified employee\",\n      \"constraint.available-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) needs enough rest after earlier work\",\n      \"constraint.cancelled-sat-dinner-cook-2\": \"Nora's cancelled assignment remains unavailable\",\n      \"constraint.rest-fri-dinner-cook-1-fri-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Cook (fri-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-1-fri-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Server (fri-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-1-sat-dinner-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-1-sat-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-1-sat-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-1-sun-lunch-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-1-sun-lunch-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-1-sun-lunch-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-fri-dinner-cook-2-fri-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Friday dinner: Server (fri-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-2-sat-dinner-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-2-sat-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-2-sat-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-2-sun-lunch-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-2-sun-lunch-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-2-sun-lunch-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-fri-dinner-server-sat-dinner-cook-1\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"constraint.rest-fri-dinner-server-sat-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-server-sat-dinner-server\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-fri-dinner-server-sun-lunch-cook-1\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-fri-dinner-server-sun-lunch-cook-2\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-fri-dinner-server-sun-lunch-server\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sat-dinner-cook-1-sat-dinner-cook-2\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-sat-dinner-cook-1-sat-dinner-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-sat-dinner-cook-1-sun-lunch-cook-1\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-sat-dinner-cook-1-sun-lunch-cook-2\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sat-dinner-cook-1-sun-lunch-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sat-dinner-cook-2-sat-dinner-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-sat-dinner-cook-2-sun-lunch-cook-1\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-sat-dinner-cook-2-sun-lunch-cook-2\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sat-dinner-cook-2-sun-lunch-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sat-dinner-server-sun-lunch-cook-1\": \"The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-sat-dinner-server-sun-lunch-cook-2\": \"The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sat-dinner-server-sun-lunch-server\": \"The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sun-lunch-cook-1-sun-lunch-cook-2\": \"The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sun-lunch-cook-1-sun-lunch-server\": \"The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sun-lunch-cook-2-sun-lunch-server\": \"The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-2) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.employee-capacity\": \"An employee cannot cover overlapping assignments or bookings\",\n      \"constraint.hours-luis\": \"Luis's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-priya\": \"Priya's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-theo\": \"Theo's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-ava\": \"Ava's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-ben\": \"Ben's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-nora\": \"Nora's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-rowan\": \"Rowan's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.remaining-payroll-budget\": \"Complete remaining payroll must fit the recorded limit\",\n      \"resource.luis\": \"Luis\",\n      \"resource.priya\": \"Priya\",\n      \"resource.theo\": \"Theo\",\n      \"resource.ava\": \"Ava\",\n      \"resource.ben\": \"Ben\",\n      \"resource.nora\": \"Nora\",\n      \"resource.rowan\": \"Rowan\",\n      \"resource.unfilled\": \"Unfilled\",\n      \"choice.repair.hold\": \"Leave the gap\",\n      \"choice.repair.move-only\": \"Move Theo only\",\n      \"choice.repair.relief\": \"Bring in Rowan\",\n      \"choice.repair.coupled\": \"Repair three assignments\"\n    },\n    \"metadata\": {\n      \"decisionPresentation\": {\n        \"format\": \"decision-presentation/1\",\n        \"title\": \"Compare complete roster repairs\",\n        \"question\": \"Which supplied repairs can operate, and what does each change?\",\n        \"priorityLabel\": \"Preserve published assignments first, then minimize payroll\",\n        \"moneyFormat\": {\n          \"currency\": \"USD\",\n          \"divisor\": 100\n        },\n        \"columns\": [\n          {\n            \"id\": \"plan\",\n            \"label\": \"Complete repair\"\n          },\n          {\n            \"id\": \"status\",\n            \"label\": \"Operating result\"\n          },\n          {\n            \"id\": \"expense\",\n            \"label\": \"Remaining payroll\",\n            \"format\": {\n              \"kind\": \"money\",\n              \"currency\": \"USD\",\n              \"divisor\": 100\n            }\n          },\n          {\n            \"id\": \"additionalExpense\",\n            \"source\": {\n              \"kind\": \"derived\",\n              \"id\": \"additionalExpense\"\n            },\n            \"label\": \"Additional expense\",\n            \"format\": {\n              \"kind\": \"money\",\n              \"currency\": \"USD\",\n              \"divisor\": 100\n            }\n          },\n          {\n            \"id\": \"changes\",\n            \"source\": {\n              \"kind\": \"derived\",\n              \"id\": \"changedAssignments\"\n            },\n            \"label\": \"Changed positions\",\n            \"format\": {\n              \"kind\": \"number\"\n            }\n          },\n          {\n            \"id\": \"blockers\",\n            \"label\": \"Blocking condition\"\n          }\n        ],\n        \"charts\": [\n          {\n            \"viewId\": \"commitment:schedule\",\n            \"defaultRepresentation\": \"timeline\"\n          }\n        ]\n      }\n    }\n  },\n  \"case\": {\n    \"id\": \"restaurant-roster\",\n    \"parameters\": {\n      \"remainingLaborBudgetMinor\": 85600,\n      \"minimumRestMinutes\": 600\n    },\n    \"tables\": {\n      \"employees\": [\n        {\n          \"id\": \"luis\",\n          \"name\": \"Luis\",\n          \"assignmentFeeMinor\": 8800,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"priya\",\n          \"name\": \"Priya\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"theo\",\n          \"name\": \"Theo\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"ava\",\n          \"name\": \"Ava\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"ben\",\n          \"name\": \"Ben\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"nora\",\n          \"name\": \"Nora\",\n          \"assignmentFeeMinor\": 8800,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"rowan\",\n          \"name\": \"Rowan\",\n          \"assignmentFeeMinor\": 18000,\n          \"earlierWeekMinutes\": 0,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 0\n        },\n        {\n          \"id\": \"unfilled\",\n          \"name\": \"Unfilled\",\n          \"assignmentFeeMinor\": 0,\n          \"earlierWeekMinutes\": 0,\n          \"weeklyLimitMinutes\": 0,\n          \"lastEarlierShiftEnd\": 0\n        }\n      ],\n      \"qualifications\": [\n        {\n          \"employee\": \"luis\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"priya\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"theo\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"ava\",\n          \"role\": \"server\"\n        },\n        {\n          \"employee\": \"ben\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"ben\",\n          \"role\": \"server\"\n        },\n        {\n          \"employee\": \"nora\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"rowan\",\n          \"role\": \"cook\"\n        }\n      ],\n      \"assignments\": [\n        {\n          \"id\": \"hold\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"unfilled\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"theo\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ben\"\n        },\n        {\n          \"id\": \"move-only\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"theo\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"unfilled\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ben\"\n        },\n        {\n          \"id\": \"relief\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"rowan\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"theo\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ben\"\n        },\n        {\n          \"id\": \"coupled\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"theo\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"ben\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ava\"\n        }\n      ],\n      \"availability\": [\n        {\n          \"id\": \"availability-luis-1\",\n          \"employee\": \"luis\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-priya-1\",\n          \"employee\": \"priya\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-theo-1\",\n          \"employee\": \"theo\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-ava-1\",\n          \"employee\": \"ava\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-ben-1\",\n          \"employee\": \"ben\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-rowan-1\",\n          \"employee\": \"rowan\",\n          \"from\": 8280,\n          \"through\": 8520\n        }\n      ],\n      \"scenarios\": [\n        {\n          \"id\": \"recorded-week\"\n        }\n      ],\n      \"bookings\": [],\n      \"_counts\": [\n        {\n          \"flag\": false,\n          \"count\": 0\n        },\n        {\n          \"flag\": true,\n          \"count\": 1\n        }\n      ],\n      \"_resources\": [\n        {\n          \"id\": \"luis\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"priya\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"theo\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"ava\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"ben\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"nora\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"rowan\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"unfilled\",\n          \"capacity\": 1\n        }\n      ]\n    },\n    \"provenance\": [\n      {\n        \"id\": \"fictional-roster-basis\",\n        \"description\": \"Fictional accepted roster facts. Fees are flat amounts for each complete accepted assignment, with no implicit hourly prorating. Earlier work is retained as totals and latest shift ends. Unpaid cancellations are excluded from the remaining-payroll baseline. No staff agreement, notification or roster publication occurs.\"\n      }\n    ]\n  }\n}\n",
            "sourceHash": "3910ca6bb2db7881c059e71e7a3c6556cad52088f13d57e943f4a4b6e0373064",
            "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": "roster-repair-stability",
                "version": "1.0.0",
                "template": {
                  "id": "complete-a-commitment",
                  "version": 1
                },
                "title": "Repair a published restaurant roster",
                "question": "Which supplied complete repairs cover every remaining service within the recorded staffing and payroll limits?",
                "description": "Compare supplied complete repairs for a published roster. Every remaining authored position is checked; a preferred repair is established only among these alternatives.",
                "units": {
                  "time": "minute",
                  "timeOrigin": "Monday 00:00 of one fictional week; one local clock without a daylight-saving transition",
                  "money": "USD cent",
                  "count": "position"
                },
                "assumptions": [
                  "This bounded comparison evaluates supplied complete repairs; it does not search every possible employee assignment or generate service demand.",
                  "Every position has an authored role and fixed positive interval. Required breaks must be omitted from working availability and explicitly covered by a supplied repair.",
                  "Fees are flat accepted amounts per complete assignment. Different durations are counted accurately for hours; no hourly pay, proration, overtime premium or tax is inferred.",
                  "The retained baseline sums published assignments after removing explicitly unpaid cancellations. Changed positions compare assigned people with the published roster, not employee disruption, consent or fairness.",
                  "Earlier work is retained as totals and latest shift ends. Declared weekly-hours and rest limits are assumptions, not a labor-law assessment. Existing bookings are checked for capacity, not retrospectively audited for rest.",
                  "A calculated proposal does not obtain staff agreement, notify employees or publish a roster. Demand forecasts and actual operation require separate records or integrations."
                ],
                "inputs": {
                  "parameters": {
                    "remainingLaborBudgetMinor": {
                      "type": "integer",
                      "unit": "money",
                      "minimum": 0
                    },
                    "minimumRestMinutes": {
                      "type": "integer",
                      "unit": "time",
                      "minimum": 0
                    }
                  },
                  "tables": {
                    "employees": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ]
                        },
                        "name": {
                          "type": "string"
                        },
                        "assignmentFeeMinor": {
                          "type": "integer",
                          "unit": "money",
                          "minimum": 0
                        },
                        "earlierWeekMinutes": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "weeklyLimitMinutes": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "lastEarlierShiftEnd": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        }
                      }
                    },
                    "qualifications": {
                      "key": [
                        "employee",
                        "role"
                      ],
                      "columns": {
                        "employee": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "cook",
                            "server"
                          ]
                        }
                      }
                    },
                    "assignments": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "hold",
                            "move-only",
                            "relief",
                            "coupled"
                          ]
                        },
                        "fri-dinner-cook-1": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "fri-dinner-cook-2": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "fri-dinner-server": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sat-dinner-cook-1": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sat-dinner-cook-2": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sat-dinner-server": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sun-lunch-cook-1": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sun-lunch-cook-2": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sun-lunch-server": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        }
                      }
                    },
                    "availability": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "employee": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "from": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "through": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        }
                      }
                    },
                    "_counts": {
                      "key": [
                        "flag"
                      ],
                      "columns": {
                        "flag": {
                          "type": "boolean"
                        },
                        "count": {
                          "type": "integer",
                          "unit": "count",
                          "minimum": 0,
                          "enum": [
                            0,
                            1
                          ]
                        }
                      }
                    },
                    "_resources": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "capacity": {
                          "type": "integer",
                          "unit": "count",
                          "minimum": 0,
                          "enum": [
                            1
                          ]
                        }
                      }
                    },
                    "scenarios": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "recorded-week"
                          ]
                        }
                      }
                    },
                    "bookings": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "employee": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "from": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "through": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "amount": {
                          "type": "integer",
                          "unit": "count",
                          "minimum": 0,
                          "enum": [
                            1
                          ]
                        }
                      }
                    }
                  }
                },
                "choices": [
                  {
                    "id": "repair",
                    "domain": {
                      "values": [
                        "hold",
                        "move-only",
                        "relief",
                        "coupled"
                      ]
                    }
                  }
                ],
                "scenarioDomain": {
                  "table": "scenarios"
                },
                "lookupCoverage": [
                  {
                    "table": "assignments",
                    "keys": {
                      "id": {
                        "domain": {
                          "values": [
                            "hold",
                            "move-only",
                            "relief",
                            "coupled"
                          ]
                        }
                      }
                    }
                  },
                  {
                    "table": "employees",
                    "keys": {
                      "id": {
                        "domain": {
                          "values": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ]
                        }
                      }
                    }
                  },
                  {
                    "table": "_resources",
                    "keys": {
                      "id": {
                        "domain": {
                          "values": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ]
                        }
                      }
                    }
                  },
                  {
                    "table": "_counts",
                    "keys": {
                      "flag": {
                        "domain": {
                          "values": [
                            false,
                            true
                          ]
                        }
                      }
                    }
                  }
                ],
                "derived": [
                  {
                    "id": "duration-fri-dinner-cook-1",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-fri-dinner-cook-2",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-fri-dinner-server",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sat-dinner-cook-1",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sat-dinner-cook-2",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sat-dinner-server",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sun-lunch-cook-1",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sun-lunch-cook-2",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sun-lunch-server",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "changedAssignments",
                    "type": "integer",
                    "unit": "count",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-cook-1.actor"
                                },
                                {
                                  "literal": "luis"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-cook-2.actor"
                                },
                                {
                                  "literal": "priya"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-server.actor"
                                },
                                {
                                  "literal": "ava"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.actor"
                                },
                                {
                                  "literal": "luis"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.actor"
                                },
                                {
                                  "literal": "nora"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.actor"
                                },
                                {
                                  "literal": "ava"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.actor"
                                },
                                {
                                  "literal": "theo"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.actor"
                                },
                                {
                                  "literal": "priya"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.actor"
                                },
                                {
                                  "literal": "ben"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        }
                      ]
                    }
                  },
                  {
                    "id": "retainedBaselineExpense",
                    "type": "integer",
                    "unit": "money",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        }
                      ]
                    }
                  },
                  {
                    "id": "additionalExpense",
                    "type": "integer",
                    "unit": "money",
                    "expr": {
                      "op": "sub",
                      "args": [
                        {
                          "ref": "finance.expense"
                        },
                        {
                          "ref": "derived.retainedBaselineExpense"
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-luis",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-priya",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-theo",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-ava",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-ben",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-nora",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-rowan",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "activities": [
                  {
                    "id": "fri-dinner-cook-1",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "fri-dinner-cook-1"
                    },
                    "start": {
                      "literal": 6840
                    },
                    "duration": {
                      "ref": "derived.duration-fri-dinner-cook-1"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "fri-dinner-cook-2",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "fri-dinner-cook-2"
                    },
                    "start": {
                      "literal": 6840
                    },
                    "duration": {
                      "ref": "derived.duration-fri-dinner-cook-2"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "fri-dinner-server",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "fri-dinner-server"
                    },
                    "start": {
                      "literal": 6840
                    },
                    "duration": {
                      "ref": "derived.duration-fri-dinner-server"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.fri-dinner-server.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sat-dinner-cook-1",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sat-dinner-cook-1"
                    },
                    "start": {
                      "literal": 8280
                    },
                    "duration": {
                      "ref": "derived.duration-sat-dinner-cook-1"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sat-dinner-cook-2",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sat-dinner-cook-2"
                    },
                    "start": {
                      "literal": 8280
                    },
                    "duration": {
                      "ref": "derived.duration-sat-dinner-cook-2"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sat-dinner-server",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sat-dinner-server"
                    },
                    "start": {
                      "literal": 8280
                    },
                    "duration": {
                      "ref": "derived.duration-sat-dinner-server"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sat-dinner-server.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sun-lunch-cook-1",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sun-lunch-cook-1"
                    },
                    "start": {
                      "literal": 9360
                    },
                    "duration": {
                      "ref": "derived.duration-sun-lunch-cook-1"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sun-lunch-cook-2",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sun-lunch-cook-2"
                    },
                    "start": {
                      "literal": 9360
                    },
                    "duration": {
                      "ref": "derived.duration-sun-lunch-cook-2"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sun-lunch-server",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sun-lunch-server"
                    },
                    "start": {
                      "literal": 9360
                    },
                    "duration": {
                      "ref": "derived.duration-sun-lunch-server"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sun-lunch-server.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  }
                ],
                "resources": {
                  "definitions": {
                    "table": "_resources",
                    "idColumn": "id",
                    "capacityColumn": "capacity"
                  },
                  "bookings": {
                    "table": "bookings",
                    "resourceColumn": "employee",
                    "startColumn": "from",
                    "endColumn": "through",
                    "amountColumn": "amount"
                  }
                },
                "requirements": [
                  {
                    "id": "COVERAGE",
                    "label": "Every required position filled",
                    "meaning": "Every authored position has an employee for its complete interval.",
                    "waivable": false
                  },
                  {
                    "id": "QUALIFICATION",
                    "label": "Required qualifications",
                    "meaning": "Each assigned employee has the recorded qualification for that role.",
                    "waivable": false
                  },
                  {
                    "id": "AVAILABILITY",
                    "label": "Full-interval availability",
                    "meaning": "Working availability covers the whole assignment; declared unpaid cancellations remain unavailable.",
                    "waivable": false
                  },
                  {
                    "id": "CAPACITY",
                    "label": "One assignment at a time",
                    "meaning": "An employee cannot fill simultaneous positions or overlap an existing booking.",
                    "waivable": false
                  },
                  {
                    "id": "REST",
                    "label": "Declared rest between assignments",
                    "meaning": "Prior work and remaining assignments leave the recorded minimum rest.",
                    "waivable": false
                  },
                  {
                    "id": "HOURS",
                    "label": "Declared weekly hours",
                    "meaning": "Earlier worked minutes plus actual assignment durations fit the employee limit.",
                    "waivable": false
                  },
                  {
                    "id": "BUDGET",
                    "label": "Remaining payroll limit",
                    "meaning": "Complete remaining payroll fits the recorded limit; unpaid cancellations are excluded from the retained baseline.",
                    "waivable": false
                  },
                  {
                    "id": "BASIS",
                    "label": "Authored calculation basis",
                    "meaning": "Fixed identities, exclusive employee capacities and Boolean counts retain their authored meaning.",
                    "waivable": false
                  }
                ],
                "constraints": [
                  {
                    "id": "count-false",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "literal": false
                            }
                          },
                          "column": "count"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "count-true",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "literal": true
                            }
                          },
                          "column": "count"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-luis",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-priya",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-theo",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-ava",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-ben",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-nora",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-rowan",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-unfilled",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-luis",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Luis"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-priya",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Priya"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-theo",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Theo"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-ava",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Ava"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-ben",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Ben"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-nora",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Nora"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-rowan",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Rowan"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-unfilled",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-assignmentFeeMinor",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-earlierWeekMinutes",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-weeklyLimitMinutes",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-lastEarlierShiftEnd",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "lastEarlierShiftEnd"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-fri-dinner-cook-1",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-fri-dinner-cook-1",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-fri-dinner-cook-1",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.fri-dinner-cook-1.start"
                      },
                      "end": {
                        "ref": "activity.fri-dinner-cook-1.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-fri-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.fri-dinner-cook-1.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-fri-dinner-cook-2",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-fri-dinner-cook-2",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-fri-dinner-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.fri-dinner-cook-2.start"
                      },
                      "end": {
                        "ref": "activity.fri-dinner-cook-2.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-fri-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.fri-dinner-cook-2.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-fri-dinner-server",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.fri-dinner-server.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-fri-dinner-server",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-server.actor"
                        },
                        "role": {
                          "literal": "server"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-fri-dinner-server",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-server.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.fri-dinner-server.start"
                      },
                      "end": {
                        "ref": "activity.fri-dinner-server.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-fri-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.fri-dinner-server.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sat-dinner-cook-1",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sat-dinner-cook-1",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sat-dinner-cook-1",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sat-dinner-cook-1.start"
                      },
                      "end": {
                        "ref": "activity.sat-dinner-cook-1.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sat-dinner-cook-1.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sat-dinner-cook-2",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sat-dinner-cook-2",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sat-dinner-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sat-dinner-cook-2.start"
                      },
                      "end": {
                        "ref": "activity.sat-dinner-cook-2.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sat-dinner-cook-2.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sat-dinner-server",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-server.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sat-dinner-server",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-server.actor"
                        },
                        "role": {
                          "literal": "server"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sat-dinner-server",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-server.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sat-dinner-server.start"
                      },
                      "end": {
                        "ref": "activity.sat-dinner-server.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sat-dinner-server.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sun-lunch-cook-1",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sun-lunch-cook-1",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sun-lunch-cook-1",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sun-lunch-cook-1.start"
                      },
                      "end": {
                        "ref": "activity.sun-lunch-cook-1.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-1.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sun-lunch-cook-1.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sun-lunch-cook-2",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sun-lunch-cook-2",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sun-lunch-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sun-lunch-cook-2.start"
                      },
                      "end": {
                        "ref": "activity.sun-lunch-cook-2.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-2.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sun-lunch-cook-2.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sun-lunch-server",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sun-lunch-server.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sun-lunch-server",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-server.actor"
                        },
                        "role": {
                          "literal": "server"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sun-lunch-server",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-server.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sun-lunch-server.start"
                      },
                      "end": {
                        "ref": "activity.sun-lunch-server.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-server.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sun-lunch-server.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "cancelled-sat-dinner-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        {
                          "literal": "nora"
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-fri-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-fri-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-fri-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-server-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-server-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-server-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sun-lunch-cook-1-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sun-lunch-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sun-lunch-cook-1-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sun-lunch-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sun-lunch-cook-2-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sun-lunch-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "employee-capacity",
                    "requirement": "CAPACITY",
                    "kind": "resource-capacity"
                  },
                  {
                    "id": "hours-luis",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-luis"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-priya",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-priya"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-theo",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-theo"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-ava",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-ava"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-ben",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-ben"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-nora",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-nora"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-rowan",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-rowan"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "remaining-payroll-budget",
                    "requirement": "BUDGET",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "finance.expense"
                        },
                        {
                          "ref": "parameter.remainingLaborBudgetMinor"
                        }
                      ]
                    }
                  }
                ],
                "finance": {
                  "mode": "expense",
                  "charges": [
                    {
                      "id": "pay-fri-dinner-cook-1",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.fri-dinner-cook-1.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-fri-dinner-cook-2",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.fri-dinner-cook-2.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-fri-dinner-server",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.fri-dinner-server.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sat-dinner-cook-1",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sat-dinner-cook-1.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sat-dinner-cook-2",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sat-dinner-cook-2.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sat-dinner-server",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sat-dinner-server.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sun-lunch-cook-1",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sun-lunch-cook-1.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sun-lunch-cook-2",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sun-lunch-cook-2.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sun-lunch-server",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sun-lunch-server.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    }
                  ],
                  "holds": []
                },
                "preference": {
                  "direction": "min",
                  "expression": {
                    "ref": "derived.changedAssignments"
                  },
                  "then": [
                    {
                      "direction": "min",
                      "expression": {
                        "ref": "finance.expense"
                      }
                    }
                  ]
                },
                "labels": {
                  "plan": "Complete roster repair",
                  "actor": "Employee",
                  "scenario": "Recorded week",
                  "financeExpense": "Remaining payroll",
                  "choice.repair": "Supplied repair",
                  "view.schedule.title": "Complete remaining roster",
                  "activity.fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1)",
                  "activity.fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2)",
                  "activity.fri-dinner-server": "Friday dinner: Server (fri-dinner-server)",
                  "activity.sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1)",
                  "activity.sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2)",
                  "activity.sat-dinner-server": "Saturday dinner: Server (sat-dinner-server)",
                  "activity.sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1)",
                  "activity.sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2)",
                  "activity.sun-lunch-server": "Sunday lunch: Server (sun-lunch-server)",
                  "constraint.count-false": "Authored calculation basis: count-false",
                  "constraint.count-true": "Authored calculation basis: count-true",
                  "constraint.capacity-luis": "Authored calculation basis: capacity-luis",
                  "constraint.capacity-priya": "Authored calculation basis: capacity-priya",
                  "constraint.capacity-theo": "Authored calculation basis: capacity-theo",
                  "constraint.capacity-ava": "Authored calculation basis: capacity-ava",
                  "constraint.capacity-ben": "Authored calculation basis: capacity-ben",
                  "constraint.capacity-nora": "Authored calculation basis: capacity-nora",
                  "constraint.capacity-rowan": "Authored calculation basis: capacity-rowan",
                  "constraint.capacity-unfilled": "Authored calculation basis: capacity-unfilled",
                  "constraint.identity-luis": "Authored calculation basis: identity-luis",
                  "constraint.identity-priya": "Authored calculation basis: identity-priya",
                  "constraint.identity-theo": "Authored calculation basis: identity-theo",
                  "constraint.identity-ava": "Authored calculation basis: identity-ava",
                  "constraint.identity-ben": "Authored calculation basis: identity-ben",
                  "constraint.identity-nora": "Authored calculation basis: identity-nora",
                  "constraint.identity-rowan": "Authored calculation basis: identity-rowan",
                  "constraint.identity-unfilled": "Authored calculation basis: identity-unfilled",
                  "constraint.unfilled-assignmentFeeMinor": "Authored calculation basis: unfilled-assignmentFeeMinor",
                  "constraint.unfilled-earlierWeekMinutes": "Authored calculation basis: unfilled-earlierWeekMinutes",
                  "constraint.unfilled-weeklyLimitMinutes": "Authored calculation basis: unfilled-weeklyLimitMinutes",
                  "constraint.unfilled-lastEarlierShiftEnd": "Authored calculation basis: unfilled-lastEarlierShiftEnd",
                  "constraint.filled-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) must be filled",
                  "constraint.qualified-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs a qualified employee",
                  "constraint.available-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs availability for the whole assignment",
                  "constraint.earlier-rest-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs enough rest after earlier work",
                  "constraint.filled-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) must be filled",
                  "constraint.qualified-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs a qualified employee",
                  "constraint.available-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs availability for the whole assignment",
                  "constraint.earlier-rest-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs enough rest after earlier work",
                  "constraint.filled-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) must be filled",
                  "constraint.qualified-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs a qualified employee",
                  "constraint.available-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs availability for the whole assignment",
                  "constraint.earlier-rest-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs enough rest after earlier work",
                  "constraint.filled-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) must be filled",
                  "constraint.qualified-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs a qualified employee",
                  "constraint.available-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs availability for the whole assignment",
                  "constraint.earlier-rest-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs enough rest after earlier work",
                  "constraint.filled-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) must be filled",
                  "constraint.qualified-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs a qualified employee",
                  "constraint.available-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs availability for the whole assignment",
                  "constraint.earlier-rest-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs enough rest after earlier work",
                  "constraint.filled-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) must be filled",
                  "constraint.qualified-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs a qualified employee",
                  "constraint.available-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs availability for the whole assignment",
                  "constraint.earlier-rest-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs enough rest after earlier work",
                  "constraint.filled-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) must be filled",
                  "constraint.qualified-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs a qualified employee",
                  "constraint.available-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs availability for the whole assignment",
                  "constraint.earlier-rest-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs enough rest after earlier work",
                  "constraint.filled-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) must be filled",
                  "constraint.qualified-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs a qualified employee",
                  "constraint.available-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs availability for the whole assignment",
                  "constraint.earlier-rest-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs enough rest after earlier work",
                  "constraint.filled-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) must be filled",
                  "constraint.qualified-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs a qualified employee",
                  "constraint.available-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs availability for the whole assignment",
                  "constraint.earlier-rest-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs enough rest after earlier work",
                  "constraint.cancelled-sat-dinner-cook-2": "Nora's cancelled assignment remains unavailable",
                  "constraint.rest-fri-dinner-cook-1-fri-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Cook (fri-dinner-cook-2)",
                  "constraint.rest-fri-dinner-cook-1-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Server (fri-dinner-server)",
                  "constraint.rest-fri-dinner-cook-1-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-1)",
                  "constraint.rest-fri-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-fri-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-fri-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-fri-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-fri-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-fri-dinner-cook-2-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Friday dinner: Server (fri-dinner-server)",
                  "constraint.rest-fri-dinner-cook-2-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-1)",
                  "constraint.rest-fri-dinner-cook-2-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-fri-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-fri-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-fri-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-fri-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-fri-dinner-server-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-1)",
                  "constraint.rest-fri-dinner-server-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-fri-dinner-server-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-fri-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-fri-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-fri-dinner-server-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sat-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-sat-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-sat-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-sat-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sat-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sat-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-sat-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-sat-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sat-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sat-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-sat-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sat-dinner-server-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sun-lunch-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sun-lunch-cook-1-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sun-lunch-cook-2-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.employee-capacity": "An employee cannot cover overlapping assignments or bookings",
                  "constraint.hours-luis": "Luis's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-priya": "Priya's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-theo": "Theo's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-ava": "Ava's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-ben": "Ben's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-nora": "Nora's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-rowan": "Rowan's total worked minutes must fit the recorded weekly limit",
                  "constraint.remaining-payroll-budget": "Complete remaining payroll must fit the recorded limit",
                  "resource.luis": "Luis",
                  "resource.priya": "Priya",
                  "resource.theo": "Theo",
                  "resource.ava": "Ava",
                  "resource.ben": "Ben",
                  "resource.nora": "Nora",
                  "resource.rowan": "Rowan",
                  "resource.unfilled": "Unfilled",
                  "choice.repair.hold": "Leave the gap",
                  "choice.repair.move-only": "Move Theo only",
                  "choice.repair.relief": "Bring in Rowan",
                  "choice.repair.coupled": "Repair three assignments"
                },
                "metadata": {
                  "decisionPresentation": {
                    "format": "decision-presentation/1",
                    "title": "Compare complete roster repairs",
                    "question": "Which supplied repairs can operate, and what does each change?",
                    "priorityLabel": "Preserve published assignments first, then minimize payroll",
                    "moneyFormat": {
                      "currency": "USD",
                      "divisor": 100
                    },
                    "columns": [
                      {
                        "id": "plan",
                        "label": "Complete repair"
                      },
                      {
                        "id": "status",
                        "label": "Operating result"
                      },
                      {
                        "id": "expense",
                        "label": "Remaining payroll",
                        "format": {
                          "kind": "money",
                          "currency": "USD",
                          "divisor": 100
                        }
                      },
                      {
                        "id": "additionalExpense",
                        "source": {
                          "kind": "derived",
                          "id": "additionalExpense"
                        },
                        "label": "Additional expense",
                        "format": {
                          "kind": "money",
                          "currency": "USD",
                          "divisor": 100
                        }
                      },
                      {
                        "id": "changes",
                        "source": {
                          "kind": "derived",
                          "id": "changedAssignments"
                        },
                        "label": "Changed positions",
                        "format": {
                          "kind": "number"
                        }
                      },
                      {
                        "id": "blockers",
                        "label": "Blocking condition"
                      }
                    ],
                    "charts": [
                      {
                        "viewId": "commitment:schedule",
                        "defaultRepresentation": "timeline"
                      }
                    ]
                  }
                }
              },
              "case": {
                "id": "restaurant-roster",
                "parameters": {
                  "remainingLaborBudgetMinor": 85600,
                  "minimumRestMinutes": 600
                },
                "tables": {
                  "employees": [
                    {
                      "id": "luis",
                      "name": "Luis",
                      "assignmentFeeMinor": 8800,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "priya",
                      "name": "Priya",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "theo",
                      "name": "Theo",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "ava",
                      "name": "Ava",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "ben",
                      "name": "Ben",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "nora",
                      "name": "Nora",
                      "assignmentFeeMinor": 8800,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "rowan",
                      "name": "Rowan",
                      "assignmentFeeMinor": 18000,
                      "earlierWeekMinutes": 0,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 0
                    },
                    {
                      "id": "unfilled",
                      "name": "Unfilled",
                      "assignmentFeeMinor": 0,
                      "earlierWeekMinutes": 0,
                      "weeklyLimitMinutes": 0,
                      "lastEarlierShiftEnd": 0
                    }
                  ],
                  "qualifications": [
                    {
                      "employee": "luis",
                      "role": "cook"
                    },
                    {
                      "employee": "priya",
                      "role": "cook"
                    },
                    {
                      "employee": "theo",
                      "role": "cook"
                    },
                    {
                      "employee": "ava",
                      "role": "server"
                    },
                    {
                      "employee": "ben",
                      "role": "cook"
                    },
                    {
                      "employee": "ben",
                      "role": "server"
                    },
                    {
                      "employee": "nora",
                      "role": "cook"
                    },
                    {
                      "employee": "rowan",
                      "role": "cook"
                    }
                  ],
                  "assignments": [
                    {
                      "id": "hold",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "unfilled",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "theo",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ben"
                    },
                    {
                      "id": "move-only",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "theo",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "unfilled",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ben"
                    },
                    {
                      "id": "relief",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "rowan",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "theo",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ben"
                    },
                    {
                      "id": "coupled",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "theo",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "ben",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ava"
                    }
                  ],
                  "availability": [
                    {
                      "id": "availability-luis-1",
                      "employee": "luis",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-priya-1",
                      "employee": "priya",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-theo-1",
                      "employee": "theo",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-ava-1",
                      "employee": "ava",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-ben-1",
                      "employee": "ben",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-rowan-1",
                      "employee": "rowan",
                      "from": 8280,
                      "through": 8520
                    }
                  ],
                  "scenarios": [
                    {
                      "id": "recorded-week"
                    }
                  ],
                  "bookings": [],
                  "_counts": [
                    {
                      "flag": false,
                      "count": 0
                    },
                    {
                      "flag": true,
                      "count": 1
                    }
                  ],
                  "_resources": [
                    {
                      "id": "luis",
                      "capacity": 1
                    },
                    {
                      "id": "priya",
                      "capacity": 1
                    },
                    {
                      "id": "theo",
                      "capacity": 1
                    },
                    {
                      "id": "ava",
                      "capacity": 1
                    },
                    {
                      "id": "ben",
                      "capacity": 1
                    },
                    {
                      "id": "nora",
                      "capacity": 1
                    },
                    {
                      "id": "rowan",
                      "capacity": 1
                    },
                    {
                      "id": "unfilled",
                      "capacity": 1
                    }
                  ]
                },
                "provenance": [
                  {
                    "id": "fictional-roster-basis",
                    "description": "Fictional accepted roster facts. Fees are flat amounts for each complete accepted assignment, with no implicit hourly prorating. Earlier work is retained as totals and latest shift ends. Unpaid cancellations are excluded from the remaining-payroll baseline. No staff agreement, notification or roster publication occurs."
                  }
                ]
              }
            },
            "presentation": {
              "schemaVersion": 1,
              "provider": "native-commitment-planning",
              "contract": "complete-a-commitment.assessment/1",
              "views": []
            },
            "viewContracts": [],
            "fields": [],
            "reports": [],
            "defaultReport": null,
            "originWorkspaceId": null,
            "createdAt": "2026-11-20T20:00:00.000Z",
            "contentHash": "da734a8d5b9e5ca24ea728426c156f264364fa43ae0f7cacbe94c3f4137516ef"
          },
          "sourceProvenance": "supplied",
          "contentHash": "ec3bf5532079eaaa269868603c5a099b60b789e74f929e8ea691f001c2577dba"
        },
        "packageHash": "ec3bf5532079eaaa269868603c5a099b60b789e74f929e8ea691f001c2577dba"
      },
      {
        "id": "cost",
        "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": "Determine whether one complete static plan can satisfy every mandatory obligation across every explicitly admitted scenario. Compare feasible plans only after whole-plan execution feasibility is established.",
              "authoring": {
                "requiredModuleFields": [
                  "description",
                  "question",
                  "assumptions",
                  "units",
                  "inputs",
                  "choices",
                  "scenarioDomain",
                  "derived",
                  "activities",
                  "resources",
                  "requirements",
                  "constraints",
                  "finance",
                  "preference",
                  "labels"
                ],
                "guidance": "What must be completed, for whom, and within which accepted limits?\nWhich objects, quantities, revisions and locations are covered?\nWhich factual records and admitted states are we relying on?\nWhich complete choices may the planner make?\nWhich activities, dependencies, calendars and capacities must the same plan respect?\nWhich scoped permissions must cover each required operation?\nWhich joint operating scenarios must this commitment withstand?\nWhich obligations are mandatory, and how will passing complete plans be compared?\nModule authors supply these declarations and domain vocabulary. Case workers supply only values allowed by the frozen module. Facts, scenarios and operating permission must never be inferred from a preferred plan."
              },
              "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-16T12:00:00.000Z",
            "contentHash": "2fe9902f4f2b8deebd5663a8467fc2d5c24aeaa9fdcdca1ccd1bb42574a144b2"
          },
          "app": {
            "schemaVersion": 5,
            "kind": "hermod-published-app",
            "runtime": "diagnostic-evidence",
            "id": "roster-repair-cost",
            "version": 1,
            "name": "Repair a published restaurant roster",
            "description": "Compare supplied complete repairs for a published roster. Every remaining authored position is checked; a preferred repair is established only among these alternatives.",
            "source": "{\n  \"format\": \"complete-a-commitment/1\",\n  \"module\": {\n    \"id\": \"roster-repair-cost\",\n    \"version\": \"1.0.0\",\n    \"template\": {\n      \"id\": \"complete-a-commitment\",\n      \"version\": 1\n    },\n    \"title\": \"Repair a published restaurant roster\",\n    \"question\": \"Which supplied complete repairs cover every remaining service within the recorded staffing and payroll limits?\",\n    \"description\": \"Compare supplied complete repairs for a published roster. Every remaining authored position is checked; a preferred repair is established only among these alternatives.\",\n    \"units\": {\n      \"time\": \"minute\",\n      \"timeOrigin\": \"Monday 00:00 of one fictional week; one local clock without a daylight-saving transition\",\n      \"money\": \"USD cent\",\n      \"count\": \"position\"\n    },\n    \"assumptions\": [\n      \"This bounded comparison evaluates supplied complete repairs; it does not search every possible employee assignment or generate service demand.\",\n      \"Every position has an authored role and fixed positive interval. Required breaks must be omitted from working availability and explicitly covered by a supplied repair.\",\n      \"Fees are flat accepted amounts per complete assignment. Different durations are counted accurately for hours; no hourly pay, proration, overtime premium or tax is inferred.\",\n      \"The retained baseline sums published assignments after removing explicitly unpaid cancellations. Changed positions compare assigned people with the published roster, not employee disruption, consent or fairness.\",\n      \"Earlier work is retained as totals and latest shift ends. Declared weekly-hours and rest limits are assumptions, not a labor-law assessment. Existing bookings are checked for capacity, not retrospectively audited for rest.\",\n      \"A calculated proposal does not obtain staff agreement, notify employees or publish a roster. Demand forecasts and actual operation require separate records or integrations.\"\n    ],\n    \"inputs\": {\n      \"parameters\": {\n        \"remainingLaborBudgetMinor\": {\n          \"type\": \"integer\",\n          \"unit\": \"money\",\n          \"minimum\": 0\n        },\n        \"minimumRestMinutes\": {\n          \"type\": \"integer\",\n          \"unit\": \"time\",\n          \"minimum\": 0\n        }\n      },\n      \"tables\": {\n        \"employees\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ]\n            },\n            \"name\": {\n              \"type\": \"string\"\n            },\n            \"assignmentFeeMinor\": {\n              \"type\": \"integer\",\n              \"unit\": \"money\",\n              \"minimum\": 0\n            },\n            \"earlierWeekMinutes\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"weeklyLimitMinutes\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"lastEarlierShiftEnd\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            }\n          }\n        },\n        \"qualifications\": {\n          \"key\": [\n            \"employee\",\n            \"role\"\n          ],\n          \"columns\": {\n            \"employee\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"role\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"cook\",\n                \"server\"\n              ]\n            }\n          }\n        },\n        \"assignments\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"hold\",\n                \"move-only\",\n                \"relief\",\n                \"coupled\"\n              ]\n            },\n            \"fri-dinner-cook-1\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"fri-dinner-cook-2\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"fri-dinner-server\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sat-dinner-cook-1\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sat-dinner-cook-2\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sat-dinner-server\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sun-lunch-cook-1\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sun-lunch-cook-2\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"sun-lunch-server\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            }\n          }\n        },\n        \"availability\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\"\n            },\n            \"employee\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"from\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"through\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            }\n          }\n        },\n        \"_counts\": {\n          \"key\": [\n            \"flag\"\n          ],\n          \"columns\": {\n            \"flag\": {\n              \"type\": \"boolean\"\n            },\n            \"count\": {\n              \"type\": \"integer\",\n              \"unit\": \"count\",\n              \"minimum\": 0,\n              \"enum\": [\n                0,\n                1\n              ]\n            }\n          }\n        },\n        \"_resources\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"capacity\": {\n              \"type\": \"integer\",\n              \"unit\": \"count\",\n              \"minimum\": 0,\n              \"enum\": [\n                1\n              ]\n            }\n          }\n        },\n        \"scenarios\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"recorded-week\"\n              ]\n            }\n          }\n        },\n        \"bookings\": {\n          \"key\": [\n            \"id\"\n          ],\n          \"columns\": {\n            \"id\": {\n              \"type\": \"string\"\n            },\n            \"employee\": {\n              \"type\": \"string\",\n              \"enum\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ],\n              \"references\": {\n                \"table\": \"employees\",\n                \"column\": \"id\"\n              }\n            },\n            \"from\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"through\": {\n              \"type\": \"integer\",\n              \"unit\": \"time\",\n              \"minimum\": 0\n            },\n            \"amount\": {\n              \"type\": \"integer\",\n              \"unit\": \"count\",\n              \"minimum\": 0,\n              \"enum\": [\n                1\n              ]\n            }\n          }\n        }\n      }\n    },\n    \"choices\": [\n      {\n        \"id\": \"repair\",\n        \"domain\": {\n          \"values\": [\n            \"hold\",\n            \"move-only\",\n            \"relief\",\n            \"coupled\"\n          ]\n        }\n      }\n    ],\n    \"scenarioDomain\": {\n      \"table\": \"scenarios\"\n    },\n    \"lookupCoverage\": [\n      {\n        \"table\": \"assignments\",\n        \"keys\": {\n          \"id\": {\n            \"domain\": {\n              \"values\": [\n                \"hold\",\n                \"move-only\",\n                \"relief\",\n                \"coupled\"\n              ]\n            }\n          }\n        }\n      },\n      {\n        \"table\": \"employees\",\n        \"keys\": {\n          \"id\": {\n            \"domain\": {\n              \"values\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ]\n            }\n          }\n        }\n      },\n      {\n        \"table\": \"_resources\",\n        \"keys\": {\n          \"id\": {\n            \"domain\": {\n              \"values\": [\n                \"luis\",\n                \"priya\",\n                \"theo\",\n                \"ava\",\n                \"ben\",\n                \"nora\",\n                \"rowan\",\n                \"unfilled\"\n              ]\n            }\n          }\n        }\n      },\n      {\n        \"table\": \"_counts\",\n        \"keys\": {\n          \"flag\": {\n            \"domain\": {\n              \"values\": [\n                false,\n                true\n              ]\n            }\n          }\n        }\n      }\n    ],\n    \"derived\": [\n      {\n        \"id\": \"duration-fri-dinner-cook-1\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-fri-dinner-cook-2\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-fri-dinner-server\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sat-dinner-cook-1\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sat-dinner-cook-2\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sat-dinner-server\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sun-lunch-cook-1\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sun-lunch-cook-2\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"duration-sun-lunch-server\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"literal\": 240\n        }\n      },\n      {\n        \"id\": \"changedAssignments\",\n        \"type\": \"integer\",\n        \"unit\": \"count\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                    },\n                    {\n                      \"literal\": \"luis\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                    },\n                    {\n                      \"literal\": \"priya\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-server.actor\"\n                    },\n                    {\n                      \"literal\": \"ava\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                    },\n                    {\n                      \"literal\": \"luis\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                    },\n                    {\n                      \"literal\": \"nora\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.actor\"\n                    },\n                    {\n                      \"literal\": \"ava\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                    },\n                    {\n                      \"literal\": \"theo\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                    },\n                    {\n                      \"literal\": \"priya\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"op\": \"ne\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.actor\"\n                    },\n                    {\n                      \"literal\": \"ben\"\n                    }\n                  ]\n                }\n              },\n              \"column\": \"count\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"retainedBaselineExpense\",\n        \"type\": \"integer\",\n        \"unit\": \"money\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"additionalExpense\",\n        \"type\": \"integer\",\n        \"unit\": \"money\",\n        \"expr\": {\n          \"op\": \"sub\",\n          \"args\": [\n            {\n              \"ref\": \"finance.expense\"\n            },\n            {\n              \"ref\": \"derived.retainedBaselineExpense\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-luis\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"luis\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-priya\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"priya\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-theo\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"theo\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-ava\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ava\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-ben\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"ben\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-nora\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"nora\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"minutes-rowan\",\n        \"type\": \"integer\",\n        \"unit\": \"time\",\n        \"expr\": {\n          \"op\": \"add\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.fri-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sat-dinner-server.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.duration\"\n                }\n              ]\n            },\n            {\n              \"op\": \"mul\",\n              \"args\": [\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"_counts\",\n                  \"where\": {\n                    \"flag\": {\n                      \"op\": \"eq\",\n                      \"args\": [\n                        {\n                          \"ref\": \"activity.sun-lunch-server.actor\"\n                        },\n                        {\n                          \"literal\": \"rowan\"\n                        }\n                      ]\n                    }\n                  },\n                  \"column\": \"count\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.duration\"\n                }\n              ]\n            }\n          ]\n        }\n      }\n    ],\n    \"activities\": [\n      {\n        \"id\": \"fri-dinner-cook-1\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"fri-dinner-cook-1\"\n        },\n        \"start\": {\n          \"literal\": 6840\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-fri-dinner-cook-1\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"fri-dinner-cook-2\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"fri-dinner-cook-2\"\n        },\n        \"start\": {\n          \"literal\": 6840\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-fri-dinner-cook-2\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"fri-dinner-server\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"fri-dinner-server\"\n        },\n        \"start\": {\n          \"literal\": 6840\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-fri-dinner-server\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sat-dinner-cook-1\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sat-dinner-cook-1\"\n        },\n        \"start\": {\n          \"literal\": 8280\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sat-dinner-cook-1\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sat-dinner-cook-2\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sat-dinner-cook-2\"\n        },\n        \"start\": {\n          \"literal\": 8280\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sat-dinner-cook-2\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sat-dinner-server\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sat-dinner-server\"\n        },\n        \"start\": {\n          \"literal\": 8280\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sat-dinner-server\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sun-lunch-cook-1\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sun-lunch-cook-1\"\n        },\n        \"start\": {\n          \"literal\": 9360\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sun-lunch-cook-1\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sun-lunch-cook-2\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sun-lunch-cook-2\"\n        },\n        \"start\": {\n          \"literal\": 9360\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sun-lunch-cook-2\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      },\n      {\n        \"id\": \"sun-lunch-server\",\n        \"actor\": {\n          \"op\": \"lookup\",\n          \"table\": \"assignments\",\n          \"where\": {\n            \"id\": {\n              \"ref\": \"choice.repair\"\n            }\n          },\n          \"column\": \"sun-lunch-server\"\n        },\n        \"start\": {\n          \"literal\": 9360\n        },\n        \"duration\": {\n          \"ref\": \"derived.duration-sun-lunch-server\"\n        },\n        \"resources\": [\n          {\n            \"resource\": {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            },\n            \"amount\": {\n              \"literal\": 1\n            }\n          }\n        ]\n      }\n    ],\n    \"resources\": {\n      \"definitions\": {\n        \"table\": \"_resources\",\n        \"idColumn\": \"id\",\n        \"capacityColumn\": \"capacity\"\n      },\n      \"bookings\": {\n        \"table\": \"bookings\",\n        \"resourceColumn\": \"employee\",\n        \"startColumn\": \"from\",\n        \"endColumn\": \"through\",\n        \"amountColumn\": \"amount\"\n      }\n    },\n    \"requirements\": [\n      {\n        \"id\": \"COVERAGE\",\n        \"label\": \"Every required position filled\",\n        \"meaning\": \"Every authored position has an employee for its complete interval.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"QUALIFICATION\",\n        \"label\": \"Required qualifications\",\n        \"meaning\": \"Each assigned employee has the recorded qualification for that role.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"AVAILABILITY\",\n        \"label\": \"Full-interval availability\",\n        \"meaning\": \"Working availability covers the whole assignment; declared unpaid cancellations remain unavailable.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"CAPACITY\",\n        \"label\": \"One assignment at a time\",\n        \"meaning\": \"An employee cannot fill simultaneous positions or overlap an existing booking.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"REST\",\n        \"label\": \"Declared rest between assignments\",\n        \"meaning\": \"Prior work and remaining assignments leave the recorded minimum rest.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"HOURS\",\n        \"label\": \"Declared weekly hours\",\n        \"meaning\": \"Earlier worked minutes plus actual assignment durations fit the employee limit.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"BUDGET\",\n        \"label\": \"Remaining payroll limit\",\n        \"meaning\": \"Complete remaining payroll fits the recorded limit; unpaid cancellations are excluded from the retained baseline.\",\n        \"waivable\": false\n      },\n      {\n        \"id\": \"BASIS\",\n        \"label\": \"Authored calculation basis\",\n        \"meaning\": \"Fixed identities, exclusive employee capacities and Boolean counts retain their authored meaning.\",\n        \"waivable\": false\n      }\n    ],\n    \"constraints\": [\n      {\n        \"id\": \"count-false\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"literal\": false\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"count-true\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_counts\",\n              \"where\": {\n                \"flag\": {\n                  \"literal\": true\n                }\n              },\n              \"column\": \"count\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-luis\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-priya\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-theo\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-ava\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-ben\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-nora\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-rowan\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"capacity-unfilled\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"_resources\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"capacity\"\n            },\n            {\n              \"literal\": 1\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-luis\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Luis\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-priya\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Priya\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-theo\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Theo\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-ava\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Ava\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-ben\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Ben\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-nora\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Nora\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-rowan\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Rowan\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"identity-unfilled\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"name\"\n            },\n            {\n              \"literal\": \"Unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-assignmentFeeMinor\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"assignmentFeeMinor\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-earlierWeekMinutes\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"earlierWeekMinutes\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-weeklyLimitMinutes\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"unfilled-lastEarlierShiftEnd\",\n        \"requirement\": \"BASIS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"eq\",\n          \"args\": [\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"unfilled\"\n                }\n              },\n              \"column\": \"lastEarlierShiftEnd\"\n            },\n            {\n              \"literal\": 0\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-fri-dinner-cook-1\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-fri-dinner-cook-1\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-fri-dinner-cook-1\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-1.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.fri-dinner-cook-1.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.fri-dinner-cook-1.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-fri-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-fri-dinner-cook-2\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-fri-dinner-cook-2\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-fri-dinner-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-cook-2.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.fri-dinner-cook-2.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.fri-dinner-cook-2.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-fri-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-fri-dinner-server\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-fri-dinner-server\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            },\n            \"role\": {\n              \"literal\": \"server\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-fri-dinner-server\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.fri-dinner-server.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.fri-dinner-server.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.fri-dinner-server.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-fri-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.fri-dinner-server.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sat-dinner-cook-1\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sat-dinner-cook-1\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sat-dinner-cook-1\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-1.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sat-dinner-cook-1.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sat-dinner-cook-1.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sat-dinner-cook-2\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sat-dinner-cook-2\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sat-dinner-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sat-dinner-cook-2.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sat-dinner-cook-2.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sat-dinner-server\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sat-dinner-server\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            },\n            \"role\": {\n              \"literal\": \"server\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sat-dinner-server\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sat-dinner-server.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sat-dinner-server.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sat-dinner-server.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sat-dinner-server.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sun-lunch-cook-1\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sun-lunch-cook-1\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sun-lunch-cook-1\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-1.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sun-lunch-cook-1.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sun-lunch-cook-1.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sun-lunch-cook-2\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sun-lunch-cook-2\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            },\n            \"role\": {\n              \"literal\": \"cook\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sun-lunch-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-cook-2.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sun-lunch-cook-2.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sun-lunch-cook-2.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"filled-sun-lunch-server\",\n        \"requirement\": \"COVERAGE\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            },\n            {\n              \"literal\": \"unfilled\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"qualified-sun-lunch-server\",\n        \"requirement\": \"QUALIFICATION\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"exists\",\n          \"table\": \"qualifications\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            },\n            \"role\": {\n              \"literal\": \"server\"\n            }\n          }\n        }\n      },\n      {\n        \"id\": \"available-sun-lunch-server\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"interval-covered\",\n          \"table\": \"availability\",\n          \"where\": {\n            \"employee\": {\n              \"ref\": \"activity.sun-lunch-server.actor\"\n            }\n          },\n          \"start\": {\n            \"ref\": \"activity.sun-lunch-server.start\"\n          },\n          \"end\": {\n            \"ref\": \"activity.sun-lunch-server.end\"\n          },\n          \"startColumn\": \"from\",\n          \"endColumn\": \"through\"\n        }\n      },\n      {\n        \"id\": \"earlier-rest-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"gte\",\n          \"args\": [\n            {\n              \"op\": \"sub\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-server.start\"\n                },\n                {\n                  \"op\": \"lookup\",\n                  \"table\": \"employees\",\n                  \"where\": {\n                    \"id\": {\n                      \"ref\": \"activity.sun-lunch-server.actor\"\n                    }\n                  },\n                  \"column\": \"lastEarlierShiftEnd\"\n                }\n              ]\n            },\n            {\n              \"ref\": \"parameter.minimumRestMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"cancelled-sat-dinner-cook-2\",\n        \"requirement\": \"AVAILABILITY\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"ne\",\n          \"args\": [\n            {\n              \"ref\": \"activity.sat-dinner-cook-2.actor\"\n            },\n            {\n              \"literal\": \"nora\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-fri-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-fri-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-1-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-fri-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.fri-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-cook-2-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sat-dinner-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-fri-dinner-server-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.fri-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.fri-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sat-dinner-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-1-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sat-dinner-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sat-dinner-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-cook-2-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-server-sun-lunch-cook-1\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-server-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sat-dinner-server-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sat-dinner-server.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sat-dinner-server.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sun-lunch-cook-1-sun-lunch-cook-2\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sun-lunch-cook-1-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-1.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-1.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"rest-sun-lunch-cook-2-sun-lunch-server\",\n        \"requirement\": \"REST\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"or\",\n          \"args\": [\n            {\n              \"op\": \"ne\",\n              \"args\": [\n                {\n                  \"ref\": \"activity.sun-lunch-cook-2.actor\"\n                },\n                {\n                  \"ref\": \"activity.sun-lunch-server.actor\"\n                }\n              ]\n            },\n            {\n              \"op\": \"gte\",\n              \"args\": [\n                {\n                  \"op\": \"sub\",\n                  \"args\": [\n                    {\n                      \"ref\": \"activity.sun-lunch-server.start\"\n                    },\n                    {\n                      \"ref\": \"activity.sun-lunch-cook-2.end\"\n                    }\n                  ]\n                },\n                {\n                  \"ref\": \"parameter.minimumRestMinutes\"\n                }\n              ]\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"employee-capacity\",\n        \"requirement\": \"CAPACITY\",\n        \"kind\": \"resource-capacity\"\n      },\n      {\n        \"id\": \"hours-luis\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-luis\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"luis\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-priya\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-priya\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"priya\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-theo\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-theo\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"theo\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-ava\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-ava\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ava\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-ben\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-ben\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"ben\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-nora\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-nora\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"nora\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"hours-rowan\",\n        \"requirement\": \"HOURS\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"derived.minutes-rowan\"\n            },\n            {\n              \"op\": \"lookup\",\n              \"table\": \"employees\",\n              \"where\": {\n                \"id\": {\n                  \"literal\": \"rowan\"\n                }\n              },\n              \"column\": \"weeklyLimitMinutes\"\n            }\n          ]\n        }\n      },\n      {\n        \"id\": \"remaining-payroll-budget\",\n        \"requirement\": \"BUDGET\",\n        \"kind\": \"predicate\",\n        \"predicate\": {\n          \"op\": \"lte\",\n          \"args\": [\n            {\n              \"ref\": \"finance.expense\"\n            },\n            {\n              \"ref\": \"parameter.remainingLaborBudgetMinor\"\n            }\n          ]\n        }\n      }\n    ],\n    \"finance\": {\n      \"mode\": \"expense\",\n      \"charges\": [\n        {\n          \"id\": \"pay-fri-dinner-cook-1\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.fri-dinner-cook-1.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-fri-dinner-cook-2\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.fri-dinner-cook-2.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-fri-dinner-server\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.fri-dinner-server.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sat-dinner-cook-1\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sat-dinner-cook-1.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sat-dinner-cook-2\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sat-dinner-cook-2.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sat-dinner-server\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sat-dinner-server.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sun-lunch-cook-1\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sun-lunch-cook-1.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sun-lunch-cook-2\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sun-lunch-cook-2.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        },\n        {\n          \"id\": \"pay-sun-lunch-server\",\n          \"amount\": {\n            \"op\": \"lookup\",\n            \"table\": \"employees\",\n            \"where\": {\n              \"id\": {\n                \"ref\": \"activity.sun-lunch-server.actor\"\n              }\n            },\n            \"column\": \"assignmentFeeMinor\"\n          }\n        }\n      ],\n      \"holds\": []\n    },\n    \"preference\": {\n      \"direction\": \"min\",\n      \"expression\": {\n        \"ref\": \"finance.expense\"\n      },\n      \"then\": [\n        {\n          \"direction\": \"min\",\n          \"expression\": {\n            \"ref\": \"derived.changedAssignments\"\n          }\n        }\n      ]\n    },\n    \"labels\": {\n      \"plan\": \"Complete roster repair\",\n      \"actor\": \"Employee\",\n      \"scenario\": \"Recorded week\",\n      \"financeExpense\": \"Remaining payroll\",\n      \"choice.repair\": \"Supplied repair\",\n      \"view.schedule.title\": \"Complete remaining roster\",\n      \"activity.fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1)\",\n      \"activity.fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2)\",\n      \"activity.fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server)\",\n      \"activity.sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"activity.sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"activity.sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server)\",\n      \"activity.sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"activity.sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"activity.sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.count-false\": \"Authored calculation basis: count-false\",\n      \"constraint.count-true\": \"Authored calculation basis: count-true\",\n      \"constraint.capacity-luis\": \"Authored calculation basis: capacity-luis\",\n      \"constraint.capacity-priya\": \"Authored calculation basis: capacity-priya\",\n      \"constraint.capacity-theo\": \"Authored calculation basis: capacity-theo\",\n      \"constraint.capacity-ava\": \"Authored calculation basis: capacity-ava\",\n      \"constraint.capacity-ben\": \"Authored calculation basis: capacity-ben\",\n      \"constraint.capacity-nora\": \"Authored calculation basis: capacity-nora\",\n      \"constraint.capacity-rowan\": \"Authored calculation basis: capacity-rowan\",\n      \"constraint.capacity-unfilled\": \"Authored calculation basis: capacity-unfilled\",\n      \"constraint.identity-luis\": \"Authored calculation basis: identity-luis\",\n      \"constraint.identity-priya\": \"Authored calculation basis: identity-priya\",\n      \"constraint.identity-theo\": \"Authored calculation basis: identity-theo\",\n      \"constraint.identity-ava\": \"Authored calculation basis: identity-ava\",\n      \"constraint.identity-ben\": \"Authored calculation basis: identity-ben\",\n      \"constraint.identity-nora\": \"Authored calculation basis: identity-nora\",\n      \"constraint.identity-rowan\": \"Authored calculation basis: identity-rowan\",\n      \"constraint.identity-unfilled\": \"Authored calculation basis: identity-unfilled\",\n      \"constraint.unfilled-assignmentFeeMinor\": \"Authored calculation basis: unfilled-assignmentFeeMinor\",\n      \"constraint.unfilled-earlierWeekMinutes\": \"Authored calculation basis: unfilled-earlierWeekMinutes\",\n      \"constraint.unfilled-weeklyLimitMinutes\": \"Authored calculation basis: unfilled-weeklyLimitMinutes\",\n      \"constraint.unfilled-lastEarlierShiftEnd\": \"Authored calculation basis: unfilled-lastEarlierShiftEnd\",\n      \"constraint.filled-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) must be filled\",\n      \"constraint.qualified-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) needs a qualified employee\",\n      \"constraint.available-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-fri-dinner-cook-1\": \"Friday dinner: Cook (fri-dinner-cook-1) needs enough rest after earlier work\",\n      \"constraint.filled-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) must be filled\",\n      \"constraint.qualified-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) needs a qualified employee\",\n      \"constraint.available-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-fri-dinner-cook-2\": \"Friday dinner: Cook (fri-dinner-cook-2) needs enough rest after earlier work\",\n      \"constraint.filled-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) must be filled\",\n      \"constraint.qualified-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) needs a qualified employee\",\n      \"constraint.available-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-fri-dinner-server\": \"Friday dinner: Server (fri-dinner-server) needs enough rest after earlier work\",\n      \"constraint.filled-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) must be filled\",\n      \"constraint.qualified-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) needs a qualified employee\",\n      \"constraint.available-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sat-dinner-cook-1\": \"Saturday dinner: Cook (sat-dinner-cook-1) needs enough rest after earlier work\",\n      \"constraint.filled-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) must be filled\",\n      \"constraint.qualified-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) needs a qualified employee\",\n      \"constraint.available-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sat-dinner-cook-2\": \"Saturday dinner: Cook (sat-dinner-cook-2) needs enough rest after earlier work\",\n      \"constraint.filled-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) must be filled\",\n      \"constraint.qualified-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) needs a qualified employee\",\n      \"constraint.available-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sat-dinner-server\": \"Saturday dinner: Server (sat-dinner-server) needs enough rest after earlier work\",\n      \"constraint.filled-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) must be filled\",\n      \"constraint.qualified-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) needs a qualified employee\",\n      \"constraint.available-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sun-lunch-cook-1\": \"Sunday lunch: Cook (sun-lunch-cook-1) needs enough rest after earlier work\",\n      \"constraint.filled-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) must be filled\",\n      \"constraint.qualified-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) needs a qualified employee\",\n      \"constraint.available-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sun-lunch-cook-2\": \"Sunday lunch: Cook (sun-lunch-cook-2) needs enough rest after earlier work\",\n      \"constraint.filled-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) must be filled\",\n      \"constraint.qualified-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) needs a qualified employee\",\n      \"constraint.available-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) needs availability for the whole assignment\",\n      \"constraint.earlier-rest-sun-lunch-server\": \"Sunday lunch: Server (sun-lunch-server) needs enough rest after earlier work\",\n      \"constraint.cancelled-sat-dinner-cook-2\": \"Nora's cancelled assignment remains unavailable\",\n      \"constraint.rest-fri-dinner-cook-1-fri-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Cook (fri-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-1-fri-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Server (fri-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-1-sat-dinner-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-1-sat-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-1-sat-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-1-sun-lunch-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-1-sun-lunch-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-1-sun-lunch-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-fri-dinner-cook-2-fri-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Friday dinner: Server (fri-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-2-sat-dinner-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-2-sat-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-2-sat-dinner-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-fri-dinner-cook-2-sun-lunch-cook-1\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-fri-dinner-cook-2-sun-lunch-cook-2\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-fri-dinner-cook-2-sun-lunch-server\": \"The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-fri-dinner-server-sat-dinner-cook-1\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-1)\",\n      \"constraint.rest-fri-dinner-server-sat-dinner-cook-2\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-fri-dinner-server-sat-dinner-server\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-fri-dinner-server-sun-lunch-cook-1\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-fri-dinner-server-sun-lunch-cook-2\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-fri-dinner-server-sun-lunch-server\": \"The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sat-dinner-cook-1-sat-dinner-cook-2\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)\",\n      \"constraint.rest-sat-dinner-cook-1-sat-dinner-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-sat-dinner-cook-1-sun-lunch-cook-1\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-sat-dinner-cook-1-sun-lunch-cook-2\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sat-dinner-cook-1-sun-lunch-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sat-dinner-cook-2-sat-dinner-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)\",\n      \"constraint.rest-sat-dinner-cook-2-sun-lunch-cook-1\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-sat-dinner-cook-2-sun-lunch-cook-2\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sat-dinner-cook-2-sun-lunch-server\": \"The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sat-dinner-server-sun-lunch-cook-1\": \"The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)\",\n      \"constraint.rest-sat-dinner-server-sun-lunch-cook-2\": \"The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sat-dinner-server-sun-lunch-server\": \"The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sun-lunch-cook-1-sun-lunch-cook-2\": \"The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)\",\n      \"constraint.rest-sun-lunch-cook-1-sun-lunch-server\": \"The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.rest-sun-lunch-cook-2-sun-lunch-server\": \"The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-2) and Sunday lunch: Server (sun-lunch-server)\",\n      \"constraint.employee-capacity\": \"An employee cannot cover overlapping assignments or bookings\",\n      \"constraint.hours-luis\": \"Luis's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-priya\": \"Priya's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-theo\": \"Theo's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-ava\": \"Ava's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-ben\": \"Ben's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-nora\": \"Nora's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.hours-rowan\": \"Rowan's total worked minutes must fit the recorded weekly limit\",\n      \"constraint.remaining-payroll-budget\": \"Complete remaining payroll must fit the recorded limit\",\n      \"resource.luis\": \"Luis\",\n      \"resource.priya\": \"Priya\",\n      \"resource.theo\": \"Theo\",\n      \"resource.ava\": \"Ava\",\n      \"resource.ben\": \"Ben\",\n      \"resource.nora\": \"Nora\",\n      \"resource.rowan\": \"Rowan\",\n      \"resource.unfilled\": \"Unfilled\",\n      \"choice.repair.hold\": \"Leave the gap\",\n      \"choice.repair.move-only\": \"Move Theo only\",\n      \"choice.repair.relief\": \"Bring in Rowan\",\n      \"choice.repair.coupled\": \"Repair three assignments\"\n    },\n    \"metadata\": {\n      \"decisionPresentation\": {\n        \"format\": \"decision-presentation/1\",\n        \"title\": \"Compare complete roster repairs\",\n        \"question\": \"Which supplied repairs can operate, and what does each change?\",\n        \"priorityLabel\": \"Minimize remaining payroll first, then preserve published assignments\",\n        \"moneyFormat\": {\n          \"currency\": \"USD\",\n          \"divisor\": 100\n        },\n        \"columns\": [\n          {\n            \"id\": \"plan\",\n            \"label\": \"Complete repair\"\n          },\n          {\n            \"id\": \"status\",\n            \"label\": \"Operating result\"\n          },\n          {\n            \"id\": \"expense\",\n            \"label\": \"Remaining payroll\",\n            \"format\": {\n              \"kind\": \"money\",\n              \"currency\": \"USD\",\n              \"divisor\": 100\n            }\n          },\n          {\n            \"id\": \"additionalExpense\",\n            \"source\": {\n              \"kind\": \"derived\",\n              \"id\": \"additionalExpense\"\n            },\n            \"label\": \"Additional expense\",\n            \"format\": {\n              \"kind\": \"money\",\n              \"currency\": \"USD\",\n              \"divisor\": 100\n            }\n          },\n          {\n            \"id\": \"changes\",\n            \"source\": {\n              \"kind\": \"derived\",\n              \"id\": \"changedAssignments\"\n            },\n            \"label\": \"Changed positions\",\n            \"format\": {\n              \"kind\": \"number\"\n            }\n          },\n          {\n            \"id\": \"blockers\",\n            \"label\": \"Blocking condition\"\n          }\n        ],\n        \"charts\": [\n          {\n            \"viewId\": \"commitment:schedule\",\n            \"defaultRepresentation\": \"timeline\"\n          }\n        ]\n      }\n    }\n  },\n  \"case\": {\n    \"id\": \"restaurant-roster\",\n    \"parameters\": {\n      \"remainingLaborBudgetMinor\": 85600,\n      \"minimumRestMinutes\": 600\n    },\n    \"tables\": {\n      \"employees\": [\n        {\n          \"id\": \"luis\",\n          \"name\": \"Luis\",\n          \"assignmentFeeMinor\": 8800,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"priya\",\n          \"name\": \"Priya\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"theo\",\n          \"name\": \"Theo\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"ava\",\n          \"name\": \"Ava\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"ben\",\n          \"name\": \"Ben\",\n          \"assignmentFeeMinor\": 8000,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"nora\",\n          \"name\": \"Nora\",\n          \"assignmentFeeMinor\": 8800,\n          \"earlierWeekMinutes\": 1440,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 5640\n        },\n        {\n          \"id\": \"rowan\",\n          \"name\": \"Rowan\",\n          \"assignmentFeeMinor\": 18000,\n          \"earlierWeekMinutes\": 0,\n          \"weeklyLimitMinutes\": 2400,\n          \"lastEarlierShiftEnd\": 0\n        },\n        {\n          \"id\": \"unfilled\",\n          \"name\": \"Unfilled\",\n          \"assignmentFeeMinor\": 0,\n          \"earlierWeekMinutes\": 0,\n          \"weeklyLimitMinutes\": 0,\n          \"lastEarlierShiftEnd\": 0\n        }\n      ],\n      \"qualifications\": [\n        {\n          \"employee\": \"luis\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"priya\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"theo\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"ava\",\n          \"role\": \"server\"\n        },\n        {\n          \"employee\": \"ben\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"ben\",\n          \"role\": \"server\"\n        },\n        {\n          \"employee\": \"nora\",\n          \"role\": \"cook\"\n        },\n        {\n          \"employee\": \"rowan\",\n          \"role\": \"cook\"\n        }\n      ],\n      \"assignments\": [\n        {\n          \"id\": \"hold\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"unfilled\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"theo\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ben\"\n        },\n        {\n          \"id\": \"move-only\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"theo\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"unfilled\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ben\"\n        },\n        {\n          \"id\": \"relief\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"rowan\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"theo\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ben\"\n        },\n        {\n          \"id\": \"coupled\",\n          \"fri-dinner-cook-1\": \"luis\",\n          \"fri-dinner-cook-2\": \"priya\",\n          \"fri-dinner-server\": \"ava\",\n          \"sat-dinner-cook-1\": \"luis\",\n          \"sat-dinner-cook-2\": \"theo\",\n          \"sat-dinner-server\": \"ava\",\n          \"sun-lunch-cook-1\": \"ben\",\n          \"sun-lunch-cook-2\": \"priya\",\n          \"sun-lunch-server\": \"ava\"\n        }\n      ],\n      \"availability\": [\n        {\n          \"id\": \"availability-luis-1\",\n          \"employee\": \"luis\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-priya-1\",\n          \"employee\": \"priya\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-theo-1\",\n          \"employee\": \"theo\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-ava-1\",\n          \"employee\": \"ava\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-ben-1\",\n          \"employee\": \"ben\",\n          \"from\": 0,\n          \"through\": 10080\n        },\n        {\n          \"id\": \"availability-rowan-1\",\n          \"employee\": \"rowan\",\n          \"from\": 8280,\n          \"through\": 8520\n        }\n      ],\n      \"scenarios\": [\n        {\n          \"id\": \"recorded-week\"\n        }\n      ],\n      \"bookings\": [],\n      \"_counts\": [\n        {\n          \"flag\": false,\n          \"count\": 0\n        },\n        {\n          \"flag\": true,\n          \"count\": 1\n        }\n      ],\n      \"_resources\": [\n        {\n          \"id\": \"luis\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"priya\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"theo\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"ava\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"ben\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"nora\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"rowan\",\n          \"capacity\": 1\n        },\n        {\n          \"id\": \"unfilled\",\n          \"capacity\": 1\n        }\n      ]\n    },\n    \"provenance\": [\n      {\n        \"id\": \"fictional-roster-basis\",\n        \"description\": \"Fictional accepted roster facts. Fees are flat amounts for each complete accepted assignment, with no implicit hourly prorating. Earlier work is retained as totals and latest shift ends. Unpaid cancellations are excluded from the remaining-payroll baseline. No staff agreement, notification or roster publication occurs.\"\n      }\n    ]\n  }\n}\n",
            "sourceHash": "565f6b3c6d3c4e73d80b9a75d3684fa726ad4f897b5123ef39827668e1d7b95c",
            "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": "roster-repair-cost",
                "version": "1.0.0",
                "template": {
                  "id": "complete-a-commitment",
                  "version": 1
                },
                "title": "Repair a published restaurant roster",
                "question": "Which supplied complete repairs cover every remaining service within the recorded staffing and payroll limits?",
                "description": "Compare supplied complete repairs for a published roster. Every remaining authored position is checked; a preferred repair is established only among these alternatives.",
                "units": {
                  "time": "minute",
                  "timeOrigin": "Monday 00:00 of one fictional week; one local clock without a daylight-saving transition",
                  "money": "USD cent",
                  "count": "position"
                },
                "assumptions": [
                  "This bounded comparison evaluates supplied complete repairs; it does not search every possible employee assignment or generate service demand.",
                  "Every position has an authored role and fixed positive interval. Required breaks must be omitted from working availability and explicitly covered by a supplied repair.",
                  "Fees are flat accepted amounts per complete assignment. Different durations are counted accurately for hours; no hourly pay, proration, overtime premium or tax is inferred.",
                  "The retained baseline sums published assignments after removing explicitly unpaid cancellations. Changed positions compare assigned people with the published roster, not employee disruption, consent or fairness.",
                  "Earlier work is retained as totals and latest shift ends. Declared weekly-hours and rest limits are assumptions, not a labor-law assessment. Existing bookings are checked for capacity, not retrospectively audited for rest.",
                  "A calculated proposal does not obtain staff agreement, notify employees or publish a roster. Demand forecasts and actual operation require separate records or integrations."
                ],
                "inputs": {
                  "parameters": {
                    "remainingLaborBudgetMinor": {
                      "type": "integer",
                      "unit": "money",
                      "minimum": 0
                    },
                    "minimumRestMinutes": {
                      "type": "integer",
                      "unit": "time",
                      "minimum": 0
                    }
                  },
                  "tables": {
                    "employees": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ]
                        },
                        "name": {
                          "type": "string"
                        },
                        "assignmentFeeMinor": {
                          "type": "integer",
                          "unit": "money",
                          "minimum": 0
                        },
                        "earlierWeekMinutes": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "weeklyLimitMinutes": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "lastEarlierShiftEnd": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        }
                      }
                    },
                    "qualifications": {
                      "key": [
                        "employee",
                        "role"
                      ],
                      "columns": {
                        "employee": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "cook",
                            "server"
                          ]
                        }
                      }
                    },
                    "assignments": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "hold",
                            "move-only",
                            "relief",
                            "coupled"
                          ]
                        },
                        "fri-dinner-cook-1": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "fri-dinner-cook-2": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "fri-dinner-server": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sat-dinner-cook-1": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sat-dinner-cook-2": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sat-dinner-server": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sun-lunch-cook-1": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sun-lunch-cook-2": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "sun-lunch-server": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        }
                      }
                    },
                    "availability": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "employee": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "from": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "through": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        }
                      }
                    },
                    "_counts": {
                      "key": [
                        "flag"
                      ],
                      "columns": {
                        "flag": {
                          "type": "boolean"
                        },
                        "count": {
                          "type": "integer",
                          "unit": "count",
                          "minimum": 0,
                          "enum": [
                            0,
                            1
                          ]
                        }
                      }
                    },
                    "_resources": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "capacity": {
                          "type": "integer",
                          "unit": "count",
                          "minimum": 0,
                          "enum": [
                            1
                          ]
                        }
                      }
                    },
                    "scenarios": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string",
                          "enum": [
                            "recorded-week"
                          ]
                        }
                      }
                    },
                    "bookings": {
                      "key": [
                        "id"
                      ],
                      "columns": {
                        "id": {
                          "type": "string"
                        },
                        "employee": {
                          "type": "string",
                          "enum": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ],
                          "references": {
                            "table": "employees",
                            "column": "id"
                          }
                        },
                        "from": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "through": {
                          "type": "integer",
                          "unit": "time",
                          "minimum": 0
                        },
                        "amount": {
                          "type": "integer",
                          "unit": "count",
                          "minimum": 0,
                          "enum": [
                            1
                          ]
                        }
                      }
                    }
                  }
                },
                "choices": [
                  {
                    "id": "repair",
                    "domain": {
                      "values": [
                        "hold",
                        "move-only",
                        "relief",
                        "coupled"
                      ]
                    }
                  }
                ],
                "scenarioDomain": {
                  "table": "scenarios"
                },
                "lookupCoverage": [
                  {
                    "table": "assignments",
                    "keys": {
                      "id": {
                        "domain": {
                          "values": [
                            "hold",
                            "move-only",
                            "relief",
                            "coupled"
                          ]
                        }
                      }
                    }
                  },
                  {
                    "table": "employees",
                    "keys": {
                      "id": {
                        "domain": {
                          "values": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ]
                        }
                      }
                    }
                  },
                  {
                    "table": "_resources",
                    "keys": {
                      "id": {
                        "domain": {
                          "values": [
                            "luis",
                            "priya",
                            "theo",
                            "ava",
                            "ben",
                            "nora",
                            "rowan",
                            "unfilled"
                          ]
                        }
                      }
                    }
                  },
                  {
                    "table": "_counts",
                    "keys": {
                      "flag": {
                        "domain": {
                          "values": [
                            false,
                            true
                          ]
                        }
                      }
                    }
                  }
                ],
                "derived": [
                  {
                    "id": "duration-fri-dinner-cook-1",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-fri-dinner-cook-2",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-fri-dinner-server",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sat-dinner-cook-1",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sat-dinner-cook-2",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sat-dinner-server",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sun-lunch-cook-1",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sun-lunch-cook-2",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "duration-sun-lunch-server",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "literal": 240
                    }
                  },
                  {
                    "id": "changedAssignments",
                    "type": "integer",
                    "unit": "count",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-cook-1.actor"
                                },
                                {
                                  "literal": "luis"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-cook-2.actor"
                                },
                                {
                                  "literal": "priya"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-server.actor"
                                },
                                {
                                  "literal": "ava"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.actor"
                                },
                                {
                                  "literal": "luis"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.actor"
                                },
                                {
                                  "literal": "nora"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.actor"
                                },
                                {
                                  "literal": "ava"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.actor"
                                },
                                {
                                  "literal": "theo"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.actor"
                                },
                                {
                                  "literal": "priya"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        },
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "op": "ne",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.actor"
                                },
                                {
                                  "literal": "ben"
                                }
                              ]
                            }
                          },
                          "column": "count"
                        }
                      ]
                    }
                  },
                  {
                    "id": "retainedBaselineExpense",
                    "type": "integer",
                    "unit": "money",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        }
                      ]
                    }
                  },
                  {
                    "id": "additionalExpense",
                    "type": "integer",
                    "unit": "money",
                    "expr": {
                      "op": "sub",
                      "args": [
                        {
                          "ref": "finance.expense"
                        },
                        {
                          "ref": "derived.retainedBaselineExpense"
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-luis",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "luis"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-priya",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "priya"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-theo",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "theo"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-ava",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "ava"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-ben",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "ben"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-nora",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "nora"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "minutes-rowan",
                    "type": "integer",
                    "unit": "time",
                    "expr": {
                      "op": "add",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.fri-dinner-server.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.fri-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-1.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-cook-2.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sat-dinner-server.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sat-dinner-server.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-1.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-cook-2.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.duration"
                            }
                          ]
                        },
                        {
                          "op": "mul",
                          "args": [
                            {
                              "op": "lookup",
                              "table": "_counts",
                              "where": {
                                "flag": {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "activity.sun-lunch-server.actor"
                                    },
                                    {
                                      "literal": "rowan"
                                    }
                                  ]
                                }
                              },
                              "column": "count"
                            },
                            {
                              "ref": "activity.sun-lunch-server.duration"
                            }
                          ]
                        }
                      ]
                    }
                  }
                ],
                "activities": [
                  {
                    "id": "fri-dinner-cook-1",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "fri-dinner-cook-1"
                    },
                    "start": {
                      "literal": 6840
                    },
                    "duration": {
                      "ref": "derived.duration-fri-dinner-cook-1"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "fri-dinner-cook-2",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "fri-dinner-cook-2"
                    },
                    "start": {
                      "literal": 6840
                    },
                    "duration": {
                      "ref": "derived.duration-fri-dinner-cook-2"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "fri-dinner-server",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "fri-dinner-server"
                    },
                    "start": {
                      "literal": 6840
                    },
                    "duration": {
                      "ref": "derived.duration-fri-dinner-server"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.fri-dinner-server.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sat-dinner-cook-1",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sat-dinner-cook-1"
                    },
                    "start": {
                      "literal": 8280
                    },
                    "duration": {
                      "ref": "derived.duration-sat-dinner-cook-1"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sat-dinner-cook-2",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sat-dinner-cook-2"
                    },
                    "start": {
                      "literal": 8280
                    },
                    "duration": {
                      "ref": "derived.duration-sat-dinner-cook-2"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sat-dinner-server",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sat-dinner-server"
                    },
                    "start": {
                      "literal": 8280
                    },
                    "duration": {
                      "ref": "derived.duration-sat-dinner-server"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sat-dinner-server.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sun-lunch-cook-1",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sun-lunch-cook-1"
                    },
                    "start": {
                      "literal": 9360
                    },
                    "duration": {
                      "ref": "derived.duration-sun-lunch-cook-1"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sun-lunch-cook-2",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sun-lunch-cook-2"
                    },
                    "start": {
                      "literal": 9360
                    },
                    "duration": {
                      "ref": "derived.duration-sun-lunch-cook-2"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  },
                  {
                    "id": "sun-lunch-server",
                    "actor": {
                      "op": "lookup",
                      "table": "assignments",
                      "where": {
                        "id": {
                          "ref": "choice.repair"
                        }
                      },
                      "column": "sun-lunch-server"
                    },
                    "start": {
                      "literal": 9360
                    },
                    "duration": {
                      "ref": "derived.duration-sun-lunch-server"
                    },
                    "resources": [
                      {
                        "resource": {
                          "ref": "activity.sun-lunch-server.actor"
                        },
                        "amount": {
                          "literal": 1
                        }
                      }
                    ]
                  }
                ],
                "resources": {
                  "definitions": {
                    "table": "_resources",
                    "idColumn": "id",
                    "capacityColumn": "capacity"
                  },
                  "bookings": {
                    "table": "bookings",
                    "resourceColumn": "employee",
                    "startColumn": "from",
                    "endColumn": "through",
                    "amountColumn": "amount"
                  }
                },
                "requirements": [
                  {
                    "id": "COVERAGE",
                    "label": "Every required position filled",
                    "meaning": "Every authored position has an employee for its complete interval.",
                    "waivable": false
                  },
                  {
                    "id": "QUALIFICATION",
                    "label": "Required qualifications",
                    "meaning": "Each assigned employee has the recorded qualification for that role.",
                    "waivable": false
                  },
                  {
                    "id": "AVAILABILITY",
                    "label": "Full-interval availability",
                    "meaning": "Working availability covers the whole assignment; declared unpaid cancellations remain unavailable.",
                    "waivable": false
                  },
                  {
                    "id": "CAPACITY",
                    "label": "One assignment at a time",
                    "meaning": "An employee cannot fill simultaneous positions or overlap an existing booking.",
                    "waivable": false
                  },
                  {
                    "id": "REST",
                    "label": "Declared rest between assignments",
                    "meaning": "Prior work and remaining assignments leave the recorded minimum rest.",
                    "waivable": false
                  },
                  {
                    "id": "HOURS",
                    "label": "Declared weekly hours",
                    "meaning": "Earlier worked minutes plus actual assignment durations fit the employee limit.",
                    "waivable": false
                  },
                  {
                    "id": "BUDGET",
                    "label": "Remaining payroll limit",
                    "meaning": "Complete remaining payroll fits the recorded limit; unpaid cancellations are excluded from the retained baseline.",
                    "waivable": false
                  },
                  {
                    "id": "BASIS",
                    "label": "Authored calculation basis",
                    "meaning": "Fixed identities, exclusive employee capacities and Boolean counts retain their authored meaning.",
                    "waivable": false
                  }
                ],
                "constraints": [
                  {
                    "id": "count-false",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "literal": false
                            }
                          },
                          "column": "count"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "count-true",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_counts",
                          "where": {
                            "flag": {
                              "literal": true
                            }
                          },
                          "column": "count"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-luis",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-priya",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-theo",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-ava",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-ben",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-nora",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-rowan",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "capacity-unfilled",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "_resources",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "capacity"
                        },
                        {
                          "literal": 1
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-luis",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Luis"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-priya",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Priya"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-theo",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Theo"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-ava",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Ava"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-ben",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Ben"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-nora",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Nora"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-rowan",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Rowan"
                        }
                      ]
                    }
                  },
                  {
                    "id": "identity-unfilled",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "name"
                        },
                        {
                          "literal": "Unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-assignmentFeeMinor",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "assignmentFeeMinor"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-earlierWeekMinutes",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "earlierWeekMinutes"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-weeklyLimitMinutes",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "unfilled-lastEarlierShiftEnd",
                    "requirement": "BASIS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "eq",
                      "args": [
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "unfilled"
                            }
                          },
                          "column": "lastEarlierShiftEnd"
                        },
                        {
                          "literal": 0
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-fri-dinner-cook-1",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-fri-dinner-cook-1",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-fri-dinner-cook-1",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-1.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.fri-dinner-cook-1.start"
                      },
                      "end": {
                        "ref": "activity.fri-dinner-cook-1.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-fri-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.fri-dinner-cook-1.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-fri-dinner-cook-2",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-fri-dinner-cook-2",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-fri-dinner-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-cook-2.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.fri-dinner-cook-2.start"
                      },
                      "end": {
                        "ref": "activity.fri-dinner-cook-2.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-fri-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.fri-dinner-cook-2.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-fri-dinner-server",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.fri-dinner-server.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-fri-dinner-server",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-server.actor"
                        },
                        "role": {
                          "literal": "server"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-fri-dinner-server",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.fri-dinner-server.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.fri-dinner-server.start"
                      },
                      "end": {
                        "ref": "activity.fri-dinner-server.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-fri-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.fri-dinner-server.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sat-dinner-cook-1",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sat-dinner-cook-1",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sat-dinner-cook-1",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-1.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sat-dinner-cook-1.start"
                      },
                      "end": {
                        "ref": "activity.sat-dinner-cook-1.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sat-dinner-cook-1.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sat-dinner-cook-2",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sat-dinner-cook-2",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sat-dinner-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sat-dinner-cook-2.start"
                      },
                      "end": {
                        "ref": "activity.sat-dinner-cook-2.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sat-dinner-cook-2.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sat-dinner-server",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-server.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sat-dinner-server",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-server.actor"
                        },
                        "role": {
                          "literal": "server"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sat-dinner-server",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sat-dinner-server.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sat-dinner-server.start"
                      },
                      "end": {
                        "ref": "activity.sat-dinner-server.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sat-dinner-server.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sun-lunch-cook-1",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sun-lunch-cook-1",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sun-lunch-cook-1",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-1.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sun-lunch-cook-1.start"
                      },
                      "end": {
                        "ref": "activity.sun-lunch-cook-1.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-1.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sun-lunch-cook-1.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sun-lunch-cook-2",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sun-lunch-cook-2",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        },
                        "role": {
                          "literal": "cook"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sun-lunch-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-cook-2.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sun-lunch-cook-2.start"
                      },
                      "end": {
                        "ref": "activity.sun-lunch-cook-2.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-2.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sun-lunch-cook-2.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "filled-sun-lunch-server",
                    "requirement": "COVERAGE",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sun-lunch-server.actor"
                        },
                        {
                          "literal": "unfilled"
                        }
                      ]
                    }
                  },
                  {
                    "id": "qualified-sun-lunch-server",
                    "requirement": "QUALIFICATION",
                    "kind": "predicate",
                    "predicate": {
                      "op": "exists",
                      "table": "qualifications",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-server.actor"
                        },
                        "role": {
                          "literal": "server"
                        }
                      }
                    }
                  },
                  {
                    "id": "available-sun-lunch-server",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "interval-covered",
                      "table": "availability",
                      "where": {
                        "employee": {
                          "ref": "activity.sun-lunch-server.actor"
                        }
                      },
                      "start": {
                        "ref": "activity.sun-lunch-server.start"
                      },
                      "end": {
                        "ref": "activity.sun-lunch-server.end"
                      },
                      "startColumn": "from",
                      "endColumn": "through"
                    }
                  },
                  {
                    "id": "earlier-rest-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "gte",
                      "args": [
                        {
                          "op": "sub",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-server.start"
                            },
                            {
                              "op": "lookup",
                              "table": "employees",
                              "where": {
                                "id": {
                                  "ref": "activity.sun-lunch-server.actor"
                                }
                              },
                              "column": "lastEarlierShiftEnd"
                            }
                          ]
                        },
                        {
                          "ref": "parameter.minimumRestMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "cancelled-sat-dinner-cook-2",
                    "requirement": "AVAILABILITY",
                    "kind": "predicate",
                    "predicate": {
                      "op": "ne",
                      "args": [
                        {
                          "ref": "activity.sat-dinner-cook-2.actor"
                        },
                        {
                          "literal": "nora"
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-fri-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-fri-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-1-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-fri-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.fri-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-cook-2-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sat-dinner-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-fri-dinner-server-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.fri-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.fri-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sat-dinner-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-1-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sat-dinner-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sat-dinner-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-cook-2-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-server-sun-lunch-cook-1",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-1.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-server-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sat-dinner-server-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sat-dinner-server.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sat-dinner-server.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sun-lunch-cook-1-sun-lunch-cook-2",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-cook-2.start"
                                },
                                {
                                  "ref": "activity.sun-lunch-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sun-lunch-cook-1-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-1.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sun-lunch-cook-1.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "rest-sun-lunch-cook-2-sun-lunch-server",
                    "requirement": "REST",
                    "kind": "predicate",
                    "predicate": {
                      "op": "or",
                      "args": [
                        {
                          "op": "ne",
                          "args": [
                            {
                              "ref": "activity.sun-lunch-cook-2.actor"
                            },
                            {
                              "ref": "activity.sun-lunch-server.actor"
                            }
                          ]
                        },
                        {
                          "op": "gte",
                          "args": [
                            {
                              "op": "sub",
                              "args": [
                                {
                                  "ref": "activity.sun-lunch-server.start"
                                },
                                {
                                  "ref": "activity.sun-lunch-cook-2.end"
                                }
                              ]
                            },
                            {
                              "ref": "parameter.minimumRestMinutes"
                            }
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "employee-capacity",
                    "requirement": "CAPACITY",
                    "kind": "resource-capacity"
                  },
                  {
                    "id": "hours-luis",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-luis"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "luis"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-priya",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-priya"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "priya"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-theo",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-theo"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "theo"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-ava",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-ava"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ava"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-ben",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-ben"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "ben"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-nora",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-nora"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "nora"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "hours-rowan",
                    "requirement": "HOURS",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "derived.minutes-rowan"
                        },
                        {
                          "op": "lookup",
                          "table": "employees",
                          "where": {
                            "id": {
                              "literal": "rowan"
                            }
                          },
                          "column": "weeklyLimitMinutes"
                        }
                      ]
                    }
                  },
                  {
                    "id": "remaining-payroll-budget",
                    "requirement": "BUDGET",
                    "kind": "predicate",
                    "predicate": {
                      "op": "lte",
                      "args": [
                        {
                          "ref": "finance.expense"
                        },
                        {
                          "ref": "parameter.remainingLaborBudgetMinor"
                        }
                      ]
                    }
                  }
                ],
                "finance": {
                  "mode": "expense",
                  "charges": [
                    {
                      "id": "pay-fri-dinner-cook-1",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.fri-dinner-cook-1.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-fri-dinner-cook-2",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.fri-dinner-cook-2.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-fri-dinner-server",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.fri-dinner-server.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sat-dinner-cook-1",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sat-dinner-cook-1.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sat-dinner-cook-2",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sat-dinner-cook-2.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sat-dinner-server",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sat-dinner-server.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sun-lunch-cook-1",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sun-lunch-cook-1.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sun-lunch-cook-2",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sun-lunch-cook-2.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    },
                    {
                      "id": "pay-sun-lunch-server",
                      "amount": {
                        "op": "lookup",
                        "table": "employees",
                        "where": {
                          "id": {
                            "ref": "activity.sun-lunch-server.actor"
                          }
                        },
                        "column": "assignmentFeeMinor"
                      }
                    }
                  ],
                  "holds": []
                },
                "preference": {
                  "direction": "min",
                  "expression": {
                    "ref": "finance.expense"
                  },
                  "then": [
                    {
                      "direction": "min",
                      "expression": {
                        "ref": "derived.changedAssignments"
                      }
                    }
                  ]
                },
                "labels": {
                  "plan": "Complete roster repair",
                  "actor": "Employee",
                  "scenario": "Recorded week",
                  "financeExpense": "Remaining payroll",
                  "choice.repair": "Supplied repair",
                  "view.schedule.title": "Complete remaining roster",
                  "activity.fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1)",
                  "activity.fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2)",
                  "activity.fri-dinner-server": "Friday dinner: Server (fri-dinner-server)",
                  "activity.sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1)",
                  "activity.sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2)",
                  "activity.sat-dinner-server": "Saturday dinner: Server (sat-dinner-server)",
                  "activity.sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1)",
                  "activity.sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2)",
                  "activity.sun-lunch-server": "Sunday lunch: Server (sun-lunch-server)",
                  "constraint.count-false": "Authored calculation basis: count-false",
                  "constraint.count-true": "Authored calculation basis: count-true",
                  "constraint.capacity-luis": "Authored calculation basis: capacity-luis",
                  "constraint.capacity-priya": "Authored calculation basis: capacity-priya",
                  "constraint.capacity-theo": "Authored calculation basis: capacity-theo",
                  "constraint.capacity-ava": "Authored calculation basis: capacity-ava",
                  "constraint.capacity-ben": "Authored calculation basis: capacity-ben",
                  "constraint.capacity-nora": "Authored calculation basis: capacity-nora",
                  "constraint.capacity-rowan": "Authored calculation basis: capacity-rowan",
                  "constraint.capacity-unfilled": "Authored calculation basis: capacity-unfilled",
                  "constraint.identity-luis": "Authored calculation basis: identity-luis",
                  "constraint.identity-priya": "Authored calculation basis: identity-priya",
                  "constraint.identity-theo": "Authored calculation basis: identity-theo",
                  "constraint.identity-ava": "Authored calculation basis: identity-ava",
                  "constraint.identity-ben": "Authored calculation basis: identity-ben",
                  "constraint.identity-nora": "Authored calculation basis: identity-nora",
                  "constraint.identity-rowan": "Authored calculation basis: identity-rowan",
                  "constraint.identity-unfilled": "Authored calculation basis: identity-unfilled",
                  "constraint.unfilled-assignmentFeeMinor": "Authored calculation basis: unfilled-assignmentFeeMinor",
                  "constraint.unfilled-earlierWeekMinutes": "Authored calculation basis: unfilled-earlierWeekMinutes",
                  "constraint.unfilled-weeklyLimitMinutes": "Authored calculation basis: unfilled-weeklyLimitMinutes",
                  "constraint.unfilled-lastEarlierShiftEnd": "Authored calculation basis: unfilled-lastEarlierShiftEnd",
                  "constraint.filled-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) must be filled",
                  "constraint.qualified-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs a qualified employee",
                  "constraint.available-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs availability for the whole assignment",
                  "constraint.earlier-rest-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs enough rest after earlier work",
                  "constraint.filled-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) must be filled",
                  "constraint.qualified-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs a qualified employee",
                  "constraint.available-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs availability for the whole assignment",
                  "constraint.earlier-rest-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs enough rest after earlier work",
                  "constraint.filled-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) must be filled",
                  "constraint.qualified-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs a qualified employee",
                  "constraint.available-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs availability for the whole assignment",
                  "constraint.earlier-rest-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs enough rest after earlier work",
                  "constraint.filled-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) must be filled",
                  "constraint.qualified-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs a qualified employee",
                  "constraint.available-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs availability for the whole assignment",
                  "constraint.earlier-rest-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs enough rest after earlier work",
                  "constraint.filled-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) must be filled",
                  "constraint.qualified-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs a qualified employee",
                  "constraint.available-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs availability for the whole assignment",
                  "constraint.earlier-rest-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs enough rest after earlier work",
                  "constraint.filled-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) must be filled",
                  "constraint.qualified-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs a qualified employee",
                  "constraint.available-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs availability for the whole assignment",
                  "constraint.earlier-rest-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs enough rest after earlier work",
                  "constraint.filled-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) must be filled",
                  "constraint.qualified-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs a qualified employee",
                  "constraint.available-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs availability for the whole assignment",
                  "constraint.earlier-rest-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs enough rest after earlier work",
                  "constraint.filled-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) must be filled",
                  "constraint.qualified-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs a qualified employee",
                  "constraint.available-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs availability for the whole assignment",
                  "constraint.earlier-rest-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs enough rest after earlier work",
                  "constraint.filled-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) must be filled",
                  "constraint.qualified-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs a qualified employee",
                  "constraint.available-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs availability for the whole assignment",
                  "constraint.earlier-rest-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs enough rest after earlier work",
                  "constraint.cancelled-sat-dinner-cook-2": "Nora's cancelled assignment remains unavailable",
                  "constraint.rest-fri-dinner-cook-1-fri-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Cook (fri-dinner-cook-2)",
                  "constraint.rest-fri-dinner-cook-1-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Server (fri-dinner-server)",
                  "constraint.rest-fri-dinner-cook-1-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-1)",
                  "constraint.rest-fri-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-fri-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-fri-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-fri-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-fri-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-fri-dinner-cook-2-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Friday dinner: Server (fri-dinner-server)",
                  "constraint.rest-fri-dinner-cook-2-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-1)",
                  "constraint.rest-fri-dinner-cook-2-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-fri-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-fri-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-fri-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-fri-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-fri-dinner-server-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-1)",
                  "constraint.rest-fri-dinner-server-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-fri-dinner-server-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-fri-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-fri-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-fri-dinner-server-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sat-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                  "constraint.rest-sat-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-sat-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-sat-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sat-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sat-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                  "constraint.rest-sat-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-sat-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sat-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sat-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                  "constraint.rest-sat-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sat-dinner-server-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sun-lunch-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                  "constraint.rest-sun-lunch-cook-1-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.rest-sun-lunch-cook-2-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                  "constraint.employee-capacity": "An employee cannot cover overlapping assignments or bookings",
                  "constraint.hours-luis": "Luis's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-priya": "Priya's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-theo": "Theo's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-ava": "Ava's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-ben": "Ben's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-nora": "Nora's total worked minutes must fit the recorded weekly limit",
                  "constraint.hours-rowan": "Rowan's total worked minutes must fit the recorded weekly limit",
                  "constraint.remaining-payroll-budget": "Complete remaining payroll must fit the recorded limit",
                  "resource.luis": "Luis",
                  "resource.priya": "Priya",
                  "resource.theo": "Theo",
                  "resource.ava": "Ava",
                  "resource.ben": "Ben",
                  "resource.nora": "Nora",
                  "resource.rowan": "Rowan",
                  "resource.unfilled": "Unfilled",
                  "choice.repair.hold": "Leave the gap",
                  "choice.repair.move-only": "Move Theo only",
                  "choice.repair.relief": "Bring in Rowan",
                  "choice.repair.coupled": "Repair three assignments"
                },
                "metadata": {
                  "decisionPresentation": {
                    "format": "decision-presentation/1",
                    "title": "Compare complete roster repairs",
                    "question": "Which supplied repairs can operate, and what does each change?",
                    "priorityLabel": "Minimize remaining payroll first, then preserve published assignments",
                    "moneyFormat": {
                      "currency": "USD",
                      "divisor": 100
                    },
                    "columns": [
                      {
                        "id": "plan",
                        "label": "Complete repair"
                      },
                      {
                        "id": "status",
                        "label": "Operating result"
                      },
                      {
                        "id": "expense",
                        "label": "Remaining payroll",
                        "format": {
                          "kind": "money",
                          "currency": "USD",
                          "divisor": 100
                        }
                      },
                      {
                        "id": "additionalExpense",
                        "source": {
                          "kind": "derived",
                          "id": "additionalExpense"
                        },
                        "label": "Additional expense",
                        "format": {
                          "kind": "money",
                          "currency": "USD",
                          "divisor": 100
                        }
                      },
                      {
                        "id": "changes",
                        "source": {
                          "kind": "derived",
                          "id": "changedAssignments"
                        },
                        "label": "Changed positions",
                        "format": {
                          "kind": "number"
                        }
                      },
                      {
                        "id": "blockers",
                        "label": "Blocking condition"
                      }
                    ],
                    "charts": [
                      {
                        "viewId": "commitment:schedule",
                        "defaultRepresentation": "timeline"
                      }
                    ]
                  }
                }
              },
              "case": {
                "id": "restaurant-roster",
                "parameters": {
                  "remainingLaborBudgetMinor": 85600,
                  "minimumRestMinutes": 600
                },
                "tables": {
                  "employees": [
                    {
                      "id": "luis",
                      "name": "Luis",
                      "assignmentFeeMinor": 8800,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "priya",
                      "name": "Priya",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "theo",
                      "name": "Theo",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "ava",
                      "name": "Ava",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "ben",
                      "name": "Ben",
                      "assignmentFeeMinor": 8000,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "nora",
                      "name": "Nora",
                      "assignmentFeeMinor": 8800,
                      "earlierWeekMinutes": 1440,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 5640
                    },
                    {
                      "id": "rowan",
                      "name": "Rowan",
                      "assignmentFeeMinor": 18000,
                      "earlierWeekMinutes": 0,
                      "weeklyLimitMinutes": 2400,
                      "lastEarlierShiftEnd": 0
                    },
                    {
                      "id": "unfilled",
                      "name": "Unfilled",
                      "assignmentFeeMinor": 0,
                      "earlierWeekMinutes": 0,
                      "weeklyLimitMinutes": 0,
                      "lastEarlierShiftEnd": 0
                    }
                  ],
                  "qualifications": [
                    {
                      "employee": "luis",
                      "role": "cook"
                    },
                    {
                      "employee": "priya",
                      "role": "cook"
                    },
                    {
                      "employee": "theo",
                      "role": "cook"
                    },
                    {
                      "employee": "ava",
                      "role": "server"
                    },
                    {
                      "employee": "ben",
                      "role": "cook"
                    },
                    {
                      "employee": "ben",
                      "role": "server"
                    },
                    {
                      "employee": "nora",
                      "role": "cook"
                    },
                    {
                      "employee": "rowan",
                      "role": "cook"
                    }
                  ],
                  "assignments": [
                    {
                      "id": "hold",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "unfilled",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "theo",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ben"
                    },
                    {
                      "id": "move-only",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "theo",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "unfilled",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ben"
                    },
                    {
                      "id": "relief",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "rowan",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "theo",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ben"
                    },
                    {
                      "id": "coupled",
                      "fri-dinner-cook-1": "luis",
                      "fri-dinner-cook-2": "priya",
                      "fri-dinner-server": "ava",
                      "sat-dinner-cook-1": "luis",
                      "sat-dinner-cook-2": "theo",
                      "sat-dinner-server": "ava",
                      "sun-lunch-cook-1": "ben",
                      "sun-lunch-cook-2": "priya",
                      "sun-lunch-server": "ava"
                    }
                  ],
                  "availability": [
                    {
                      "id": "availability-luis-1",
                      "employee": "luis",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-priya-1",
                      "employee": "priya",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-theo-1",
                      "employee": "theo",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-ava-1",
                      "employee": "ava",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-ben-1",
                      "employee": "ben",
                      "from": 0,
                      "through": 10080
                    },
                    {
                      "id": "availability-rowan-1",
                      "employee": "rowan",
                      "from": 8280,
                      "through": 8520
                    }
                  ],
                  "scenarios": [
                    {
                      "id": "recorded-week"
                    }
                  ],
                  "bookings": [],
                  "_counts": [
                    {
                      "flag": false,
                      "count": 0
                    },
                    {
                      "flag": true,
                      "count": 1
                    }
                  ],
                  "_resources": [
                    {
                      "id": "luis",
                      "capacity": 1
                    },
                    {
                      "id": "priya",
                      "capacity": 1
                    },
                    {
                      "id": "theo",
                      "capacity": 1
                    },
                    {
                      "id": "ava",
                      "capacity": 1
                    },
                    {
                      "id": "ben",
                      "capacity": 1
                    },
                    {
                      "id": "nora",
                      "capacity": 1
                    },
                    {
                      "id": "rowan",
                      "capacity": 1
                    },
                    {
                      "id": "unfilled",
                      "capacity": 1
                    }
                  ]
                },
                "provenance": [
                  {
                    "id": "fictional-roster-basis",
                    "description": "Fictional accepted roster facts. Fees are flat amounts for each complete accepted assignment, with no implicit hourly prorating. Earlier work is retained as totals and latest shift ends. Unpaid cancellations are excluded from the remaining-payroll baseline. No staff agreement, notification or roster publication occurs."
                  }
                ]
              }
            },
            "presentation": {
              "schemaVersion": 1,
              "provider": "native-commitment-planning",
              "contract": "complete-a-commitment.assessment/1",
              "views": []
            },
            "viewContracts": [],
            "fields": [],
            "reports": [],
            "defaultReport": null,
            "originWorkspaceId": null,
            "createdAt": "2026-11-20T20:00:00.000Z",
            "contentHash": "fe8c1d46c62c15651ebeaeb436c8e93897fc89a3ebbe2c13bedb3fbc826b02f1"
          },
          "sourceProvenance": "supplied",
          "contentHash": "5f42a6d960eacf94400152eab859e15daa871910144a95ba83d871231b83c8e6"
        },
        "packageHash": "5f42a6d960eacf94400152eab859e15daa871910144a95ba83d871231b83c8e6"
      }
    ],
    "initialCase": {
      "roster": {
        "reliefWindow": {
          "fromMinute": 1080,
          "throughMinute": 1320
        },
        "remainingPayrollLimitMinor": 85600,
        "comparisonPriority": "feasibility",
        "employees": [
          {
            "id": "luis",
            "name": "Luis",
            "assignmentFeeMinor": 8800,
            "earlierWeekMinutes": 1440,
            "weeklyLimitMinutes": 2400,
            "lastEarlierShiftEnd": 5640
          },
          {
            "id": "priya",
            "name": "Priya",
            "assignmentFeeMinor": 8000,
            "earlierWeekMinutes": 1440,
            "weeklyLimitMinutes": 2400,
            "lastEarlierShiftEnd": 5640
          },
          {
            "id": "theo",
            "name": "Theo",
            "assignmentFeeMinor": 8000,
            "earlierWeekMinutes": 1440,
            "weeklyLimitMinutes": 2400,
            "lastEarlierShiftEnd": 5640
          },
          {
            "id": "ava",
            "name": "Ava",
            "assignmentFeeMinor": 8000,
            "earlierWeekMinutes": 1440,
            "weeklyLimitMinutes": 2400,
            "lastEarlierShiftEnd": 5640
          },
          {
            "id": "ben",
            "name": "Ben",
            "assignmentFeeMinor": 8000,
            "earlierWeekMinutes": 1440,
            "weeklyLimitMinutes": 2400,
            "lastEarlierShiftEnd": 5640
          },
          {
            "id": "nora",
            "name": "Nora",
            "assignmentFeeMinor": 8800,
            "earlierWeekMinutes": 1440,
            "weeklyLimitMinutes": 2400,
            "lastEarlierShiftEnd": 5640
          },
          {
            "id": "rowan",
            "name": "Rowan",
            "assignmentFeeMinor": 18000,
            "earlierWeekMinutes": 0,
            "weeklyLimitMinutes": 2400,
            "lastEarlierShiftEnd": 0
          },
          {
            "id": "unfilled",
            "name": "Unfilled",
            "assignmentFeeMinor": 0,
            "earlierWeekMinutes": 0,
            "weeklyLimitMinutes": 0,
            "lastEarlierShiftEnd": 0
          }
        ],
        "qualifications": [
          {
            "employee": "luis",
            "role": "cook"
          },
          {
            "employee": "priya",
            "role": "cook"
          },
          {
            "employee": "theo",
            "role": "cook"
          },
          {
            "employee": "ava",
            "role": "server"
          },
          {
            "employee": "ben",
            "role": "cook"
          },
          {
            "employee": "ben",
            "role": "server"
          },
          {
            "employee": "nora",
            "role": "cook"
          },
          {
            "employee": "rowan",
            "role": "cook"
          }
        ],
        "assignments": [
          {
            "id": "hold",
            "fri-dinner-cook-1": "luis",
            "fri-dinner-cook-2": "priya",
            "fri-dinner-server": "ava",
            "sat-dinner-cook-1": "luis",
            "sat-dinner-cook-2": "unfilled",
            "sat-dinner-server": "ava",
            "sun-lunch-cook-1": "theo",
            "sun-lunch-cook-2": "priya",
            "sun-lunch-server": "ben"
          },
          {
            "id": "move-only",
            "fri-dinner-cook-1": "luis",
            "fri-dinner-cook-2": "priya",
            "fri-dinner-server": "ava",
            "sat-dinner-cook-1": "luis",
            "sat-dinner-cook-2": "theo",
            "sat-dinner-server": "ava",
            "sun-lunch-cook-1": "unfilled",
            "sun-lunch-cook-2": "priya",
            "sun-lunch-server": "ben"
          },
          {
            "id": "relief",
            "fri-dinner-cook-1": "luis",
            "fri-dinner-cook-2": "priya",
            "fri-dinner-server": "ava",
            "sat-dinner-cook-1": "luis",
            "sat-dinner-cook-2": "rowan",
            "sat-dinner-server": "ava",
            "sun-lunch-cook-1": "theo",
            "sun-lunch-cook-2": "priya",
            "sun-lunch-server": "ben"
          },
          {
            "id": "coupled",
            "fri-dinner-cook-1": "luis",
            "fri-dinner-cook-2": "priya",
            "fri-dinner-server": "ava",
            "sat-dinner-cook-1": "luis",
            "sat-dinner-cook-2": "theo",
            "sat-dinner-server": "ava",
            "sun-lunch-cook-1": "ben",
            "sun-lunch-cook-2": "priya",
            "sun-lunch-server": "ava"
          }
        ],
        "otherAvailability": [
          {
            "id": "availability-luis-1",
            "employee": "luis",
            "from": 0,
            "through": 10080
          },
          {
            "id": "availability-priya-1",
            "employee": "priya",
            "from": 0,
            "through": 10080
          },
          {
            "id": "availability-theo-1",
            "employee": "theo",
            "from": 0,
            "through": 10080
          },
          {
            "id": "availability-ava-1",
            "employee": "ava",
            "from": 0,
            "through": 10080
          },
          {
            "id": "availability-ben-1",
            "employee": "ben",
            "from": 0,
            "through": 10080
          }
        ],
        "bookings": []
      }
    },
    "questions": [
      {
        "id": "relief-window",
        "label": "Relief cook availability",
        "question": "When can the relief cook cover the affected service?",
        "meaning": "The complete working interval for Rowan on Saturday. An early finish does not shorten the required service.",
        "path": "roster.reliefWindow",
        "type": "object",
        "role": "roster-owner",
        "required": true
      },
      {
        "id": "payroll-limit",
        "label": "Remaining payroll limit",
        "question": "What is the maximum complete payroll for the remaining services?",
        "meaning": "Complete remaining payroll, including retained assignments and the repair. Monetary inputs are integer USD cents in YAML and JSON; Forms and Excel money cells use US dollars. Additional expense is calculated against the retained baseline.",
        "path": "roster.remainingPayrollLimitMinor",
        "type": "number",
        "role": "roster-owner",
        "required": true
      },
      {
        "id": "priority",
        "label": "Comparison priority",
        "question": "How should passing repairs be compared?",
        "meaning": "Choose an authored priority. Every mandatory staffing and expense requirement remains unchanged. Compare without ranking leaves every passing repair available.",
        "path": "roster.comparisonPriority",
        "type": "string",
        "role": "roster-owner",
        "required": true
      },
      {
        "id": "employees",
        "label": "Employee work records",
        "question": "What fees and previous work apply to the listed employees?",
        "meaning": "Only authored employee identities are supported. Fees are flat amounts per assignment. Earlier work is retained as minutes and the latest previous shift end.",
        "path": "roster.employees",
        "type": "array",
        "role": "roster-owner",
        "required": true
      },
      {
        "id": "qualifications",
        "label": "Recorded qualifications",
        "question": "Which listed employees can fill each role?",
        "meaning": "Recorded qualifications for the authored roles. A missing qualification cannot establish suitability for that role.",
        "path": "roster.qualifications",
        "type": "array",
        "role": "roster-owner",
        "required": true
      },
      {
        "id": "assignments",
        "label": "Complete proposed repairs",
        "question": "Who covers every position in each proposed repair?",
        "meaning": "Complete assignments to every authored position. Changing the employee, position or proposal catalog requires authoring a new profile and publishing a new version.",
        "path": "roster.assignments",
        "type": "array",
        "role": "roster-owner",
        "required": true
      },
      {
        "id": "other-availability",
        "label": "Other working availability",
        "question": "When are the other listed employees available?",
        "meaning": "Working intervals for the other employees, with breaks and unavailable periods omitted. The relief cook interval is supplied separately.",
        "path": "roster.otherAvailability",
        "type": "array",
        "role": "roster-owner",
        "required": true
      },
      {
        "id": "bookings",
        "label": "Other employee commitments",
        "question": "Which retained commitments consume employee capacity?",
        "meaning": "Existing overlapping work using the same employee identities and week clock. Empty means no other commitments are recorded for this comparison.",
        "path": "roster.bookings",
        "type": "array",
        "role": "roster-owner",
        "required": true
      }
    ],
    "steps": [
      {
        "id": "feasibility",
        "title": "Find passing complete repairs",
        "app": "feasibility",
        "role": "roster-owner",
        "dependsOn": [],
        "requires": [
          "relief-window",
          "payroll-limit",
          "employees",
          "qualifications",
          "assignments",
          "other-availability",
          "bookings"
        ],
        "input": {
          "id": {
            "literal": "restaurant-roster"
          },
          "provenance": {
            "literal": [
              {
                "id": "fictional-roster-basis",
                "description": "Fictional accepted roster facts. Fees are flat amounts for each complete accepted assignment, with no implicit hourly prorating. Earlier work is retained as totals and latest shift ends. Unpaid cancellations are excluded from the remaining-payroll baseline. No staff agreement, notification or roster publication occurs."
              }
            ]
          },
          "parameters": {
            "remainingLaborBudgetMinor": {
              "ref": "case.roster.remainingPayrollLimitMinor"
            },
            "minimumRestMinutes": 600
          },
          "tables": {
            "scenarios": {
              "literal": [
                {
                  "id": "recorded-week"
                }
              ]
            },
            "_counts": {
              "literal": [
                {
                  "flag": false,
                  "count": 0
                },
                {
                  "flag": true,
                  "count": 1
                }
              ]
            },
            "_resources": {
              "literal": [
                {
                  "id": "luis",
                  "capacity": 1
                },
                {
                  "id": "priya",
                  "capacity": 1
                },
                {
                  "id": "theo",
                  "capacity": 1
                },
                {
                  "id": "ava",
                  "capacity": 1
                },
                {
                  "id": "ben",
                  "capacity": 1
                },
                {
                  "id": "nora",
                  "capacity": 1
                },
                {
                  "id": "rowan",
                  "capacity": 1
                },
                {
                  "id": "unfilled",
                  "capacity": 1
                }
              ]
            },
            "employees": {
              "ref": "case.roster.employees"
            },
            "qualifications": {
              "ref": "case.roster.qualifications"
            },
            "assignments": {
              "ref": "case.roster.assignments"
            },
            "bookings": {
              "ref": "case.roster.bookings"
            },
            "availability": {
              "op": "concat",
              "args": [
                {
                  "ref": "case.roster.otherAvailability"
                },
                [
                  {
                    "id": "availability-rowan-1",
                    "employee": "rowan",
                    "from": {
                      "op": "add",
                      "args": [
                        7200,
                        {
                          "ref": "case.roster.reliefWindow.fromMinute"
                        }
                      ]
                    },
                    "through": {
                      "op": "add",
                      "args": [
                        7200,
                        {
                          "ref": "case.roster.reliefWindow.throughMinute"
                        }
                      ]
                    }
                  }
                ]
              ]
            }
          }
        },
        "output": {
          "finding": {
            "ref": "assessment.finding"
          },
          "plans": {
            "op": "map",
            "args": [
              {
                "ref": "assessment.plans"
              },
              {
                "id": {
                  "ref": "vars.plan.choices.repair"
                },
                "planId": {
                  "ref": "vars.plan.id"
                },
                "label": {
                  "op": "get",
                  "args": [
                    {
                      "literal": {
                        "hold": "Leave the gap",
                        "move-only": "Move Theo only",
                        "relief": "Bring in Rowan",
                        "coupled": "Repair three assignments"
                      }
                    },
                    {
                      "ref": "vars.plan.choices.repair"
                    }
                  ]
                },
                "feasible": {
                  "ref": "vars.plan.feasible"
                },
                "preferred": {
                  "op": "and",
                  "args": [
                    {
                      "op": "eq",
                      "args": [
                        {
                          "ref": "assessment.recommendation.preferenceEstablished"
                        },
                        true
                      ]
                    },
                    {
                      "op": "any",
                      "args": [
                        {
                          "ref": "assessment.recommendation.tiedPlanIds"
                        },
                        {
                          "op": "eq",
                          "args": [
                            {
                              "ref": "item"
                            },
                            {
                              "ref": "vars.plan.id"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                "remainingPayrollMinor": {
                  "ref": "vars.plan.expense"
                },
                "additionalExpenseMinor": {
                  "op": "get",
                  "args": [
                    {
                      "op": "get",
                      "args": [
                        {
                          "op": "get",
                          "args": [
                            {
                              "ref": "vars.plan.scenarios"
                            },
                            0
                          ]
                        },
                        "derived"
                      ]
                    },
                    "additionalExpense"
                  ]
                },
                "baselineMinor": {
                  "op": "get",
                  "args": [
                    {
                      "op": "get",
                      "args": [
                        {
                          "op": "get",
                          "args": [
                            {
                              "ref": "vars.plan.scenarios"
                            },
                            0
                          ]
                        },
                        "derived"
                      ]
                    },
                    "retainedBaselineExpense"
                  ]
                },
                "changedPositions": {
                  "op": "get",
                  "args": [
                    {
                      "op": "get",
                      "args": [
                        {
                          "op": "get",
                          "args": [
                            {
                              "ref": "vars.plan.scenarios"
                            },
                            0
                          ]
                        },
                        "derived"
                      ]
                    },
                    "changedAssignments"
                  ]
                },
                "blockers": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "vars.plan.blockers"
                    },
                    {
                      "condition": {
                        "op": "get",
                        "args": [
                          {
                            "literal": {
                              "count-false": "Authored calculation basis: count-false",
                              "count-true": "Authored calculation basis: count-true",
                              "capacity-luis": "Authored calculation basis: capacity-luis",
                              "capacity-priya": "Authored calculation basis: capacity-priya",
                              "capacity-theo": "Authored calculation basis: capacity-theo",
                              "capacity-ava": "Authored calculation basis: capacity-ava",
                              "capacity-ben": "Authored calculation basis: capacity-ben",
                              "capacity-nora": "Authored calculation basis: capacity-nora",
                              "capacity-rowan": "Authored calculation basis: capacity-rowan",
                              "capacity-unfilled": "Authored calculation basis: capacity-unfilled",
                              "identity-luis": "Authored calculation basis: identity-luis",
                              "identity-priya": "Authored calculation basis: identity-priya",
                              "identity-theo": "Authored calculation basis: identity-theo",
                              "identity-ava": "Authored calculation basis: identity-ava",
                              "identity-ben": "Authored calculation basis: identity-ben",
                              "identity-nora": "Authored calculation basis: identity-nora",
                              "identity-rowan": "Authored calculation basis: identity-rowan",
                              "identity-unfilled": "Authored calculation basis: identity-unfilled",
                              "unfilled-assignmentFeeMinor": "Authored calculation basis: unfilled-assignmentFeeMinor",
                              "unfilled-earlierWeekMinutes": "Authored calculation basis: unfilled-earlierWeekMinutes",
                              "unfilled-weeklyLimitMinutes": "Authored calculation basis: unfilled-weeklyLimitMinutes",
                              "unfilled-lastEarlierShiftEnd": "Authored calculation basis: unfilled-lastEarlierShiftEnd",
                              "filled-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) must be filled",
                              "qualified-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs a qualified employee",
                              "available-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs availability for the whole assignment",
                              "earlier-rest-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs enough rest after earlier work",
                              "filled-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) must be filled",
                              "qualified-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs a qualified employee",
                              "available-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs availability for the whole assignment",
                              "earlier-rest-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs enough rest after earlier work",
                              "filled-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) must be filled",
                              "qualified-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs a qualified employee",
                              "available-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs availability for the whole assignment",
                              "earlier-rest-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs enough rest after earlier work",
                              "filled-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) must be filled",
                              "qualified-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs a qualified employee",
                              "available-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs availability for the whole assignment",
                              "earlier-rest-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs enough rest after earlier work",
                              "filled-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) must be filled",
                              "qualified-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs a qualified employee",
                              "available-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs availability for the whole assignment",
                              "earlier-rest-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs enough rest after earlier work",
                              "filled-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) must be filled",
                              "qualified-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs a qualified employee",
                              "available-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs availability for the whole assignment",
                              "earlier-rest-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs enough rest after earlier work",
                              "filled-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) must be filled",
                              "qualified-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs a qualified employee",
                              "available-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs availability for the whole assignment",
                              "earlier-rest-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs enough rest after earlier work",
                              "filled-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) must be filled",
                              "qualified-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs a qualified employee",
                              "available-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs availability for the whole assignment",
                              "earlier-rest-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs enough rest after earlier work",
                              "filled-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) must be filled",
                              "qualified-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs a qualified employee",
                              "available-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs availability for the whole assignment",
                              "earlier-rest-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs enough rest after earlier work",
                              "cancelled-sat-dinner-cook-2": "Nora's cancelled assignment remains unavailable",
                              "rest-fri-dinner-cook-1-fri-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Cook (fri-dinner-cook-2)",
                              "rest-fri-dinner-cook-1-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Server (fri-dinner-server)",
                              "rest-fri-dinner-cook-1-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-1)",
                              "rest-fri-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-fri-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-fri-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-fri-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-fri-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-fri-dinner-cook-2-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Friday dinner: Server (fri-dinner-server)",
                              "rest-fri-dinner-cook-2-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-1)",
                              "rest-fri-dinner-cook-2-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-fri-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-fri-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-fri-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-fri-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-fri-dinner-server-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-1)",
                              "rest-fri-dinner-server-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-fri-dinner-server-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-fri-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-fri-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-fri-dinner-server-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sat-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-sat-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-sat-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-sat-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sat-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sat-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-sat-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-sat-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sat-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sat-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-sat-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sat-dinner-server-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sun-lunch-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sun-lunch-cook-1-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sun-lunch-cook-2-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                              "employee-capacity": "An employee cannot cover overlapping assignments or bookings",
                              "hours-luis": "Luis's total worked minutes must fit the recorded weekly limit",
                              "hours-priya": "Priya's total worked minutes must fit the recorded weekly limit",
                              "hours-theo": "Theo's total worked minutes must fit the recorded weekly limit",
                              "hours-ava": "Ava's total worked minutes must fit the recorded weekly limit",
                              "hours-ben": "Ben's total worked minutes must fit the recorded weekly limit",
                              "hours-nora": "Nora's total worked minutes must fit the recorded weekly limit",
                              "hours-rowan": "Rowan's total worked minutes must fit the recorded weekly limit",
                              "remaining-payroll-budget": "Complete remaining payroll must fit the recorded limit"
                            }
                          },
                          {
                            "ref": "vars.blocker.constraintId"
                          }
                        ]
                      },
                      "requirement": {
                        "ref": "vars.blocker.requirement"
                      }
                    }
                  ],
                  "as": "blocker"
                },
                "assignments": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "vars.plan.activities"
                    },
                    {
                      "position": {
                        "op": "get",
                        "args": [
                          {
                            "literal": {
                              "fri-dinner-cook-1": "Friday dinner: Cook 1",
                              "fri-dinner-cook-2": "Friday dinner: Cook 2",
                              "fri-dinner-server": "Friday dinner: Server",
                              "sat-dinner-cook-1": "Saturday dinner: Cook 1",
                              "sat-dinner-cook-2": "Saturday dinner: Cook 2",
                              "sat-dinner-server": "Saturday dinner: Server",
                              "sun-lunch-cook-1": "Sunday lunch: Cook 1",
                              "sun-lunch-cook-2": "Sunday lunch: Cook 2",
                              "sun-lunch-server": "Sunday lunch: Server"
                            }
                          },
                          {
                            "ref": "vars.activity.id"
                          }
                        ]
                      },
                      "employee": {
                        "ref": "vars.activity.actor"
                      },
                      "publishedEmployee": {
                        "op": "get",
                        "args": [
                          {
                            "literal": {
                              "fri-dinner-cook-1": "luis",
                              "fri-dinner-cook-2": "priya",
                              "fri-dinner-server": "ava",
                              "sat-dinner-cook-1": "luis",
                              "sat-dinner-cook-2": "nora",
                              "sat-dinner-server": "ava",
                              "sun-lunch-cook-1": "theo",
                              "sun-lunch-cook-2": "priya",
                              "sun-lunch-server": "ben"
                            }
                          },
                          {
                            "ref": "vars.activity.id"
                          }
                        ]
                      },
                      "changed": {
                        "op": "ne",
                        "args": [
                          {
                            "ref": "vars.activity.actor"
                          },
                          {
                            "op": "get",
                            "args": [
                              {
                                "literal": {
                                  "fri-dinner-cook-1": "luis",
                                  "fri-dinner-cook-2": "priya",
                                  "fri-dinner-server": "ava",
                                  "sat-dinner-cook-1": "luis",
                                  "sat-dinner-cook-2": "nora",
                                  "sat-dinner-server": "ava",
                                  "sun-lunch-cook-1": "theo",
                                  "sun-lunch-cook-2": "priya",
                                  "sun-lunch-server": "ben"
                                }
                              },
                              {
                                "ref": "vars.activity.id"
                              }
                            ]
                          }
                        ]
                      },
                      "start": {
                        "ref": "vars.activity.start"
                      },
                      "end": {
                        "ref": "vars.activity.end"
                      }
                    }
                  ],
                  "as": "activity"
                }
              }
            ],
            "as": "plan"
          },
          "preferenceEstablished": {
            "ref": "assessment.recommendation.preferenceEstablished"
          }
        },
        "checks": [
          {
            "id": "focused-availability",
            "message": "Supply an ordered working interval within Saturday.",
            "test": {
              "op": "and",
              "args": [
                {
                  "op": "matchesSchema",
                  "args": [
                    {
                      "ref": "case.roster.reliefWindow"
                    },
                    {
                      "literal": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "fromMinute",
                          "throughMinute"
                        ],
                        "properties": {
                          "fromMinute": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 1440
                          },
                          "throughMinute": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 1440
                          }
                        }
                      }
                    }
                  ]
                },
                {
                  "op": "lt",
                  "args": [
                    {
                      "ref": "case.roster.reliefWindow.fromMinute"
                    },
                    {
                      "ref": "case.roster.reliefWindow.throughMinute"
                    }
                  ]
                }
              ]
            }
          }
        ],
        "acceptWhen": {
          "op": "and",
          "args": [
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.status"
                },
                "complete"
              ]
            },
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.coverage.complete"
                },
                true
              ]
            }
          ]
        }
      },
      {
        "id": "stability",
        "title": "Compare by published-assignment stability",
        "app": "stability",
        "role": "roster-owner",
        "dependsOn": [
          "feasibility"
        ],
        "requires": [
          "relief-window",
          "payroll-limit",
          "employees",
          "qualifications",
          "assignments",
          "other-availability",
          "bookings",
          "priority"
        ],
        "when": {
          "ref": "conditions.stability-selected"
        },
        "input": {
          "id": {
            "literal": "restaurant-roster"
          },
          "provenance": {
            "literal": [
              {
                "id": "fictional-roster-basis",
                "description": "Fictional accepted roster facts. Fees are flat amounts for each complete accepted assignment, with no implicit hourly prorating. Earlier work is retained as totals and latest shift ends. Unpaid cancellations are excluded from the remaining-payroll baseline. No staff agreement, notification or roster publication occurs."
              }
            ]
          },
          "parameters": {
            "remainingLaborBudgetMinor": {
              "ref": "case.roster.remainingPayrollLimitMinor"
            },
            "minimumRestMinutes": 600
          },
          "tables": {
            "scenarios": {
              "literal": [
                {
                  "id": "recorded-week"
                }
              ]
            },
            "_counts": {
              "literal": [
                {
                  "flag": false,
                  "count": 0
                },
                {
                  "flag": true,
                  "count": 1
                }
              ]
            },
            "_resources": {
              "literal": [
                {
                  "id": "luis",
                  "capacity": 1
                },
                {
                  "id": "priya",
                  "capacity": 1
                },
                {
                  "id": "theo",
                  "capacity": 1
                },
                {
                  "id": "ava",
                  "capacity": 1
                },
                {
                  "id": "ben",
                  "capacity": 1
                },
                {
                  "id": "nora",
                  "capacity": 1
                },
                {
                  "id": "rowan",
                  "capacity": 1
                },
                {
                  "id": "unfilled",
                  "capacity": 1
                }
              ]
            },
            "employees": {
              "ref": "case.roster.employees"
            },
            "qualifications": {
              "ref": "case.roster.qualifications"
            },
            "assignments": {
              "ref": "case.roster.assignments"
            },
            "bookings": {
              "ref": "case.roster.bookings"
            },
            "availability": {
              "op": "concat",
              "args": [
                {
                  "ref": "case.roster.otherAvailability"
                },
                [
                  {
                    "id": "availability-rowan-1",
                    "employee": "rowan",
                    "from": {
                      "op": "add",
                      "args": [
                        7200,
                        {
                          "ref": "case.roster.reliefWindow.fromMinute"
                        }
                      ]
                    },
                    "through": {
                      "op": "add",
                      "args": [
                        7200,
                        {
                          "ref": "case.roster.reliefWindow.throughMinute"
                        }
                      ]
                    }
                  }
                ]
              ]
            }
          }
        },
        "output": {
          "finding": {
            "ref": "assessment.finding"
          },
          "plans": {
            "op": "map",
            "args": [
              {
                "ref": "assessment.plans"
              },
              {
                "id": {
                  "ref": "vars.plan.choices.repair"
                },
                "planId": {
                  "ref": "vars.plan.id"
                },
                "label": {
                  "op": "get",
                  "args": [
                    {
                      "literal": {
                        "hold": "Leave the gap",
                        "move-only": "Move Theo only",
                        "relief": "Bring in Rowan",
                        "coupled": "Repair three assignments"
                      }
                    },
                    {
                      "ref": "vars.plan.choices.repair"
                    }
                  ]
                },
                "feasible": {
                  "ref": "vars.plan.feasible"
                },
                "preferred": {
                  "op": "and",
                  "args": [
                    {
                      "op": "eq",
                      "args": [
                        {
                          "ref": "assessment.recommendation.preferenceEstablished"
                        },
                        true
                      ]
                    },
                    {
                      "op": "any",
                      "args": [
                        {
                          "ref": "assessment.recommendation.tiedPlanIds"
                        },
                        {
                          "op": "eq",
                          "args": [
                            {
                              "ref": "item"
                            },
                            {
                              "ref": "vars.plan.id"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                "remainingPayrollMinor": {
                  "ref": "vars.plan.expense"
                },
                "additionalExpenseMinor": {
                  "op": "get",
                  "args": [
                    {
                      "op": "get",
                      "args": [
                        {
                          "op": "get",
                          "args": [
                            {
                              "ref": "vars.plan.scenarios"
                            },
                            0
                          ]
                        },
                        "derived"
                      ]
                    },
                    "additionalExpense"
                  ]
                },
                "baselineMinor": {
                  "op": "get",
                  "args": [
                    {
                      "op": "get",
                      "args": [
                        {
                          "op": "get",
                          "args": [
                            {
                              "ref": "vars.plan.scenarios"
                            },
                            0
                          ]
                        },
                        "derived"
                      ]
                    },
                    "retainedBaselineExpense"
                  ]
                },
                "changedPositions": {
                  "op": "get",
                  "args": [
                    {
                      "op": "get",
                      "args": [
                        {
                          "op": "get",
                          "args": [
                            {
                              "ref": "vars.plan.scenarios"
                            },
                            0
                          ]
                        },
                        "derived"
                      ]
                    },
                    "changedAssignments"
                  ]
                },
                "blockers": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "vars.plan.blockers"
                    },
                    {
                      "condition": {
                        "op": "get",
                        "args": [
                          {
                            "literal": {
                              "count-false": "Authored calculation basis: count-false",
                              "count-true": "Authored calculation basis: count-true",
                              "capacity-luis": "Authored calculation basis: capacity-luis",
                              "capacity-priya": "Authored calculation basis: capacity-priya",
                              "capacity-theo": "Authored calculation basis: capacity-theo",
                              "capacity-ava": "Authored calculation basis: capacity-ava",
                              "capacity-ben": "Authored calculation basis: capacity-ben",
                              "capacity-nora": "Authored calculation basis: capacity-nora",
                              "capacity-rowan": "Authored calculation basis: capacity-rowan",
                              "capacity-unfilled": "Authored calculation basis: capacity-unfilled",
                              "identity-luis": "Authored calculation basis: identity-luis",
                              "identity-priya": "Authored calculation basis: identity-priya",
                              "identity-theo": "Authored calculation basis: identity-theo",
                              "identity-ava": "Authored calculation basis: identity-ava",
                              "identity-ben": "Authored calculation basis: identity-ben",
                              "identity-nora": "Authored calculation basis: identity-nora",
                              "identity-rowan": "Authored calculation basis: identity-rowan",
                              "identity-unfilled": "Authored calculation basis: identity-unfilled",
                              "unfilled-assignmentFeeMinor": "Authored calculation basis: unfilled-assignmentFeeMinor",
                              "unfilled-earlierWeekMinutes": "Authored calculation basis: unfilled-earlierWeekMinutes",
                              "unfilled-weeklyLimitMinutes": "Authored calculation basis: unfilled-weeklyLimitMinutes",
                              "unfilled-lastEarlierShiftEnd": "Authored calculation basis: unfilled-lastEarlierShiftEnd",
                              "filled-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) must be filled",
                              "qualified-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs a qualified employee",
                              "available-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs availability for the whole assignment",
                              "earlier-rest-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs enough rest after earlier work",
                              "filled-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) must be filled",
                              "qualified-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs a qualified employee",
                              "available-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs availability for the whole assignment",
                              "earlier-rest-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs enough rest after earlier work",
                              "filled-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) must be filled",
                              "qualified-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs a qualified employee",
                              "available-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs availability for the whole assignment",
                              "earlier-rest-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs enough rest after earlier work",
                              "filled-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) must be filled",
                              "qualified-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs a qualified employee",
                              "available-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs availability for the whole assignment",
                              "earlier-rest-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs enough rest after earlier work",
                              "filled-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) must be filled",
                              "qualified-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs a qualified employee",
                              "available-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs availability for the whole assignment",
                              "earlier-rest-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs enough rest after earlier work",
                              "filled-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) must be filled",
                              "qualified-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs a qualified employee",
                              "available-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs availability for the whole assignment",
                              "earlier-rest-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs enough rest after earlier work",
                              "filled-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) must be filled",
                              "qualified-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs a qualified employee",
                              "available-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs availability for the whole assignment",
                              "earlier-rest-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs enough rest after earlier work",
                              "filled-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) must be filled",
                              "qualified-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs a qualified employee",
                              "available-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs availability for the whole assignment",
                              "earlier-rest-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs enough rest after earlier work",
                              "filled-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) must be filled",
                              "qualified-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs a qualified employee",
                              "available-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs availability for the whole assignment",
                              "earlier-rest-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs enough rest after earlier work",
                              "cancelled-sat-dinner-cook-2": "Nora's cancelled assignment remains unavailable",
                              "rest-fri-dinner-cook-1-fri-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Cook (fri-dinner-cook-2)",
                              "rest-fri-dinner-cook-1-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Server (fri-dinner-server)",
                              "rest-fri-dinner-cook-1-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-1)",
                              "rest-fri-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-fri-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-fri-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-fri-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-fri-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-fri-dinner-cook-2-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Friday dinner: Server (fri-dinner-server)",
                              "rest-fri-dinner-cook-2-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-1)",
                              "rest-fri-dinner-cook-2-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-fri-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-fri-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-fri-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-fri-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-fri-dinner-server-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-1)",
                              "rest-fri-dinner-server-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-fri-dinner-server-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-fri-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-fri-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-fri-dinner-server-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sat-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-sat-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-sat-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-sat-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sat-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sat-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-sat-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-sat-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sat-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sat-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-sat-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sat-dinner-server-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sun-lunch-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sun-lunch-cook-1-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sun-lunch-cook-2-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                              "employee-capacity": "An employee cannot cover overlapping assignments or bookings",
                              "hours-luis": "Luis's total worked minutes must fit the recorded weekly limit",
                              "hours-priya": "Priya's total worked minutes must fit the recorded weekly limit",
                              "hours-theo": "Theo's total worked minutes must fit the recorded weekly limit",
                              "hours-ava": "Ava's total worked minutes must fit the recorded weekly limit",
                              "hours-ben": "Ben's total worked minutes must fit the recorded weekly limit",
                              "hours-nora": "Nora's total worked minutes must fit the recorded weekly limit",
                              "hours-rowan": "Rowan's total worked minutes must fit the recorded weekly limit",
                              "remaining-payroll-budget": "Complete remaining payroll must fit the recorded limit"
                            }
                          },
                          {
                            "ref": "vars.blocker.constraintId"
                          }
                        ]
                      },
                      "requirement": {
                        "ref": "vars.blocker.requirement"
                      }
                    }
                  ],
                  "as": "blocker"
                },
                "assignments": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "vars.plan.activities"
                    },
                    {
                      "position": {
                        "op": "get",
                        "args": [
                          {
                            "literal": {
                              "fri-dinner-cook-1": "Friday dinner: Cook 1",
                              "fri-dinner-cook-2": "Friday dinner: Cook 2",
                              "fri-dinner-server": "Friday dinner: Server",
                              "sat-dinner-cook-1": "Saturday dinner: Cook 1",
                              "sat-dinner-cook-2": "Saturday dinner: Cook 2",
                              "sat-dinner-server": "Saturday dinner: Server",
                              "sun-lunch-cook-1": "Sunday lunch: Cook 1",
                              "sun-lunch-cook-2": "Sunday lunch: Cook 2",
                              "sun-lunch-server": "Sunday lunch: Server"
                            }
                          },
                          {
                            "ref": "vars.activity.id"
                          }
                        ]
                      },
                      "employee": {
                        "ref": "vars.activity.actor"
                      },
                      "publishedEmployee": {
                        "op": "get",
                        "args": [
                          {
                            "literal": {
                              "fri-dinner-cook-1": "luis",
                              "fri-dinner-cook-2": "priya",
                              "fri-dinner-server": "ava",
                              "sat-dinner-cook-1": "luis",
                              "sat-dinner-cook-2": "nora",
                              "sat-dinner-server": "ava",
                              "sun-lunch-cook-1": "theo",
                              "sun-lunch-cook-2": "priya",
                              "sun-lunch-server": "ben"
                            }
                          },
                          {
                            "ref": "vars.activity.id"
                          }
                        ]
                      },
                      "changed": {
                        "op": "ne",
                        "args": [
                          {
                            "ref": "vars.activity.actor"
                          },
                          {
                            "op": "get",
                            "args": [
                              {
                                "literal": {
                                  "fri-dinner-cook-1": "luis",
                                  "fri-dinner-cook-2": "priya",
                                  "fri-dinner-server": "ava",
                                  "sat-dinner-cook-1": "luis",
                                  "sat-dinner-cook-2": "nora",
                                  "sat-dinner-server": "ava",
                                  "sun-lunch-cook-1": "theo",
                                  "sun-lunch-cook-2": "priya",
                                  "sun-lunch-server": "ben"
                                }
                              },
                              {
                                "ref": "vars.activity.id"
                              }
                            ]
                          }
                        ]
                      },
                      "start": {
                        "ref": "vars.activity.start"
                      },
                      "end": {
                        "ref": "vars.activity.end"
                      }
                    }
                  ],
                  "as": "activity"
                }
              }
            ],
            "as": "plan"
          },
          "preferenceEstablished": {
            "ref": "assessment.recommendation.preferenceEstablished"
          }
        },
        "checks": [
          {
            "id": "focused-availability",
            "message": "Supply an ordered working interval within Saturday.",
            "test": {
              "op": "and",
              "args": [
                {
                  "op": "matchesSchema",
                  "args": [
                    {
                      "ref": "case.roster.reliefWindow"
                    },
                    {
                      "literal": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "fromMinute",
                          "throughMinute"
                        ],
                        "properties": {
                          "fromMinute": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 1440
                          },
                          "throughMinute": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 1440
                          }
                        }
                      }
                    }
                  ]
                },
                {
                  "op": "lt",
                  "args": [
                    {
                      "ref": "case.roster.reliefWindow.fromMinute"
                    },
                    {
                      "ref": "case.roster.reliefWindow.throughMinute"
                    }
                  ]
                }
              ]
            }
          }
        ],
        "acceptWhen": {
          "op": "and",
          "args": [
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.status"
                },
                "complete"
              ]
            },
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.coverage.complete"
                },
                true
              ]
            }
          ]
        }
      },
      {
        "id": "cost",
        "title": "Compare by remaining payroll",
        "app": "cost",
        "role": "roster-owner",
        "dependsOn": [
          "feasibility"
        ],
        "requires": [
          "relief-window",
          "payroll-limit",
          "employees",
          "qualifications",
          "assignments",
          "other-availability",
          "bookings",
          "priority"
        ],
        "when": {
          "ref": "conditions.cost-selected"
        },
        "input": {
          "id": {
            "literal": "restaurant-roster"
          },
          "provenance": {
            "literal": [
              {
                "id": "fictional-roster-basis",
                "description": "Fictional accepted roster facts. Fees are flat amounts for each complete accepted assignment, with no implicit hourly prorating. Earlier work is retained as totals and latest shift ends. Unpaid cancellations are excluded from the remaining-payroll baseline. No staff agreement, notification or roster publication occurs."
              }
            ]
          },
          "parameters": {
            "remainingLaborBudgetMinor": {
              "ref": "case.roster.remainingPayrollLimitMinor"
            },
            "minimumRestMinutes": 600
          },
          "tables": {
            "scenarios": {
              "literal": [
                {
                  "id": "recorded-week"
                }
              ]
            },
            "_counts": {
              "literal": [
                {
                  "flag": false,
                  "count": 0
                },
                {
                  "flag": true,
                  "count": 1
                }
              ]
            },
            "_resources": {
              "literal": [
                {
                  "id": "luis",
                  "capacity": 1
                },
                {
                  "id": "priya",
                  "capacity": 1
                },
                {
                  "id": "theo",
                  "capacity": 1
                },
                {
                  "id": "ava",
                  "capacity": 1
                },
                {
                  "id": "ben",
                  "capacity": 1
                },
                {
                  "id": "nora",
                  "capacity": 1
                },
                {
                  "id": "rowan",
                  "capacity": 1
                },
                {
                  "id": "unfilled",
                  "capacity": 1
                }
              ]
            },
            "employees": {
              "ref": "case.roster.employees"
            },
            "qualifications": {
              "ref": "case.roster.qualifications"
            },
            "assignments": {
              "ref": "case.roster.assignments"
            },
            "bookings": {
              "ref": "case.roster.bookings"
            },
            "availability": {
              "op": "concat",
              "args": [
                {
                  "ref": "case.roster.otherAvailability"
                },
                [
                  {
                    "id": "availability-rowan-1",
                    "employee": "rowan",
                    "from": {
                      "op": "add",
                      "args": [
                        7200,
                        {
                          "ref": "case.roster.reliefWindow.fromMinute"
                        }
                      ]
                    },
                    "through": {
                      "op": "add",
                      "args": [
                        7200,
                        {
                          "ref": "case.roster.reliefWindow.throughMinute"
                        }
                      ]
                    }
                  }
                ]
              ]
            }
          }
        },
        "output": {
          "finding": {
            "ref": "assessment.finding"
          },
          "plans": {
            "op": "map",
            "args": [
              {
                "ref": "assessment.plans"
              },
              {
                "id": {
                  "ref": "vars.plan.choices.repair"
                },
                "planId": {
                  "ref": "vars.plan.id"
                },
                "label": {
                  "op": "get",
                  "args": [
                    {
                      "literal": {
                        "hold": "Leave the gap",
                        "move-only": "Move Theo only",
                        "relief": "Bring in Rowan",
                        "coupled": "Repair three assignments"
                      }
                    },
                    {
                      "ref": "vars.plan.choices.repair"
                    }
                  ]
                },
                "feasible": {
                  "ref": "vars.plan.feasible"
                },
                "preferred": {
                  "op": "and",
                  "args": [
                    {
                      "op": "eq",
                      "args": [
                        {
                          "ref": "assessment.recommendation.preferenceEstablished"
                        },
                        true
                      ]
                    },
                    {
                      "op": "any",
                      "args": [
                        {
                          "ref": "assessment.recommendation.tiedPlanIds"
                        },
                        {
                          "op": "eq",
                          "args": [
                            {
                              "ref": "item"
                            },
                            {
                              "ref": "vars.plan.id"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                "remainingPayrollMinor": {
                  "ref": "vars.plan.expense"
                },
                "additionalExpenseMinor": {
                  "op": "get",
                  "args": [
                    {
                      "op": "get",
                      "args": [
                        {
                          "op": "get",
                          "args": [
                            {
                              "ref": "vars.plan.scenarios"
                            },
                            0
                          ]
                        },
                        "derived"
                      ]
                    },
                    "additionalExpense"
                  ]
                },
                "baselineMinor": {
                  "op": "get",
                  "args": [
                    {
                      "op": "get",
                      "args": [
                        {
                          "op": "get",
                          "args": [
                            {
                              "ref": "vars.plan.scenarios"
                            },
                            0
                          ]
                        },
                        "derived"
                      ]
                    },
                    "retainedBaselineExpense"
                  ]
                },
                "changedPositions": {
                  "op": "get",
                  "args": [
                    {
                      "op": "get",
                      "args": [
                        {
                          "op": "get",
                          "args": [
                            {
                              "ref": "vars.plan.scenarios"
                            },
                            0
                          ]
                        },
                        "derived"
                      ]
                    },
                    "changedAssignments"
                  ]
                },
                "blockers": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "vars.plan.blockers"
                    },
                    {
                      "condition": {
                        "op": "get",
                        "args": [
                          {
                            "literal": {
                              "count-false": "Authored calculation basis: count-false",
                              "count-true": "Authored calculation basis: count-true",
                              "capacity-luis": "Authored calculation basis: capacity-luis",
                              "capacity-priya": "Authored calculation basis: capacity-priya",
                              "capacity-theo": "Authored calculation basis: capacity-theo",
                              "capacity-ava": "Authored calculation basis: capacity-ava",
                              "capacity-ben": "Authored calculation basis: capacity-ben",
                              "capacity-nora": "Authored calculation basis: capacity-nora",
                              "capacity-rowan": "Authored calculation basis: capacity-rowan",
                              "capacity-unfilled": "Authored calculation basis: capacity-unfilled",
                              "identity-luis": "Authored calculation basis: identity-luis",
                              "identity-priya": "Authored calculation basis: identity-priya",
                              "identity-theo": "Authored calculation basis: identity-theo",
                              "identity-ava": "Authored calculation basis: identity-ava",
                              "identity-ben": "Authored calculation basis: identity-ben",
                              "identity-nora": "Authored calculation basis: identity-nora",
                              "identity-rowan": "Authored calculation basis: identity-rowan",
                              "identity-unfilled": "Authored calculation basis: identity-unfilled",
                              "unfilled-assignmentFeeMinor": "Authored calculation basis: unfilled-assignmentFeeMinor",
                              "unfilled-earlierWeekMinutes": "Authored calculation basis: unfilled-earlierWeekMinutes",
                              "unfilled-weeklyLimitMinutes": "Authored calculation basis: unfilled-weeklyLimitMinutes",
                              "unfilled-lastEarlierShiftEnd": "Authored calculation basis: unfilled-lastEarlierShiftEnd",
                              "filled-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) must be filled",
                              "qualified-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs a qualified employee",
                              "available-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs availability for the whole assignment",
                              "earlier-rest-fri-dinner-cook-1": "Friday dinner: Cook (fri-dinner-cook-1) needs enough rest after earlier work",
                              "filled-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) must be filled",
                              "qualified-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs a qualified employee",
                              "available-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs availability for the whole assignment",
                              "earlier-rest-fri-dinner-cook-2": "Friday dinner: Cook (fri-dinner-cook-2) needs enough rest after earlier work",
                              "filled-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) must be filled",
                              "qualified-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs a qualified employee",
                              "available-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs availability for the whole assignment",
                              "earlier-rest-fri-dinner-server": "Friday dinner: Server (fri-dinner-server) needs enough rest after earlier work",
                              "filled-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) must be filled",
                              "qualified-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs a qualified employee",
                              "available-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs availability for the whole assignment",
                              "earlier-rest-sat-dinner-cook-1": "Saturday dinner: Cook (sat-dinner-cook-1) needs enough rest after earlier work",
                              "filled-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) must be filled",
                              "qualified-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs a qualified employee",
                              "available-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs availability for the whole assignment",
                              "earlier-rest-sat-dinner-cook-2": "Saturday dinner: Cook (sat-dinner-cook-2) needs enough rest after earlier work",
                              "filled-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) must be filled",
                              "qualified-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs a qualified employee",
                              "available-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs availability for the whole assignment",
                              "earlier-rest-sat-dinner-server": "Saturday dinner: Server (sat-dinner-server) needs enough rest after earlier work",
                              "filled-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) must be filled",
                              "qualified-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs a qualified employee",
                              "available-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs availability for the whole assignment",
                              "earlier-rest-sun-lunch-cook-1": "Sunday lunch: Cook (sun-lunch-cook-1) needs enough rest after earlier work",
                              "filled-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) must be filled",
                              "qualified-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs a qualified employee",
                              "available-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs availability for the whole assignment",
                              "earlier-rest-sun-lunch-cook-2": "Sunday lunch: Cook (sun-lunch-cook-2) needs enough rest after earlier work",
                              "filled-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) must be filled",
                              "qualified-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs a qualified employee",
                              "available-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs availability for the whole assignment",
                              "earlier-rest-sun-lunch-server": "Sunday lunch: Server (sun-lunch-server) needs enough rest after earlier work",
                              "cancelled-sat-dinner-cook-2": "Nora's cancelled assignment remains unavailable",
                              "rest-fri-dinner-cook-1-fri-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Cook (fri-dinner-cook-2)",
                              "rest-fri-dinner-cook-1-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Friday dinner: Server (fri-dinner-server)",
                              "rest-fri-dinner-cook-1-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-1)",
                              "rest-fri-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-fri-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-fri-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-fri-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-fri-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-fri-dinner-cook-2-fri-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Friday dinner: Server (fri-dinner-server)",
                              "rest-fri-dinner-cook-2-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-1)",
                              "rest-fri-dinner-cook-2-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-fri-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-fri-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-fri-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-fri-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Cook (fri-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-fri-dinner-server-sat-dinner-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-1)",
                              "rest-fri-dinner-server-sat-dinner-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-fri-dinner-server-sat-dinner-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-fri-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-fri-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-fri-dinner-server-sun-lunch-server": "The same employee needs enough rest between Friday dinner: Server (fri-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sat-dinner-cook-1-sat-dinner-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Cook (sat-dinner-cook-2)",
                              "rest-sat-dinner-cook-1-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-sat-dinner-cook-1-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-sat-dinner-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sat-dinner-cook-1-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sat-dinner-cook-2-sat-dinner-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Saturday dinner: Server (sat-dinner-server)",
                              "rest-sat-dinner-cook-2-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-sat-dinner-cook-2-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sat-dinner-cook-2-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Cook (sat-dinner-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sat-dinner-server-sun-lunch-cook-1": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-1)",
                              "rest-sat-dinner-server-sun-lunch-cook-2": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sat-dinner-server-sun-lunch-server": "The same employee needs enough rest between Saturday dinner: Server (sat-dinner-server) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sun-lunch-cook-1-sun-lunch-cook-2": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Cook (sun-lunch-cook-2)",
                              "rest-sun-lunch-cook-1-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-1) and Sunday lunch: Server (sun-lunch-server)",
                              "rest-sun-lunch-cook-2-sun-lunch-server": "The same employee needs enough rest between Sunday lunch: Cook (sun-lunch-cook-2) and Sunday lunch: Server (sun-lunch-server)",
                              "employee-capacity": "An employee cannot cover overlapping assignments or bookings",
                              "hours-luis": "Luis's total worked minutes must fit the recorded weekly limit",
                              "hours-priya": "Priya's total worked minutes must fit the recorded weekly limit",
                              "hours-theo": "Theo's total worked minutes must fit the recorded weekly limit",
                              "hours-ava": "Ava's total worked minutes must fit the recorded weekly limit",
                              "hours-ben": "Ben's total worked minutes must fit the recorded weekly limit",
                              "hours-nora": "Nora's total worked minutes must fit the recorded weekly limit",
                              "hours-rowan": "Rowan's total worked minutes must fit the recorded weekly limit",
                              "remaining-payroll-budget": "Complete remaining payroll must fit the recorded limit"
                            }
                          },
                          {
                            "ref": "vars.blocker.constraintId"
                          }
                        ]
                      },
                      "requirement": {
                        "ref": "vars.blocker.requirement"
                      }
                    }
                  ],
                  "as": "blocker"
                },
                "assignments": {
                  "op": "map",
                  "args": [
                    {
                      "ref": "vars.plan.activities"
                    },
                    {
                      "position": {
                        "op": "get",
                        "args": [
                          {
                            "literal": {
                              "fri-dinner-cook-1": "Friday dinner: Cook 1",
                              "fri-dinner-cook-2": "Friday dinner: Cook 2",
                              "fri-dinner-server": "Friday dinner: Server",
                              "sat-dinner-cook-1": "Saturday dinner: Cook 1",
                              "sat-dinner-cook-2": "Saturday dinner: Cook 2",
                              "sat-dinner-server": "Saturday dinner: Server",
                              "sun-lunch-cook-1": "Sunday lunch: Cook 1",
                              "sun-lunch-cook-2": "Sunday lunch: Cook 2",
                              "sun-lunch-server": "Sunday lunch: Server"
                            }
                          },
                          {
                            "ref": "vars.activity.id"
                          }
                        ]
                      },
                      "employee": {
                        "ref": "vars.activity.actor"
                      },
                      "publishedEmployee": {
                        "op": "get",
                        "args": [
                          {
                            "literal": {
                              "fri-dinner-cook-1": "luis",
                              "fri-dinner-cook-2": "priya",
                              "fri-dinner-server": "ava",
                              "sat-dinner-cook-1": "luis",
                              "sat-dinner-cook-2": "nora",
                              "sat-dinner-server": "ava",
                              "sun-lunch-cook-1": "theo",
                              "sun-lunch-cook-2": "priya",
                              "sun-lunch-server": "ben"
                            }
                          },
                          {
                            "ref": "vars.activity.id"
                          }
                        ]
                      },
                      "changed": {
                        "op": "ne",
                        "args": [
                          {
                            "ref": "vars.activity.actor"
                          },
                          {
                            "op": "get",
                            "args": [
                              {
                                "literal": {
                                  "fri-dinner-cook-1": "luis",
                                  "fri-dinner-cook-2": "priya",
                                  "fri-dinner-server": "ava",
                                  "sat-dinner-cook-1": "luis",
                                  "sat-dinner-cook-2": "nora",
                                  "sat-dinner-server": "ava",
                                  "sun-lunch-cook-1": "theo",
                                  "sun-lunch-cook-2": "priya",
                                  "sun-lunch-server": "ben"
                                }
                              },
                              {
                                "ref": "vars.activity.id"
                              }
                            ]
                          }
                        ]
                      },
                      "start": {
                        "ref": "vars.activity.start"
                      },
                      "end": {
                        "ref": "vars.activity.end"
                      }
                    }
                  ],
                  "as": "activity"
                }
              }
            ],
            "as": "plan"
          },
          "preferenceEstablished": {
            "ref": "assessment.recommendation.preferenceEstablished"
          }
        },
        "checks": [
          {
            "id": "focused-availability",
            "message": "Supply an ordered working interval within Saturday.",
            "test": {
              "op": "and",
              "args": [
                {
                  "op": "matchesSchema",
                  "args": [
                    {
                      "ref": "case.roster.reliefWindow"
                    },
                    {
                      "literal": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "fromMinute",
                          "throughMinute"
                        ],
                        "properties": {
                          "fromMinute": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 1440
                          },
                          "throughMinute": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 1440
                          }
                        }
                      }
                    }
                  ]
                },
                {
                  "op": "lt",
                  "args": [
                    {
                      "ref": "case.roster.reliefWindow.fromMinute"
                    },
                    {
                      "ref": "case.roster.reliefWindow.throughMinute"
                    }
                  ]
                }
              ]
            }
          }
        ],
        "acceptWhen": {
          "op": "and",
          "args": [
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.status"
                },
                "complete"
              ]
            },
            {
              "op": "eq",
              "args": [
                {
                  "ref": "assessment.coverage.complete"
                },
                true
              ]
            }
          ]
        }
      }
    ],
    "conditions": [
      {
        "id": "priority-valid",
        "label": "Use one of the three authored comparison priorities",
        "requires": [
          "priority"
        ],
        "test": {
          "op": "require",
          "args": [
            {
              "op": "or",
              "args": [
                {
                  "op": "eq",
                  "args": [
                    {
                      "ref": "case.roster.comparisonPriority"
                    },
                    "feasibility"
                  ]
                },
                {
                  "op": "eq",
                  "args": [
                    {
                      "ref": "case.roster.comparisonPriority"
                    },
                    "stability"
                  ]
                },
                {
                  "op": "eq",
                  "args": [
                    {
                      "ref": "case.roster.comparisonPriority"
                    },
                    "cost"
                  ]
                }
              ]
            },
            true,
            "Choose Compare without ranking, Preserve published assignments first, or Minimize remaining payroll first."
          ]
        }
      },
      {
        "id": "stability-selected",
        "label": "Preserve published assignments first is selected",
        "requires": [
          "priority"
        ],
        "test": {
          "op": "and",
          "args": [
            {
              "ref": "conditions.priority-valid"
            },
            {
              "op": "eq",
              "args": [
                {
                  "ref": "case.roster.comparisonPriority"
                },
                "stability"
              ]
            }
          ]
        }
      },
      {
        "id": "cost-selected",
        "label": "Minimize remaining payroll first is selected",
        "requires": [
          "priority"
        ],
        "test": {
          "op": "and",
          "args": [
            {
              "ref": "conditions.priority-valid"
            },
            {
              "op": "eq",
              "args": [
                {
                  "ref": "case.roster.comparisonPriority"
                },
                "cost"
              ]
            }
          ]
        }
      },
      {
        "id": "ranked",
        "label": "An authored ranking priority is selected",
        "requires": [
          "priority"
        ],
        "test": {
          "op": "and",
          "args": [
            {
              "ref": "conditions.priority-valid"
            },
            {
              "op": "ne",
              "args": [
                {
                  "ref": "case.roster.comparisonPriority"
                },
                "feasibility"
              ]
            }
          ]
        }
      },
      {
        "id": "result-current",
        "label": "The selected comparison has a current complete calculation",
        "test": {
          "op": "and",
          "args": [
            {
              "op": "eq",
              "args": [
                {
                  "ref": "steps.feasibility.status"
                },
                "complete"
              ]
            },
            {
              "op": "if",
              "args": [
                {
                  "ref": "conditions.stability-selected"
                },
                {
                  "op": "eq",
                  "args": [
                    {
                      "ref": "steps.stability.status"
                    },
                    "complete"
                  ]
                },
                {
                  "op": "if",
                  "args": [
                    {
                      "ref": "conditions.cost-selected"
                    },
                    {
                      "op": "eq",
                      "args": [
                        {
                          "ref": "steps.cost.status"
                        },
                        "complete"
                      ]
                    },
                    true
                  ]
                }
              ]
            }
          ]
        }
      },
      {
        "id": "has-repairs",
        "label": "At least one supplied complete repair meets every requirement",
        "test": {
          "op": "gt",
          "args": [
            {
              "op": "length",
              "args": [
                {
                  "op": "filter",
                  "args": [
                    {
                      "ref": "steps.feasibility.output.plans"
                    },
                    {
                      "op": "eq",
                      "args": [
                        {
                          "ref": "vars.candidate.feasible"
                        },
                        true
                      ]
                    }
                  ],
                  "as": "candidate"
                }
              ]
            },
            0
          ]
        }
      },
      {
        "id": "can-compare",
        "label": "Current passing repairs are available to compare",
        "test": {
          "op": "and",
          "args": [
            {
              "ref": "conditions.result-current"
            },
            {
              "ref": "conditions.has-repairs"
            }
          ]
        }
      },
      {
        "id": "must-revise",
        "label": "No supplied repair meets the requirements",
        "test": {
          "op": "and",
          "args": [
            {
              "ref": "conditions.result-current"
            },
            {
              "op": "not",
              "args": [
                {
                  "ref": "conditions.has-repairs"
                }
              ]
            }
          ]
        }
      }
    ],
    "brief": {
      "sections": [
        {
          "id": "decision-summary",
          "title": "Decision summary",
          "value": {
            "op": "if",
            "args": [
              {
                "ref": "conditions.result-current"
              },
              {
                "status": {
                  "op": "if",
                  "args": [
                    {
                      "op": "eq",
                      "args": [
                        {
                          "op": "length",
                          "args": [
                            {
                              "op": "filter",
                              "args": [
                                {
                                  "op": "if",
                                  "args": [
                                    {
                                      "ref": "conditions.stability-selected"
                                    },
                                    {
                                      "ref": "steps.stability.output.plans"
                                    },
                                    {
                                      "op": "if",
                                      "args": [
                                        {
                                          "ref": "conditions.cost-selected"
                                        },
                                        {
                                          "ref": "steps.cost.output.plans"
                                        },
                                        {
                                          "ref": "steps.feasibility.output.plans"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "vars.candidate.feasible"
                                    },
                                    true
                                  ]
                                }
                              ],
                              "as": "candidate"
                            }
                          ]
                        },
                        0
                      ]
                    },
                    "blocked",
                    {
                      "op": "if",
                      "args": [
                        {
                          "ref": "conditions.ranked"
                        },
                        "supported",
                        "choice"
                      ]
                    }
                  ]
                },
                "heading": {
                  "op": "if",
                  "args": [
                    {
                      "op": "eq",
                      "args": [
                        {
                          "op": "length",
                          "args": [
                            {
                              "op": "filter",
                              "args": [
                                {
                                  "op": "if",
                                  "args": [
                                    {
                                      "ref": "conditions.stability-selected"
                                    },
                                    {
                                      "ref": "steps.stability.output.plans"
                                    },
                                    {
                                      "op": "if",
                                      "args": [
                                        {
                                          "ref": "conditions.cost-selected"
                                        },
                                        {
                                          "ref": "steps.cost.output.plans"
                                        },
                                        {
                                          "ref": "steps.feasibility.output.plans"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                {
                                  "op": "eq",
                                  "args": [
                                    {
                                      "ref": "vars.candidate.feasible"
                                    },
                                    true
                                  ]
                                }
                              ],
                              "as": "candidate"
                            }
                          ]
                        },
                        0
                      ]
                    },
                    "No supplied repair meets every recorded requirement.",
                    {
                      "op": "if",
                      "args": [
                        {
                          "ref": "conditions.ranked"
                        },
                        {
                          "op": "if",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "length",
                                  "args": [
                                    {
                                      "op": "filter",
                                      "args": [
                                        {
                                          "op": "filter",
                                          "args": [
                                            {
                                              "op": "if",
                                              "args": [
                                                {
                                                  "ref": "conditions.stability-selected"
                                                },
                                                {
                                                  "ref": "steps.stability.output.plans"
                                                },
                                                {
                                                  "op": "if",
                                                  "args": [
                                                    {
                                                      "ref": "conditions.cost-selected"
                                                    },
                                                    {
                                                      "ref": "steps.cost.output.plans"
                                                    },
                                                    {
                                                      "ref": "steps.feasibility.output.plans"
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "op": "eq",
                                              "args": [
                                                {
                                                  "ref": "vars.candidate.feasible"
                                                },
                                                true
                                              ]
                                            }
                                          ],
                                          "as": "candidate"
                                        },
                                        {
                                          "op": "eq",
                                          "args": [
                                            {
                                              "ref": "vars.candidate.preferred"
                                            },
                                            true
                                          ]
                                        }
                                      ],
                                      "as": "candidate"
                                    }
                                  ]
                                },
                                1
                              ]
                            },
                            {
                              "op": "stringConcat",
                              "args": [
                                {
                                  "op": "get",
                                  "args": [
                                    {
                                      "op": "get",
                                      "args": [
                                        {
                                          "op": "filter",
                                          "args": [
                                            {
                                              "op": "filter",
                                              "args": [
                                                {
                                                  "op": "if",
                                                  "args": [
                                                    {
                                                      "ref": "conditions.stability-selected"
                                                    },
                                                    {
                                                      "ref": "steps.stability.output.plans"
                                                    },
                                                    {
                                                      "op": "if",
                                                      "args": [
                                                        {
                                                          "ref": "conditions.cost-selected"
                                                        },
                                                        {
                                                          "ref": "steps.cost.output.plans"
                                                        },
                                                        {
                                                          "ref": "steps.feasibility.output.plans"
                                                        }
                                                      ]
                                                    }
                                                  ]
                                                },
                                                {
                                                  "op": "eq",
                                                  "args": [
                                                    {
                                                      "ref": "vars.candidate.feasible"
                                                    },
                                                    true
                                                  ]
                                                }
                                              ],
                                              "as": "candidate"
                                            },
                                            {
                                              "op": "eq",
                                              "args": [
                                                {
                                                  "ref": "vars.candidate.preferred"
                                                },
                                                true
                                              ]
                                            }
                                          ],
                                          "as": "candidate"
                                        },
                                        0
                                      ]
                                    },
                                    "label"
                                  ]
                                },
                                " is preferred under the selected priority."
                              ]
                            },
                            "Several passing repairs share the selected priority."
                          ]
                        },
                        {
                          "op": "if",
                          "args": [
                            {
                              "op": "eq",
                              "args": [
                                {
                                  "op": "length",
                                  "args": [
                                    {
                                      "op": "filter",
                                      "args": [
                                        {
                                          "op": "if",
                                          "args": [
                                            {
                                              "ref": "conditions.stability-selected"
                                            },
                                            {
                                              "ref": "steps.stability.output.plans"
                                            },
                                            {
                                              "op": "if",
                                              "args": [
                                                {
                                                  "ref": "conditions.cost-selected"
                                                },
                                                {
                                                  "ref": "steps.cost.output.plans"
                                                },
                                                {
                                                  "ref": "steps.feasibility.output.plans"
                                                }
                                              ]
                                            }
                                          ]
                                        },
                                        {
                                          "op": "eq",
                                          "args": [
                                            {
                                              "ref": "vars.candidate.feasible"
                                            },
                                            true
                                          ]
                                        }
                                      ],
                                      "as": "candidate"
                                    }
                                  ]
                                },
                                1
                              ]
                            },
                            "One supplied repair meets every recorded requirement.",
                            {
                              "op": "stringConcat",
                              "args": [
                                {
                                  "op": "stringify",
                                  "args": [
                                    {
                                      "op": "length",
                                      "args": [
                                        {
                                          "op": "filter",
                                          "args": [
                                            {
                                              "op": "if",
                                              "args": [
                                                {
                                                  "ref": "conditions.stability-selected"
                                                },
                                                {
                                                  "ref": "steps.stability.output.plans"
                                                },
                                                {
                                                  "op": "if",
                                                  "args": [
                                                    {
                                                      "ref": "conditions.cost-selected"
                                                    },
                                                    {
                                                      "ref": "steps.cost.output.plans"
                                                    },
                                                    {
                                                      "ref": "steps.feasibility.output.plans"
                                                    }
                                                  ]
                                                }
                                              ]
                                            },
                                            {
                                              "op": "eq",
                                              "args": [
                                                {
                                                  "ref": "vars.candidate.feasible"
                                                },
                                                true
                                              ]
                                            }
                                          ],
                                          "as": "candidate"
                                        }
                                      ]
                                    }
                                  ]
                                },
                                " supplied repairs meet every recorded requirement."
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                },
                "priorityLabel": {
                  "op": "if",
                  "args": [
                    {
                      "ref": "conditions.stability-selected"
                    },
                    "Preserve published assignments first; use payroll to break ties.",
                    {
                      "op": "if",
                      "args": [
                        {
                          "ref": "conditions.cost-selected"
                        },
                        "Minimize remaining payroll first; use changed positions to break ties.",
                        "Compare without ranking; no preferred repair is declared."
                      ]
                    }
                  ]
                },
                "qualification": "Only supplied complete repairs are compared. Staff agreement and communicating the roster remain separate actions.",
                "metrics": [
                  {
                    "id": "limit",
                    "label": "Remaining payroll limit",
                    "value": {
                      "ref": "case.roster.remainingPayrollLimitMinor"
                    },
                    "format": "money"
                  }
                ],
                "conditions": [],
                "rows": {
                  "op": "map",
                  "args": [
                    {
                      "op": "if",
                      "args": [
                        {
                          "ref": "conditions.stability-selected"
                        },
                        {
                          "ref": "steps.stability.output.plans"
                        },
                        {
                          "op": "if",
                          "args": [
                            {
                              "ref": "conditions.cost-selected"
                            },
                            {
                              "ref": "steps.cost.output.plans"
                            },
                            {
                              "ref": "steps.feasibility.output.plans"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "id": {
                        "ref": "vars.repair.id"
                      },
                      "label": {
                        "ref": "vars.repair.label"
                      },
                      "feasible": {
                        "ref": "vars.repair.feasible"
                      },
                      "remainingPayrollMinor": {
                        "ref": "vars.repair.remainingPayrollMinor"
                      },
                      "additionalExpenseMinor": {
                        "ref": "vars.repair.additionalExpenseMinor"
                      },
                      "changedPositions": {
                        "ref": "vars.repair.changedPositions"
                      },
                      "standing": {
                        "op": "if",
                        "args": [
                          {
                            "ref": "vars.repair.feasible"
                          },
                          {
                            "op": "if",
                            "args": [
                              {
                                "op": "and",
                                "args": [
                                  {
                                    "ref": "conditions.ranked"
                                  },
                                  {
                                    "ref": "vars.repair.preferred"
                                  }
                                ]
                              },
                              "Preferred",
                              "Meets requirements"
                            ]
                          },
                          "Blocked"
                        ]
                      },
                      "blockerCount": {
                        "op": "length",
                        "args": [
                          {
                            "ref": "vars.repair.blockers"
                          }
                        ]
                      }
                    }
                  ],
                  "as": "repair"
                }
              },
              null
            ]
          }
        },
        {
          "id": "repair-comparison",
          "title": "All supplied repairs",
          "value": {
            "op": "if",
            "args": [
              {
                "ref": "conditions.result-current"
              },
              {
                "op": "if",
                "args": [
                  {
                    "ref": "conditions.stability-selected"
                  },
                  {
                    "ref": "steps.stability.output.plans"
                  },
                  {
                    "op": "if",
                    "args": [
                      {
                        "ref": "conditions.cost-selected"
                      },
                      {
                        "ref": "steps.cost.output.plans"
                      },
                      {
                        "ref": "steps.feasibility.output.plans"
                      }
                    ]
                  }
                ]
              },
              []
            ]
          }
        },
        {
          "id": "roster-basis",
          "title": "Published roster and remaining services",
          "value": {
            "literal": [
              {
                "position": "Friday dinner: Cook 1",
                "employee": "luis",
                "recordedChange": "Published assignment retained in the baseline",
                "start": 6840,
                "end": 7080
              },
              {
                "position": "Friday dinner: Cook 2",
                "employee": "priya",
                "recordedChange": "Published assignment retained in the baseline",
                "start": 6840,
                "end": 7080
              },
              {
                "position": "Friday dinner: Server",
                "employee": "ava",
                "recordedChange": "Published assignment retained in the baseline",
                "start": 6840,
                "end": 7080
              },
              {
                "position": "Saturday dinner: Cook 1",
                "employee": "luis",
                "recordedChange": "Published assignment retained in the baseline",
                "start": 8280,
                "end": 8520
              },
              {
                "position": "Saturday dinner: Cook 2",
                "employee": "nora",
                "recordedChange": "Unpaid cancellation; replacement needed",
                "start": 8280,
                "end": 8520
              },
              {
                "position": "Saturday dinner: Server",
                "employee": "ava",
                "recordedChange": "Published assignment retained in the baseline",
                "start": 8280,
                "end": 8520
              },
              {
                "position": "Sunday lunch: Cook 1",
                "employee": "theo",
                "recordedChange": "Published assignment retained in the baseline",
                "start": 9360,
                "end": 9600
              },
              {
                "position": "Sunday lunch: Cook 2",
                "employee": "priya",
                "recordedChange": "Published assignment retained in the baseline",
                "start": 9360,
                "end": 9600
              },
              {
                "position": "Sunday lunch: Server",
                "employee": "ben",
                "recordedChange": "Published assignment retained in the baseline",
                "start": 9360,
                "end": 9600
              }
            ]
          }
        },
        {
          "id": "assignments",
          "title": "Complete remaining roster",
          "value": {
            "ref": "steps.feasibility.output.plans"
          }
        },
        {
          "id": "decision-basis",
          "title": "Material roster-repair basis",
          "value": {
            "scope": "Compare the supplied complete repairs across every remaining service. All priorities use the same operating facts and mandatory requirements; changing the comparison priority does not relax feasibility.",
            "assumptions": [
              "The remaining published assignments, recorded interruption, employee qualifications, availability and bookings define the complete operating basis.",
              "Recorded durations, rest requirements, hour limits and remaining-payroll costs apply across all remaining services, not just the disrupted service.",
              "Stability counts changed published positions, while payroll compares complete remaining expense. A tie remains a tie under the authored priority."
            ],
            "unresolvedQuestions": [
              {
                "id": "agreement",
                "label": "Have affected employees agreed to the proposed assignments, and has the changed roster been issued?",
                "detail": "Agreement and publication need their own operating records; the calculated repair does not perform either action."
              }
            ]
          }
        }
      ],
      "actions": [
        {
          "id": "compare-repairs",
          "label": "Compare the passing complete repairs",
          "when": {
            "ref": "conditions.can-compare"
          },
          "value": {
            "summary": "Inspect the full assignments and tradeoff before choosing a repair."
          }
        },
        {
          "id": "revise-repairs",
          "label": "Revise the proposed repairs or operating facts",
          "when": {
            "ref": "conditions.must-revise"
          },
          "value": {
            "summary": "Inspect the failed conditions. The absence of a passing supplied repair does not rule out other repairs."
          }
        },
        {
          "id": "agree-assignments",
          "label": "Obtain staff agreement and communicate the chosen roster",
          "when": {
            "ref": "conditions.can-compare"
          },
          "value": {
            "summary": "This calculation does not contact employees, record agreement or publish a roster."
          }
        }
      ],
      "completion": {
        "ref": "conditions.result-current"
      }
    },
    "decisionProcess": {
      "title": "Choose a complete roster repair",
      "description": "Follow the findings from complete coverage to the selected comparison priority and remaining business actions.",
      "entryNodeIds": [
        "inputs"
      ],
      "nodes": [
        {
          "id": "inputs",
          "kind": "stage",
          "label": "Supply the interrupted roster and working records",
          "questionIds": [
            "relief-window",
            "payroll-limit",
            "employees",
            "qualifications",
            "assignments",
            "other-availability",
            "bookings"
          ],
          "sectionIds": [
            "roster-basis"
          ]
        },
        {
          "id": "calculate",
          "kind": "stage",
          "label": "Calculate every supplied complete repair",
          "stepIds": [
            "feasibility"
          ]
        },
        {
          "id": "passing",
          "kind": "decision",
          "label": "Does any supplied repair meet every requirement?",
          "conditionId": "has-repairs"
        },
        {
          "id": "priority",
          "kind": "decision",
          "label": "Is a comparison priority selected?",
          "conditionId": "ranked",
          "questionIds": [
            "priority"
          ]
        },
        {
          "id": "rank",
          "kind": "stage",
          "label": "Apply the selected priority to passing repairs",
          "stepIds": [
            "stability",
            "cost"
          ]
        },
        {
          "id": "compare",
          "kind": "action",
          "label": "Compare the passing complete repairs",
          "actionId": "compare-repairs"
        },
        {
          "id": "revise",
          "kind": "action",
          "label": "Revise proposals or operating facts",
          "actionId": "revise-repairs"
        },
        {
          "id": "complete-inputs",
          "kind": "outcome",
          "label": "Complete missing inputs, correct invalid data or finish calculation",
          "questionIds": [
            "relief-window",
            "payroll-limit",
            "employees",
            "qualifications",
            "assignments",
            "other-availability",
            "bookings"
          ]
        },
        {
          "id": "agree",
          "kind": "action",
          "label": "Obtain agreement and communicate the chosen roster",
          "actionId": "agree-assignments"
        }
      ],
      "edges": [
        {
          "id": "inputs-calculate",
          "from": "inputs",
          "to": "calculate",
          "label": "Use the same operating facts for every comparison"
        },
        {
          "id": "calculate-passing",
          "from": "calculate",
          "to": "passing",
          "label": "Use the complete coverage finding"
        },
        {
          "id": "passing-priority",
          "from": "passing",
          "to": "priority",
          "label": "One or more repairs pass",
          "outcome": "true"
        },
        {
          "id": "passing-revise",
          "from": "passing",
          "to": "revise",
          "label": "No supplied repair passes",
          "outcome": "false"
        },
        {
          "id": "passing-unknown",
          "from": "passing",
          "to": "complete-inputs",
          "label": "Required facts are unknown",
          "outcome": "unknown"
        },
        {
          "id": "passing-not-calculated",
          "from": "passing",
          "to": "complete-inputs",
          "label": "Calculation is not complete",
          "outcome": "not-calculated"
        },
        {
          "id": "passing-stale",
          "from": "passing",
          "to": "complete-inputs",
          "label": "Inputs changed; recalculate",
          "outcome": "stale"
        },
        {
          "id": "passing-error",
          "from": "passing",
          "to": "complete-inputs",
          "label": "Inputs or calculation need correction",
          "outcome": "error"
        },
        {
          "id": "priority-rank",
          "from": "priority",
          "to": "rank",
          "label": "Apply the authored priority",
          "outcome": "true"
        },
        {
          "id": "priority-compare",
          "from": "priority",
          "to": "compare",
          "label": "Compare without ranking",
          "outcome": "false"
        },
        {
          "id": "priority-unknown",
          "from": "priority",
          "to": "complete-inputs",
          "label": "Supply a supported comparison priority",
          "outcome": "unknown"
        },
        {
          "id": "priority-error",
          "from": "priority",
          "to": "complete-inputs",
          "label": "Supply a supported comparison priority",
          "outcome": "error"
        },
        {
          "id": "rank-compare",
          "from": "rank",
          "to": "compare",
          "label": "Keep genuine ties visible"
        },
        {
          "id": "compare-agree",
          "from": "compare",
          "to": "agree",
          "label": "After a person chooses a supported proposal"
        },
        {
          "id": "revise-inputs",
          "from": "revise",
          "to": "inputs",
          "label": "Reassess revised proposals and facts",
          "kind": "reassessment"
        },
        {
          "id": "complete-inputs-return",
          "from": "complete-inputs",
          "to": "inputs",
          "label": "Supply or correct the required facts",
          "kind": "reassessment"
        },
        {
          "id": "agree-inputs",
          "from": "agree",
          "to": "inputs",
          "label": "Recalculate if agreement changes availability",
          "kind": "reassessment"
        }
      ],
      "groups": [
        {
          "id": "interrupted-commitment",
          "label": "1. Establish the remaining commitment",
          "nodeIds": [
            "inputs"
          ]
        },
        {
          "id": "complete-coverage",
          "label": "2. Check every remaining service",
          "nodeIds": [
            "calculate",
            "passing",
            "complete-inputs"
          ]
        },
        {
          "id": "comparison-priority",
          "label": "3. Apply an optional priority",
          "nodeIds": [
            "priority",
            "rank"
          ]
        },
        {
          "id": "operating-response",
          "label": "4. Choose a response",
          "nodeIds": [
            "compare",
            "revise",
            "agree"
          ]
        }
      ],
      "actionGroups": [
        {
          "id": "repair-response",
          "label": "Available operating response",
          "selection": "exclusive",
          "actionIds": [
            "compare-repairs",
            "revise-repairs"
          ]
        },
        {
          "id": "staff-handoff",
          "label": "After choosing a repair",
          "selection": "all-matching",
          "actionIds": [
            "agree-assignments"
          ]
        }
      ]
    },
    "metadata": {
      "caseStart": {
        "starterMeaning": "example",
        "supportsOwnData": false,
        "scope": "The configured employees, service positions and four complete repair proposals. Change availability, payroll or comparison priority here; a different restaurant roster needs an adapted author profile."
      },
      "presentation": {
        "version": 1,
        "questions": {
          "relief-window": {
            "type": "object",
            "label": "Relief cook availability",
            "fields": {
              "fromMinute": {
                "type": "number",
                "label": "Available from on Saturday",
                "integer": true,
                "minimum": 0,
                "options": [
                  {
                    "value": 0,
                    "label": "12:00 a.m."
                  },
                  {
                    "value": 30,
                    "label": "12:30 a.m."
                  },
                  {
                    "value": 60,
                    "label": "1:00 a.m."
                  },
                  {
                    "value": 90,
                    "label": "1:30 a.m."
                  },
                  {
                    "value": 120,
                    "label": "2:00 a.m."
                  },
                  {
                    "value": 150,
                    "label": "2:30 a.m."
                  },
                  {
                    "value": 180,
                    "label": "3:00 a.m."
                  },
                  {
                    "value": 210,
                    "label": "3:30 a.m."
                  },
                  {
                    "value": 240,
                    "label": "4:00 a.m."
                  },
                  {
                    "value": 270,
                    "label": "4:30 a.m."
                  },
                  {
                    "value": 300,
                    "label": "5:00 a.m."
                  },
                  {
                    "value": 330,
                    "label": "5:30 a.m."
                  },
                  {
                    "value": 360,
                    "label": "6:00 a.m."
                  },
                  {
                    "value": 390,
                    "label": "6:30 a.m."
                  },
                  {
                    "value": 420,
                    "label": "7:00 a.m."
                  },
                  {
                    "value": 450,
                    "label": "7:30 a.m."
                  },
                  {
                    "value": 480,
                    "label": "8:00 a.m."
                  },
                  {
                    "value": 510,
                    "label": "8:30 a.m."
                  },
                  {
                    "value": 540,
                    "label": "9:00 a.m."
                  },
                  {
                    "value": 570,
                    "label": "9:30 a.m."
                  },
                  {
                    "value": 600,
                    "label": "10:00 a.m."
                  },
                  {
                    "value": 630,
                    "label": "10:30 a.m."
                  },
                  {
                    "value": 660,
                    "label": "11:00 a.m."
                  },
                  {
                    "value": 690,
                    "label": "11:30 a.m."
                  },
                  {
                    "value": 720,
                    "label": "12:00 p.m."
                  },
                  {
                    "value": 750,
                    "label": "12:30 p.m."
                  },
                  {
                    "value": 780,
                    "label": "1:00 p.m."
                  },
                  {
                    "value": 810,
                    "label": "1:30 p.m."
                  },
                  {
                    "value": 840,
                    "label": "2:00 p.m."
                  },
                  {
                    "value": 870,
                    "label": "2:30 p.m."
                  },
                  {
                    "value": 900,
                    "label": "3:00 p.m."
                  },
                  {
                    "value": 930,
                    "label": "3:30 p.m."
                  },
                  {
                    "value": 960,
                    "label": "4:00 p.m."
                  },
                  {
                    "value": 990,
                    "label": "4:30 p.m."
                  },
                  {
                    "value": 1020,
                    "label": "5:00 p.m."
                  },
                  {
                    "value": 1050,
                    "label": "5:30 p.m."
                  },
                  {
                    "value": 1080,
                    "label": "6:00 p.m."
                  },
                  {
                    "value": 1110,
                    "label": "6:30 p.m."
                  },
                  {
                    "value": 1140,
                    "label": "7:00 p.m."
                  },
                  {
                    "value": 1170,
                    "label": "7:30 p.m."
                  },
                  {
                    "value": 1200,
                    "label": "8:00 p.m."
                  },
                  {
                    "value": 1230,
                    "label": "8:30 p.m."
                  },
                  {
                    "value": 1260,
                    "label": "9:00 p.m."
                  },
                  {
                    "value": 1290,
                    "label": "9:30 p.m."
                  },
                  {
                    "value": 1320,
                    "label": "10:00 p.m."
                  },
                  {
                    "value": 1350,
                    "label": "10:30 p.m."
                  },
                  {
                    "value": 1380,
                    "label": "11:00 p.m."
                  },
                  {
                    "value": 1410,
                    "label": "11:30 p.m."
                  },
                  {
                    "value": 1440,
                    "label": "Midnight at end of day"
                  }
                ]
              },
              "throughMinute": {
                "type": "number",
                "label": "Available until on Saturday",
                "integer": true,
                "minimum": 0,
                "options": [
                  {
                    "value": 0,
                    "label": "12:00 a.m."
                  },
                  {
                    "value": 30,
                    "label": "12:30 a.m."
                  },
                  {
                    "value": 60,
                    "label": "1:00 a.m."
                  },
                  {
                    "value": 90,
                    "label": "1:30 a.m."
                  },
                  {
                    "value": 120,
                    "label": "2:00 a.m."
                  },
                  {
                    "value": 150,
                    "label": "2:30 a.m."
                  },
                  {
                    "value": 180,
                    "label": "3:00 a.m."
                  },
                  {
                    "value": 210,
                    "label": "3:30 a.m."
                  },
                  {
                    "value": 240,
                    "label": "4:00 a.m."
                  },
                  {
                    "value": 270,
                    "label": "4:30 a.m."
                  },
                  {
                    "value": 300,
                    "label": "5:00 a.m."
                  },
                  {
                    "value": 330,
                    "label": "5:30 a.m."
                  },
                  {
                    "value": 360,
                    "label": "6:00 a.m."
                  },
                  {
                    "value": 390,
                    "label": "6:30 a.m."
                  },
                  {
                    "value": 420,
                    "label": "7:00 a.m."
                  },
                  {
                    "value": 450,
                    "label": "7:30 a.m."
                  },
                  {
                    "value": 480,
                    "label": "8:00 a.m."
                  },
                  {
                    "value": 510,
                    "label": "8:30 a.m."
                  },
                  {
                    "value": 540,
                    "label": "9:00 a.m."
                  },
                  {
                    "value": 570,
                    "label": "9:30 a.m."
                  },
                  {
                    "value": 600,
                    "label": "10:00 a.m."
                  },
                  {
                    "value": 630,
                    "label": "10:30 a.m."
                  },
                  {
                    "value": 660,
                    "label": "11:00 a.m."
                  },
                  {
                    "value": 690,
                    "label": "11:30 a.m."
                  },
                  {
                    "value": 720,
                    "label": "12:00 p.m."
                  },
                  {
                    "value": 750,
                    "label": "12:30 p.m."
                  },
                  {
                    "value": 780,
                    "label": "1:00 p.m."
                  },
                  {
                    "value": 810,
                    "label": "1:30 p.m."
                  },
                  {
                    "value": 840,
                    "label": "2:00 p.m."
                  },
                  {
                    "value": 870,
                    "label": "2:30 p.m."
                  },
                  {
                    "value": 900,
                    "label": "3:00 p.m."
                  },
                  {
                    "value": 930,
                    "label": "3:30 p.m."
                  },
                  {
                    "value": 960,
                    "label": "4:00 p.m."
                  },
                  {
                    "value": 990,
                    "label": "4:30 p.m."
                  },
                  {
                    "value": 1020,
                    "label": "5:00 p.m."
                  },
                  {
                    "value": 1050,
                    "label": "5:30 p.m."
                  },
                  {
                    "value": 1080,
                    "label": "6:00 p.m."
                  },
                  {
                    "value": 1110,
                    "label": "6:30 p.m."
                  },
                  {
                    "value": 1140,
                    "label": "7:00 p.m."
                  },
                  {
                    "value": 1170,
                    "label": "7:30 p.m."
                  },
                  {
                    "value": 1200,
                    "label": "8:00 p.m."
                  },
                  {
                    "value": 1230,
                    "label": "8:30 p.m."
                  },
                  {
                    "value": 1260,
                    "label": "9:00 p.m."
                  },
                  {
                    "value": 1290,
                    "label": "9:30 p.m."
                  },
                  {
                    "value": 1320,
                    "label": "10:00 p.m."
                  },
                  {
                    "value": 1350,
                    "label": "10:30 p.m."
                  },
                  {
                    "value": 1380,
                    "label": "11:00 p.m."
                  },
                  {
                    "value": 1410,
                    "label": "11:30 p.m."
                  },
                  {
                    "value": 1440,
                    "label": "Midnight at end of day"
                  }
                ]
              }
            },
            "help": "Rowan must be available for the complete required interval. The full remaining service window stays in scope."
          },
          "payroll-limit": {
            "type": "number",
            "label": "Remaining payroll limit",
            "integer": true,
            "minimum": 0,
            "unit": "USD cent",
            "help": "Complete remaining payroll, including retained assignments and the repair. Monetary inputs are integer USD cents in YAML and JSON; Forms and Excel money cells use US dollars. Additional expense is calculated against the retained baseline.",
            "display": {
              "kind": "money",
              "currency": "USD",
              "divisor": 100
            }
          },
          "priority": {
            "type": "string",
            "label": "Comparison priority",
            "options": [
              {
                "value": "feasibility",
                "label": "Compare without ranking"
              },
              {
                "value": "stability",
                "label": "Preserve published assignments first"
              },
              {
                "value": "cost",
                "label": "Minimize remaining payroll first"
              }
            ]
          },
          "employees": {
            "type": "array",
            "label": "Employee work records",
            "collapseRecords": true,
            "summaryFields": [
              "id",
              "name"
            ],
            "maxItems": 8,
            "items": {
              "type": "object",
              "label": "Employee work records",
              "fields": {
                "id": {
                  "type": "string",
                  "label": "Employee",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    }
                  ]
                },
                "name": {
                  "type": "string",
                  "label": "Display name"
                },
                "assignmentFeeMinor": {
                  "type": "number",
                  "label": "Flat fee per assignment",
                  "integer": true,
                  "minimum": 0,
                  "unit": "USD cent",
                  "display": {
                    "kind": "money",
                    "currency": "USD",
                    "divisor": 100
                  }
                },
                "earlierWeekMinutes": {
                  "type": "number",
                  "label": "Minutes already worked this week",
                  "integer": true,
                  "minimum": 0
                },
                "weeklyLimitMinutes": {
                  "type": "number",
                  "label": "Recorded weekly limit (minutes)",
                  "integer": true,
                  "minimum": 0
                },
                "lastEarlierShiftEnd": {
                  "type": "number",
                  "label": "Latest previous shift end (minute from Monday)",
                  "integer": true,
                  "minimum": 0
                }
              }
            }
          },
          "qualifications": {
            "type": "array",
            "label": "Recorded qualifications",
            "collapseRecords": true,
            "summaryFields": [
              "employee",
              "role"
            ],
            "items": {
              "type": "object",
              "label": "Recorded qualifications",
              "fields": {
                "employee": {
                  "type": "string",
                  "label": "Employee",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    }
                  ]
                },
                "role": {
                  "type": "string",
                  "label": "Qualified role",
                  "options": [
                    {
                      "value": "cook",
                      "label": "Cook"
                    },
                    {
                      "value": "server",
                      "label": "Server"
                    }
                  ]
                }
              }
            }
          },
          "assignments": {
            "type": "array",
            "label": "Complete proposed repairs",
            "collapseRecords": true,
            "summaryFields": [
              "id"
            ],
            "maxItems": 4,
            "items": {
              "type": "object",
              "label": "Complete proposed repairs",
              "fields": {
                "id": {
                  "type": "string",
                  "label": "Supplied repair",
                  "options": [
                    {
                      "value": "hold",
                      "label": "Leave the gap"
                    },
                    {
                      "value": "move-only",
                      "label": "Move Theo only"
                    },
                    {
                      "value": "relief",
                      "label": "Bring in Rowan"
                    },
                    {
                      "value": "coupled",
                      "label": "Repair three assignments"
                    }
                  ]
                },
                "fri-dinner-cook-1": {
                  "type": "string",
                  "label": "Friday dinner: Cook 1",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    },
                    {
                      "value": "unfilled",
                      "label": "Unfilled"
                    }
                  ]
                },
                "fri-dinner-cook-2": {
                  "type": "string",
                  "label": "Friday dinner: Cook 2",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    },
                    {
                      "value": "unfilled",
                      "label": "Unfilled"
                    }
                  ]
                },
                "fri-dinner-server": {
                  "type": "string",
                  "label": "Friday dinner: Server",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    },
                    {
                      "value": "unfilled",
                      "label": "Unfilled"
                    }
                  ]
                },
                "sat-dinner-cook-1": {
                  "type": "string",
                  "label": "Saturday dinner: Cook 1",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    },
                    {
                      "value": "unfilled",
                      "label": "Unfilled"
                    }
                  ]
                },
                "sat-dinner-cook-2": {
                  "type": "string",
                  "label": "Saturday dinner: Cook 2",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    },
                    {
                      "value": "unfilled",
                      "label": "Unfilled"
                    }
                  ]
                },
                "sat-dinner-server": {
                  "type": "string",
                  "label": "Saturday dinner: Server",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    },
                    {
                      "value": "unfilled",
                      "label": "Unfilled"
                    }
                  ]
                },
                "sun-lunch-cook-1": {
                  "type": "string",
                  "label": "Sunday lunch: Cook 1",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    },
                    {
                      "value": "unfilled",
                      "label": "Unfilled"
                    }
                  ]
                },
                "sun-lunch-cook-2": {
                  "type": "string",
                  "label": "Sunday lunch: Cook 2",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    },
                    {
                      "value": "unfilled",
                      "label": "Unfilled"
                    }
                  ]
                },
                "sun-lunch-server": {
                  "type": "string",
                  "label": "Sunday lunch: Server",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    },
                    {
                      "value": "unfilled",
                      "label": "Unfilled"
                    }
                  ]
                }
              }
            }
          },
          "other-availability": {
            "type": "array",
            "label": "Other working availability",
            "collapseRecords": true,
            "summaryFields": [
              "employee",
              "from",
              "through"
            ],
            "items": {
              "type": "object",
              "label": "Other working availability",
              "fields": {
                "id": {
                  "type": "string",
                  "label": "Interval reference"
                },
                "employee": {
                  "type": "string",
                  "label": "Employee",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    }
                  ]
                },
                "from": {
                  "type": "number",
                  "label": "From (minute from Monday)",
                  "integer": true,
                  "minimum": 0
                },
                "through": {
                  "type": "number",
                  "label": "Through (minute from Monday)",
                  "integer": true,
                  "minimum": 0
                }
              }
            }
          },
          "bookings": {
            "type": "array",
            "label": "Other employee commitments",
            "collapseRecords": true,
            "summaryFields": [
              "id",
              "employee"
            ],
            "items": {
              "type": "object",
              "label": "Other employee commitments",
              "fields": {
                "id": {
                  "type": "string",
                  "label": "Commitment reference"
                },
                "employee": {
                  "type": "string",
                  "label": "Employee",
                  "options": [
                    {
                      "value": "luis",
                      "label": "Luis"
                    },
                    {
                      "value": "priya",
                      "label": "Priya"
                    },
                    {
                      "value": "theo",
                      "label": "Theo"
                    },
                    {
                      "value": "ava",
                      "label": "Ava"
                    },
                    {
                      "value": "ben",
                      "label": "Ben"
                    },
                    {
                      "value": "nora",
                      "label": "Nora"
                    },
                    {
                      "value": "rowan",
                      "label": "Rowan"
                    }
                  ]
                },
                "from": {
                  "type": "number",
                  "label": "From (minute from Monday)",
                  "integer": true,
                  "minimum": 0
                },
                "through": {
                  "type": "number",
                  "label": "Through (minute from Monday)",
                  "integer": true,
                  "minimum": 0
                },
                "amount": {
                  "type": "number",
                  "label": "Capacity used",
                  "integer": true,
                  "minimum": 0,
                  "maximum": 1
                }
              }
            }
          }
        },
        "groups": [
          {
            "id": "decision-inputs",
            "label": "Repair decision",
            "question": "Which complete repairs remain usable, and how should they be compared?",
            "subtabs": [
              {
                "id": "availability",
                "label": "Availability",
                "questionIds": [
                  "relief-window"
                ]
              },
              {
                "id": "payroll",
                "label": "Payroll boundary",
                "questionIds": [
                  "payroll-limit"
                ]
              },
              {
                "id": "priority",
                "label": "Comparison priority",
                "questionIds": [
                  "priority"
                ]
              }
            ]
          },
          {
            "id": "supporting-inputs",
            "label": "Supporting records",
            "question": "Which records support the complete roster comparison?",
            "subtabs": [
              {
                "id": "people",
                "label": "People and qualifications",
                "questionIds": [
                  "employees",
                  "qualifications"
                ]
              },
              {
                "id": "working-time",
                "label": "Working intervals",
                "questionIds": [
                  "other-availability",
                  "bookings"
                ]
              },
              {
                "id": "proposals",
                "label": "Proposed repairs",
                "questionIds": [
                  "assignments"
                ]
              }
            ]
          },
          {
            "id": "planning",
            "kind": "evaluations",
            "label": "Calculation dependencies",
            "question": "Which pinned calculations establish feasibility and the selected comparison?",
            "subtabs": []
          },
          {
            "id": "next-action",
            "kind": "brief",
            "label": "Decision summary",
            "question": "Which supplied repairs cover every service and fit the selected priority?",
            "subtabs": []
          }
        ],
        "display": {
          "currency": "USD",
          "amountUnit": "cent",
          "timeUnit": "minute",
          "timeOrigin": "2026-11-16T00:00:00-06:00",
          "names": {
            "hold": "Leave the gap",
            "move-only": "Move Theo only",
            "relief": "Bring in Rowan",
            "coupled": "Repair three assignments",
            "luis": "Luis",
            "priya": "Priya",
            "theo": "Theo",
            "ava": "Ava",
            "ben": "Ben",
            "nora": "Nora",
            "rowan": "Rowan",
            "unfilled": "Unfilled"
          },
          "nameSources": [
            {
              "questionId": "employees",
              "idField": "id",
              "labelField": "name"
            }
          ],
          "formats": {
            "remainingPayrollMinor": "money",
            "additionalExpenseMinor": "money",
            "baselineMinor": "money",
            "start": {
              "type": "time",
              "unit": "minute",
              "timeZone": "America/Chicago"
            },
            "end": {
              "type": "time",
              "unit": "minute",
              "timeZone": "America/Chicago"
            },
            "time": {
              "type": "time",
              "unit": "minute",
              "timeZone": "America/Chicago"
            },
            "duration": {
              "type": "duration",
              "unit": "minute"
            }
          }
        },
        "workflowMap": {
          "title": "Roster repair calculations",
          "description": "Feasibility uses the shared operating facts. An optional authored priority compares only passing repairs; changing priorities preserves the feasibility calculation.",
          "steps": {
            "feasibility": {
              "label": "Complete repair feasibility",
              "description": "Check every supplied repair against all mandatory requirements and all remaining services."
            },
            "stability": {
              "label": "Stability-first comparison",
              "description": "Preserve published positions first, then use remaining payroll to break ties.",
              "inactiveReasons": [
                {
                  "id": "not-selected",
                  "label": "Stability-first is not the selected priority.",
                  "when": {
                    "op": "not",
                    "args": [
                      {
                        "ref": "conditions.stability-selected"
                      }
                    ]
                  }
                }
              ]
            },
            "cost": {
              "label": "Cost-first comparison",
              "description": "Minimize remaining payroll first, then use changed positions to break ties.",
              "inactiveReasons": [
                {
                  "id": "not-selected",
                  "label": "Cost-first is not the selected priority.",
                  "when": {
                    "op": "not",
                    "args": [
                      {
                        "ref": "conditions.cost-selected"
                      }
                    ]
                  }
                }
              ]
            }
          },
          "groups": [
            {
              "id": "coverage",
              "label": "Operating feasibility",
              "stepIds": [
                "feasibility"
              ]
            },
            {
              "id": "priority",
              "label": "Optional comparison",
              "stepIds": [
                "stability",
                "cost"
              ]
            }
          ]
        },
        "report": {
          "title": "Roster repair reports",
          "readableBrief": {
            "format": "workflow-readable-brief/1",
            "sectionId": "decision-basis",
            "sourceStepIds": []
          },
          "tabs": [
            {
              "id": "conditions",
              "label": "Repair comparison",
              "question": "Why does each complete roster repair pass or fail?",
              "sectionId": "repair-comparison",
              "viewId": "repair-details"
            },
            {
              "id": "assignments",
              "label": "Complete roster",
              "question": "Who covers each service in the selected complete repair?",
              "kind": "schedules",
              "stepIds": [
                "feasibility"
              ],
              "sectionId": "assignments",
              "selection": {
                "group": "roster-repair",
                "keyField": "choices.repair",
                "labelField": "choices.repair"
              },
              "columns": [
                {
                  "key": "activity",
                  "label": "Service position"
                },
                {
                  "key": "actor",
                  "label": "Employee"
                },
                {
                  "key": "start",
                  "label": "Start"
                },
                {
                  "key": "end",
                  "label": "Finish"
                }
              ],
              "timeline": {
                "extent": "activities",
                "label": "Service time"
              }
            },
            {
              "id": "payroll",
              "label": "Payroll basis",
              "kind": "records",
              "sectionId": "repair-comparison",
              "viewId": "repair-payroll",
              "question": "How does each complete repair change the remaining payroll?"
            },
            {
              "id": "published",
              "kind": "records",
              "label": "Published baseline",
              "question": "Which remaining services and assignments form the comparison baseline?",
              "sectionId": "roster-basis",
              "columns": [
                {
                  "key": "position",
                  "label": "Service position"
                },
                {
                  "key": "employee",
                  "label": "Published employee",
                  "format": "name"
                },
                {
                  "key": "recordedChange",
                  "label": "Recorded interruption"
                },
                {
                  "key": "start",
                  "label": "Start",
                  "format": {
                    "type": "time",
                    "timeZone": "America/Chicago"
                  }
                },
                {
                  "key": "end",
                  "label": "Finish",
                  "format": {
                    "type": "time",
                    "timeZone": "America/Chicago"
                  }
                }
              ],
              "navigation": "advanced"
            }
          ],
          "questionViews": [
            {
              "id": "repair-details",
              "sectionId": "repair-comparison",
              "title": "Complete repair comparison",
              "question": "Why does each complete roster repair pass or fail?",
              "selection": {
                "group": "roster-repair",
                "keyField": "id",
                "labelField": "label",
                "initial": {
                  "preferredField": "preferred",
                  "supportedField": "feasible"
                }
              },
              "comparison": {
                "columns": [
                  {
                    "key": "label",
                    "label": "Complete repair",
                    "presentation": "text"
                  },
                  {
                    "key": "changedPositions",
                    "label": "Changed positions",
                    "format": "number",
                    "presentation": "text"
                  },
                  {
                    "key": "feasible",
                    "label": "Meets requirements",
                    "format": "boolean",
                    "presentation": "text"
                  },
                  {
                    "key": "preferred",
                    "label": "Preferred under selected priority",
                    "format": "boolean",
                    "presentation": "text"
                  }
                ],
                "title": "Compare operating fit and assignment changes"
              },
              "details": [
                {
                  "id": "conditions",
                  "title": "Requirements",
                  "question": "Which recorded requirements prevent this repair?",
                  "fields": [
                    {
                      "key": "blockers",
                      "label": "Conditions preventing this repair",
                      "presentation": "records"
                    }
                  ]
                },
                {
                  "id": "assignments",
                  "title": "Published assignment changes",
                  "question": "Which people and service positions change?",
                  "fields": [
                    {
                      "key": "assignments",
                      "label": "Complete assignments and changes",
                      "presentation": "records"
                    }
                  ]
                }
              ],
              "selectorLabel": "Complete roster repair",
              "summary": {
                "fields": [
                  {
                    "key": "feasible",
                    "label": "Meets recorded requirements",
                    "presentation": "text",
                    "format": "boolean"
                  },
                  {
                    "key": "changedPositions",
                    "label": "Changed positions",
                    "presentation": "metric",
                    "format": "number"
                  }
                ]
              }
            },
            {
              "id": "repair-payroll",
              "sectionId": "repair-comparison",
              "title": "Payroll basis",
              "question": "How does each complete repair change the remaining payroll?",
              "selectorLabel": "Complete roster repair",
              "selection": {
                "group": "roster-repair",
                "keyField": "id",
                "labelField": "label",
                "initial": {
                  "preferredField": "preferred",
                  "supportedField": "feasible"
                }
              },
              "summary": {
                "fields": [
                  {
                    "key": "baselineMinor",
                    "label": "Retained payroll baseline",
                    "presentation": "metric",
                    "format": "money"
                  },
                  {
                    "key": "additionalExpenseMinor",
                    "label": "Additional repair expense",
                    "presentation": "metric",
                    "format": "money"
                  },
                  {
                    "key": "remainingPayrollMinor",
                    "label": "Complete remaining payroll",
                    "presentation": "metric",
                    "format": "money"
                  }
                ]
              },
              "comparison": {
                "title": "Compare remaining payroll",
                "columns": [
                  {
                    "key": "label",
                    "label": "Complete repair",
                    "presentation": "text"
                  },
                  {
                    "key": "additionalExpenseMinor",
                    "label": "Additional expense",
                    "presentation": "text",
                    "format": "money"
                  },
                  {
                    "key": "remainingPayrollMinor",
                    "label": "Complete remaining payroll",
                    "presentation": "text",
                    "format": "money"
                  },
                  {
                    "key": "feasible",
                    "label": "Meets all requirements",
                    "presentation": "text",
                    "format": "boolean"
                  }
                ]
              },
              "contextFields": [
                {
                  "key": "feasible",
                  "label": "Meets all operating requirements",
                  "format": "boolean",
                  "presentation": "text"
                }
              ]
            }
          ],
          "decisionSummary": {
            "format": "workflow-decision-summary/1",
            "sectionId": "decision-summary",
            "sourceStepIds": [
              "feasibility"
            ],
            "sourceStepConditions": [
              {
                "stepId": "stability",
                "conditionId": "stability-selected"
              },
              {
                "stepId": "cost",
                "conditionId": "cost-selected"
              }
            ],
            "comparison": {
              "title": "Compare complete repairs",
              "keyField": "id",
              "labelField": "label",
              "tabId": "conditions",
              "inspectionKeyField": "id",
              "columns": [
                {
                  "key": "label",
                  "label": "Complete repair"
                },
                {
                  "key": "standing",
                  "label": "Calculated fit"
                },
                {
                  "key": "remainingPayrollMinor",
                  "label": "Remaining payroll",
                  "format": "money"
                },
                {
                  "key": "changedPositions",
                  "label": "Changed positions",
                  "format": "number"
                }
              ],
              "primaryField": "feasible"
            },
            "actionGroups": [
              {
                "id": "repair-response",
                "presentation": "actions"
              },
              {
                "id": "staff-handoff",
                "presentation": "link",
                "tabId": "assignments",
                "label": "Inspect assignments before obtaining staff agreement"
              }
            ],
            "links": [],
            "sections": [
              {
                "id": "options",
                "label": "Options",
                "question": "Which complete roster repairs cover every service, and which fit the selected priority?"
              },
              {
                "id": "next-actions",
                "label": "Next actions",
                "question": "What can we do next, given the current roster findings?"
              },
              {
                "id": "assumptions",
                "label": "Assumptions",
                "question": "What assumptions and limits does this roster comparison depend on?"
              },
              {
                "id": "questions",
                "label": "Questions",
                "question": "What still needs to be established before putting a repair into use?"
              }
            ]
          }
        }
      },
      "caseSchema": {
        "type": "object",
        "properties": {
          "roster": {
            "type": "object",
            "properties": {
              "reliefWindow": {
                "type": "object",
                "properties": {
                  "fromMinute": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1440,
                    "title": "Available from on Saturday (minutes after midnight)"
                  },
                  "throughMinute": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1440,
                    "title": "Available until on Saturday (minutes after midnight)"
                  }
                },
                "required": [
                  "fromMinute",
                  "throughMinute"
                ],
                "additionalProperties": false
              },
              "remainingPayrollLimitMinor": {
                "type": "integer",
                "minimum": 0,
                "title": "Remaining payroll limit (USD cents)",
                "unit": "USD cent"
              },
              "comparisonPriority": {
                "type": "string",
                "enum": [
                  "feasibility",
                  "stability",
                  "cost"
                ],
                "title": "Comparison priority (feasibility, stability or cost)"
              },
              "employees": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "id"
                    },
                    "name": {
                      "type": "string",
                      "title": "name"
                    },
                    "assignmentFeeMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "title": "assignment Fee Minor (USD cents)",
                      "unit": "USD cent"
                    },
                    "earlierWeekMinutes": {
                      "type": "integer",
                      "minimum": 0,
                      "title": "earlier Week Minutes (minutes)"
                    },
                    "weeklyLimitMinutes": {
                      "type": "integer",
                      "minimum": 0,
                      "title": "weekly Limit Minutes (minutes)"
                    },
                    "lastEarlierShiftEnd": {
                      "type": "integer",
                      "minimum": 0,
                      "title": "last Earlier Shift End (minutes)"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "assignmentFeeMinor",
                    "earlierWeekMinutes",
                    "weeklyLimitMinutes",
                    "lastEarlierShiftEnd"
                  ],
                  "additionalProperties": false
                }
              },
              "qualifications": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "employee": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "employee"
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "cook",
                        "server"
                      ],
                      "title": "role"
                    }
                  },
                  "required": [
                    "employee",
                    "role"
                  ],
                  "additionalProperties": false
                }
              },
              "assignments": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "enum": [
                        "hold",
                        "move-only",
                        "relief",
                        "coupled"
                      ],
                      "title": "id"
                    },
                    "fri-dinner-cook-1": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "fri-dinner-cook-1"
                    },
                    "fri-dinner-cook-2": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "fri-dinner-cook-2"
                    },
                    "fri-dinner-server": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "fri-dinner-server"
                    },
                    "sat-dinner-cook-1": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "sat-dinner-cook-1"
                    },
                    "sat-dinner-cook-2": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "sat-dinner-cook-2"
                    },
                    "sat-dinner-server": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "sat-dinner-server"
                    },
                    "sun-lunch-cook-1": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "sun-lunch-cook-1"
                    },
                    "sun-lunch-cook-2": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "sun-lunch-cook-2"
                    },
                    "sun-lunch-server": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "sun-lunch-server"
                    }
                  },
                  "required": [
                    "id",
                    "fri-dinner-cook-1",
                    "fri-dinner-cook-2",
                    "fri-dinner-server",
                    "sat-dinner-cook-1",
                    "sat-dinner-cook-2",
                    "sat-dinner-server",
                    "sun-lunch-cook-1",
                    "sun-lunch-cook-2",
                    "sun-lunch-server"
                  ],
                  "additionalProperties": false
                }
              },
              "otherAvailability": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "title": "id"
                    },
                    "employee": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "employee"
                    },
                    "from": {
                      "type": "integer",
                      "minimum": 0,
                      "title": "from (minutes)"
                    },
                    "through": {
                      "type": "integer",
                      "minimum": 0,
                      "title": "through (minutes)"
                    }
                  },
                  "required": [
                    "id",
                    "employee",
                    "from",
                    "through"
                  ],
                  "additionalProperties": false
                }
              },
              "bookings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "title": "id"
                    },
                    "employee": {
                      "type": "string",
                      "enum": [
                        "luis",
                        "priya",
                        "theo",
                        "ava",
                        "ben",
                        "nora",
                        "rowan",
                        "unfilled"
                      ],
                      "title": "employee"
                    },
                    "from": {
                      "type": "integer",
                      "minimum": 0,
                      "title": "from (minutes)"
                    },
                    "through": {
                      "type": "integer",
                      "minimum": 0,
                      "title": "through (minutes)"
                    },
                    "amount": {
                      "type": "integer",
                      "minimum": 0,
                      "enum": [
                        1
                      ],
                      "title": "amount"
                    }
                  },
                  "required": [
                    "id",
                    "employee",
                    "from",
                    "through",
                    "amount"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "reliefWindow",
              "remainingPayrollLimitMinor",
              "comparisonPriority",
              "employees",
              "qualifications",
              "assignments",
              "otherAvailability",
              "bookings"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "roster"
        ],
        "additionalProperties": false
      }
    },
    "contentHash": "f34a7bce24ab37f811d923cac4da778d13dce985e1e8fa961f71f0e8ae589710"
  },
  "catalog": {
    "domain": {
      "id": "restaurant-operations",
      "label": "Restaurant operations"
    },
    "useCase": {
      "id": "repair-published-roster",
      "label": "Repair a published roster"
    }
  },
  "publishedAt": "2026-11-22T02:08:38.561Z",
  "contentHash": "379c19be95672da68fe79dd8cb57d8e15b8f3e2a65788eef91f989b8d320e4cf"
}
