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 # 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 ## Goal
@@ -205,8 +206,8 @@ including the new vLLM adapter, through the current smoke command.
## Decisions ## Decisions
OD-1 is selected below. Recommendations under OD-2 through OD-6 remain proposals, OD-1 and OD-2 are selected below. Recommendations under OD-3 through OD-6 remain
not selected contracts. Resolve the remaining choices before writing a concrete proposals, not selected contracts. Resolve the remaining choices before writing a concrete
implementation plan; implementation should then be able to proceed through that implementation plan; implementation should then be able to proceed through that
plan without intermediate design gates. 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 Automatic availability does not mean printing a summary when the operator has
not requested it. 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 Both `ckprompt.Command` and `ckprompt.Declarations` automatically install usage
installation supplies it. Both `Command` and `Declarations` are current public support for the PromptKit family and application-owned commands. Consumers need
assembly paths; recommend giving both automatic usage support rather than making no special factory or execution wrapper. Preserve existing factory signatures
consumers switch to a special usage-enabled factory. Assess source compatibility where practical; assess source compatibility before any signature change.
before selecting any signature change.
Also decide how usage is installed when all inspection callbacks are absent. Core supplies a small, library-neutral composition mechanism for invocation-wide
An empty suite currently means no command and no namespace claim. Recommend flags, context decoration, and final reporting. ckprompt owns PromptKit observation
preserving that absence behavior and explicitly defining whether usage-only and summary content. The mechanism must not depend on wrapping the engine loader
installation is supported, without silently changing the meaning of an empty or on enabling a particular inspection callback.
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 Preserve empty-suite absence behavior: an empty suite installs no command,
a particular inspection callback. 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
@@ -288,7 +290,7 @@ availability of the evidence.
## Delivery Sequence ## 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 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