Refine native library upgrade roadmap

This commit is contained in:
2026-11-23 02:15:34 +00:00
parent 3c9a71364a
commit 882bdb4bdb

View File

@@ -236,7 +236,8 @@ HTTP limits, artifact-reader policy, namespace behavior, and shared engine pools
Apply a hard cutover with migration guidance, not dual loading or format aliases. Apply a hard cutover with migration guidance, not dual loading or format aliases.
Because PromptKit retains extension fields, make retired acquisition selectors Because PromptKit retains extension fields, make retired acquisition selectors
clearly diagnosable during migration rather than silently claiming they still clearly diagnosable during migration rather than silently claiming they still
load resources. Keep any such check narrowly about those retired selectors. load resources. Use direct validation checks for those two fields; do not build
a general legacy-format detector or migration subsystem.
Retain ordinary upstream extension fields and existing credential restrictions; Retain ordinary upstream extension fields and existing credential restrictions;
do not introduce a blanket unknown-field ban within PromptKit's extension points. do not introduce a blanket unknown-field ban within PromptKit's extension points.
In particular, `api_key` in a backend/profile extension is not an upstream In particular, `api_key` in a backend/profile extension is not an upstream
@@ -296,13 +297,15 @@ Keep `config`'s `app` scope as the complete application result using
`FromConfigKit`. Expose the `promptkit` scope with `FromConfigKitSubtree` at `FromConfigKit`. Expose the `promptkit` scope with `FromConfigKitSubtree` at
`configkit.Keys("promptkit")`, using the same loader, without requiring an `configkit.Keys("promptkit")`, using the same loader, without requiring an
engine. Continue to use native ckprompt resource/preparation commands for engine. Continue to use native ckprompt resource/preparation commands for
engine-derived information. Native `--set` may then address embedded PromptKit engine-derived information. Enable native override capabilities in both scopes,
settings wherever the scope's existing override capability permits it; do not passing `--set` and comparison overrides through the common loader with native
reintroduce application-specific inspection selector flags. path and conflict semantics. Retire the former `promptkit` scope's override
restriction; do not reintroduce application-specific inspection selector flags.
Remove acquisition evidence transport/decorators that exist only to reconcile Completion requires removing evidence transport/decorators, acquisition state,
the former two loads. Preserve native typed errors, findings, source catalogs, settings conversions, source-selection helpers, and tests that exist solely to
and left/right comparison context. Emit diagnostics once for their real load, support the former two loads. Preserve native typed errors, findings, source
catalogs, and left/right comparison context. Emit diagnostics once for their real load,
not as independently generated application and framework evidence. Retain only not as independently generated application and framework evidence. Retain only
the thin integration needed to carry the distinct native bootstrap report and the thin integration needed to carry the distinct native bootstrap report and
its diagnostics to the operator; this does not justify keeping two-load its diagnostics to the operator; this does not justify keeping two-load
@@ -356,9 +359,11 @@ native reasoning/cost fields without a Scriptorium report wrapper. Link the
upstream compatibility guidance for the changed smoke representation and format upstream compatibility guidance for the changed smoke representation and format
selection rather than reproducing it in Scriptorium's CLI reference. selection rather than reproducing it in Scriptorium's CLI reference.
Keep the existing HTTP response DTOs and opt-in terminal-report projection for Preserve the existing HTTP wire contract, including its opt-in terminal report,
this upgrade, adapting their integration only as needed for the new library while allowing internal simplification. This upgrade does not commit Scriptorium
versions. New reasoning, cost, and cache-ratio evidence remains available through to retaining the custom report projection permanently; reconsider its maintenance
cost at the future HTTP design review before adding reporting fields.
New reasoning, cost, and cache-ratio evidence remains available through
native CLI reports, but adding it to HTTP is [deferred](#deferred-work). native CLI reports, but adding it to HTTP is [deferred](#deferred-work).
Preserve existing result-usage versus presence-aware terminal-usage semantics, Preserve existing result-usage versus presence-aware terminal-usage semantics,
request-scoped observation, status mapping, transport limits, and shared-engine request-scoped observation, status mapping, transport limits, and shared-engine
@@ -432,7 +437,10 @@ The documentation pass must cover these current duplication points:
| `docs/policy/architecture.md` | Update the implemented integration boundary and upstream links when the upgrade lands. Keep application constraints and ownership decisions, with upstream semantics referenced rather than redefined. Accepted ADR decision content remains unchanged. | | `docs/policy/architecture.md` | Update the implemented integration boundary and upstream links when the upgrade lands. Keep application constraints and ownership decisions, with upstream semantics referenced rather than redefined. Accepted ADR decision content remains unchanged. |
Retain the minimal Scriptorium quickstart and maintained examples that exercise Retain the minimal Scriptorium quickstart and maintained examples that exercise
its actual integration. Point to upstream examples for standalone library its actual integration. Keep a representative collection-discovery example with
an application file, glob-discovered `collection.yml` / `collection.yaml`
entrypoints, collection-declared namespaces, relative imports, and source-relative
message/schema resources. Point to upstream examples for standalone library
tutorials instead of creating equivalent local examples for every adopted tutorials instead of creating equivalent local examples for every adopted
feature. Adapt maintained application examples to the new configuration and feature. Adapt maintained application examples to the new configuration and
bootstrap path without building a separate upstream feature showcase. bootstrap path without building a separate upstream feature showcase.