Resolve native prompt asset and schema design
This commit is contained in:
@@ -144,7 +144,7 @@ not require preserving a private completion interface.
|
||||
construction, interpretation, configured validation, and terminal disposition.
|
||||
- Choose the location of engine assembly and focused application helpers without
|
||||
introducing a replacement LLM service layer.
|
||||
- Resolve item 2's deferred filesystem and schema choices and the remaining
|
||||
- Implement item 2's resolved asset/schema design and settle the remaining
|
||||
migration details recorded under items 3–6, including durable compatibility.
|
||||
- Evaluate any remaining upstream gap against an actual application requirement,
|
||||
rather than preserving historical machinery by default.
|
||||
@@ -158,70 +158,40 @@ outcomes as the meaningful Notarius-owned boundaries.
|
||||
|
||||
## 2. Prompt Assets And Schema Assembly
|
||||
|
||||
**Discussion / decision:** Direction agreed: use native PromptKit declarations
|
||||
as the sole prompt assembly mechanism and remove the duplicate application
|
||||
assembly plumbing. Resolution of the custom read-only filesystem and schemas
|
||||
is explicitly deferred; the next topic may clarify those choices.
|
||||
**Discussion / decision:** Agreed and incorporated as resolved U2 in the
|
||||
[master roadmap](promptkit.md#prompt-assets-and-response-schemas-u2-resolved).
|
||||
The filesystem and schema questions initially deferred here are now settled.
|
||||
Implementation is pending; the master roadmap owns the detailed design and checks.
|
||||
|
||||
**Selected direction:** Keep the embedded content tree and load its prompt and
|
||||
profile definitions as native PromptKit configuration in the application
|
||||
collection. Use native filesystem contexts and imports to reference shared
|
||||
content directly. Application composition assembles the embedded and operator
|
||||
sources once; modules select prompt IDs, supply domain inputs, and interpret
|
||||
typed results.
|
||||
Use ordinary embedded assets, native prompt declarations, and native schema
|
||||
loading. Keep the content tree and module ownership of prompt meaning and domain
|
||||
interpretation. Shared files use real native filesystem paths. Remove duplicate
|
||||
asset registration, per-module manifests, synthetic mounts, flattened schema
|
||||
namespaces, and the custom read-only filesystem that served that assembly.
|
||||
|
||||
The spell extractor illustrates the current duplication: its prompt YAML
|
||||
declares ordered messages and a schema, while a separate Go asset manifest
|
||||
lists files, mounts shared fragments, registers filesystems, and hashes them.
|
||||
The selected direction makes native declarations the sole prompt assembly source.
|
||||
Prompt definitions select output contracts by default. Initial and correction
|
||||
prompts can share schema files. Use native per-request replacement only for a
|
||||
demonstrated runtime-dependent contract, without an application wrapper or schema
|
||||
registry. Audita demonstrates ordinary embedded schema loading and per-call
|
||||
contracts; its per-call selection is not required for every Notarius operation.
|
||||
|
||||
Candidates for removal:
|
||||
The default schema source is the embedded asset tree. Operator-selected external
|
||||
schema directories use native whole-root replacement, not an application overlay.
|
||||
Prompt underlays do not implicitly overlay schema files. PromptKit owns private
|
||||
response-schema loading, structural checks, and repair; Notarius keeps typed
|
||||
interpretation, domain validation, and distinct durable artifact schemas/codecs.
|
||||
|
||||
- Prompt and fallback-profile registration plumbing in `AssetRegistry` and
|
||||
individual modules; schema responsibilities remain under review.
|
||||
- `ModulePromptFS`, `PromptAssetManifest`, shared-name lookup tables, synthetic
|
||||
`sharedassets` mounts.
|
||||
- Manual prompt-file enumeration for checkpoint fingerprints, retired under
|
||||
item 5's simpler reuse policy. Native prompt hashes remain available for
|
||||
inspection and diagnostics.
|
||||
Retire response-schema hashes and copied metadata used only by the adapter,
|
||||
checkpoints, or reporting. Preserve actual artifact contracts and native diagnostic
|
||||
snapshots. Neither asset nor schema metadata adds another cache fingerprint.
|
||||
|
||||
Keep prompt prose, ordered messages, cache controls, workload profiles, private
|
||||
response schema documents, and domain interpretation. Durable artifact schemas
|
||||
remain separate. Content ownership does not require runtime asset registration.
|
||||
The spell extractor illustrated the duplication: prompt YAML declared ordered
|
||||
messages and a schema while a Go manifest separately listed, mounted, registered,
|
||||
and hashed assets. Native declarations now supply the selected assembly model.
|
||||
|
||||
Native schema paths resolve against the configured schema root, separately from
|
||||
message-file source contexts. PromptKit v0.23.2 loads schemas during preparation
|
||||
and requires self-contained schema documents. A captured prompt hash alone does
|
||||
not establish schema equality. Existing schema metadata in manifests and
|
||||
checkpoint inputs must be deliberately replaced or retired; its presence does
|
||||
not require preserving the complete wrapper system.
|
||||
|
||||
Deferred decisions:
|
||||
|
||||
- Whether the custom read-only filesystem can be removed after reviewing its
|
||||
remaining responsibilities.
|
||||
- Schema assembly, root/path selection, wrapper removal, and schema metadata.
|
||||
Supplying the embedded filesystem as a native schema root remains a candidate,
|
||||
not a selected design.
|
||||
- Schema metadata for artifact compatibility and inspection. Item 5 settles that
|
||||
cache matching does not require exact schema identity; the CommandKit output
|
||||
decision removes mandatory manifests.
|
||||
|
||||
Implementation questions:
|
||||
|
||||
- Can native sources represent the existing shared fragments and module assets?
|
||||
- Which registry, remounting, and hashing helpers could disappear?
|
||||
- What schema metadata remains useful for inspection and artifact loading under
|
||||
item 5's simpler reuse policy?
|
||||
- How do we preserve message ordering and cache controls while simplifying
|
||||
assembly?
|
||||
|
||||
**Follow-up:** Continue with item 3, then revisit the deferred filesystem and
|
||||
schema decisions with any new clarity. Confirm native source contexts for shared
|
||||
fragments and operator replacements. Apply item 5's reuse policy and resolve
|
||||
remaining metadata with item 6. Verify the resulting definitions through native
|
||||
preparation and fake-provider execution; filesystem remounting tests can retire
|
||||
with the removed implementation. The agreed direction has not yet been implemented.
|
||||
**Follow-up:** Implement the master roadmap's Phase 2 and retire tests of removed
|
||||
mounting/registry machinery. Verify shared paths, operator replacements, native
|
||||
schema sources, and any necessary complete request-contract replacement.
|
||||
|
||||
## 3. Retry And Semantic Correction Ownership
|
||||
|
||||
@@ -335,8 +305,8 @@ Notarius's serialized schema validator currently receives the codec-produced
|
||||
artifact and its artifact schema, which can differ from the model response.
|
||||
Do not remove that boundary merely because both use JSON Schema. Audit actual
|
||||
duplicate response checks individually; artifact validation and Go/domain
|
||||
interpretation are not automatically redundant. Item 2's filesystem and schema
|
||||
assembly decisions remain open.
|
||||
interpretation are not automatically redundant. Item 2's resolved native asset
|
||||
and schema design preserves this distinction.
|
||||
|
||||
Evidence: [producer attempt loop](../../internal/framework/pipeline/producer_attempts.go),
|
||||
[validation executor](../../internal/framework/pipeline/validation_executor.go),
|
||||
@@ -355,9 +325,8 @@ and the native continuation evidence in item 7.
|
||||
candidate may survive a later failed turn.
|
||||
- Failure handling for non-LLM operations and any justified recovery beyond
|
||||
native execution budgets.
|
||||
- Item 2's deferred filesystem and schema assembly choices, item 5's remaining
|
||||
cache implementation details, and migration to the selected CommandKit output
|
||||
contract.
|
||||
- Item 5's remaining cache implementation details and migration to the selected
|
||||
CommandKit output contract.
|
||||
|
||||
**Follow-up:** Resolve the remaining details above, then reconcile the adoption
|
||||
roadmap. Record the changed architecture in a successor to
|
||||
@@ -825,7 +794,8 @@ Evidence: [LLM runtime](../../../audita/docs/internal/llm-runtime.md),
|
||||
|
||||
Item 2's native underlay direction has a working application precedent. Audita
|
||||
also offers evidence for ordinary embedded filesystems and per-request schema
|
||||
selection, while our filesystem and schema decisions remain open.
|
||||
selection. U2 now selects ordinary embedded assets and prompt-declared contracts
|
||||
by default, reserving per-request replacement for demonstrated runtime needs.
|
||||
|
||||
The subsequent item 3 discussion selects native continuation and accumulated
|
||||
conversation history. Keeping domain validation local does not require keeping
|
||||
|
||||
Reference in New Issue
Block a user