{
  "schema": "scorecompute.engine-examples.v1",
  "recorded_on": "2026-11-26",
  "endpoint": "http://127.0.0.1:34805/mcp",
  "service_release": "0.21.0",
  "note": "Each example called once through a local MCP endpoint and a locally built engine of this release, before publication; not a call to the public service. response_sha256 covers the response serialized as sorted-key compact UTF-8 JSON. Elapsed times vary between runs. A recorded response shows what the tool returned for these inputs; it does not certify the model or other inputs.",
  "engines": {
    "solve_schedule": {
      "tool": "solve_schedule",
      "arguments": {
        "spec": "days Mon,Tue,Wed,Thu,Fri,Sat,Sun; shifts M, E, N; worker alice skills=rn,icu min=2 max=5 off=Sat,Sun; worker bob skills=rn min=2 max=5 off=Mon; worker carol skills=icu min=2 max=4; worker dave skills=rn,icu min=2 max=5; worker eve skills=rn min=2 max=5; worker frank skills=icu min=2 max=5; need M 1 skill=rn; need E 1; need N 1 skill=icu; forbid N -> M; max_consecutive 4; avoid alice day=Fri shift=N; prefer bob shift=M; objective balanced;"
      },
      "response_sha256": "27e9a76ec02bf8c0112f93ea0637cc51833e84485c9f23e951769309b7d96b10",
      "response": {
        "contract_version": "0.1.0",
        "engine": "rust-cpu",
        "status": "optimal",
        "objective": "balanced",
        "days": 7,
        "day_labels": [
          "Mon",
          "Tue",
          "Wed",
          "Thu",
          "Fri",
          "Sat",
          "Sun"
        ],
        "shifts": [
          "M",
          "E",
          "N"
        ],
        "workers_count": 6,
        "total_slots": 21,
        "summary": "Optimal schedule found for 6 workers across 7 days (21 shift slots, objective: balanced): spread 1 (3–4 shifts/worker), cost 0, soft penalty 0. Independently re-verified across all hard constraints.",
        "schedule": [
          {
            "day": 1,
            "day_label": "Mon",
            "assignments": [
              {
                "shift": "M",
                "worker": "alice",
                "skill": "rn"
              },
              {
                "shift": "E",
                "worker": "eve",
                "skill": null
              },
              {
                "shift": "N",
                "worker": "dave",
                "skill": "icu"
              }
            ]
          },
          {
            "day": 2,
            "day_label": "Tue",
            "assignments": [
              {
                "shift": "M",
                "worker": "alice",
                "skill": "rn"
              },
              {
                "shift": "E",
                "worker": "eve",
                "skill": null
              },
              {
                "shift": "N",
                "worker": "frank",
                "skill": "icu"
              }
            ]
          },
          {
            "day": 3,
            "day_label": "Wed",
            "assignments": [
              {
                "shift": "M",
                "worker": "bob",
                "skill": "rn"
              },
              {
                "shift": "E",
                "worker": "frank",
                "skill": null
              },
              {
                "shift": "N",
                "worker": "carol",
                "skill": "icu"
              }
            ]
          },
          {
            "day": 4,
            "day_label": "Thu",
            "assignments": [
              {
                "shift": "M",
                "worker": "alice",
                "skill": "rn"
              },
              {
                "shift": "E",
                "worker": "carol",
                "skill": null
              },
              {
                "shift": "N",
                "worker": "dave",
                "skill": "icu"
              }
            ]
          },
          {
            "day": 5,
            "day_label": "Fri",
            "assignments": [
              {
                "shift": "M",
                "worker": "bob",
                "skill": "rn"
              },
              {
                "shift": "E",
                "worker": "alice",
                "skill": null
              },
              {
                "shift": "N",
                "worker": "dave",
                "skill": "icu"
              }
            ]
          },
          {
            "day": 6,
            "day_label": "Sat",
            "assignments": [
              {
                "shift": "M",
                "worker": "bob",
                "skill": "rn"
              },
              {
                "shift": "E",
                "worker": "eve",
                "skill": null
              },
              {
                "shift": "N",
                "worker": "carol",
                "skill": "icu"
              }
            ]
          },
          {
            "day": 7,
            "day_label": "Sun",
            "assignments": [
              {
                "shift": "M",
                "worker": "dave",
                "skill": "rn"
              },
              {
                "shift": "E",
                "worker": "carol",
                "skill": null
              },
              {
                "shift": "N",
                "worker": "frank",
                "skill": "icu"
              }
            ]
          }
        ],
        "worker_stats": [
          {
            "worker": "alice",
            "total_shifts": 4,
            "min_shifts": 2,
            "max_shifts": 5,
            "max_consecutive_worked": 2,
            "total_cost": 0,
            "shifts_by_code": [
              {
                "shift": "M",
                "count": 3
              },
              {
                "shift": "E",
                "count": 1
              },
              {
                "shift": "N",
                "count": 0
              }
            ]
          },
          {
            "worker": "bob",
            "total_shifts": 3,
            "min_shifts": 2,
            "max_shifts": 5,
            "max_consecutive_worked": 2,
            "total_cost": 0,
            "shifts_by_code": [
              {
                "shift": "M",
                "count": 3
              },
              {
                "shift": "E",
                "count": 0
              },
              {
                "shift": "N",
                "count": 0
              }
            ]
          },
          {
            "worker": "carol",
            "total_shifts": 4,
            "min_shifts": 2,
            "max_shifts": 4,
            "max_consecutive_worked": 2,
            "total_cost": 0,
            "shifts_by_code": [
              {
                "shift": "M",
                "count": 0
              },
              {
                "shift": "E",
                "count": 2
              },
              {
                "shift": "N",
                "count": 2
              }
            ]
          },
          {
            "worker": "dave",
            "total_shifts": 4,
            "min_shifts": 2,
            "max_shifts": 5,
            "max_consecutive_worked": 2,
            "total_cost": 0,
            "shifts_by_code": [
              {
                "shift": "M",
                "count": 1
              },
              {
                "shift": "E",
                "count": 0
              },
              {
                "shift": "N",
                "count": 3
              }
            ]
          },
          {
            "worker": "eve",
            "total_shifts": 3,
            "min_shifts": 2,
            "max_shifts": 5,
            "max_consecutive_worked": 2,
            "total_cost": 0,
            "shifts_by_code": [
              {
                "shift": "M",
                "count": 0
              },
              {
                "shift": "E",
                "count": 3
              },
              {
                "shift": "N",
                "count": 0
              }
            ]
          },
          {
            "worker": "frank",
            "total_shifts": 3,
            "min_shifts": 2,
            "max_shifts": 5,
            "max_consecutive_worked": 2,
            "total_cost": 0,
            "shifts_by_code": [
              {
                "shift": "M",
                "count": 0
              },
              {
                "shift": "E",
                "count": 1
              },
              {
                "shift": "N",
                "count": 2
              }
            ]
          }
        ],
        "metrics": {
          "spread": 1,
          "min_worker_shifts": 3,
          "max_worker_shifts": 4,
          "total_cost": 0,
          "soft_penalty": 0,
          "preferences_satisfied": 1,
          "preferences_total": 1,
          "avoids_violated": 0,
          "avoids_total": 1,
          "objective_score": 100
        },
        "unsat_core": [],
        "unsat_core_minimal": null,
        "diagnosis": null,
        "work_report": {
          "search_nodes": 67,
          "backtracks": 45,
          "mus_probes": 0,
          "budget_exhausted": false,
          "verified_independently": true,
          "arithmetic": "exact_integer",
          "elapsed_ms": 0.495
        },
        "canonical_digest": {
          "algorithm": "sha256",
          "sha256": "51355d69160f62e296fe0915cfb410f81aee6d237c92e69cffc9059922c68010"
        },
        "assumptions": [
          "Each worker can be assigned at most one shift per calendar day.",
          "Each `need` statement adds distinct required seats; skills, unavailability, forbidden consecutive-day transitions, max consecutive days and min/max total shifts are enforced as hard constraints.",
          "All counts, costs, penalties and objective scores use exact 64-bit integer arithmetic."
        ],
        "limitations": [
          "Bounded exact CP search (up to 31 days, 6 shifts, 32 workers, 256 required slots, 150,000 search nodes and 3,500 ms wall time).",
          "status='optimal' applies strictly to the declared model and objective function; status='feasible' means a valid schedule was found before the optimization tree finished; status='inconclusive' means the budget expired without a verdict.",
          "Covers the declared scheduling rules only: statutory labor law compliance, overtime pay formulas, break durations within a shift and multi-week rolling lookbacks outside the horizon are not modeled unless explicitly encoded."
        ],
        "provenance": {
          "tool": "solve_schedule",
          "server": "scorecompute",
          "client": {
            "name": "scorecompute-docs-recording",
            "version": "1.0"
          },
          "identity_source": "MCP clientInfo (self-reported)",
          "model": null
        }
      }
    }
  }
}
