Where they attach
memory is a string array. Its location determines when the entries apply.
.sightmap/flights.yaml
- File-level: applies whenever any definition from that file is active.
- View-level: applies whenever the current URL matches that view’s route.
- Component-level: applies whenever that component is matched on the current view.
- Request-level: applies in the network-trace detail view for that request.
What consumers do with them
Memory entries are runtime guidance, not configuration. Conforming implementations SHOULD include applicable entries in a[Guide] section at the top of enriched output.
The sightmap CLI prints view-level memory in the snapshot header and includes component memory in annotated JSON written with --json.
memory contains guidance for consumers at runtime. description supports review and maintenance and is not surfaced at runtime. Put page-driving context in memory and YAML-maintenance context in description.What to write
Use memory for short observations about runtime behavior that the source code does not make obvious. Good entries:- “Past dates render but are aria-disabled”
- “Rate-limited to 10 requests/min per user; returns 429 beyond that”
- “The third click on the date range resets the selection”
- Repeat the definition’s
name, such as “This is the search page” - Restate behavior already exposed by the controls, such as “Type a city name and submit”
- Contain a long explanation that belongs in smaller entries or in
description