Add module correction repair prompts

This commit is contained in:
2026-11-11 04:13:55 +00:00
parent bb81354e21
commit eb45d0b623
17 changed files with 236 additions and 5 deletions

View File

@@ -1,16 +1,17 @@
# Audita Prompt Registry
`internal/prompts` embeds seven PromptKit definitions in the `audita`
`internal/prompts` embeds eleven PromptKit definitions in the `audita`
collection. The four proposal IDs are `audita/modules.glossary.proposal`,
`audita/modules.homophones.proposal`, `audita/modules.spoken_word.proposal`,
and `audita/modules.grammar.proposal`; the three validator IDs are
and `audita/modules.grammar.proposal`; the corresponding repair IDs replace
`.proposal` with `.repair`. The three validator IDs are
`audita/validators.spoken_form_plausibility`,
`audita/validators.meaning_reversal_review`, and
`audita/validators.editorial_review`.
PromptKit composes embedded defaults with operator prompt sources. Shared
instructions come from the embedded fragments in `assets/shared`; the request
adapter fills absent `HardeningPolicy`, `ProposalContract`, and
adapter fills absent `HardeningPolicy`, `ProposalContract`, `RepairContract`, and
`ValidationContract` variables without replacing values explicitly supplied by
the caller. Processing supplies Audita's response-schema contract separately.
The operator's prompt definition controls which variables its template uses.
@@ -33,7 +34,8 @@ each validator's existing remit. A blank resulting segment remains a domain
rejection, not a structural schema error.
`internal/framework/responseschema` remains the only embedded source for
`correction_set.v1.json` and `validator_decision_set.v1.json`. It exposes that
`correction_set.v1.json`, `correction_repair.v1.json`, and
`validator_decision_set.v1.json`. It exposes that
filesystem to PromptKit and retains Audita's schema-key lookup. PromptKit's
prepared execution supplies definition and rendered hashes; Audita does not
recompute or promise equality with hashes from the removed template renderer.

View File

@@ -60,6 +60,8 @@ validator responses remains [deferred](future.md#domain-aware-response-recovery)
## Stage 2 — Add and register the four module repair prompts
**Completed.**
1. Add the definitions `audita/modules.glossary.repair`,
`audita/modules.homophones.repair`, `audita/modules.spoken_word.repair`,
and `audita/modules.grammar.repair` beside the corresponding proposals in