{"data":{"kind":"file","path":"README.md","version_id":"nw8di92g44hswfwsd47fl8c1","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":8930,"modified_at":"2026-11-28T22:50:25.437000","content_hash":"ed0a061404a6e653466c59af71990cd0a391d54a4e1e0701be36d19b36fb939f"},"entries":[],"content":"# PropSim — a property-management back office for AI agents\n\n> **Lite edition.** This package contains 25 of the 60 PropSim tasks (all categories and tiers) with their gold solutions, the full back-office simulator and the verifiers adapter. Negative controls, the remaining 35 tasks, the authoring toolkit and the Docker export belong to the licensed full version. Install: `prime env install dmwork/propsim`.\n\nPropSim is a reinforcement-learning and evaluation environment in which an AI agent works as the\noperations assistant of **Northwind Residential**, a fictional company that manages rental\nhomes and apartment buildings for their owners. Requests arrive as emails from the property\nmanager, tenants and owners; the agent handles them in a realistic back-office system (tenants,\nleases, ledgers, work orders, vendors, inspections, owner statements) by following a written\ncompany policy. A deterministic grader checks the final state of the system.\n\n- **60 tasks** (lite: 25) in 6 categories and 3 difficulty tiers, each with a gold solution and\n  negative controls.\n- **40 MCP tools** over a SQLite back office; the same tools over REST and a CLI.\n- **Deterministic**: one seed → the same data (SHA-256 checked); one final state → the same\n  reward. No LLM judges.\n- **Reward-hacking resistant**: the agent only acts through tools, never sees expectations or\n  solutions, and every unexpected change is a violation.\n- Ships as a **verifiers v1 taskset** (Prime Intellect Environments Hub) and in a\n  **framework-independent format** (JSONL + Docker + grading CLI).\n\n## The domain\n\n| Entity | Examples |\n|---|---|\n| Owners, properties, units | 4 owners, 10 properties (2 rent-stabilized), 150 units |\n| Tenants and leases | ~200 tenants (current, past, applicants), ~180 leases, co-tenants, renewals |\n| Ledger | 12 months of charges, payments, credits and refunds (integer cents) |\n| Maintenance | ~270 work orders, 20 vendors in 8 trades, insurance expiry, 60-day booking calendar |\n| Inspections, messages, notes, owner statements | move-in/out findings, templated messages, monthly statements |\n\nThe policy handbook ([POLICY.md](POLICY.md), rules P1–P17) covers late fees and waivers, payment\nallocation, proration, renewals and rent stabilization, notices and early termination, security\ndeposits, work order priorities and response times, vendor selection, cost approvals, who pays\nfor repairs, discretionary credits, owner statements, communication, fair housing and\nescalation. Messages use fixed templates ([templates.yaml](templates.yaml)).\n\n## Tools\n\nRead: `get_today`, `get_policy`, `get_template`, `search_tenants`, `get_tenant`,\n`list_properties`, `get_property`, `list_units`, `get_unit`, `find_leases`, `get_lease`,\n`get_ledger`, `get_balance`, `list_work_orders`, `get_work_order`, `list_vendors`,\n`get_vendor`, `get_vendor_availability`, `list_inspections`, `get_inspection`,\n`list_messages`, `get_owner`.\n\nWrite: `post_charge`, `post_payment`, `post_credit`, `issue_refund`, `apply_deposit`,\n`create_lease`, `renew_lease`, `record_notice`, `terminate_lease`, `update_unit_status`,\n`create_work_order`, `update_work_order`, `assign_vendor`, `complete_work_order`,\n`send_message`, `add_note`, `escalate`, `generate_owner_statement`.\n\nLists are paginated (≤ 50 per page). Errors are JSON (`{\"error\": {\"code\", \"message\"}}`). The\nsystem enforces only technical invariants (entities exist, vendor trade, free slot, template\nfields); business decisions are the agent's job — it will happily post a wrong late fee.\n\n## Tasks\n\n| Category | Easy | Medium | Hard | Total |\n|---|---|---|---|---|\n| billing (charges, late fees, waivers, credits) | 4 | 5 | 3 | 12 |\n| leasing (renewals, notices, new leases) | 3 | 5 | 3 | 11 |\n| maintenance (work orders, vendors, approvals) | 5 | 5 | 3 | 13 |\n| move-in / move-out (proration, deposits) | 2 | 4 | 3 | 9 |\n| owner reporting (statements, approvals) | 3 | 3 | 2 | 8 |\n| policy & safety (refuse or escalate; 2 fair housing) | 3 | 3 | 1 | 7 |\n| **Total** | **20** | **25** | **15** | **60** |\n\nSenders: manager 40 %, tenants 33 %, owners 27 %. Hard tasks combine several entities and traps:\nexpired vendor insurance, rent-stabilized caps, an already-used late-fee waiver, damage that was\npre-existing at move-in, past-due balances blocking renewals, fully booked calendars.\n\n### Three examples\n\n**Easy — maintenance.** *\"Hi, the dishwasher in my apartment (unit 3D at Birch Lane Apartments)\ndoesn't drain...\"* Expected: exactly one new work order for that unit, category `appliance`,\npriority `normal`, status `open`, reported by this tenant. Nothing else may change.\n\n**Medium — billing.** *\"Hi, unit 7C at Maple Court still hasn't paid March rent. Please handle it\naccording to our policy.\"* Expected: a late fee of 5 % of rent ($75.00, within the $50–150 band),\ndated today, and a `LATE_NOTICE` with the correct total due ($1,575.00). Negative controls: a\nflat $50 fee; a notice without the fee; two fees.\n\n**Hard — move-out.** Lease ended March 31, deposit $1,800. The move-out inspection lists wall\ndamage beyond normal wear ($220), a carpet stain (normal wear, not deductible), broken blinds\n(the tenant reported them as pre-existing in a work order before moving out — not deductible),\nand cleaning required ($150); a $64.50 utility charge is unpaid. Expected: damage and cleaning\ncharges, the full deposit applied, a $1,365.50 refund, an itemized `DEPOSIT_STATEMENT`, and the\nunit moved to `make_ready` — with no deduction for the carpet or the blinds.\n\n## How grading works\n\nAfter a run the environment exports the canonical state (`state.json`), the tool audit log\n(`audit.json`) and the agent's final answer. The grader compares the state before and after:\n\n- every expected new row / updated field / message is present, without duplicates;\n- **nothing else changed** (any change outside the allowed tables or entities is a violation);\n- numeric answers are read from an `ANSWER: <number>` line (tolerance 0.005);\n- optional process constraints (e.g. at most one message).\n\nReward is 1 only if all checks pass and there are no violations. Metrics that do not affect the\nreward: share of checks passed, tool calls, tool errors, violated policy rules. Every task is\nself-checked: gold = 1, untouched = 0, every negative control = 0, gold runs are deterministic.\n\n**Anti-reward-hacking.** Expectations, gold and negative solutions never reach the agent's\nruntime. The agent changes the database only through the tools (default harness: MCP tools\nonly, no shell). Grading runs on the evaluator against the private expectations.\n\n## Quick start\n\nverifiers (Prime Intellect):\n\n```bash\nuv tool install prime && prime env install dmwork/propsim   # or, in a checkout: uv sync --project environments/propsim\nuv run vf-validate propsim --runtime.type docker -n 5   # gold scores 1.0, untouched 0.0 (no model)\nuv run vf-run propsim -n 5 -r 1 -m <model>              # run a model\n```\n\nFrom a checkout (core, any framework):\n\n```bash\nuv sync && uv run propsim seed --out data/base.sqlite\nuv run propsim reset --scenario tasks/billing/billing-late-fee-005.yaml --out /tmp/s.sqlite\nuv run propsim mcp --db /tmp/s.sqlite                   # MCP server (stdio); see export/README.md for Docker\n```\n\nSelf-check and tests: `uv run propsim selfcheck` · `uv run pytest`.\n\n## Baselines\n\npass@1 (2026-11-28, `null` harness, Prime Inference; details in [docs/BASELINES.md](docs/BASELINES.md)):\n\n| Model | Easy | Medium | Hard | All |\n|---|---|---|---|---|\n| DeepSeek V4.1 Flash (60 x 3) | 100 % | 96 % | 91 % | 96 % |\n| Qwen3.8 27B (60 x 1) | 95 % | 100 % | 67 % | 90 % |\n| Claude Sonnet 5.5 (hard only, 15 x 1) | – | – | 100 % | – |\n\nHard tasks separate mid-size from strong models, but frontier models solve them; see the\nassessment in the baselines report.\n\n## Lite and full versions\n\n| | Lite (public) | Full (licensed) |\n|---|---|---|\n| Tasks | 25 (all categories and tiers), gold solutions | 60, gold + negative controls, procedural variants planned |\n| Interfaces | MCP (verifiers taskset) | MCP, REST, CLI, framework-independent Docker export |\n| License | code Apache-2.0, tasks CC BY 4.0 | commercial |\n\nThe full task set is kept private so it does not leak into training data.\n\n## Repository layout\n\n`src/propsim/` core (schema, reference calculator `rules/`, generator, scenarios, tools, MCP,\nREST, grader) · `environments/propsim/` verifiers adapter · `tasks/`, `gold/`, `negatives/`\ngenerated by `authoring/` · `export/` independent format · `docker/` images · `docs/`\n(`ADAPTER_NOTES.md`, `TASK_GUIDE.md`, `BASELINES.md`).\n\n## License\n\nCode: [Apache License 2.0](LICENSE). Lite tasks: [CC BY 4.0](LICENSE-TASKS). All names and data\nare synthetic; any resemblance to real people or companies is coincidental.\n\n## Contact\n\nFor licensing the full version or commissioning new environments, contact the repository owner\nthrough GitHub.\n","encoding":"utf-8","truncated":false,"total_bytes":8930},"status":null}