# Project context and durable ledger

Load current default-branch context or the project's maintained equivalents:

| Input | Resolve |
| --- | --- |
| Brief | Audience, purpose, focus, definition of done, scope/exclusions |
| Surface map | Stable route/state IDs, links, overlays, transitions and design references |
| Decisions | Product words, approved designs, newer owner decisions and precedence |
| Design system | Tokens, shared components and spacing/type/color/radius/motion scales |
| Review matrix | Required state/viewport/theme/motion cells set by the current brief or owner; defaults below | 
| Deployment | Live URL, receipt format/location and revision evidence |
| Tracker | Destination, open/recent resolved work, allowed labels and write authorization |
| Ledger | Private durable location, discovery interval, pending receipts and retests |
| Fixtures | Safe reversible sample actions and separately authorized disposable fixtures |

A Trailside-compatible repository can supply `.trailside/brief.md`, `.trailside/surface-map.md` or JSON, product vocabulary and design references. Resolve paths through the brief. Intended integrations include briefs, surface maps, GitHub issues and deployment receipts; this download installs, connects, schedules and enables none of them. Plans and samples do not prove shipped capability.

Without a map, build a provisional inventory from the brief and safe reachable navigation. Record its limits. Track default/open/closed overlays, empty/loading/error/success, sparse/dense content and safe form states where reachable. Do not silently drop excluded states.

For first visits, start at the landing page, continue through the primary safe/sample journey, then adjacent docs and controls. Signed-in surfaces, authentication, invitations, account creation, external publication and real execution remain excluded unless separately authorized.

## Bot interpretation for Planning

For a Trailside-compatible repository, put the bot's interpretation in
`docs/bot-interpretation.md`, separately from the owner's `.trailside/brief.md`.
The #1172 convention requires these metadata lines within the first ten lines:

```markdown
Kind: Bot interpretation
Sources read at: <40-hex commit>

## Target experience
What the bot understands the intended experience to be.
## Assumptions
What that reading assumes.
## Open questions
What a person still needs to decide.
## Recommendations
Suggestions for a person to consider; name same-repository issues as #123.
## Contradictions found
Optional: conflicting sources, named explicitly.
```

Use the full default-branch commit whose sources were actually read. Planning
shows **Bot interpretation · not approved** apart from What we're building and
links recommendation issue numbers to that repository's Board cards. Different
source commits show a stale-source warning; no source commit means **unknown
age**. Recommendations are not approved requirements, test results or permission
to work. This convention grants no repository write authority; contribute only
through an already authorized, reviewed path.

## Required coverage

Use the current brief or owner's explicit matrix. Otherwise start with each relevant state at 390/768/1440 CSS px, light/dark and normal/reduced motion. Record required cells before testing. Tool limitations leave cells pending; never silently make them optional to obtain Verified. A product capability explicitly excluded by maintained scope may be marked not applicable with that source. Changes to required coverage need an explicit project decision.

## Preserve continuity

Keep review records private. Public examples must exclude private identifiers, account details, local paths, conversation IDs, operational history and secrets.

- **Coverage:** surface/state ID, exact URL/state, measured viewport, theme, motion, keyboard checks, UTC time, source/deployed SHA or unknown, evidence, outcome/gaps.
- **Receipts:** stable ID/link, target, deployed SHA, listed URLs, original criteria, required/completed/pending matrix cells, verdict and verified reply ID/link.
- **Opportunities:** intended outcome/source revision, observed journey/actions/decisions, friction evidence, inferred impact, proposed improvement, measurable acceptance, filed/skipped reason and decision status.
- **Retests:** finding reference, trigger, state/criteria, status and next check.
- **Discovery:** fully searched UTC interval, pagination/access gaps and next cutoff.
- **Writes:** destination, intended body, outcome, returned ID/link and read-back confirmation.

Advancing a search cutoff never deletes older pending receipts, retests or unexplored states. Search with a small overlap, deduplicate stable receipt IDs and exhaust pagination. Keep incomplete discovery intervals open. On restart, reconcile uncertain writes and resume receipts before exploration. If durable storage is unavailable, report it and hand off an explicit carry-forward ledger rather than claim continuity.
