Validate generated text catalog before collection
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
# Prepared Report Internals
|
||||
|
||||
`internal/app` builds a `preparedReport` after collection and before profile
|
||||
execution. This is the immutable boundary shared by ordinary report generation
|
||||
and profile comparison; it is not a durable artifact.
|
||||
`internal/app` validates the report's generated-text catalog binding during
|
||||
prompt inspection, before collection, and carries the resulting handler into
|
||||
`preparedReport` construction after collection. This is the immutable boundary
|
||||
shared by ordinary report generation and profile comparison; it is not a
|
||||
durable artifact.
|
||||
|
||||
Preparation first establishes one `PreparedIdentity` for the report run, report
|
||||
and prompt IDs, variant, generation time, units, timezone, valid period,
|
||||
@@ -21,5 +23,7 @@ bytes, and only then assembles the resulting logical bundle. The prompt-input
|
||||
shape is owned by [prompt-input internals](prompt-input.md); profile execution
|
||||
semantics are owned by [Promptkit integration](../integrations/promptkit.md).
|
||||
|
||||
Preparation failure has no publication side effects. Tests for this boundary
|
||||
cover mutation isolation, byte equality, and reuse by both execution paths.
|
||||
Catalog incompatibility stops prompt inspection before weather collection or
|
||||
model work. Preparation failure has no publication side effects. Tests for this
|
||||
boundary cover catalog-preflight ordering, mutation isolation, byte equality,
|
||||
and reuse by both execution paths.
|
||||
|
||||
Reference in New Issue
Block a user