Replace prompt quality roadmap with next improvements

This commit is contained in:
2026-11-11 17:26:22 +00:00
parent d155bf4cb3
commit cf1fbe5748

View File

@@ -2,263 +2,183 @@
**Updated:** 2026-11-11 **Updated:** 2026-11-11
**Status:** All six implementation stages completed. Editorial evaluation remains **Status:** Accepted; implementation has not begun. This roadmap replaces the
deferred. No open decisions remain in the current scope. completed prompt-quality plan with the recommendations from the fresh review of
revision `d155bf4`. The review covered all eleven prompt definitions, shared
instructions, response schemas, and request assembly. It identified design
concerns, not measured live-model regressions.
## Target State and Constraints ## Target State and Boundaries
Audita will use clearer proposal, validation, and repair prompts, actionable Audita's proposal, validation, and repair prompts will give each model call a
rejection feedback, and no model-reported confidence scores or thresholds. coherent assignment and the evidence needed to carry it out. Proposals will
Repair will reconsider corrections on their merits and revise or withdraw them better account for interacting edits, repair will receive an explicit view of
based on the supplied evidence. The initial review covered the eleven its current proposed result, and validation will identify the target speaker.
[prompt definitions](../internal/prompts.md) and their consumers at revision Focused examples will clarify difficult editorial judgments.
`6d34602`; it was a design review, not a live-model quality measurement.
Preserve the following throughout implementation: Preserve the established design:
- **Editorial acceptance:** module focus guides requested work, while validators - Module focus guides proposal generation while otherwise acceptable minor
permit otherwise acceptable minor editorial cleanup across modules. Follow editorial cleanup remains permissible across modules, as selected in
[ADR 0003](../adr/0003-module-focus-and-editorial-acceptance.md), which records [ADR 0003](../adr/0003-module-focus-and-editorial-acceptance.md).
the maintainer's finding that strict scope instructions also suppress desirable - Validators retain distinct responsibilities. Preserve the carefully tuned
edits. Applicability, protection, and other substantive checks still apply. meaning-reversal criterion and its focus on reversal of the full assertion.
- **Correction mechanics:** retain literal-span and deletion semantics, distinct - Keep literal-span matching, deletion semantics, separate glossary context and
glossary context and protection, full before/after validation, and independent protected spellings, and full before/after validation.
repair conversations with full history, withdrawal, and revalidation. Preserve - Keep independent repair conversations with full history, successful withdrawal,
native PromptKit/ConfigKit prompt replacement and the existing module structure. and full revalidation of revisions. Validators explain defects; repair owns
- **Module behavior:** keep `grammar` and its current requested scope; retain revision or withdrawal. Approvals continue to need no explanation.
glossary and homophone modules with their useful overlap. Keep the current - Retain confidence-free responses, English defaults, existing module identities,
[default sequence](../config.md#pipeline-and-glossary-selections) for this pass and native operator prompt replacement. The current module sequence is outside
and preserve configurable additional passes. this pass; ongoing reevaluation follows the [module guidance](../internal/modules.md).
- **Language:** retain English as the bundled default and useful existing campaign
examples, supplemented with a few general examples. Broader language support is
outside this pass.
- **Meaning reversal:** preserve the narrowly tuned guard against reversal of the
full segment's assertion. Its targeted prompt changes are specified below.
Nearly all module behavior reflects the maintainer's practical experimentation. The [prompt registry](../internal/prompts.md), [validator guide](../internal/validators.md),
Two glossary passes have proved useful, and some workloads benefit from three or and [LLM runtime](../internal/llm-runtime.md) describe the implemented baseline.
more. These observations inform the current choice without fixing a permanent Update these canonical owners when the corresponding changes land.
number or order of passes. Frequently reevaluate the default module combination
and sequence and select what has been observed to work best for most workloads.
This ongoing maintenance does not depend on the deferred formal evaluation work.
## Implementation Sequence ## Implementation Sequence
Work through the following steps in order. Keep schemas, consumers, prompt ### 1. Align Proposal and Repair Instruction Authority
examples, and affected tests consistent as each change lands, and update the
canonical documentation with the corresponding behavior. Step 5 checks the
assembled result; step 6 reviews test-policy compliance. Apply that policy during
the earlier steps as well. Proceed without waiting for live-model evaluation
evidence or a captured baseline.
### 1. Remove Confidence Throughout the Workflow Proposal system messages currently include categorical task restrictions, such
as prohibiting punctuation or grammar edits in the homophone module. Repair
inherits those messages and then permits acceptable minor editorial cleanup in a
later user message. These instructions can compete across authority levels.
Remove confidence entirely from proposals, validation, and repair. Audita has no - Put durable correction principles in the system messages: evidence-supported
established calibration that gives its model-reported scores reliable numerical work, established protection and meaning constraints, and the distinction
meaning across transcripts and models. Proposal scores currently affect between requested focus and acceptable editorial corrections.
acceptance; validator scores are range-checked but do not determine approval. - Put the initial proposal's focused assignment and task-specific exclusions in
Retaining the numbers adds complexity and encourages repair toward a threshold. its user message. Preserve the focused tasks rather than asking every module
to perform every kind of cleanup.
- Let each repair instruction give the subsequent reassessment assignment,
including the selected editorial allowance, without conflicting with an
inherited system prohibition.
- Review each complete proposal-to-repair conversation, including later repair
attempts, for coherent instructions and response-format transitions.
- Remove confidence fields from response schemas, Go models, decoding, and This implements the existing acceptance decision; it does not tighten validators
validation paths, together with corresponding prompt instructions and examples. or change the repair lifecycle. Keep the validator prompts' separate remits,
- Remove the confidence-threshold validator, its registration and chain entries, especially meaning-reversal review, intact.
root and stage threshold settings, and any corresponding CLI exposure.
- Remove confidence-specific rejection feedback, reason codes, report/debug
fields, and other supporting code wherever present. Update affected tests,
fixtures, and configuration examples.
- Treat removal as a deliberate contract change for configuration, custom prompts,
and affected serialized outputs. Retain no inert confidence fields or threshold
knobs, and introduce no replacement numerical or categorical confidence scale.
Removing the proposal threshold can admit corrections it previously rejected. ### 2. Guide Independently Useful and Overlapping Corrections
That effect can be assessed when editorial evaluation resumes; it does not block
the selected removal.
### 2. Improve Validation Feedback The shared proposal contract already makes each edit refer to the supplied
segment rather than the imagined result of another proposal. Add guidance for
edits that overlap or depend on one another:
Retain the existing `reason` field. Update shared validation guidance and all - Prefer independently useful corrections with literal spans that identify the
three validator definitions to request concise rejection explanations identifying intended changes.
the specific problematic edit, applicable criterion, and relevant supplied - Combine changes into one proposal when their spans overlap or when one edit
evidence within each validator's remit. For editorial review, for example: requires the other. Preserve unchanged context needed for unique matching or
removing "might" turns a tentative statement into a definite one. for selecting an occurrence under the glossary replacement policy.
- Continue to allow multiple independent corrections to the same segment.
Validators identify defects; the repair module owns revision or withdrawal. For example, separate proposals to capitalize `hello` and replace
Distinguish insufficient evidence from an established defect, respect the accepted `hello world` with `hello world` may both pass validation against the original,
editorial allowance, and include distinct material issues when found without but applying the capitalization first prevents the second span from matching.
requiring exhaustive analysis. Provide representative rejection examples. A combined replacement can express both edits against the original text.
Approvals need no explanation: instruct the model to return `reason: ""` and use These are prompt instructions. Add no new runtime overlap rejection, proposal
that convention in approval examples. The field remains required and permits an limit, or application-order rule. Assess combined semantic effects separately
empty string; this reason convention itself needs no schema or response-handling if practical examples establish a need for additional processing changes.
change. Explanation guidance is expressed in prompts, with no new runtime
rule rejecting blank explanations. Consider schema expansion only if a concrete
need emerges.
The meaning-reversal validator requires particular care. The maintainer has ### 3. Supply Repair with the Current Before/After Segment
observed overly broad instructions causing it to reject virtually all corrections.
Preserve its core instructions and make only small, targeted feedback and example
changes, alongside confidence removal and the approval-reason convention:
- Detect reversal of the full segment's assertion, not every change in meaning. The repair request currently identifies the proposal, its current correction,
Changes to names, referents, or other information alone are not grounds for and validation findings. Although the original section remains available in
rejection. "We met Alice" becoming "We met Alex" illustrates a meaning change conversation history, repair must locate it and reconstruct the proposed result.
that is not a reversal.
- Assess the full before/after segment. An antonym appearing in the replacement
does not by itself establish reversal.
- Instruct rejection feedback to identify the specific opposition in the
assertions; "this changes the meaning" is insufficient.
- Approve corrections outside this narrow rejection criterion, leaving other
validators to assess their own criteria. Preserve the guard even though it can
exclude a genuine mistranscription correction that reverses the assertion;
no contextual exception is selected in this pass.
### 3. Refine Repair Guidance - Add the original target segment and its proposed resulting text to repair
context when the current proposal is applicable.
- Reuse the same domain preview semantics used by validation, including literal
deletion, whitespace, and replacement of every matching occurrence where
applicable. Avoid a second implementation of replacement behavior.
- Refresh this view for each repair attempt, using the current proposal version
and target rather than a stale view of the initial proposal.
- When a preview cannot be produced, retain the relevant findings and available
source context without fabricating a resulting segment or implying application
succeeded.
- Keep the full conversation history, proposal references, and revision or
withdrawal response contract. Explain the added view as evidence for assessing
the current correction, not an already-applied transcript change.
Ask the model to reassess the correction using the original transcript, supplied This should make spacing, deletion, and replacement consequences easier to
context, and rejection feedback: judge without requiring the model to reproduce Audita's application mechanics.
- Revise when the evidence supports a correction that addresses the identified ### 4. Improve Validation Evidence
problems.
- Withdraw when the proposal remains unsupported, unnecessary, or too uncertain.
Withdrawal is a successful resolution that preserves the original text.
Use concrete explanations of uncertainty where relevant, such as context that Add the target segment's speaker to each validation item. Neighboring segments
cannot distinguish two possible names. Preserve requested module focus and the already carry their speakers; the candidate's identity completes that context
accepted editorial allowance. Apply these instructions within the existing and helps distinguish continued speech, interruptions, and another speaker's
full-history repair lifecycle and revalidation, without adding new retry rules. response. Carry the supplied value through the existing payload construction
and token accounting without inferring a missing speaker.
### 4. Consolidate Prompts, Descriptions, and Examples Investigate the broader evidence imbalance using available practical cases:
proposal sees a section, while validation sees immediate neighbors and selected
glossary entries. A correction supported several turns earlier may appear
unsupported to a validator. Compare the evidence actually supplied to both
calls before attributing a rejection to prompt wording.
Make a focused editing pass using the existing prompt fragment and module Adding the target speaker is agreed implementation work. Substantial expansion
structure. Organize instructions around shared contracts (including response of validation context remains evidence-dependent: record a concrete case and a
format, literal matching, and deletion semantics), module-specific requested work, focused follow-up recommendation if needed. Retain the current context selection
and the distinct responsibilities of validation and repair. and fitting behavior otherwise. Stronger instructions cannot supply missing
evidence, and this roadmap does not require a broader context redesign.
Consolidate duplicated rules where small shared fragments prevent drift, remove ### 5. Add Focused Editorial and Repair Examples
contradictions and unnecessary repetition, and keep each rendered prompt
understandable on its own. Retain repetition across separate model calls when
each call needs the instruction. Preserve the meaning-reversal validator's tuned
core wording as specified in step 2; broad simplification for consistency is not
appropriate there. Shorter prompts alone are not the objective.
Clarify descriptions and examples as follows: Add a small number of examples where they clarify judgments that current
instructions leave implicit:
- Keep the `grammar` name, module key, and prompt IDs. Describe its requested work - Apparent filler that contributes meaning, such as `like` expressing
as conservative punctuation, capitalization, spacing, and whole-word `a`/`an` approximation or `I mean` introducing a substantive self-correction. Use
article cleanup. Preserve the current scope and cross-module editorial allowance. surrounding context to contrast meaningful usage with removable dysfluency.
- Describe glossary stages as focusing on known terms supported by selected - One compact repair revision and one withdrawal, using the existing response
glossaries, and homophone stages as looking more broadly for plausible schema and making withdrawal a successful preservation of the original text.
spoken-word mistranscriptions, including glossary-supported corrections. Do not - A combined overlapping edit illustrating step 2.
exclude an otherwise supported homophone correction because it targets a
glossary term.
- Use short contextual contrasts for difficult judgments, such as accidental
restarts versus deliberate emphasis and context-supported glossary matches
versus merely similar spellings. Examples illustrate judgments rather than
establish unconditional editing rules.
- Retain useful campaign examples and add a few general examples. Use broadly
applicable wording for names, terminology, and glossary entries without asserting
D&D specificity or adding a disclaimer about it.
### 5. Complete Integration Checks and Documentation Place examples in the relevant proposal, validation, or shared repair guidance.
Keep existing useful contextual contrasts. Examples should illustrate reasoning
without becoming unconditional token-based editing rules or an extensive
rulebook. Maintain the narrow meaning-reversal instructions.
Follow the [testing policy](../policy/testing.md) and the ### 6. Verify Integration, Documentation, and Test-Policy Compliance
[development validation guidance](../development.md#baseline-validation). Verify
the assembled workflow, including:
- Confidence-free proposal, validation, and repair responses work through their Follow the [testing policy](../policy/testing.md) throughout implementation and
schemas and consumers; substantive validators remain effective in the workflow. finish with a focused review of affected tests:
- Rendered prompts and examples match the revised contracts, including empty
approval reasons and rejection feedback carried into repair requests.
- Revision, withdrawal, and full revalidation retain their existing mechanics.
Review the actual prompt wording and representative repair payloads to check the - Verify repair context reflects the current proposal and the shared preview
selected responsibilities and the narrow meaning-reversal criterion. Offline behavior, including representative deletion, replacement-policy, subsequent
tests verify contracts and integration; they do not establish live-model revision, and unavailable-preview cases where coverage is warranted.
editorial quality. Complete the appropriate package checks, build, and full test - Verify target-speaker data reaches validation and participates in existing
suite for the changes, without introducing paid calls into the default suite. payload accounting. Preserve coverage of response handling, revision,
withdrawal, revalidation, and operator prompt replacement.
- Review rendered messages and representative complete repair conversations
directly for instruction authority, editorial intent, and format consistency.
Check response examples against their schemas.
- Remove any affected tests that freeze bundled prompt wording through phrase
checks, exact prose comparisons, or snapshots. Do not replace them with checks
for the new wording. Retain tests of supplied data and meaningful machine
contracts where their protective value justifies their maintenance cost.
- Update the relevant canonical prompt, module, validator, and runtime documents
as behavior lands. Update maintained examples where affected; check links and
whitespace.
Update canonical [configuration](../config.md), [CLI](../cli.md), Run the appropriate package checks, build, and full offline suite for the
[prompt](../internal/prompts.md), [module](../internal/modules.md), implementation under the [development guidance](../development.md#baseline-validation).
[validator](../internal/validators.md), and Report the test-policy review's meaningful removals, revisions, and retained
[output](../integrations/output-files.md) documentation where affected, together coverage. Offline tests establish data and execution contracts; they do not
with maintained examples. Provide migration guidance to remove obsolete confidence establish live-model editorial quality.
settings and fields from configuration, custom prompts, and affected output
consumers. Check links, examples, and whitespace, and remove stale descriptions
of confidence-based behavior.
### 6. Review Tests for Policy Compliance ## Deferred Evidence and Follow-Up
Review existing and newly changed tests supporting this work against the Formal evaluation corpus preparation and live-model comparisons remain deferred
[testing policy](../policy/testing.md), with particular attention to prompt tests. and are not prerequisites for the agreed changes. Broader validation context and
Each retained test should protect a meaningful contract or behavior against a additional handling of combined semantic effects should follow concrete evidence
realistic defect at a maintenance cost justified by that protection. rather than hypothetical restrictions. Any later evaluation should examine
needed and unnecessary edits, missed corrections, validator disagreement, and
repair outcomes using independent editorial judgment. Keep live calls opt-in
and separate from the default offline suite.
Prompt wording checks carry an unusually high cost: assertions that a particular No blocking product decisions remain for the implementation scope above.
word or phrase appears in a prompt body obstruct development and experimentation
with alternative language without establishing that a model follows the intended
instruction. Remove these change-detector tests rather than updating their
expected phrases to match the revised prompts. Apply the same scrutiny to prompt
body snapshots, exact prose comparisons, and equivalent checks hidden behind
helpers. Do not add new tests that freeze incidental prompt wording, including
the carefully tuned meaning-reversal instructions.
Retain or replace tests where they protect meaningful behavior, such as template
rendering with supplied data, prompt selection and operator replacement, response
schema compatibility, repair context assembly, and processing of validation and
repair responses. Exact comparisons of test-controlled data or explicit machine
contracts can be appropriate; distinguish those from assertions about bundled
instruction prose. Replace a removed test only when a genuine coverage gap
justifies it, and consolidate redundant coverage.
Review prompt language directly for the agreed editorial intent. Keyword checks
are not a substitute for that review or for the deferred live-model evaluation.
Summarize the tests removed, revised, and retained with their behavioral rationale,
and run the checks appropriate to any test changes made in this final stage.
## Completion and Test Review
Confidence has been removed from schemas, models, validators, configuration,
CLI flags, feedback, and fixtures. All eleven prompt definitions and their shared
contracts have been revised. Current behavior and cutover instructions are
recorded in the canonical documentation linked above and the
[v3 migration guide](../migrations/v3.md#confidence-removal).
The final test-policy review made the following changes:
- Removed assertions about bundled instruction phrases, module-guidance wording,
and exact shared-instruction repetition. These detected prose changes without
demonstrating model behavior and obstructed prompt experimentation.
- Removed confidence-specific tests with the retired contract. Repair and report
scenarios now use substantive rejection cases, preserving their coverage of
revision, withdrawal, exhaustion, partial success, and failure handling.
- Revised subprocess model fixtures to identify structured validation input
without depending on a prose heading; removed an incidental schema-formatting
assertion.
- Retained supplied-data interpolation, operator prompt replacement, schema and
response handling, repair history, protected-term behavior, and end-to-end
outcomes. Test-controlled strings and machine-contract comparisons remain where
they detect meaningful defects.
The full offline Go test suite and application build passed. Prompt rendering,
response examples, documentation links, and whitespace were checked. Prompt
language was reviewed directly for the selected responsibilities and narrow
meaning-reversal criterion; these checks do not establish live-model editorial
quality.
## Deferred Editorial Evaluation
Evaluation corpus preparation, live-model comparisons, and an evaluation workflow
are outside this implementation scope. No baseline run or numerical quality gate
is required before the agreed changes proceed.
When this work resumes, consider a modest collection of needed corrections and
text that should remain unchanged: ambiguous glossary matches, intentional
repetition, meaningful apparent filler, punctuation affecting meaning, and repairs
that should be withdrawn. Compare unnecessary edits, missed corrections,
validator disagreement, and repair outcomes using independent editorial judgment;
validator approval alone is insufficient evidence.
Discuss representative models, expected outcomes, and an evaluation workflow at
that time. Prior repository revisions can support before/after comparisons,
including the effects of removing confidence thresholds. Keep model-dependent
evaluation separate from the default offline test suite.