{
  "format": "decision-lab-workflow-package/1",
  "workflow": {
    "format": "decision-lab-workflow/1",
    "id": "repair-published-restaurant-roster",
    "version": "1.9.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": 2,
            "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": "{\"format\":\"complete-a-commitment/1\",\"module\":{\"id\":\"roster-repair-feasibility\",\"version\":\"1.0.1\",\"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\"}]},\"supportingReports\":{\"format\":\"supporting-reports/1\",\"reports\":[{\"id\":\"complete-options\",\"label\":\"Complete options\",\"question\":\"How do the complete options compare against the operating requirements?\",\"template\":\"comparison/1\",\"source\":{\"kind\":\"report-dataset\",\"datasetId\":\"commitment:comparison\"},\"bindings\":{\"columns\":[{\"key\":\"plan\",\"label\":\"Complete roster repair\"},{\"key\":\"status\",\"label\":\"Operating fit\"},{\"key\":\"expense\",\"label\":\"Remaining payroll\",\"format\":{\"type\":\"money\",\"currency\":\"USD\",\"scale\":100}},{\"key\":\"cash\",\"label\":\"Peak cash in use\",\"format\":{\"type\":\"money\",\"currency\":\"USD\",\"scale\":100}},{\"key\":\"blockers\",\"label\":\"Unmet checks\",\"format\":\"number\"}]}},{\"id\":\"work-and-timing\",\"label\":\"Work and timing\",\"question\":\"When does each complete plan perform the selected activity?\",\"template\":\"timeline/1\",\"source\":{\"kind\":\"commitment-schedules\"},\"representations\":[\"table\",\"timeline\"],\"defaultRepresentation\":\"table\",\"bindings\":{\"timeline\":{\"extent\":\"activities\",\"label\":\"Complete remaining roster\"}}},{\"id\":\"requirements\",\"label\":\"Requirements\",\"question\":\"Which mandatory requirements must every complete option meet?\",\"template\":\"records/1\",\"source\":{\"kind\":\"report-dataset\",\"datasetId\":\"commitment:requirements\"},\"bindings\":{\"columns\":[{\"key\":\"requirement\",\"label\":\"Requirement\"},{\"key\":\"meaning\",\"label\":\"Operating meaning\"},{\"key\":\"coverage\",\"label\":\"Complete plans passing in every situation\",\"format\":\"number\"},{\"key\":\"waivable\",\"label\":\"Can be waived\",\"format\":\"boolean\"}]}}]},\"inputDesign\":{\"version\":1,\"form\":{\"type\":\"object\",\"label\":\"Case inputs\",\"fields\":{\"parameters\":{\"type\":\"object\",\"label\":\"Parameters\",\"fields\":{\"remainingLaborBudgetMinor\":{\"type\":\"number\",\"label\":\"Remaining Labor Budget Minor\",\"integer\":true,\"unit\":\"USD cent\",\"minimum\":0},\"minimumRestMinutes\":{\"type\":\"number\",\"label\":\"Minimum Rest Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0}}},\"tables\":{\"type\":\"object\",\"label\":\"Tables\",\"fields\":{\"employees\":{\"type\":\"array\",\"label\":\"Employees\",\"items\":{\"type\":\"object\",\"label\":\"Employees record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"name\":{\"type\":\"string\",\"label\":\"Name\"},\"assignmentFeeMinor\":{\"type\":\"number\",\"label\":\"Assignment Fee Minor\",\"integer\":true,\"unit\":\"USD cent\",\"minimum\":0},\"earlierWeekMinutes\":{\"type\":\"number\",\"label\":\"Earlier Week Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"weeklyLimitMinutes\":{\"type\":\"number\",\"label\":\"Weekly Limit Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"lastEarlierShiftEnd\":{\"type\":\"number\",\"label\":\"Last Earlier Shift End\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0}}},\"keyFields\":[\"id\"]},\"qualifications\":{\"type\":\"array\",\"label\":\"Qualifications\",\"items\":{\"type\":\"object\",\"label\":\"Qualifications record\",\"fields\":{\"employee\":{\"type\":\"string\",\"label\":\"Employee\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"role\":{\"type\":\"string\",\"label\":\"Role\",\"options\":[\"cook\",\"server\"]}}},\"keyFields\":[\"employee\",\"role\"]},\"assignments\":{\"type\":\"array\",\"label\":\"Assignments\",\"items\":{\"type\":\"object\",\"label\":\"Assignments record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\",\"options\":[\"hold\",\"move-only\",\"relief\",\"coupled\"]},\"fri-dinner-cook-1\":{\"type\":\"string\",\"label\":\"Fri dinner cook 1\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"fri-dinner-cook-2\":{\"type\":\"string\",\"label\":\"Fri dinner cook 2\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"fri-dinner-server\":{\"type\":\"string\",\"label\":\"Fri dinner server\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sat-dinner-cook-1\":{\"type\":\"string\",\"label\":\"Sat dinner cook 1\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sat-dinner-cook-2\":{\"type\":\"string\",\"label\":\"Sat dinner cook 2\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sat-dinner-server\":{\"type\":\"string\",\"label\":\"Sat dinner server\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sun-lunch-cook-1\":{\"type\":\"string\",\"label\":\"Sun lunch cook 1\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sun-lunch-cook-2\":{\"type\":\"string\",\"label\":\"Sun lunch cook 2\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sun-lunch-server\":{\"type\":\"string\",\"label\":\"Sun lunch server\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]}}},\"keyFields\":[\"id\"]},\"availability\":{\"type\":\"array\",\"label\":\"Availability\",\"items\":{\"type\":\"object\",\"label\":\"Availability record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"employee\":{\"type\":\"string\",\"label\":\"Employee\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"from\":{\"type\":\"number\",\"label\":\"From\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"through\":{\"type\":\"number\",\"label\":\"Through\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0}}},\"keyFields\":[\"id\"]},\"scenarios\":{\"type\":\"array\",\"label\":\"Scenarios\",\"items\":{\"type\":\"object\",\"label\":\"Scenarios record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\",\"options\":[\"recorded-week\"]}}},\"keyFields\":[\"id\"]},\"bookings\":{\"type\":\"array\",\"label\":\"Bookings\",\"items\":{\"type\":\"object\",\"label\":\"Bookings record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"employee\":{\"type\":\"string\",\"label\":\"Employee\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"from\":{\"type\":\"number\",\"label\":\"From\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"through\":{\"type\":\"number\",\"label\":\"Through\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"amount\":{\"type\":\"number\",\"label\":\"Amount\",\"integer\":true,\"unit\":\"position\",\"minimum\":0,\"options\":[1]}}},\"keyFields\":[\"id\"]}}}}},\"groups\":[{\"id\":\"operating-parameters\",\"label\":\"Commitment and limits\",\"question\":\"Which quantities, deadlines and limits should the calculation use?\",\"subtabs\":[{\"id\":\"parameters\",\"label\":\"Operating parameters\",\"fieldPaths\":[\"/parameters\"]}]},{\"id\":\"operating-records\",\"label\":\"Operating records\",\"question\":\"Which operating records and possibilities apply to this commitment?\",\"subtabs\":[{\"id\":\"employees\",\"label\":\"Employees\",\"fieldPaths\":[\"/tables/employees\"]},{\"id\":\"qualifications\",\"label\":\"Qualifications\",\"fieldPaths\":[\"/tables/qualifications\"]},{\"id\":\"assignments\",\"label\":\"Assignments\",\"fieldPaths\":[\"/tables/assignments\"]},{\"id\":\"availability\",\"label\":\"Availability\",\"fieldPaths\":[\"/tables/availability\"]},{\"id\":\"scenarios\",\"label\":\"Scenarios\",\"fieldPaths\":[\"/tables/scenarios\"]},{\"id\":\"bookings\",\"label\":\"Bookings\",\"fieldPaths\":[\"/tables/bookings\"]}]}]}}},\"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.\"}]}}",
            "sourceHash": "949d344973d0f38698ce8b58c06cfcab5fa6966806eb06bf17c1305da28c07ce",
            "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.1",
                "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"
                      }
                    ]
                  },
                  "supportingReports": {
                    "format": "supporting-reports/1",
                    "reports": [
                      {
                        "id": "complete-options",
                        "label": "Complete options",
                        "question": "How do the complete options compare against the operating requirements?",
                        "template": "comparison/1",
                        "source": {
                          "kind": "report-dataset",
                          "datasetId": "commitment:comparison"
                        },
                        "bindings": {
                          "columns": [
                            {
                              "key": "plan",
                              "label": "Complete roster repair"
                            },
                            {
                              "key": "status",
                              "label": "Operating fit"
                            },
                            {
                              "key": "expense",
                              "label": "Remaining payroll",
                              "format": {
                                "type": "money",
                                "currency": "USD",
                                "scale": 100
                              }
                            },
                            {
                              "key": "cash",
                              "label": "Peak cash in use",
                              "format": {
                                "type": "money",
                                "currency": "USD",
                                "scale": 100
                              }
                            },
                            {
                              "key": "blockers",
                              "label": "Unmet checks",
                              "format": "number"
                            }
                          ]
                        }
                      },
                      {
                        "id": "work-and-timing",
                        "label": "Work and timing",
                        "question": "When does each complete plan perform the selected activity?",
                        "template": "timeline/1",
                        "source": {
                          "kind": "commitment-schedules"
                        },
                        "representations": [
                          "table",
                          "timeline"
                        ],
                        "defaultRepresentation": "table",
                        "bindings": {
                          "timeline": {
                            "extent": "activities",
                            "label": "Complete remaining roster"
                          }
                        }
                      },
                      {
                        "id": "requirements",
                        "label": "Requirements",
                        "question": "Which mandatory requirements must every complete option meet?",
                        "template": "records/1",
                        "source": {
                          "kind": "report-dataset",
                          "datasetId": "commitment:requirements"
                        },
                        "bindings": {
                          "columns": [
                            {
                              "key": "requirement",
                              "label": "Requirement"
                            },
                            {
                              "key": "meaning",
                              "label": "Operating meaning"
                            },
                            {
                              "key": "coverage",
                              "label": "Complete plans passing in every situation",
                              "format": "number"
                            },
                            {
                              "key": "waivable",
                              "label": "Can be waived",
                              "format": "boolean"
                            }
                          ]
                        }
                      }
                    ]
                  },
                  "inputDesign": {
                    "version": 1,
                    "form": {
                      "type": "object",
                      "label": "Case inputs",
                      "fields": {
                        "parameters": {
                          "type": "object",
                          "label": "Parameters",
                          "fields": {
                            "remainingLaborBudgetMinor": {
                              "type": "number",
                              "label": "Remaining Labor Budget Minor",
                              "integer": true,
                              "unit": "USD cent",
                              "minimum": 0
                            },
                            "minimumRestMinutes": {
                              "type": "number",
                              "label": "Minimum Rest Minutes",
                              "integer": true,
                              "unit": "minute",
                              "minimum": 0
                            }
                          }
                        },
                        "tables": {
                          "type": "object",
                          "label": "Tables",
                          "fields": {
                            "employees": {
                              "type": "array",
                              "label": "Employees",
                              "items": {
                                "type": "object",
                                "label": "Employees record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "name": {
                                    "type": "string",
                                    "label": "Name"
                                  },
                                  "assignmentFeeMinor": {
                                    "type": "number",
                                    "label": "Assignment Fee Minor",
                                    "integer": true,
                                    "unit": "USD cent",
                                    "minimum": 0
                                  },
                                  "earlierWeekMinutes": {
                                    "type": "number",
                                    "label": "Earlier Week Minutes",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "weeklyLimitMinutes": {
                                    "type": "number",
                                    "label": "Weekly Limit Minutes",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "lastEarlierShiftEnd": {
                                    "type": "number",
                                    "label": "Last Earlier Shift End",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "qualifications": {
                              "type": "array",
                              "label": "Qualifications",
                              "items": {
                                "type": "object",
                                "label": "Qualifications record",
                                "fields": {
                                  "employee": {
                                    "type": "string",
                                    "label": "Employee",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "role": {
                                    "type": "string",
                                    "label": "Role",
                                    "options": [
                                      "cook",
                                      "server"
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "employee",
                                "role"
                              ]
                            },
                            "assignments": {
                              "type": "array",
                              "label": "Assignments",
                              "items": {
                                "type": "object",
                                "label": "Assignments record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id",
                                    "options": [
                                      "hold",
                                      "move-only",
                                      "relief",
                                      "coupled"
                                    ]
                                  },
                                  "fri-dinner-cook-1": {
                                    "type": "string",
                                    "label": "Fri dinner cook 1",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "fri-dinner-cook-2": {
                                    "type": "string",
                                    "label": "Fri dinner cook 2",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "fri-dinner-server": {
                                    "type": "string",
                                    "label": "Fri dinner server",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sat-dinner-cook-1": {
                                    "type": "string",
                                    "label": "Sat dinner cook 1",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sat-dinner-cook-2": {
                                    "type": "string",
                                    "label": "Sat dinner cook 2",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sat-dinner-server": {
                                    "type": "string",
                                    "label": "Sat dinner server",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sun-lunch-cook-1": {
                                    "type": "string",
                                    "label": "Sun lunch cook 1",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sun-lunch-cook-2": {
                                    "type": "string",
                                    "label": "Sun lunch cook 2",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sun-lunch-server": {
                                    "type": "string",
                                    "label": "Sun lunch server",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "availability": {
                              "type": "array",
                              "label": "Availability",
                              "items": {
                                "type": "object",
                                "label": "Availability record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "employee": {
                                    "type": "string",
                                    "label": "Employee",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "from": {
                                    "type": "number",
                                    "label": "From",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "through": {
                                    "type": "number",
                                    "label": "Through",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "scenarios": {
                              "type": "array",
                              "label": "Scenarios",
                              "items": {
                                "type": "object",
                                "label": "Scenarios record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id",
                                    "options": [
                                      "recorded-week"
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "bookings": {
                              "type": "array",
                              "label": "Bookings",
                              "items": {
                                "type": "object",
                                "label": "Bookings record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "employee": {
                                    "type": "string",
                                    "label": "Employee",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "from": {
                                    "type": "number",
                                    "label": "From",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "through": {
                                    "type": "number",
                                    "label": "Through",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "amount": {
                                    "type": "number",
                                    "label": "Amount",
                                    "integer": true,
                                    "unit": "position",
                                    "minimum": 0,
                                    "options": [
                                      1
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            }
                          }
                        }
                      }
                    },
                    "groups": [
                      {
                        "id": "operating-parameters",
                        "label": "Commitment and limits",
                        "question": "Which quantities, deadlines and limits should the calculation use?",
                        "subtabs": [
                          {
                            "id": "parameters",
                            "label": "Operating parameters",
                            "fieldPaths": [
                              "/parameters"
                            ]
                          }
                        ]
                      },
                      {
                        "id": "operating-records",
                        "label": "Operating records",
                        "question": "Which operating records and possibilities apply to this commitment?",
                        "subtabs": [
                          {
                            "id": "employees",
                            "label": "Employees",
                            "fieldPaths": [
                              "/tables/employees"
                            ]
                          },
                          {
                            "id": "qualifications",
                            "label": "Qualifications",
                            "fieldPaths": [
                              "/tables/qualifications"
                            ]
                          },
                          {
                            "id": "assignments",
                            "label": "Assignments",
                            "fieldPaths": [
                              "/tables/assignments"
                            ]
                          },
                          {
                            "id": "availability",
                            "label": "Availability",
                            "fieldPaths": [
                              "/tables/availability"
                            ]
                          },
                          {
                            "id": "scenarios",
                            "label": "Scenarios",
                            "fieldPaths": [
                              "/tables/scenarios"
                            ]
                          },
                          {
                            "id": "bookings",
                            "label": "Bookings",
                            "fieldPaths": [
                              "/tables/bookings"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              "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-23T16:59:01.941Z",
            "contentHash": "9f42c0ed4e175f30565498a0b090acfc4773b3e4fd0e1e12d1443c1ce7c9d462"
          },
          "sourceProvenance": "supplied",
          "contentHash": "d61900639be903d55cae45a2fafa91c03233b98197c05361ac3d42af050032a0"
        },
        "packageHash": "d61900639be903d55cae45a2fafa91c03233b98197c05361ac3d42af050032a0"
      },
      {
        "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": 2,
            "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": "{\"format\":\"complete-a-commitment/1\",\"module\":{\"id\":\"roster-repair-stability\",\"version\":\"1.0.1\",\"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\"}]},\"supportingReports\":{\"format\":\"supporting-reports/1\",\"reports\":[{\"id\":\"complete-options\",\"label\":\"Complete options\",\"question\":\"How do the complete options compare against the operating requirements?\",\"template\":\"comparison/1\",\"source\":{\"kind\":\"report-dataset\",\"datasetId\":\"commitment:comparison\"},\"bindings\":{\"columns\":[{\"key\":\"plan\",\"label\":\"Complete roster repair\"},{\"key\":\"status\",\"label\":\"Operating fit\"},{\"key\":\"expense\",\"label\":\"Remaining payroll\",\"format\":{\"type\":\"money\",\"currency\":\"USD\",\"scale\":100}},{\"key\":\"cash\",\"label\":\"Peak cash in use\",\"format\":{\"type\":\"money\",\"currency\":\"USD\",\"scale\":100}},{\"key\":\"blockers\",\"label\":\"Unmet checks\",\"format\":\"number\"}]}},{\"id\":\"work-and-timing\",\"label\":\"Work and timing\",\"question\":\"When does each complete plan perform the selected activity?\",\"template\":\"timeline/1\",\"source\":{\"kind\":\"commitment-schedules\"},\"representations\":[\"table\",\"timeline\"],\"defaultRepresentation\":\"table\",\"bindings\":{\"timeline\":{\"extent\":\"activities\",\"label\":\"Complete remaining roster\"}}},{\"id\":\"requirements\",\"label\":\"Requirements\",\"question\":\"Which mandatory requirements must every complete option meet?\",\"template\":\"records/1\",\"source\":{\"kind\":\"report-dataset\",\"datasetId\":\"commitment:requirements\"},\"bindings\":{\"columns\":[{\"key\":\"requirement\",\"label\":\"Requirement\"},{\"key\":\"meaning\",\"label\":\"Operating meaning\"},{\"key\":\"coverage\",\"label\":\"Complete plans passing in every situation\",\"format\":\"number\"},{\"key\":\"waivable\",\"label\":\"Can be waived\",\"format\":\"boolean\"}]}}]},\"inputDesign\":{\"version\":1,\"form\":{\"type\":\"object\",\"label\":\"Case inputs\",\"fields\":{\"parameters\":{\"type\":\"object\",\"label\":\"Parameters\",\"fields\":{\"remainingLaborBudgetMinor\":{\"type\":\"number\",\"label\":\"Remaining Labor Budget Minor\",\"integer\":true,\"unit\":\"USD cent\",\"minimum\":0},\"minimumRestMinutes\":{\"type\":\"number\",\"label\":\"Minimum Rest Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0}}},\"tables\":{\"type\":\"object\",\"label\":\"Tables\",\"fields\":{\"employees\":{\"type\":\"array\",\"label\":\"Employees\",\"items\":{\"type\":\"object\",\"label\":\"Employees record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"name\":{\"type\":\"string\",\"label\":\"Name\"},\"assignmentFeeMinor\":{\"type\":\"number\",\"label\":\"Assignment Fee Minor\",\"integer\":true,\"unit\":\"USD cent\",\"minimum\":0},\"earlierWeekMinutes\":{\"type\":\"number\",\"label\":\"Earlier Week Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"weeklyLimitMinutes\":{\"type\":\"number\",\"label\":\"Weekly Limit Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"lastEarlierShiftEnd\":{\"type\":\"number\",\"label\":\"Last Earlier Shift End\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0}}},\"keyFields\":[\"id\"]},\"qualifications\":{\"type\":\"array\",\"label\":\"Qualifications\",\"items\":{\"type\":\"object\",\"label\":\"Qualifications record\",\"fields\":{\"employee\":{\"type\":\"string\",\"label\":\"Employee\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"role\":{\"type\":\"string\",\"label\":\"Role\",\"options\":[\"cook\",\"server\"]}}},\"keyFields\":[\"employee\",\"role\"]},\"assignments\":{\"type\":\"array\",\"label\":\"Assignments\",\"items\":{\"type\":\"object\",\"label\":\"Assignments record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\",\"options\":[\"hold\",\"move-only\",\"relief\",\"coupled\"]},\"fri-dinner-cook-1\":{\"type\":\"string\",\"label\":\"Fri dinner cook 1\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"fri-dinner-cook-2\":{\"type\":\"string\",\"label\":\"Fri dinner cook 2\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"fri-dinner-server\":{\"type\":\"string\",\"label\":\"Fri dinner server\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sat-dinner-cook-1\":{\"type\":\"string\",\"label\":\"Sat dinner cook 1\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sat-dinner-cook-2\":{\"type\":\"string\",\"label\":\"Sat dinner cook 2\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sat-dinner-server\":{\"type\":\"string\",\"label\":\"Sat dinner server\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sun-lunch-cook-1\":{\"type\":\"string\",\"label\":\"Sun lunch cook 1\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sun-lunch-cook-2\":{\"type\":\"string\",\"label\":\"Sun lunch cook 2\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sun-lunch-server\":{\"type\":\"string\",\"label\":\"Sun lunch server\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]}}},\"keyFields\":[\"id\"]},\"availability\":{\"type\":\"array\",\"label\":\"Availability\",\"items\":{\"type\":\"object\",\"label\":\"Availability record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"employee\":{\"type\":\"string\",\"label\":\"Employee\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"from\":{\"type\":\"number\",\"label\":\"From\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"through\":{\"type\":\"number\",\"label\":\"Through\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0}}},\"keyFields\":[\"id\"]},\"scenarios\":{\"type\":\"array\",\"label\":\"Scenarios\",\"items\":{\"type\":\"object\",\"label\":\"Scenarios record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\",\"options\":[\"recorded-week\"]}}},\"keyFields\":[\"id\"]},\"bookings\":{\"type\":\"array\",\"label\":\"Bookings\",\"items\":{\"type\":\"object\",\"label\":\"Bookings record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"employee\":{\"type\":\"string\",\"label\":\"Employee\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"from\":{\"type\":\"number\",\"label\":\"From\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"through\":{\"type\":\"number\",\"label\":\"Through\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"amount\":{\"type\":\"number\",\"label\":\"Amount\",\"integer\":true,\"unit\":\"position\",\"minimum\":0,\"options\":[1]}}},\"keyFields\":[\"id\"]}}}}},\"groups\":[{\"id\":\"operating-parameters\",\"label\":\"Commitment and limits\",\"question\":\"Which quantities, deadlines and limits should the calculation use?\",\"subtabs\":[{\"id\":\"parameters\",\"label\":\"Operating parameters\",\"fieldPaths\":[\"/parameters\"]}]},{\"id\":\"operating-records\",\"label\":\"Operating records\",\"question\":\"Which operating records and possibilities apply to this commitment?\",\"subtabs\":[{\"id\":\"employees\",\"label\":\"Employees\",\"fieldPaths\":[\"/tables/employees\"]},{\"id\":\"qualifications\",\"label\":\"Qualifications\",\"fieldPaths\":[\"/tables/qualifications\"]},{\"id\":\"assignments\",\"label\":\"Assignments\",\"fieldPaths\":[\"/tables/assignments\"]},{\"id\":\"availability\",\"label\":\"Availability\",\"fieldPaths\":[\"/tables/availability\"]},{\"id\":\"scenarios\",\"label\":\"Scenarios\",\"fieldPaths\":[\"/tables/scenarios\"]},{\"id\":\"bookings\",\"label\":\"Bookings\",\"fieldPaths\":[\"/tables/bookings\"]}]}]}}},\"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.\"}]}}",
            "sourceHash": "47e325ee1779979c1ffbcf393d1c760be82d00fc8f29b2f7abacbe8df9f6e5b2",
            "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.1",
                "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"
                      }
                    ]
                  },
                  "supportingReports": {
                    "format": "supporting-reports/1",
                    "reports": [
                      {
                        "id": "complete-options",
                        "label": "Complete options",
                        "question": "How do the complete options compare against the operating requirements?",
                        "template": "comparison/1",
                        "source": {
                          "kind": "report-dataset",
                          "datasetId": "commitment:comparison"
                        },
                        "bindings": {
                          "columns": [
                            {
                              "key": "plan",
                              "label": "Complete roster repair"
                            },
                            {
                              "key": "status",
                              "label": "Operating fit"
                            },
                            {
                              "key": "expense",
                              "label": "Remaining payroll",
                              "format": {
                                "type": "money",
                                "currency": "USD",
                                "scale": 100
                              }
                            },
                            {
                              "key": "cash",
                              "label": "Peak cash in use",
                              "format": {
                                "type": "money",
                                "currency": "USD",
                                "scale": 100
                              }
                            },
                            {
                              "key": "blockers",
                              "label": "Unmet checks",
                              "format": "number"
                            }
                          ]
                        }
                      },
                      {
                        "id": "work-and-timing",
                        "label": "Work and timing",
                        "question": "When does each complete plan perform the selected activity?",
                        "template": "timeline/1",
                        "source": {
                          "kind": "commitment-schedules"
                        },
                        "representations": [
                          "table",
                          "timeline"
                        ],
                        "defaultRepresentation": "table",
                        "bindings": {
                          "timeline": {
                            "extent": "activities",
                            "label": "Complete remaining roster"
                          }
                        }
                      },
                      {
                        "id": "requirements",
                        "label": "Requirements",
                        "question": "Which mandatory requirements must every complete option meet?",
                        "template": "records/1",
                        "source": {
                          "kind": "report-dataset",
                          "datasetId": "commitment:requirements"
                        },
                        "bindings": {
                          "columns": [
                            {
                              "key": "requirement",
                              "label": "Requirement"
                            },
                            {
                              "key": "meaning",
                              "label": "Operating meaning"
                            },
                            {
                              "key": "coverage",
                              "label": "Complete plans passing in every situation",
                              "format": "number"
                            },
                            {
                              "key": "waivable",
                              "label": "Can be waived",
                              "format": "boolean"
                            }
                          ]
                        }
                      }
                    ]
                  },
                  "inputDesign": {
                    "version": 1,
                    "form": {
                      "type": "object",
                      "label": "Case inputs",
                      "fields": {
                        "parameters": {
                          "type": "object",
                          "label": "Parameters",
                          "fields": {
                            "remainingLaborBudgetMinor": {
                              "type": "number",
                              "label": "Remaining Labor Budget Minor",
                              "integer": true,
                              "unit": "USD cent",
                              "minimum": 0
                            },
                            "minimumRestMinutes": {
                              "type": "number",
                              "label": "Minimum Rest Minutes",
                              "integer": true,
                              "unit": "minute",
                              "minimum": 0
                            }
                          }
                        },
                        "tables": {
                          "type": "object",
                          "label": "Tables",
                          "fields": {
                            "employees": {
                              "type": "array",
                              "label": "Employees",
                              "items": {
                                "type": "object",
                                "label": "Employees record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "name": {
                                    "type": "string",
                                    "label": "Name"
                                  },
                                  "assignmentFeeMinor": {
                                    "type": "number",
                                    "label": "Assignment Fee Minor",
                                    "integer": true,
                                    "unit": "USD cent",
                                    "minimum": 0
                                  },
                                  "earlierWeekMinutes": {
                                    "type": "number",
                                    "label": "Earlier Week Minutes",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "weeklyLimitMinutes": {
                                    "type": "number",
                                    "label": "Weekly Limit Minutes",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "lastEarlierShiftEnd": {
                                    "type": "number",
                                    "label": "Last Earlier Shift End",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "qualifications": {
                              "type": "array",
                              "label": "Qualifications",
                              "items": {
                                "type": "object",
                                "label": "Qualifications record",
                                "fields": {
                                  "employee": {
                                    "type": "string",
                                    "label": "Employee",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "role": {
                                    "type": "string",
                                    "label": "Role",
                                    "options": [
                                      "cook",
                                      "server"
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "employee",
                                "role"
                              ]
                            },
                            "assignments": {
                              "type": "array",
                              "label": "Assignments",
                              "items": {
                                "type": "object",
                                "label": "Assignments record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id",
                                    "options": [
                                      "hold",
                                      "move-only",
                                      "relief",
                                      "coupled"
                                    ]
                                  },
                                  "fri-dinner-cook-1": {
                                    "type": "string",
                                    "label": "Fri dinner cook 1",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "fri-dinner-cook-2": {
                                    "type": "string",
                                    "label": "Fri dinner cook 2",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "fri-dinner-server": {
                                    "type": "string",
                                    "label": "Fri dinner server",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sat-dinner-cook-1": {
                                    "type": "string",
                                    "label": "Sat dinner cook 1",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sat-dinner-cook-2": {
                                    "type": "string",
                                    "label": "Sat dinner cook 2",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sat-dinner-server": {
                                    "type": "string",
                                    "label": "Sat dinner server",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sun-lunch-cook-1": {
                                    "type": "string",
                                    "label": "Sun lunch cook 1",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sun-lunch-cook-2": {
                                    "type": "string",
                                    "label": "Sun lunch cook 2",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sun-lunch-server": {
                                    "type": "string",
                                    "label": "Sun lunch server",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "availability": {
                              "type": "array",
                              "label": "Availability",
                              "items": {
                                "type": "object",
                                "label": "Availability record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "employee": {
                                    "type": "string",
                                    "label": "Employee",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "from": {
                                    "type": "number",
                                    "label": "From",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "through": {
                                    "type": "number",
                                    "label": "Through",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "scenarios": {
                              "type": "array",
                              "label": "Scenarios",
                              "items": {
                                "type": "object",
                                "label": "Scenarios record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id",
                                    "options": [
                                      "recorded-week"
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "bookings": {
                              "type": "array",
                              "label": "Bookings",
                              "items": {
                                "type": "object",
                                "label": "Bookings record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "employee": {
                                    "type": "string",
                                    "label": "Employee",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "from": {
                                    "type": "number",
                                    "label": "From",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "through": {
                                    "type": "number",
                                    "label": "Through",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "amount": {
                                    "type": "number",
                                    "label": "Amount",
                                    "integer": true,
                                    "unit": "position",
                                    "minimum": 0,
                                    "options": [
                                      1
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            }
                          }
                        }
                      }
                    },
                    "groups": [
                      {
                        "id": "operating-parameters",
                        "label": "Commitment and limits",
                        "question": "Which quantities, deadlines and limits should the calculation use?",
                        "subtabs": [
                          {
                            "id": "parameters",
                            "label": "Operating parameters",
                            "fieldPaths": [
                              "/parameters"
                            ]
                          }
                        ]
                      },
                      {
                        "id": "operating-records",
                        "label": "Operating records",
                        "question": "Which operating records and possibilities apply to this commitment?",
                        "subtabs": [
                          {
                            "id": "employees",
                            "label": "Employees",
                            "fieldPaths": [
                              "/tables/employees"
                            ]
                          },
                          {
                            "id": "qualifications",
                            "label": "Qualifications",
                            "fieldPaths": [
                              "/tables/qualifications"
                            ]
                          },
                          {
                            "id": "assignments",
                            "label": "Assignments",
                            "fieldPaths": [
                              "/tables/assignments"
                            ]
                          },
                          {
                            "id": "availability",
                            "label": "Availability",
                            "fieldPaths": [
                              "/tables/availability"
                            ]
                          },
                          {
                            "id": "scenarios",
                            "label": "Scenarios",
                            "fieldPaths": [
                              "/tables/scenarios"
                            ]
                          },
                          {
                            "id": "bookings",
                            "label": "Bookings",
                            "fieldPaths": [
                              "/tables/bookings"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              "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-23T16:59:01.941Z",
            "contentHash": "39c331aa8ffacceeb641d63365b0b8148f8e639bc98f2da4829855b1a148b6f0"
          },
          "sourceProvenance": "supplied",
          "contentHash": "c463b7c0bfb05198d5b44b87a38cad151f21c94aea3b8ae516074d5a0887537d"
        },
        "packageHash": "c463b7c0bfb05198d5b44b87a38cad151f21c94aea3b8ae516074d5a0887537d"
      },
      {
        "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": 2,
            "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": "{\"format\":\"complete-a-commitment/1\",\"module\":{\"id\":\"roster-repair-cost\",\"version\":\"1.0.1\",\"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\"}]},\"supportingReports\":{\"format\":\"supporting-reports/1\",\"reports\":[{\"id\":\"complete-options\",\"label\":\"Complete options\",\"question\":\"How do the complete options compare against the operating requirements?\",\"template\":\"comparison/1\",\"source\":{\"kind\":\"report-dataset\",\"datasetId\":\"commitment:comparison\"},\"bindings\":{\"columns\":[{\"key\":\"plan\",\"label\":\"Complete roster repair\"},{\"key\":\"status\",\"label\":\"Operating fit\"},{\"key\":\"expense\",\"label\":\"Remaining payroll\",\"format\":{\"type\":\"money\",\"currency\":\"USD\",\"scale\":100}},{\"key\":\"cash\",\"label\":\"Peak cash in use\",\"format\":{\"type\":\"money\",\"currency\":\"USD\",\"scale\":100}},{\"key\":\"blockers\",\"label\":\"Unmet checks\",\"format\":\"number\"}]}},{\"id\":\"work-and-timing\",\"label\":\"Work and timing\",\"question\":\"When does each complete plan perform the selected activity?\",\"template\":\"timeline/1\",\"source\":{\"kind\":\"commitment-schedules\"},\"representations\":[\"table\",\"timeline\"],\"defaultRepresentation\":\"table\",\"bindings\":{\"timeline\":{\"extent\":\"activities\",\"label\":\"Complete remaining roster\"}}},{\"id\":\"requirements\",\"label\":\"Requirements\",\"question\":\"Which mandatory requirements must every complete option meet?\",\"template\":\"records/1\",\"source\":{\"kind\":\"report-dataset\",\"datasetId\":\"commitment:requirements\"},\"bindings\":{\"columns\":[{\"key\":\"requirement\",\"label\":\"Requirement\"},{\"key\":\"meaning\",\"label\":\"Operating meaning\"},{\"key\":\"coverage\",\"label\":\"Complete plans passing in every situation\",\"format\":\"number\"},{\"key\":\"waivable\",\"label\":\"Can be waived\",\"format\":\"boolean\"}]}}]},\"inputDesign\":{\"version\":1,\"form\":{\"type\":\"object\",\"label\":\"Case inputs\",\"fields\":{\"parameters\":{\"type\":\"object\",\"label\":\"Parameters\",\"fields\":{\"remainingLaborBudgetMinor\":{\"type\":\"number\",\"label\":\"Remaining Labor Budget Minor\",\"integer\":true,\"unit\":\"USD cent\",\"minimum\":0},\"minimumRestMinutes\":{\"type\":\"number\",\"label\":\"Minimum Rest Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0}}},\"tables\":{\"type\":\"object\",\"label\":\"Tables\",\"fields\":{\"employees\":{\"type\":\"array\",\"label\":\"Employees\",\"items\":{\"type\":\"object\",\"label\":\"Employees record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"name\":{\"type\":\"string\",\"label\":\"Name\"},\"assignmentFeeMinor\":{\"type\":\"number\",\"label\":\"Assignment Fee Minor\",\"integer\":true,\"unit\":\"USD cent\",\"minimum\":0},\"earlierWeekMinutes\":{\"type\":\"number\",\"label\":\"Earlier Week Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"weeklyLimitMinutes\":{\"type\":\"number\",\"label\":\"Weekly Limit Minutes\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"lastEarlierShiftEnd\":{\"type\":\"number\",\"label\":\"Last Earlier Shift End\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0}}},\"keyFields\":[\"id\"]},\"qualifications\":{\"type\":\"array\",\"label\":\"Qualifications\",\"items\":{\"type\":\"object\",\"label\":\"Qualifications record\",\"fields\":{\"employee\":{\"type\":\"string\",\"label\":\"Employee\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"role\":{\"type\":\"string\",\"label\":\"Role\",\"options\":[\"cook\",\"server\"]}}},\"keyFields\":[\"employee\",\"role\"]},\"assignments\":{\"type\":\"array\",\"label\":\"Assignments\",\"items\":{\"type\":\"object\",\"label\":\"Assignments record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\",\"options\":[\"hold\",\"move-only\",\"relief\",\"coupled\"]},\"fri-dinner-cook-1\":{\"type\":\"string\",\"label\":\"Fri dinner cook 1\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"fri-dinner-cook-2\":{\"type\":\"string\",\"label\":\"Fri dinner cook 2\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"fri-dinner-server\":{\"type\":\"string\",\"label\":\"Fri dinner server\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sat-dinner-cook-1\":{\"type\":\"string\",\"label\":\"Sat dinner cook 1\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sat-dinner-cook-2\":{\"type\":\"string\",\"label\":\"Sat dinner cook 2\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sat-dinner-server\":{\"type\":\"string\",\"label\":\"Sat dinner server\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sun-lunch-cook-1\":{\"type\":\"string\",\"label\":\"Sun lunch cook 1\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sun-lunch-cook-2\":{\"type\":\"string\",\"label\":\"Sun lunch cook 2\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"sun-lunch-server\":{\"type\":\"string\",\"label\":\"Sun lunch server\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]}}},\"keyFields\":[\"id\"]},\"availability\":{\"type\":\"array\",\"label\":\"Availability\",\"items\":{\"type\":\"object\",\"label\":\"Availability record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"employee\":{\"type\":\"string\",\"label\":\"Employee\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"from\":{\"type\":\"number\",\"label\":\"From\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"through\":{\"type\":\"number\",\"label\":\"Through\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0}}},\"keyFields\":[\"id\"]},\"scenarios\":{\"type\":\"array\",\"label\":\"Scenarios\",\"items\":{\"type\":\"object\",\"label\":\"Scenarios record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\",\"options\":[\"recorded-week\"]}}},\"keyFields\":[\"id\"]},\"bookings\":{\"type\":\"array\",\"label\":\"Bookings\",\"items\":{\"type\":\"object\",\"label\":\"Bookings record\",\"fields\":{\"id\":{\"type\":\"string\",\"label\":\"Id\"},\"employee\":{\"type\":\"string\",\"label\":\"Employee\",\"options\":[\"luis\",\"priya\",\"theo\",\"ava\",\"ben\",\"nora\",\"rowan\",\"unfilled\"]},\"from\":{\"type\":\"number\",\"label\":\"From\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"through\":{\"type\":\"number\",\"label\":\"Through\",\"integer\":true,\"unit\":\"minute\",\"minimum\":0},\"amount\":{\"type\":\"number\",\"label\":\"Amount\",\"integer\":true,\"unit\":\"position\",\"minimum\":0,\"options\":[1]}}},\"keyFields\":[\"id\"]}}}}},\"groups\":[{\"id\":\"operating-parameters\",\"label\":\"Commitment and limits\",\"question\":\"Which quantities, deadlines and limits should the calculation use?\",\"subtabs\":[{\"id\":\"parameters\",\"label\":\"Operating parameters\",\"fieldPaths\":[\"/parameters\"]}]},{\"id\":\"operating-records\",\"label\":\"Operating records\",\"question\":\"Which operating records and possibilities apply to this commitment?\",\"subtabs\":[{\"id\":\"employees\",\"label\":\"Employees\",\"fieldPaths\":[\"/tables/employees\"]},{\"id\":\"qualifications\",\"label\":\"Qualifications\",\"fieldPaths\":[\"/tables/qualifications\"]},{\"id\":\"assignments\",\"label\":\"Assignments\",\"fieldPaths\":[\"/tables/assignments\"]},{\"id\":\"availability\",\"label\":\"Availability\",\"fieldPaths\":[\"/tables/availability\"]},{\"id\":\"scenarios\",\"label\":\"Scenarios\",\"fieldPaths\":[\"/tables/scenarios\"]},{\"id\":\"bookings\",\"label\":\"Bookings\",\"fieldPaths\":[\"/tables/bookings\"]}]}]}}},\"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.\"}]}}",
            "sourceHash": "501648727f86578f88a071bc37fa0749797828253e0c698f13424d7e82fed93d",
            "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.1",
                "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"
                      }
                    ]
                  },
                  "supportingReports": {
                    "format": "supporting-reports/1",
                    "reports": [
                      {
                        "id": "complete-options",
                        "label": "Complete options",
                        "question": "How do the complete options compare against the operating requirements?",
                        "template": "comparison/1",
                        "source": {
                          "kind": "report-dataset",
                          "datasetId": "commitment:comparison"
                        },
                        "bindings": {
                          "columns": [
                            {
                              "key": "plan",
                              "label": "Complete roster repair"
                            },
                            {
                              "key": "status",
                              "label": "Operating fit"
                            },
                            {
                              "key": "expense",
                              "label": "Remaining payroll",
                              "format": {
                                "type": "money",
                                "currency": "USD",
                                "scale": 100
                              }
                            },
                            {
                              "key": "cash",
                              "label": "Peak cash in use",
                              "format": {
                                "type": "money",
                                "currency": "USD",
                                "scale": 100
                              }
                            },
                            {
                              "key": "blockers",
                              "label": "Unmet checks",
                              "format": "number"
                            }
                          ]
                        }
                      },
                      {
                        "id": "work-and-timing",
                        "label": "Work and timing",
                        "question": "When does each complete plan perform the selected activity?",
                        "template": "timeline/1",
                        "source": {
                          "kind": "commitment-schedules"
                        },
                        "representations": [
                          "table",
                          "timeline"
                        ],
                        "defaultRepresentation": "table",
                        "bindings": {
                          "timeline": {
                            "extent": "activities",
                            "label": "Complete remaining roster"
                          }
                        }
                      },
                      {
                        "id": "requirements",
                        "label": "Requirements",
                        "question": "Which mandatory requirements must every complete option meet?",
                        "template": "records/1",
                        "source": {
                          "kind": "report-dataset",
                          "datasetId": "commitment:requirements"
                        },
                        "bindings": {
                          "columns": [
                            {
                              "key": "requirement",
                              "label": "Requirement"
                            },
                            {
                              "key": "meaning",
                              "label": "Operating meaning"
                            },
                            {
                              "key": "coverage",
                              "label": "Complete plans passing in every situation",
                              "format": "number"
                            },
                            {
                              "key": "waivable",
                              "label": "Can be waived",
                              "format": "boolean"
                            }
                          ]
                        }
                      }
                    ]
                  },
                  "inputDesign": {
                    "version": 1,
                    "form": {
                      "type": "object",
                      "label": "Case inputs",
                      "fields": {
                        "parameters": {
                          "type": "object",
                          "label": "Parameters",
                          "fields": {
                            "remainingLaborBudgetMinor": {
                              "type": "number",
                              "label": "Remaining Labor Budget Minor",
                              "integer": true,
                              "unit": "USD cent",
                              "minimum": 0
                            },
                            "minimumRestMinutes": {
                              "type": "number",
                              "label": "Minimum Rest Minutes",
                              "integer": true,
                              "unit": "minute",
                              "minimum": 0
                            }
                          }
                        },
                        "tables": {
                          "type": "object",
                          "label": "Tables",
                          "fields": {
                            "employees": {
                              "type": "array",
                              "label": "Employees",
                              "items": {
                                "type": "object",
                                "label": "Employees record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "name": {
                                    "type": "string",
                                    "label": "Name"
                                  },
                                  "assignmentFeeMinor": {
                                    "type": "number",
                                    "label": "Assignment Fee Minor",
                                    "integer": true,
                                    "unit": "USD cent",
                                    "minimum": 0
                                  },
                                  "earlierWeekMinutes": {
                                    "type": "number",
                                    "label": "Earlier Week Minutes",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "weeklyLimitMinutes": {
                                    "type": "number",
                                    "label": "Weekly Limit Minutes",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "lastEarlierShiftEnd": {
                                    "type": "number",
                                    "label": "Last Earlier Shift End",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "qualifications": {
                              "type": "array",
                              "label": "Qualifications",
                              "items": {
                                "type": "object",
                                "label": "Qualifications record",
                                "fields": {
                                  "employee": {
                                    "type": "string",
                                    "label": "Employee",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "role": {
                                    "type": "string",
                                    "label": "Role",
                                    "options": [
                                      "cook",
                                      "server"
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "employee",
                                "role"
                              ]
                            },
                            "assignments": {
                              "type": "array",
                              "label": "Assignments",
                              "items": {
                                "type": "object",
                                "label": "Assignments record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id",
                                    "options": [
                                      "hold",
                                      "move-only",
                                      "relief",
                                      "coupled"
                                    ]
                                  },
                                  "fri-dinner-cook-1": {
                                    "type": "string",
                                    "label": "Fri dinner cook 1",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "fri-dinner-cook-2": {
                                    "type": "string",
                                    "label": "Fri dinner cook 2",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "fri-dinner-server": {
                                    "type": "string",
                                    "label": "Fri dinner server",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sat-dinner-cook-1": {
                                    "type": "string",
                                    "label": "Sat dinner cook 1",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sat-dinner-cook-2": {
                                    "type": "string",
                                    "label": "Sat dinner cook 2",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sat-dinner-server": {
                                    "type": "string",
                                    "label": "Sat dinner server",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sun-lunch-cook-1": {
                                    "type": "string",
                                    "label": "Sun lunch cook 1",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sun-lunch-cook-2": {
                                    "type": "string",
                                    "label": "Sun lunch cook 2",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "sun-lunch-server": {
                                    "type": "string",
                                    "label": "Sun lunch server",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "availability": {
                              "type": "array",
                              "label": "Availability",
                              "items": {
                                "type": "object",
                                "label": "Availability record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "employee": {
                                    "type": "string",
                                    "label": "Employee",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "from": {
                                    "type": "number",
                                    "label": "From",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "through": {
                                    "type": "number",
                                    "label": "Through",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "scenarios": {
                              "type": "array",
                              "label": "Scenarios",
                              "items": {
                                "type": "object",
                                "label": "Scenarios record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id",
                                    "options": [
                                      "recorded-week"
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            },
                            "bookings": {
                              "type": "array",
                              "label": "Bookings",
                              "items": {
                                "type": "object",
                                "label": "Bookings record",
                                "fields": {
                                  "id": {
                                    "type": "string",
                                    "label": "Id"
                                  },
                                  "employee": {
                                    "type": "string",
                                    "label": "Employee",
                                    "options": [
                                      "luis",
                                      "priya",
                                      "theo",
                                      "ava",
                                      "ben",
                                      "nora",
                                      "rowan",
                                      "unfilled"
                                    ]
                                  },
                                  "from": {
                                    "type": "number",
                                    "label": "From",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "through": {
                                    "type": "number",
                                    "label": "Through",
                                    "integer": true,
                                    "unit": "minute",
                                    "minimum": 0
                                  },
                                  "amount": {
                                    "type": "number",
                                    "label": "Amount",
                                    "integer": true,
                                    "unit": "position",
                                    "minimum": 0,
                                    "options": [
                                      1
                                    ]
                                  }
                                }
                              },
                              "keyFields": [
                                "id"
                              ]
                            }
                          }
                        }
                      }
                    },
                    "groups": [
                      {
                        "id": "operating-parameters",
                        "label": "Commitment and limits",
                        "question": "Which quantities, deadlines and limits should the calculation use?",
                        "subtabs": [
                          {
                            "id": "parameters",
                            "label": "Operating parameters",
                            "fieldPaths": [
                              "/parameters"
                            ]
                          }
                        ]
                      },
                      {
                        "id": "operating-records",
                        "label": "Operating records",
                        "question": "Which operating records and possibilities apply to this commitment?",
                        "subtabs": [
                          {
                            "id": "employees",
                            "label": "Employees",
                            "fieldPaths": [
                              "/tables/employees"
                            ]
                          },
                          {
                            "id": "qualifications",
                            "label": "Qualifications",
                            "fieldPaths": [
                              "/tables/qualifications"
                            ]
                          },
                          {
                            "id": "assignments",
                            "label": "Assignments",
                            "fieldPaths": [
                              "/tables/assignments"
                            ]
                          },
                          {
                            "id": "availability",
                            "label": "Availability",
                            "fieldPaths": [
                              "/tables/availability"
                            ]
                          },
                          {
                            "id": "scenarios",
                            "label": "Scenarios",
                            "fieldPaths": [
                              "/tables/scenarios"
                            ]
                          },
                          {
                            "id": "bookings",
                            "label": "Bookings",
                            "fieldPaths": [
                              "/tables/bookings"
                            ]
                          }
                        ]
                      }
                    ]
                  }
                }
              },
              "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-23T16:59:01.941Z",
            "contentHash": "b6322001b2bd1e11227eeb3cfb9815e49f24e1398319140f48ca4e74bd014fa8"
          },
          "sourceProvenance": "supplied",
          "contentHash": "948cae9d90eeb77d3f98d6a85c5bcab6912c21d2852c8435bac6ea62cfcc5638"
        },
        "packageHash": "948cae9d90eeb77d3f98d6a85c5bcab6912c21d2852c8435bac6ea62cfcc5638"
      }
    ],
    "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": {
      "patternContext": {
        "primaryStepId": "feasibility"
      },
      "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": []
          },
          "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": {
            "actionDetails": [
              {
                "actionId": "compare-repairs",
                "descriptionPath": "summary",
                "links": [
                  {
                    "kind": "summary",
                    "sectionId": "options",
                    "label": "Compare complete repairs"
                  },
                  {
                    "kind": "report",
                    "tabId": "assignments",
                    "label": "Inspect complete roster"
                  }
                ]
              },
              {
                "actionId": "revise-repairs",
                "descriptionPath": "summary",
                "links": [
                  {
                    "kind": "summary",
                    "sectionId": "assumptions",
                    "label": "Inspect unmet requirements"
                  },
                  {
                    "kind": "input",
                    "questionId": "assignments",
                    "label": "Revise proposed repairs"
                  }
                ]
              },
              {
                "actionId": "agree-assignments",
                "descriptionPath": "summary",
                "links": [
                  {
                    "kind": "report",
                    "tabId": "assignments",
                    "label": "Inspect assignments to communicate"
                  }
                ]
              }
            ],
            "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?"
              }
            ]
          },
          "supportingReports": {
            "format": "supporting-reports/1",
            "reports": [
              {
                "id": "conditions",
                "label": "Repair comparison",
                "question": "Why does each complete roster repair pass or fail?",
                "template": "option-details/1",
                "source": {
                  "kind": "question-view",
                  "viewId": "repair-details"
                }
              },
              {
                "id": "assignments",
                "label": "Complete roster",
                "question": "Who covers each service in the selected complete repair?",
                "selection": {
                  "group": "roster-repair",
                  "keyField": "choices.repair",
                  "labelField": "choices.repair"
                },
                "template": "timeline/1",
                "source": {
                  "kind": "commitment-schedules",
                  "stepIds": [
                    "feasibility"
                  ]
                },
                "bindings": {
                  "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",
                "question": "How does each complete repair change the remaining payroll?",
                "template": "option-details/1",
                "source": {
                  "kind": "question-view",
                  "viewId": "repair-payroll"
                }
              },
              {
                "id": "published",
                "label": "Published baseline",
                "question": "Which remaining services and assignments form the comparison baseline?",
                "navigation": "advanced",
                "template": "records/1",
                "source": {
                  "kind": "brief-section",
                  "sectionId": "roster-basis",
                  "rowsPath": ""
                },
                "bindings": {
                  "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"
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      },
      "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": "7247e6b9a55d682012a397179295bd6dbbc5b0cb934f034c0986123bd8219288"
  },
  "catalog": {
    "domain": {
      "id": "restaurant-operations",
      "label": "Restaurant operations"
    },
    "useCase": {
      "id": "repair-published-roster",
      "label": "Repair a published roster"
    }
  },
  "publishedAt": "2026-11-23T16:59:01.941Z",
  "contentHash": "f9e0ff2a7a0631ce0b2046bf8a015ac6f4c784b7afa443890e190d0424f0b33b"
}
