Clarify usage observation boundaries and plan review
This commit is contained in:
@@ -50,17 +50,17 @@ when requested.
|
||||
|
||||
For an enabled invocation, ckprompt will create one native PromptKit
|
||||
`ExecutionGroup` and attach its observer through `WithExecutionObserver` to the
|
||||
invocation context. This will happen after successful input/preflight validation
|
||||
through `CheckInput` and before the selected command's `Run` callback. Integration
|
||||
invocation context. This will happen after successful input construction and
|
||||
`CommandSpec.CheckInput`, before the selected command's `Run` callback. Integration
|
||||
state initialization and acquisition within `Run` will therefore participate
|
||||
alongside application handler work. Input construction and `CheckInput` remain
|
||||
outside observation.
|
||||
|
||||
Validation performed inside an application handler is execution for this
|
||||
purpose. A failure there will still produce the requested summary; core does not
|
||||
identify or move arbitrary application validation. The composition hook must
|
||||
respect the `CheckInput`/`Run` boundary rather than wrap the entire prepared
|
||||
execution, which currently includes `CheckInput`.
|
||||
Validation performed inside `Run`, including integration validation, is execution
|
||||
for this purpose. A failure there will still produce the requested summary; core
|
||||
does not identify or move arbitrary validation inside handlers. The composition
|
||||
hook must respect the `CheckInput`/`Run` boundary rather than wrap the entire
|
||||
prepared execution, which currently includes `CheckInput`.
|
||||
|
||||
Calls using that context will participate through PromptKit's public observation
|
||||
boundaries, including nested and concurrent calls, multiple engines, prepared
|
||||
@@ -75,9 +75,10 @@ will not require a successful `RunResult`. Groups will remain private to their
|
||||
invocations rather than being cached on reused engines or suites or retained in
|
||||
process-wide history.
|
||||
|
||||
Help, completion, version, routing errors, parsing errors, and input/preflight
|
||||
validation failures will produce no usage summary and perform no acquisition for
|
||||
reporting. Installation and help will not invoke engine loaders or providers.
|
||||
Help, completion, version, routing errors, parsing errors, and failures in input
|
||||
construction or `CommandSpec.CheckInput` will produce no usage summary and perform
|
||||
no acquisition for reporting. Installation and help will not invoke engine loaders
|
||||
or providers.
|
||||
Application startup, context propagation, and waiting for application-owned work
|
||||
remain application responsibilities. This feature does not change panic recovery,
|
||||
process-lifetime behavior, or concurrent `App.Execute` support.
|
||||
@@ -185,9 +186,10 @@ not verification of the unimplemented usage feature.
|
||||
|
||||
### Core API design checkpoint
|
||||
|
||||
The first design checkpoint in the subsequent implementation plan will present
|
||||
a small proposed public core API and a short ckprompt wiring example before
|
||||
committing to the abstraction. Demonstrate captured invocation-wide flags,
|
||||
The subsequent implementation plan will include a small proposed public core API
|
||||
and a short ckprompt wiring example for review before plan approval. This design
|
||||
checkpoint belongs to plan review; it will not introduce a separate approval gate
|
||||
during implementation. Demonstrate captured invocation-wide flags,
|
||||
context decoration at the `CheckInput`/`Run` boundary, and final presentation
|
||||
through the existing reporter. Show how both ordinary installation paths support
|
||||
application commands registered before and after ckprompt without application
|
||||
@@ -197,7 +199,8 @@ Start with a per-invocation closure retaining integration-owned state, such as
|
||||
the execution group, and assess whether it satisfies these needs directly. Avoid
|
||||
introducing a public state registry, lifecycle object hierarchy, or configurable
|
||||
middleware framework for this feature. Exact Go declarations and internal
|
||||
factoring remain work for that checkpoint; this roadmap does not select them.
|
||||
factoring remain work for implementation planning; this roadmap does not select
|
||||
them.
|
||||
|
||||
### Core composition and reporting
|
||||
|
||||
@@ -300,10 +303,11 @@ presentation, empty groups, unknown/incomplete evidence, and available data afte
|
||||
failure or cancellation. Verify preserved application outcomes and supported
|
||||
error identity.
|
||||
|
||||
Verify help, completion, version, and routing/parsing/preflight failures without
|
||||
usage summaries or acquisition for reporting. Distinguish failed `CheckInput`
|
||||
from validation failures returned inside `Run`, which retain the requested
|
||||
summary. Verify explicit-observer coexistence, smoke reasoning and ratio
|
||||
Verify help, completion, version, routing/parsing errors, and failures in input
|
||||
construction or `CommandSpec.CheckInput` without usage summaries or acquisition
|
||||
for reporting. Distinguish these from validation failures returned inside `Run`,
|
||||
including integration validation, which retain the requested summary. Verify
|
||||
explicit-observer coexistence, smoke reasoning and ratio
|
||||
adaptation, clear separation of smoke usage from ordinary execution summaries,
|
||||
and preservation of explicit provider/zero-cost inspection evidence.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user