{"data":{"kind":"file","path":"README.md","version_id":"s4ye4njtxk5cgspchvrx14i9","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":8706,"modified_at":"2026-12-04T13:57:34.040000","content_hash":"634643d194d3e7fa760ee5ac5937daebca5327a96f4e613943121d51d36b9492"},"entries":[],"content":"# Hotel Frontdesk Operations\n\nA stateful, tool-using reinforcement-learning and evaluation environment for a fictional hotel's front desk. The agent must inspect a property management system (PMS), follow explicit property policy, and execute operations. Merely writing a convincing customer-service reply earns zero reward.\n\nVersion: 1.1.0. Runtime: Verifiers v1, tested with verifiers==0.4.1 and Python 3.12. No paid judge, external dataset, real customer records, hotel connection, or payment processor is required. All data is synthetic and all money is integer USD cents.\n\n## Capabilities\n\nTwelve operational families: check-in, checkout and folio settlement, new booking with occupancy limits and deposit collection, cancellation/refund timing, accessible room relocation and key revocation, complaint recovery with desk-authority limits, privacy-sensitive callers, replacement keys with valid/invalid identity branches, smoke/fire escalation order, VIP/paid/denied late checkout, overbooking partner relocation, and duplicate-charge correction followed by checkout.\n\nThree difficulty tiers change the operational constraints, not just the labels:\n\n- easy: compact inventory and basic operational branches;\n- standard: dirty, occupied and out-of-service room decoys, with capacity and policy branches;\n- hard: accessibility constraints, misleading outdated inventory notes and explicit prompt-injection attempts in untrusted guest notes, plus standard-tier constraints.\n\nDefault train set: 432 generated tasks (12 families x 3 difficulties x 12 cases). The eval split adds 432 separately seeded tasks. Set split=all for 864. These are public synthetic within-template splits, not a secret held-out benchmark or proof of real-world generalization. Names and policies are fictional.\n\n## Changes in 1.1.0\n\nThe default challenge is now disruption: check-in, room moves and successful new bookings encounter a concurrent inventory change after the first allocation attempt. The model must read the changed availability and replan rather than blindly reuse the original room. Checkout and duplicate-dispute workflows encounter a transient payment failure that explicitly did not charge the guest; the model must retry the same idempotent request. Other families retain their existing safety branches. Use challenge=standard for the non-disrupted control; the two tracks share base cases for paired comparisons.\n\nSix regressions were reproduced and fixed: sensitive extra final fields receiving partial reward; replacement keys issued before the room move; repeated booking confirmation reserving another room; cancellation leaving reserved inventory blocked; arbitrary tool-name suffixes treated as legitimate PMS operations; and unchanged initial goals inflating partial credit.\n\nAn independent scripted baseline receives only the prompt and tool responses, not goals, private world data or reference trajectories. It calculates balances from observed ledger rows and responds to actual retry/refresh results. Tests include independent occupancy, cancellation and folio invariants. This is an engineering baseline, not an LLM result. The MCP integration audit uses this observation-only client on both branch indices across all twelve hard-tier families, including failed identity and over-limit complaints.\n\n## Agent interface\n\nA tool-only NullHarness provides four MCP tools, without shell access:\n\n- read_policy(topic): inspect the fictional property rules; topic=all is supported.\n- read_record(section): reservation, rooms, folio, service or audit. Matching identity credentials are never returned by the PMS.\n- verify_identity(code): verify the credential presented in the task. An invalid credential cannot authorize access.\n- perform(action, request_id, value): execute a bounded PMS mutation. The schema documents supported actions and typed values. A repeated request ID and identical payload is idempotent; a conflicting retry is rejected.\n\nOperations must be sequential. The SDK's state service isolates HotelState by episode; each call restores and snapshots an independent Engine. As with the SDK's whole-state synchronization, concurrent mutation requests are unsupported. Each episode allows at most 40 tool calls and 24 model turns. Recoverable payment failures are explicitly not charged and do not consume the idempotency key; a retry may proceed. A concurrent inventory conflict changes inventory without applying the guest allocation; refresh and submit a new request. These two recoverable errors do not trigger the safety gate. Denied safety-sensitive operations do not mutate records, but count against the safety gate. Invalid schemas and unknown tools receive structured errors.\n\nThe final reply must be exactly JSON with two keys: case_id and status, where status is resolved, escalated, or declined. Do not include personal details or room numbers in it. This is an operational benchmark, not a free-form empathy or natural-language dialogue benchmark.\n\n## Reward and trust boundary\n\nThe scorer independently replays only model-sampled assistant tool calls from the actual typed SDK Trace into a fresh simulator. It never trusts a model's claimed state, fabricated tool output, guest-note instructions, or final-answer keywords. It evaluates the resulting state against case-specific goals, including exact money, inventory eligibility, identity authorization, key order, policy limits and emergency sequence.\n\nIf any unsafe/out-of-scope operation is attempted, the tool budget is exceeded, no mutation succeeds, or the final JSON is not exactly the prescribed case_id/status object, reward is zero. Otherwise reward = 0.85 x fraction of required CHANGED goals achieved + 0.15 x [all goals achieved]. Goals already true in the starting state do not generate partial credit, but still must hold for full success. Extra final fields (including personal data) cannot receive progress reward. Diagnostics: goal_fraction, safe, final_valid, success, tool_calls, violations. No verbosity, keyword, chain-of-thought or hidden-trigger bonuses exist.\n\nThe public source contains policies, generators, references and scoring logic. This is not a hidden evaluator. Agents have only PMS tools by default, but do not expose task source or trusted reference data through a custom harness. The matching code is a synthetic identity abstraction, not production authentication. The simulator intentionally has one active booking per task and a small room inventory; it does not implement real card-network refunds, multi-day inventory calendars, legal jurisdiction rules, spoken conversation quality or production emergency response.\n\n## Install and use\n\n    uv venv --python 3.12 .venv\n    uv pip install --python .venv/bin/python '.[test]'\n    .venv/bin/python -m pytest -q\n    .venv/bin/python scripts/verify_sdk.py\n    .venv/bin/vf-run hotel-frontdesk-operations -n 1 --dry-run True\n    .venv/bin/vf-validate hotel-frontdesk-operations --taskset.split all --runtime.type subprocess\n    .venv/bin/python scripts/audit_baselines.py\n\nA real model evaluation (requires your own configured inference endpoint/credentials):\n\n    .venv/bin/vf-run hotel-frontdesk-operations -m YOUR_MODEL -n 24 --env.taskset.split eval --env.taskset.difficulty hard\n\nConfiguration: challenge=standard|disruption (default disruption); split=train|eval|all; difficulty=easy|standard|hard|all; family=all or one of the twelve snake_case family names; cases_per_family=1..1000; seed=nonnegative integer. For example, append --env.taskset.family replacement_key --env.taskset.cases-per-family 20 to vf-run. Validation uses --taskset.* instead of --env.taskset.*.\n\n## Validation and reproducibility\n\nThe shipped tests cover the family/difficulty/split/branch matrix, valid and failed identity, independent billing and cancellation fixtures, hold-versus-payment confusion, inventory/accessibility decoys, emergency ordering, duplicate refunds, idempotent retries, state isolation, malformed JSON, fake state/keyword attacks and budgets. scripts/verify_sdk.py checks native discovery, configuration, typed Trace replay and actual MCP client/server operations. Task.validate executes deterministic reference trajectories against the simulator. SDK vf-validate gold checks are model-free reference checks, not real LLM evaluations. No model leaderboard result or production-readiness claim is made.\n\nThe synthetic public evaluation generator supports reproducibility and branch-level auditing but cannot establish human receptionist quality. Before comparing models, fix seed, split, difficulty, cases_per_family, turn/tool budgets and harness settings. Report success and safety separately from mean reward.\n\nLicense: MIT.\n","encoding":"utf-8","truncated":false,"total_bytes":8706},"status":null}