Plan the native library upgrade sprint
This commit is contained in:
@@ -202,300 +202,181 @@ without wrapping `App.Execute`, installing a second accounting observer, or
|
||||
adding a duplicate application flag. Preserve invocation context in PromptKit
|
||||
calls. No selected-main-format accessor is needed for current output delivery.
|
||||
|
||||
## Recommended Target State And Required Changes
|
||||
## Target State
|
||||
|
||||
### One Application-Owned Configuration Load
|
||||
The [implementation plan](implementation.md) owns staged tasks, concrete file
|
||||
changes, and verification steps. The following describes the selected end state
|
||||
and application choices, not an implementation sequence.
|
||||
|
||||
Replace the acquisition-only `PromptKitDocument` with public
|
||||
`promptkit.Settings` at `Document.PromptKit`. Compose the existing application
|
||||
definition with `promptkit.Configure`. Prepare the existing selected file/search
|
||||
source through ConfigKit's configured secrets helper, as described below, then
|
||||
load through `configkit.LoadLayered` using the returned captured source as main,
|
||||
imports and overlay selection, existing override records, and
|
||||
`promptkit.BundledOpenRouterUnderlay()` as the lowest-priority underlay.
|
||||
Defaults-only startup remains supported.
|
||||
### Shared Configuration And Engine Handoff
|
||||
|
||||
Pass the successful whole result to `promptkit.NewFromConfig`, supplying the
|
||||
existing optional transient-retry setting through `RuntimeConfig` and the HTTP
|
||||
artifact reader through its existing public option. Engine construction remains
|
||||
the point where message-file content is captured; configuration inspection need
|
||||
not construct an engine or read those messages.
|
||||
Scriptorium embeds public `promptkit.Settings` at `Document.PromptKit`, with
|
||||
`promptkit.Configure` supplying native rules alongside application defaults,
|
||||
normalization, validation, and sensitivity declarations. The application retains
|
||||
its retry setting and server settings; it no longer has a separate framework
|
||||
acquisition/settings model.
|
||||
|
||||
Retire `promptkit.configuration`, `promptkit.schema_dir`, the schema-directory
|
||||
default, and their cwd-path normalization and runtime fields. External definition
|
||||
files remain supported through native ConfigKit imports, with declared
|
||||
destinations/placement for wrapperless fragments. This removes a special
|
||||
Scriptorium source-selection mechanism; it does not require putting every
|
||||
definition inline or flattening collection checkouts.
|
||||
Each acquisition prepares its selected host file/search source with ConfigKit's
|
||||
configured secrets helper and performs one typed layered load. The main uses
|
||||
the captured source, native imports/overlay/override selections, and the bundled
|
||||
OpenRouter underlay. PromptKit receives the whole successful result through
|
||||
`NewFromConfig`, without reloading, projecting/redecoding, or redefining
|
||||
effective configuration.
|
||||
|
||||
Preserve source-relative context for imported message/schema references. Do not
|
||||
rebase native resource references against cwd, widen filesystem roots, or copy
|
||||
imports into generated temporary files. Preserve server-setting normalization,
|
||||
HTTP limits, artifact-reader policy, namespace behavior, and shared engine pools.
|
||||
The acquired result is authoritative. Genuine application choices remain local:
|
||||
discovery preset selection/order, server settings and validation, request
|
||||
mapping, process behavior, and HTTP artifact policy. Source-relative message
|
||||
and schema resources keep native contexts. A server constructs one shared
|
||||
engine before accepting requests; namespace views share its operational state.
|
||||
|
||||
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. 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
|
||||
credential field and is not automatically protected: preserve Scriptorium's
|
||||
existing raw-key boundary through application validation using public settings.
|
||||
Do not redact `extra_params` as a whole or invent a new version requirement.
|
||||
The cutover removes `promptkit.configuration`, `promptkit.schema_dir`, the
|
||||
schema-directory default, and the former two-load conversions, selectors,
|
||||
evidence state/decorators, sentinels, and obsolete-only tests. Narrow validation
|
||||
diagnoses the two retired fields instead of silently using them or building a
|
||||
general legacy/migration subsystem. There is no legacy loader or format alias.
|
||||
|
||||
Valid native settings and root/collection definition extension points remain
|
||||
usable. Existing raw-key restrictions are enforced through public application
|
||||
validation and safe native diagnostic rendering, including backend/profile
|
||||
`api_key` extension fields. Native sensitivity remains intact; ordinary
|
||||
`extra_params` data is not redacted as a whole. No new resource-version policy
|
||||
or general extension-field ban is selected.
|
||||
|
||||
### Native Configured Secrets Startup
|
||||
|
||||
Use `configkit.LoadSecretsIntoEnvironmentFromConfig` before each reached
|
||||
application configuration load: execution, server startup, native configuration
|
||||
inspection/comparison, and PromptKit commands all use the common acquisition
|
||||
path. Pass its successful returned source directly to the layered main input;
|
||||
this retains the selected main's captured contents and filesystem context
|
||||
without rediscovery, rereading, or a second bootstrap during the load. Help,
|
||||
version, static completion, and scope discovery remain acquisition-free.
|
||||
Configured secrets bootstrap is part of the common acquisition path used by
|
||||
execution, server startup, configuration inspection/comparison, and PromptKit
|
||||
commands. ConfigKit owns its main-file controls, directory processing,
|
||||
filesystem rules, overwrite behavior, reports, and failure semantics under the
|
||||
[upstream startup contract][secrets-contract] and [public helper][secrets-api].
|
||||
No additional application bootstrap opt-in, secret-file parser, or raw-key
|
||||
configuration field is selected.
|
||||
|
||||
The main file's root `config.secrets_dir` and `config.secrets_overwrite` are
|
||||
the operator controls. Use native defaults rather than an application overwrite
|
||||
override: existing variables, including empty ones, win unless the main file
|
||||
selects overwrite. A main without a secrets directory remains valid, and
|
||||
optional search exhaustion still permits defaults-only loading. Let ConfigKit
|
||||
own directory resolution, containment, eligible entries, whitespace, limits,
|
||||
and which source may declare these controls. Bootstrap all native eligible
|
||||
entries, including environment names not referenced by PromptKit. No extra CLI
|
||||
flag, custom secret-file parser, or new raw-key configuration field is needed.
|
||||
Native bootstrap reports are available on success and failure and forwarded
|
||||
safely to CommandKit diagnostics, separately from the configuration result and
|
||||
main output. Thin presentation integration remains justified; it does not
|
||||
recreate configuration evidence reconciliation or invent sources for
|
||||
environment writes. Failed acquisition remains a failure.
|
||||
|
||||
Retain the returned `SecretsReport` on success and failure and expose its native
|
||||
safe rendering through CommandKit's diagnostics, separately from the later
|
||||
configuration report and main stdout. Preserve visibility of blocked/failed
|
||||
entries and typed `LoadError` / `SecretsError` diagnostics without logging
|
||||
credential contents or inventing source/provenance records for environment
|
||||
writes. Thin forwarding of this explicit report is application integration,
|
||||
not a replacement configuration-inspection workflow.
|
||||
The process environment retains native effects, including partial writes and
|
||||
effects across sequential comparison sides. Source/option independence does
|
||||
not imply environment isolation, rollback, or secret-file-content comparison.
|
||||
Bootstrap precedes server concurrency and is not performed per HTTP request.
|
||||
Help, version, static completion, and scope discovery remain acquisition-free.
|
||||
PromptKit's own credential lookup lifecycle is unchanged.
|
||||
|
||||
Bootstrap failure stops that acquisition; its returned source is unusable.
|
||||
Already applied environment writes remain, including when a later load fails.
|
||||
Each reached comparison side prepares its own selected source in native load
|
||||
order, but both use the process environment as it exists at that point. In
|
||||
preservation mode, a variable supplied while preparing an earlier side can win
|
||||
over a later side's file; overwrite mode can replace it. Link the native startup
|
||||
contract for these effects rather than promising environment-isolated comparisons
|
||||
or adding snapshot/restore, rollback, or subprocess machinery. Configuration diffs
|
||||
still compare native frozen configuration values, not secret-file contents or
|
||||
provider credentials resolved later.
|
||||
### Native Configuration Views And Overrides
|
||||
|
||||
For `serve`, complete startup bootstrap and loading before accepting concurrent
|
||||
requests. Keep bootstrap out of HTTP request handling and retain the shared
|
||||
engine lifecycle. Native bootstrap precedes concurrent application work; adopting
|
||||
it creates no hot-reload or environment-isolation guarantee. The
|
||||
[upstream startup contract][secrets-contract] and [public helper][secrets-api]
|
||||
own these semantics.
|
||||
The native `app` scope reports the complete application result through
|
||||
`FromConfigKit`; `promptkit` focuses the same kind of result at `/promptkit`
|
||||
through `FromConfigKitSubtree`. Neither config scope needs an engine.
|
||||
Both enable native override capabilities, including independent comparison
|
||||
overrides. Paths and conflict semantics remain native, not scope-rebased.
|
||||
|
||||
### Native Views Of The Same Result
|
||||
Application inspection now includes PromptKit settings and whole-document
|
||||
validation. Focused inspection retains native whole-load evidence and explicit
|
||||
queries outside the focus; it is not an isolation boundary. Each reached
|
||||
comparison side uses its own selections. Multiple native acquisitions within
|
||||
an invocation do not create an application cache or a cross-acquisition snapshot
|
||||
guarantee.
|
||||
|
||||
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. 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.
|
||||
Native prompt/resource/requirements/preparation/smoke commands remain installed.
|
||||
Their engine acquisitions use the same common load and result handoff, with
|
||||
original typed errors and native diagnostic evidence rather than masked errors
|
||||
and reconstructed explanation trees.
|
||||
|
||||
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
|
||||
reconciliation or merging bootstrap entries into configuration provenance.
|
||||
### Definitions, Resources, And Native CLI Reporting
|
||||
|
||||
The intentional operator change is that `app` inspection includes PromptKit
|
||||
settings and validates the whole document. Invalid PromptKit settings can fail
|
||||
an application inspection. The focused scope retains whole-load diagnostics and
|
||||
explicit native queries, including outside `/promptkit`; ancestor differences
|
||||
can survive focused comparison. Neither scope promises isolation. Each reached
|
||||
comparison side still loads independently from its own selection, without
|
||||
sharing mutable results or inheriting the other side's options. That source and
|
||||
option independence does not isolate process-global environment effects from
|
||||
native secrets bootstrap.
|
||||
Complete definitions use PromptKit's `/promptkit` format; wrapperless fragments
|
||||
and collection resources use native mounts and imports. Existing IDs/references
|
||||
keep their upstream meaning. All valid native schema forms and collection roots
|
||||
work through Scriptorium, without an implicit cwd schema root or local fallback.
|
||||
|
||||
### Definition, Example, And Repair Migration
|
||||
Maintained examples retain the application quickstart and representative
|
||||
collection discovery: an application file, both glob-discovered entry spellings,
|
||||
self-declared namespaces, relative imports, and source-relative message/schema
|
||||
resources. They demonstrate the application integration rather than duplicate
|
||||
standalone library tutorials.
|
||||
|
||||
Migrate maintained complete framework documents to `/promptkit`; adapt import
|
||||
destinations for wrapperless fragments and collection entrypoints. Audit
|
||||
`examples/`, test fixtures, preview scripts, overlays, and consumer guidance
|
||||
together. Existing IDs, references, inheritance, and namespace selections keep
|
||||
their upstream meanings; mounting does not rewrite references.
|
||||
Repair defaults, optional budget presence, provider conventions, explicit
|
||||
zero-cost declarations, prepared message hashes, and native inspection/report
|
||||
fields follow the selected PromptKit release. Existing explicit zero budgets
|
||||
remain explicit; no application override silently restores an older default.
|
||||
Native `--show-tokens` is supplied by ckprompt's ordinary declaration
|
||||
installation, with invocation context propagated to PromptKit. Scriptorium has
|
||||
no separate accounting group, usage serializer, pricing estimator, or duplicate
|
||||
usage flag. Native behavior is documented upstream.
|
||||
|
||||
Replace the old application schema base with explicit definition-owned roots or
|
||||
source-relative files; prefer `schema_file` for independently portable prompts,
|
||||
inline schemas when appropriate, and `schema_path` for deliberately shared roots.
|
||||
All three modes and collection-specific roots must work through Scriptorium.
|
||||
Do not install an implicit cwd root or local fallback search. Update any Go
|
||||
request/fixture using the changed output-contract input type and use keyed
|
||||
upstream struct literals where expanded structs affect compilation.
|
||||
Application delivery choices remain: artifact-only text stdout, native
|
||||
structured results, independently formatted optional report files, and the
|
||||
whole-run timeout passed to PromptKit. Library rendering/execution/finalization
|
||||
remains native. Existing application domain and operational outcomes stay
|
||||
distinct; the selected-format accessor is not a prerequisite.
|
||||
|
||||
Adopt upstream repair defaults rather than silently injecting zero, retaining
|
||||
explicit zero budgets in existing maintained definitions. Direct consumers to
|
||||
the upstream migration/output contract for defaults, request replacements, and
|
||||
their latency/cost implications rather than maintaining a local explanation.
|
||||
Existing CLI domain outcome versus operational failure and HTTP
|
||||
completed-validation semantics remain distinct application contracts.
|
||||
### HTTP Boundary And Other Local Responsibilities
|
||||
|
||||
Migrate application-defined OpenRouter backends to `provider: openrouter` when
|
||||
those conventions are intended; do not infer that choice from endpoints.
|
||||
Allow native `zero_cost` and vLLM declarations without app-side defaults or
|
||||
provider allowlists. Update inspection paths to include `/promptkit` and allow
|
||||
the native prepared message hash/schema evidence through unchanged.
|
||||
The current HTTP wire contract, including its opt-in terminal report, remains
|
||||
unchanged. Native reasoning/cost/cache facts are available through CLI reports;
|
||||
additional HTTP reporting is [deferred](#deferred-work). Internal HTTP/report
|
||||
simplification is allowed without committing to the present collector or
|
||||
projection implementation permanently.
|
||||
|
||||
### Native CLI Usage And HTTP Scope
|
||||
HTTP DTOs, transport limits, status mapping, restricted artifact reading,
|
||||
request-scoped report projection, and shared engine/capacity behavior implement
|
||||
Scriptorium's service boundary; CommandKit is not an HTTP transport. Application
|
||||
discovery selection, domain callbacks, process lifecycle, file effects, and
|
||||
safe bootstrap-report forwarding are integration responsibilities, not parallel
|
||||
implementations of native library workflows. Shared configuration/bootstrap has
|
||||
no identified application-specific requirement that warrants a legacy path.
|
||||
|
||||
Adopt ckprompt's `--show-tokens` with its native defaults, ordering, quiet and
|
||||
help behavior. Preserve artifact-only CLI text output, native structured results,
|
||||
and the independently formatted separate report; structured results acquire
|
||||
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.
|
||||
### Documentation Ownership And Migration
|
||||
|
||||
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
|
||||
capacity behavior. This deferral concerns additional reporting, not HTTP support
|
||||
for the upgraded configuration and valid PromptKit definitions.
|
||||
The [adopted documentation policy](../policy/documentation.md#upstream-dependencies)
|
||||
already contains upstream v1.13's ownership rule. Maintained documentation
|
||||
identifies the adopted libraries and links canonical documentation applicable to
|
||||
the imported versions: [ConfigKit][configkit-contract], [PromptKit formats][promptkit-formats],
|
||||
[consumer][promptkit-consumer] and [migration][promptkit-migration] guidance,
|
||||
and [CommandKit CLI][commandkit-cli] and [integration][commandkit-consumer]
|
||||
guidance. It does not maintain another library manual.
|
||||
|
||||
### Justified Application-Owned Boundaries
|
||||
Local references cover Scriptorium's installed interfaces, selected configuration
|
||||
and source integration, application settings/bindings, file/process effects,
|
||||
HTTP wire contract, deployment choices, and migration from its former interfaces.
|
||||
Upstream rules, feature tables, and tutorials are linked rather than reproduced.
|
||||
|
||||
The native-workflow goal removes duplicate source loading, configuration
|
||||
composition, inspection, provider/schema handling, and CLI accounting. The
|
||||
remaining local responsibilities have concrete application purposes:
|
||||
|
||||
- HTTP DTOs, transport limits, restricted artifact reading, and request-scoped
|
||||
report projection implement Scriptorium's service boundary. CommandKit's
|
||||
native CLI reporting is not an HTTP transport. Reuse native PromptKit facts
|
||||
within that boundary, without preserving a second accounting algorithm.
|
||||
- Exact artifact stdout, independent report-file delivery, and the whole-run
|
||||
timeout map already selected application execution/delivery choices onto
|
||||
native public APIs; upstream still owns rendering, timeout enforcement,
|
||||
preparation, and execution semantics.
|
||||
- Application discovery selection, server settings, domain callbacks, process
|
||||
lifecycle, and safe bootstrap-report forwarding are consumer integration
|
||||
responsibilities, consistent with ADR 0005. ConfigKit and PromptKit continue
|
||||
to determine how selected inputs and requests are processed.
|
||||
|
||||
These are scoped reasons for local integration, not a general exception allowing
|
||||
parallel versions of native workflows. Shared loading and native bootstrap have
|
||||
no identified Scriptorium-specific requirement that warrants a legacy path.
|
||||
|
||||
### Documentation: Upstream Contracts And Local Integration
|
||||
|
||||
The [adopted documentation policy](../policy/documentation.md#upstream-dependencies),
|
||||
based on upstream v1.13, now captures canonical upstream ownership. The remaining
|
||||
documentation cleanup applies that rule to adopted PromptKit, ConfigKit, and
|
||||
CommandKit features. Scriptorium documents that it imports and adopts each library
|
||||
and links the relevant upstream owner. Remove local
|
||||
explanations, reference tables, tutorials, and format/default catalogs that
|
||||
merely restate those libraries. Upstream behavior discussed in this roadmap
|
||||
identifies adoption work; it is not a parallel consumer reference to maintain.
|
||||
|
||||
Use the [ConfigKit configuration contract][configkit-contract],
|
||||
[PromptKit formats][promptkit-formats], [PromptKit consumer guide][promptkit-consumer]
|
||||
and [migration guide][promptkit-migration], and [CommandKit CLI][commandkit-cli]
|
||||
and [integration guide][commandkit-consumer] as the canonical destinations.
|
||||
Link to relevant sections at the adopted release's source revision and update
|
||||
affected links with dependency upgrades. No local mirror or new documentation
|
||||
registry is needed.
|
||||
|
||||
Local documentation retains application facts: which capabilities are installed,
|
||||
selected sources/presets/underlays and scope names, Scriptorium-owned settings
|
||||
and flags, input/result mappings, file effects, process/server lifecycle, HTTP
|
||||
wire contracts and deployment policy, and migration from Scriptorium-specific
|
||||
interfaces. Describe what Scriptorium selects or adds; link upstream for how
|
||||
the library processes it. For example, note that Scriptorium invokes configured
|
||||
secrets bootstrap on its common acquisition path and link its upstream contract,
|
||||
rather than writing another explanation of directory rules, overwrite policy,
|
||||
reports, or partial writes.
|
||||
|
||||
The documentation pass must cover these current duplication points:
|
||||
|
||||
| Affected files | Required change |
|
||||
| Documentation group | Target ownership |
|
||||
| --- | --- |
|
||||
| `README.md`, `docs/development.md` | Identify the three adopted libraries and provide canonical upstream navigation. Keep the application quickstart and task-oriented reading guide; direct native-feature questions upstream. |
|
||||
| `docs/cli.md` | Replace repeated native command-family, reusable-flag, parsing, formatting, inspection, requirements, smoke-test, and finalization explanations with upstream links. Retain Scriptorium's installed entrypoints, application bindings/aliases, application-owned flags, artifact/file-delivery choices, and application-specific outcome mappings. |
|
||||
| `docs/config.md` | Retain application schema/settings, selected discovery presets and order, selected underlays/import enablement, embedded PromptKit location, and handoff integration. Replace native preset expansions, filename catalogs, YAML grammar, composition/precedence, inheritance, overlay/override rules, redaction, and bootstrap explanations with their upstream owners. |
|
||||
| `docs/operations.md` | Keep Scriptorium deployment, server startup/restart, file/stream retention, HTTP limits, and recovery responsibilities. Replace native inspection/preparation/smoke tutorials and credential/retry/repair/bootstrap mechanics with upstream links. |
|
||||
| `docs/consumers/upgrading-cli.md`, `docs/consumers/upgrading-promptkit.md`, `docs/consumers/migrating-to-promptkit.md` | Keep the necessary Scriptorium interface/configuration migration and historical package-split boundary. Link upstream for library API, definition-format, schema, and default migrations instead of maintaining duplicate walkthroughs and feature lists. Remove or condense superseded intermediary guidance and repair incoming links. |
|
||||
| `docs/consumers/api.md`, `docs/integrations/subprocess.md`, `docs/api.md` | Preserve application interface selection, process/stream/file responsibilities, and the complete Scriptorium-owned HTTP wire contract. Refer native report schemas and framework semantics upstream instead of reproducing them. HTTP documentation cleanup does not add reporting fields. |
|
||||
| `docs/internal/overview.md`, `docs/internal/adapters.md`, `docs/internal/sources.md` | Describe local components, wiring, handoff, and adapter effects. Remove repeated library lifecycle/algorithm explanations and link to the native contracts. |
|
||||
| `docs/policy/documentation.md`, `docs/development.md` | The policy clarification is complete through adoption of upstream documentation policy v1.13. Apply its Upstream Dependencies rule during cleanup and align the contributor reading guide; no additional local policy rewrite or policy-suite refresh is required. |
|
||||
| `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. |
|
||||
| `README.md`, `docs/development.md` | Application orientation, minimal quickstart, selective reading, and native upstream navigation. |
|
||||
| `docs/cli.md`, `docs/config.md` | Application entrypoints/bindings/settings/effects and selected integration, with native contracts delegated upstream. |
|
||||
| `docs/operations.md`, `docs/api.md` | Local deployment/process/retention and unchanged complete HTTP contract, without a duplicate framework manual. |
|
||||
| `docs/consumers/`, `docs/integrations/subprocess.md` | Executable selection, stream/file responsibilities, application-specific migration, and the historical package-split boundary. |
|
||||
| `docs/internal/`, `docs/policy/architecture.md` | Landed local structure/constraints and public upstream handoff, without obsolete two-load mechanics or copied library algorithms. |
|
||||
|
||||
Retain the minimal Scriptorium quickstart and maintained examples that exercise
|
||||
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.
|
||||
Application migration is a hard cutover with upstream format/default migration
|
||||
guidance linked at its owner. Superseded local intermediary tutorials do not
|
||||
remain a competing current reference. Accepted ADR decisions and published
|
||||
release records remain historical. Documentation policy v1.13 is already adopted;
|
||||
no additional local policy rewrite or general policy-suite refresh is needed.
|
||||
|
||||
Migration guidance identifies the Scriptorium-specific cutover and points to
|
||||
upstream migration/release guidance for native format and behavior changes,
|
||||
including repair defaults and smoke output. It does not create a compatibility
|
||||
layer or a second library manual. Published release records remain historical;
|
||||
this consolidation applies to maintained current documentation and new notes.
|
||||
Licensing and attribution materials retain their separate adopted requirements.
|
||||
### Attribution And Completion Evidence
|
||||
|
||||
Repair links and anchors affected by consolidation or retirement, and check
|
||||
that the linked released upstream sections cover the delegated topics. Review
|
||||
the final documentation for duplicated native explanations, not just stale
|
||||
version numbers. This adds ordinary documentation work to the upgrade, not a
|
||||
new publication-time checker or gate. Mark the embedded-configuration direction
|
||||
in [future work](future.md) as delivered only when implemented; other deferred
|
||||
directions remain separate.
|
||||
The selected dependencies' exact versions and source/notice links are maintained
|
||||
in the existing attribution document under the adopted OSS policy, using the
|
||||
reviewed unchanged grants/texts. Actual runtime dependencies are distinguished
|
||||
from graph-only maintainer tools.
|
||||
|
||||
### Licensing And Verification
|
||||
Completion evidence covers shared-load/bootstrap handoff and failures, native
|
||||
views/overrides/provenance/redaction, resource contexts and definition support,
|
||||
native CLI usage and retained delivery/outcomes, and the existing HTTP
|
||||
wire/reader/concurrency boundaries. Tests remain proportionate, offline, and
|
||||
credential-free, without duplicating upstream grammar/accounting matrices.
|
||||
|
||||
The five selected components' COPYRIGHT and LICENSE texts are unchanged from
|
||||
their adopted baselines and remain LGPL-3.0-or-later. During implementation,
|
||||
update their entries in `docs/oss/attribution.md` to the exact released commits
|
||||
above and recheck the resolved runtime dependency graph. Reuse applicable local
|
||||
license texts; graph-only maintainer tools do not become runtime dependencies
|
||||
merely because they occur in upstream module metadata. This review adds no
|
||||
copied third-party implementation or new licensing requirement.
|
||||
|
||||
Validate the assembled integration, not upstream internals. Focus coverage on
|
||||
shared-load imports/overlays and independent comparisons, native provenance and
|
||||
redaction, all schema selection forms and collection roots, omitted versus zero
|
||||
repair budgets, provider declarations, and native CLI accounting on success,
|
||||
failure, cancellation, retries, and repairs. Protect stream separation, quiet and
|
||||
help-only behavior, independent report delivery, HTTP limits/reader containment,
|
||||
existing HTTP report shapes, and shared backend capacity using representative
|
||||
real-library integration tests with controlled providers. Reuse existing coverage
|
||||
rather than duplicate upstream format/accounting matrices.
|
||||
|
||||
Protect bootstrap integration with representative native-helper tests: selected
|
||||
main capture, absent-directory/defaults-only behavior, environment preservation
|
||||
and explicit overwrite, bootstrap reports on failure, and comparison-side
|
||||
effects. Control process environment in those tests; avoid parallel tests that
|
||||
mutate the same environment. Test that successful bootstrap reaches PromptKit's
|
||||
ordinary credential lookup without leaking values into output. Do not retest
|
||||
the upstream directory-entry and parsing matrix locally.
|
||||
|
||||
Run normal repository code validation and affected maintained examples during
|
||||
implementation; default tests remain offline and credential-free. This review
|
||||
did not upgrade modules or compile/test the proposed combination. A green build
|
||||
against the old baseline would not establish upgrade compatibility. No new
|
||||
release gates, live provider checks, tags, or publication are part of this work.
|
||||
The proposed public configuration changes warrant a new Scriptorium minor
|
||||
release under the existing pre-v1 policy; choose its number during release
|
||||
preparation, not in this roadmap.
|
||||
Current documentation describes the delivered integration and delegates native
|
||||
semantics upstream. The embedded-configuration future direction is considered
|
||||
delivered only when implementation lands; other deferred work remains tracked.
|
||||
No new release gates, live provider checks, publication workflow, or stronger
|
||||
application guarantees are introduced. A later breaking pre-v1 release requires
|
||||
a minor version under existing policy, selected during release preparation.
|
||||
|
||||
## Deferred Work
|
||||
|
||||
|
||||
Reference in New Issue
Block a user