From 882bdb4bdb0de3b04c7a9b393024ed7557b4ef3c Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Mon, 23 Nov 2026 02:15:34 +0000 Subject: [PATCH] Refine native library upgrade roadmap --- docs/roadmap/library-upgrades.md | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/docs/roadmap/library-upgrades.md b/docs/roadmap/library-upgrades.md index 52b9029..53fd093 100644 --- a/docs/roadmap/library-upgrades.md +++ b/docs/roadmap/library-upgrades.md @@ -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. Because PromptKit retains extension fields, make retired acquisition selectors 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; 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 @@ -296,13 +297,15 @@ Keep `config`'s `app` scope as the complete application result using `FromConfigKit`. Expose the `promptkit` scope with `FromConfigKitSubtree` at `configkit.Keys("promptkit")`, using the same loader, without requiring an engine. Continue to use native ckprompt resource/preparation commands for -engine-derived information. Native `--set` may then address embedded PromptKit -settings wherever the scope's existing override capability permits it; do not -reintroduce application-specific inspection selector flags. +engine-derived information. Enable native override capabilities in both scopes, +passing `--set` and comparison overrides through the common loader with native +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 -the former two loads. Preserve native typed errors, findings, source catalogs, -and left/right comparison context. Emit diagnostics once for their real load, +Completion requires removing evidence transport/decorators, acquisition state, +settings conversions, source-selection helpers, and tests that exist solely to +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 the thin integration needed to carry the distinct native bootstrap report and 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 selection rather than reproducing it in Scriptorium's CLI reference. -Keep the existing HTTP response DTOs and opt-in terminal-report projection for -this upgrade, adapting their integration only as needed for the new library -versions. New reasoning, cost, and cache-ratio evidence remains available through +Preserve the existing HTTP wire contract, including its opt-in terminal report, +while allowing internal simplification. This upgrade does not commit Scriptorium +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). Preserve existing result-usage versus presence-aware terminal-usage semantics, 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. | 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 feature. Adapt maintained application examples to the new configuration and bootstrap path without building a separate upstream feature showcase.