Plan automatic usage reporting implementation

This commit is contained in:
2026-11-22 20:26:16 +00:00
parent f0b4108151
commit 68515668de
2 changed files with 404 additions and 18 deletions

View File

@@ -17,8 +17,8 @@ final reporting callbacks. Audita review commands and Notarius pipelines
motivate the feature; their domain execution remains application-owned.
This roadmap describes the agreed end state and the work needed to reach it.
It does not describe implemented behavior. A subsequent implementation plan will
define the concrete Go API and organize the work into discrete ordered stages.
It does not describe implemented behavior. The [implementation plan](implementation.md)
owns the concrete API, wiring example, ordered stages, and validation steps.
## Target Behavior
@@ -184,23 +184,15 @@ not verification of the unimplemented usage feature.
## Required Work
### Core API design checkpoint
### Composition boundary
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
accounting callbacks.
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 implementation planning; this roadmap does not select
them.
Core will provide captured invocation-wide flags, context decoration at the
`CheckInput`/`Run` boundary, and final presentation through the existing reporter.
Integration-owned state, such as the execution group, will remain in a
per-invocation closure. Both ordinary installation paths will support application
commands registered before and after ckprompt without application accounting
callbacks. A public state registry, lifecycle object hierarchy, or configurable
middleware framework is unnecessary for this capability.
### Core composition and reporting