diff --git a/docs/roadmap/automatic-usage-reporting.md b/docs/roadmap/automatic-usage-reporting.md index f759592..a746880 100644 --- a/docs/roadmap/automatic-usage-reporting.md +++ b/docs/roadmap/automatic-usage-reporting.md @@ -1,7 +1,7 @@ # Automatic PromptKit Usage Reporting Status: adoption goal agreed; upstream v0.25.0 reviewed and available; -OD-1 and OD-2 selected; OD-3 through OD-6 open; implementation not started. +OD-1 through OD-3 selected; OD-4 through OD-6 open; implementation not started. ## Goal @@ -206,10 +206,10 @@ including the new vLLM adapter, through the current smoke command. ## Decisions -OD-1 and OD-2 are selected below. Recommendations under OD-3 through OD-6 remain -proposals, not selected contracts. Resolve the remaining choices before writing a concrete -implementation plan; implementation should then be able to proceed through that -plan without intermediate design gates. +OD-1 through OD-3 are selected below. Recommendations under OD-4 through OD-6 +remain proposals, not selected contracts. Resolve the remaining choices before +writing a concrete implementation plan; implementation should then be able to +proceed through that plan without intermediate design gates. ### OD-1: Flag name and selection — selected @@ -237,18 +237,24 @@ namespace claim, or usage capability. Defer a separate usage-only installation API until there is a concrete need. Automatic usage support applies to ordinary nonempty installations. -### OD-3: Output destination, visibility, and finalization order +### OD-3: Output destination, visibility, and finalization order — selected -Recommend a concise summary on the diagnostic destination, normally stderr, -shown in ordinary mode when requested. An ordinary Info message alone is -insufficient because it is hidden without verbose mode. Choose the generic core -reporting facility needed for this presentation rather than bypassing reporting. +Present the requested summary on the application's diagnostic destination, +normally stderr, preserving the result stream for application output. Show it in +ordinary, verbose, and debug modes without requiring another flag. Use a small, +generic core reporting capability: an ordinary Info message is insufficient +because it is hidden without verbose mode. ckprompt supplies the summary content +through that capability. -Decide its interaction with `--quiet` and the precise position among deferred -messages and terminal explanations. Recommend quiet mode suppress the summary, -consistent with successful output suppression, and present it after normal -command reporting but before a terminal failure explanation. Explicitly document -the chosen precedence between quiet mode and the usage flag. +Active quiet mode suppresses the summary regardless of the position of +`--show-tokens`, consistent with the existing explicit-progress behavior. +Present the summary after normal command output and deferred messages, but +before any terminal failure explanation. + +Still report observed usage after returned errors or cancellation. Route summary +delivery failures through core's existing presentation-failure handling, +preserving the application outcome. Commands that do not reach execution and +empty observation scopes remain subject to OD-5. ### OD-4: Text and structured summary access @@ -290,7 +296,7 @@ availability of the evidence. ## Delivery Sequence -1. Resolve OD-3 through OD-6 against the reviewed PromptKit v0.25.0 API. Upstream +1. Resolve OD-4 through OD-6 against the reviewed PromptKit v0.25.0 API. Upstream implementation and release are complete; no upstream feature work remains a prerequisite. 2. Implement and verify the neutral core installation, flag, context, and