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