# CookieBlob Room Specification v0.1

## Room identity

**Working title:** Watershed — The Living Basin  
**Host:** Tenchi Multimedia / CookieBlob room  
**Purpose:** Let a visitor move information-water through the ten transitions and leave a reusable trace.

## Visitor loop

1. The room loads the saved state or initializes a new cycle.
2. It shows the current hydrological phase and available actions.
3. The visitor takes one action.
4. The room applies the shared state effect from `parity-matrix.md`.
5. The room appends a trace entry and rerenders.
6. At Return, the room displays a seed summary and offers Continue or Reset.

## Persistence contract

Use the key `watershed_cookieblob_v01`. Store a plain JavaScript object containing `version`, `cycle`, counters, `phase`, `trace`, and `seed`. Validate loaded values before use. If parsing fails, preserve the broken value under a diagnostic key and start clean.

## WordPress safety

The embed must use ordinary HTML, CSS, and JavaScript. Avoid JSON script elements, template tags, module imports, fetch calls, and dependencies on external assets. Use a unique wrapper prefix such as `wsb-` so the room can coexist with other rooms on the same page. Keep controls as ordinary buttons with explicit labels.

## Visitor-facing language

Use water and watershed language for the primary interface. Technical state names can appear in a small detail panel. Never require the visitor to understand the data model to play.

## Accessibility

- Buttons must be keyboard reachable.
- The current phase and action result must be exposed in a live region.
- Do not rely on color alone for pressure, pollution, health, or phase.
- Provide a text trace that can be selected and copied.
