Record automatic usage installation decisions

This commit is contained in:
2026-11-22 19:26:17 +00:00
parent 91ef377bcd
commit dc0ab74135

View File

@@ -1,6 +1,7 @@
# Automatic PromptKit Usage Reporting
Status: adoption goal agreed; upstream v0.25.0 reviewed and available; OD-1 selected; OD-2 through OD-6 open; implementation not started.
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.
## Goal
@@ -205,8 +206,8 @@ including the new vLLM adapter, through the current smoke command.
## Decisions
OD-1 is selected below. Recommendations under OD-2 through OD-6 remain proposals,
not selected contracts. Resolve the remaining choices before writing a concrete
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.
@@ -219,21 +220,22 @@ Use the existing typed parsing and help/completion conventions. Help text:
Automatic availability does not mean printing a summary when the operator has
not requested it.
### OD-2: Installation API and capability availability
### OD-2: Installation API and capability availability — selected
Choose the smallest public core composition contract and how normal ckprompt
installation supplies it. Both `Command` and `Declarations` are current public
assembly paths; recommend giving both automatic usage support rather than making
consumers switch to a special usage-enabled factory. Assess source compatibility
before selecting any signature change.
Both `ckprompt.Command` and `ckprompt.Declarations` automatically install usage
support for the PromptKit family and application-owned commands. Consumers need
no special factory or execution wrapper. Preserve existing factory signatures
where practical; assess source compatibility before any signature change.
Also decide how usage is installed when all inspection callbacks are absent.
An empty suite currently means no command and no namespace claim. Recommend
preserving that absence behavior and explicitly defining whether usage-only
installation is supported, without silently changing the meaning of an empty
suite. Usage-only support is not necessary for the ordinary nonempty installation
goal. The mechanism must not depend on wrapping the engine loader or on enabling
a particular inspection callback.
Core supplies a small, library-neutral composition mechanism for invocation-wide
flags, context decoration, and final reporting. ckprompt owns PromptKit observation
and summary content. The mechanism must not depend on wrapping the engine loader
or on enabling a particular inspection callback.
Preserve empty-suite absence behavior: an empty suite installs no command,
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
@@ -288,7 +290,7 @@ availability of the evidence.
## Delivery Sequence
1. Resolve OD-2 through OD-6 against the reviewed PromptKit v0.25.0 API. Upstream
1. Resolve OD-3 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