Resolve native module execution and pipeline assessment design
This commit is contained in:
@@ -68,9 +68,11 @@ resulting change to the adoption target remains to be selected.
|
||||
|
||||
Engine construction becomes ordinary application wiring using item 2's embedded
|
||||
defaults and operator sources. Profile selection is expressed through native
|
||||
requests. The current `internal/framework/llm` package can shrink to engine
|
||||
assembly and focused helpers; whether those warrant a separate package remains
|
||||
an organizational choice, not a reason to retain an adapter.
|
||||
requests. U3 now places shared loaders and engine construction in `internal/cli`
|
||||
and the producer helper beside pipeline assessment. Retire the emptied
|
||||
`internal/framework/llm` package rather than retaining a constructor-only package.
|
||||
The [master roadmap](promptkit.md#module-execution-and-assessment-u3-resolved) owns
|
||||
the resolved design; implementation is pending.
|
||||
|
||||
Use native requests, results, exchanges, errors, and observers directly in
|
||||
model-executing application code. Pure domain models, codecs, source-reference
|
||||
@@ -100,11 +102,19 @@ pipeline assessment, and native execution:
|
||||
and assessment for revised responses. The module supplies the repair request;
|
||||
PromptKit maintains history and enforces the turn budget.
|
||||
|
||||
A small shared application function can connect these responsibilities: the
|
||||
module supplies native request construction and response interpretation, while
|
||||
the pipeline supplies configured validation and terminal policy. It uses native
|
||||
PromptKit types and returns a typed application outcome. It does not introduce
|
||||
another completion API, conversation protocol, or retry engine.
|
||||
The resolved U3 design uses a small shared helper in `internal/framework/pipeline`.
|
||||
Modules supply native initial/correction requests and response interpretation;
|
||||
the pipeline supplies an operation-scoped assessment callback and relevant
|
||||
cache/debug collaborators. Local variables or closures hold operation state.
|
||||
Use the same assessor for initial and revised candidates without an additional
|
||||
final pass. Native preparation supports cache lookup before execution; hits load
|
||||
the accepted artifact directly. The helper returns a typed application outcome
|
||||
and saves only final accepted artifacts under the initial hash.
|
||||
|
||||
Keep deterministic stages on their ordinary typed production/validation path.
|
||||
LLM validators call the shared engine directly and return findings without an
|
||||
automatic producer correction loop. No replacement completion API, execution-plan
|
||||
language, or copied conversation model is selected.
|
||||
|
||||
Item 3 owns the detailed continuation and assessment rules, including final-turn
|
||||
assessment, failure handling, complete replacement responses, and safe fallback.
|
||||
@@ -140,10 +150,9 @@ not require preserving a private completion interface.
|
||||
|
||||
### Remaining Implementation Work
|
||||
|
||||
- Select concrete module/pipeline function signatures that connect request
|
||||
construction, interpretation, configured validation, and terminal disposition.
|
||||
- Choose the location of engine assembly and focused application helpers without
|
||||
introducing a replacement LLM service layer.
|
||||
- Implement the resolved U3 ownership and placement; refine function signatures
|
||||
and argument grouping against representative extraction and normalization.
|
||||
These implementation details do not reopen the selected boundaries.
|
||||
- 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,
|
||||
|
||||
Reference in New Issue
Block a user