Prompt Logs
Optional file for preserving the prompt history used to regenerate an MView.
Prompt Logs
prompts_history.json is an optional file an implementation may store next to mview.json to record prompts submitted during MView creation or regeneration.
The current, normative prompt for the mutation lives in mview.json as prompt. The history does not replace that field: it only preserves earlier or later attempts for auditing, debugging, and traceability.
Location
If present, the file must live in the same directory as mview.json:
.mviews/
└── sales-dashboard/
├── mview.json
├── prompts_history.json
├── parser.ts
└── Dashboard.tsxFormat
The file contains a JSON array. Each entry represents a prompt submitted by the user or by a regeneration tool.
[
{
"prompt": "Create an executive view of monthly sales and top clients.",
"sentAt": "2026-07-16T18:35:00Z"
},
{
"prompt": "Adjust the view to support the new Region column and show totals by region.",
"sentAt": "2026-07-16T19:10:00Z"
}
]Fields
| Field | Type | Required | Description |
|---|---|---|---|
prompt | string | yes | Submitted prompt. |
sentAt | string | yes | Submission date and time in ISO 8601 format. |
Implementations may add their own fields to each entry, such as model, createdBy, or result, but they must not depend on them to execute the MView. Execution must depend on mview.json, parser.ts, the component, and declared resources.
Expected Use
- Show the user how the mutation evolved.
- Recover a previous prompt as a starting point for regeneration.
- Audit when each change was requested.
The file is informational. If it is missing, the MView remains valid as long as mview.json satisfies the schema.