Record usage summary reporting decisions

This commit is contained in:
2026-11-22 19:28:02 +00:00
parent dc0ab74135
commit fe4e8d756d

View File

@@ -1,7 +1,7 @@
# Automatic PromptKit Usage Reporting # Automatic PromptKit Usage Reporting
Status: adoption goal agreed; upstream v0.25.0 reviewed and available; 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 ## Goal
@@ -206,10 +206,10 @@ including the new vLLM adapter, through the current smoke command.
## Decisions ## Decisions
OD-1 and OD-2 are selected below. Recommendations under OD-3 through OD-6 remain OD-1 through OD-3 are selected below. Recommendations under OD-4 through OD-6
proposals, not selected contracts. Resolve the remaining choices before writing a concrete remain proposals, not selected contracts. Resolve the remaining choices before
implementation plan; implementation should then be able to proceed through that writing a concrete implementation plan; implementation should then be able to
plan without intermediate design gates. proceed through that plan without intermediate design gates.
### OD-1: Flag name and selection — selected ### 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 API until there is a concrete need. Automatic usage support applies to ordinary
nonempty installations. 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, Present the requested summary on the application's diagnostic destination,
shown in ordinary mode when requested. An ordinary Info message alone is normally stderr, preserving the result stream for application output. Show it in
insufficient because it is hidden without verbose mode. Choose the generic core ordinary, verbose, and debug modes without requiring another flag. Use a small,
reporting facility needed for this presentation rather than bypassing reporting. 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 Active quiet mode suppresses the summary regardless of the position of
messages and terminal explanations. Recommend quiet mode suppress the summary, `--show-tokens`, consistent with the existing explicit-progress behavior.
consistent with successful output suppression, and present it after normal Present the summary after normal command output and deferred messages, but
command reporting but before a terminal failure explanation. Explicitly document before any terminal failure explanation.
the chosen precedence between quiet mode and the usage flag.
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 ### OD-4: Text and structured summary access
@@ -290,7 +296,7 @@ availability of the evidence.
## Delivery Sequence ## 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 implementation and release are complete; no upstream feature work remains a
prerequisite. prerequisite.
2. Implement and verify the neutral core installation, flag, context, and 2. Implement and verify the neutral core installation, flag, context, and