Improve prompt roles and correction repair context
This commit is contained in:
@@ -24,6 +24,13 @@ when maintaining proposal, validation, and repair instructions; the difference
|
||||
alone is not a reason to tighten validation. The testing rationale is recorded in
|
||||
[ADR 0003](../adr/0003-module-focus-and-editorial-acceptance.md).
|
||||
|
||||
Bundled proposal system messages carry durable correction principles and the
|
||||
editorial allowance during repair. The initial user message carries each
|
||||
module's focused proposal assignment and exclusions. Repair can therefore give
|
||||
a subsequent reassessment assignment without inheriting a system prohibition
|
||||
on acceptable incidental cleanup. Review complete conversations when editing
|
||||
these roles, including the transition from a correction set to one repair result.
|
||||
|
||||
For a standard request preview or validation, select a native PromptKit profile
|
||||
and supply the template variables used by the selected prompt. The shipped
|
||||
proposal definitions use `TranscriptDescriptionBlock`, `GlossaryJSON`,
|
||||
@@ -33,8 +40,12 @@ spelling list to `[]` when omitted. The validator definitions use `TranscriptDes
|
||||
`PayloadJSON`. The latter is supplied candidate JSON and does not require a
|
||||
proposal inference call. Repair definitions use `RepairContract` and
|
||||
`RepairRequestJSON`, containing the original proposal reference, current
|
||||
correction, and ordered findings. An operator replacement may use different
|
||||
variables.
|
||||
correction, and ordered findings. When the target exists, the request also
|
||||
includes `original_segment_text`; when the correction is applicable, it includes
|
||||
`corrected_segment_text`. These fields describe a preview of the current version,
|
||||
not an applied change. An inapplicable correction omits the resulting text and
|
||||
retains its findings and available source text. An operator replacement may use
|
||||
different variables.
|
||||
See the [upstream CLI reference](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/f369d6a78253b6e6fcb1e023fb2e9c3af1d20ff0/docs/cli.md)
|
||||
for the standard preview, validation, and smoke commands.
|
||||
|
||||
@@ -60,6 +71,10 @@ pass these values through the role-bound adapter. See the
|
||||
|
||||
Proposal instructions describe literal matching, each module's replacement policy,
|
||||
and source-based proposal identity.
|
||||
They request independently useful edits and a combined proposal when edits
|
||||
overlap or depend on one another, while allowing independent edits to share a
|
||||
segment. This is generation guidance; application still uses the existing
|
||||
ordering and applicability checks.
|
||||
Proposal `id` and validator `correction_index` values are short, one-based
|
||||
references scoped to each request, not internal transcript/proposal identities.
|
||||
Mapping belongs to [proposal generation](modules.md) and
|
||||
@@ -80,6 +95,10 @@ and findings. Unsupported, unnecessary, or unresolved uncertain corrections may
|
||||
be withdrawn, preserving the original text. Otherwise acceptable minor editorial
|
||||
cleanup remains permissible during repair.
|
||||
|
||||
Examples contrast meaningful apparent filler with removable hesitation and show
|
||||
both revision and withdrawal. Treat their words as contextual illustrations,
|
||||
not unconditional triggers for deletion or replacement.
|
||||
|
||||
The meaning-reversal validator has a deliberately narrow remit: reversal of the
|
||||
full segment's assertion, not every change of meaning. Its prompt distinguishes
|
||||
changes of referent from reversal and asks rejection reasons to identify the
|
||||
|
||||
Reference in New Issue
Block a user