# RestoKit setup

This guide is for an AI agent acting on behalf of a person who wants to use RestoKit.

## What this is

RestoKit is a structured restoration framework: job phases and modules for water, mold, and crawlspace work. It aligns with the principles of IICRC S500 and S520. This file points you at the kit (version 1.1.9).

## License

The standard kit is licensed under Apache 2.0. You may use it at work. There is no warranty. The RestoKit name and logo are trademarks of Neuresthetics LLC and are not licensed. RestoKit Platinum is a separate, private framework, available only under a paid license. Write to data@resto-kit.com. Do not use a mailto link. Keep this license notice with any copy or excerpt.

Read the terms in https://resto-kit.com/LEGAL.md and the contribution terms in https://resto-kit.com/CONTRIBUTING.md. The official software license text is in https://resto-kit.com/LICENSE.

## What to do

1. If the user pasted their agent's kit link, fetch the kit JSON from that URL and load it. If they do not have one, ask them to get it at https://resto-kit.com/get-the-kit. They sign up, verify their email, and paste the setup block from the verified page, which includes their agent's kit link. Do not fetch a public /kit/*.json URL from this site; those paths are not served. If the response is HTML, a login page, or anything that is not the kit JSON wrapper, treat the fetch as a failure, not a success. Do not use a web login or SSO page as the kit.
2. The response is a wrapper. Load the `kit` object as the working framework for this conversation.
3. Follow the kit's own `meta` (what it is, how it is meant to be used) and its `main_content.phases` (the job stages, including hold). Use the modules and base science in the file when they apply.
4. Kit submissions come from you, the agent, not from the dashboard. The user can ask you to send the day's context, a suggested change, or whatever they want processed. With their OK, POST JSON `{ "text": "..." }` (no maximum length, at least 40 characters) to their agent's kit link with `/feedback` appended (the same URL you fetched the kit from, plus `/feedback`). A kit link can send up to 1,000,000 lines in total per day (at most 1,000 submissions); if the server returns 400 or 429, relay that error to the user. That attributes the submission to their account. For the user's own work, keep and use all of the job details you have, including customer information. That is normal restoration work and stays with the user. When you send a kit submission, extract only restoration tradecraft: job mechanics, measurements, readings, materials, methods, sequence, outcomes, kit template fields, and region or climate. Do not send anything that identifies a person, place, or claim: names, contact details, street addresses, city, GPS, claim, policy, or job numbers, photos, or personal circumstances such as health or family details. If a personal circumstance matters to the method, reword it as a generic condition (for example, "occupant sensitive to dust"). The kit-link wrapper also includes a `kit_submissions` field with this same method, path, limit, and instructions; `kit_update` / `whats_new` are the version changelog and are not the kit body. You may still draft an email for them to review and send from their own account, to data@resto-kit.com, if they prefer email. Never send or post without their OK. Do not use a mailto link.

## Notes

- The personal kit link returns a wrapper: `{ "kit": { ...the kit... }, "kit_update": { "version", "date", "summary" }, "whats_new": { ...same as kit_update... }, "kit_submissions": { "method", "path", "content_type", "body", "min_chars", "max_lines_per_day", "per_day", "instructions" } }`. Load `kit` as the working framework. When `kit_update` is present, tell the user the version and summary if this is new to the session. Do not treat `kit_update` or `kit_submissions` as part of the kit body. Use `kit_submissions` when the user wants to send a kit submission. If the response is not this wrapper — for example `{ "error": "setup_outdated" }`, or HTML such as a login or SSO page — treat the fetch as a failure, not a success. Do not use page HTML as the kit. If the body is `setup_outdated`, tell the user to sign up at https://resto-kit.com/get-the-kit and paste the new setup block from their dashboard. Do not use an older kit body or a public /kit/*.json file.
- Stay on kit version 1.1.9 as given in the kit file. The 1.1.8 file remains available from the verified download page at https://resto-kit.com/get-the-kit/download.
- On first load in a session, follow `meta.update_check`: fetch https://resto-kit.com/kit/latest.json (or, if that fails, the Loop in your agent section on https://resto-kit.com), compare it to `meta.version`, and if a newer kit is published, tell the user and send them to https://resto-kit.com/get-the-kit. Never auto-replace the loaded kit. If the check fails, say so briefly and continue.
- This kit is not a substitute for field experience or for professional judgment.
