Plan canonical upstream documentation cleanup
This commit is contained in:
@@ -21,6 +21,9 @@ The shared-load configuration cutover and native secrets bootstrap are the
|
|||||||
selected direction. They change the application format, startup behavior, and
|
selected direction. They change the application format, startup behavior, and
|
||||||
inspection boundary, not just dependencies. Additional HTTP reporting is deferred;
|
inspection boundary, not just dependencies. Additional HTTP reporting is deferred;
|
||||||
this upgrade retains the current HTTP response and execution-report shapes.
|
this upgrade retains the current HTTP response and execution-report shapes.
|
||||||
|
Documentation adopts upstream ownership too: acknowledge the libraries and link
|
||||||
|
their canonical documentation; retain local reference material for Scriptorium's
|
||||||
|
own interfaces and integration choices.
|
||||||
|
|
||||||
## Reviewed Releases And Sources
|
## Reviewed Releases And Sources
|
||||||
|
|
||||||
@@ -274,11 +277,11 @@ Already applied environment writes remain, including when a later load fails.
|
|||||||
Each reached comparison side prepares its own selected source in native load
|
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
|
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
|
preservation mode, a variable supplied while preparing an earlier side can win
|
||||||
over a later side's file; overwrite mode can replace it. Document these native
|
over a later side's file; overwrite mode can replace it. Link the native startup
|
||||||
effects rather than promising environment-isolated comparisons or adding
|
contract for these effects rather than promising environment-isolated comparisons
|
||||||
snapshot/restore, rollback, or subprocess machinery. Configuration diffs still
|
or adding snapshot/restore, rollback, or subprocess machinery. Configuration diffs
|
||||||
compare native frozen configuration values, not secret-file contents or provider
|
still compare native frozen configuration values, not secret-file contents or
|
||||||
credentials resolved later.
|
provider credentials resolved later.
|
||||||
|
|
||||||
For `serve`, complete startup bootstrap and loading before accepting concurrent
|
For `serve`, complete startup bootstrap and loading before accepting concurrent
|
||||||
requests. Keep bootstrap out of HTTP request handling and retain the shared
|
requests. Keep bootstrap out of HTTP request handling and retain the shared
|
||||||
@@ -331,12 +334,12 @@ 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
|
request/fixture using the changed output-contract input type and use keyed
|
||||||
upstream struct literals where expanded structs affect compilation.
|
upstream struct literals where expanded structs affect compilation.
|
||||||
|
|
||||||
Adopt upstream repair defaults rather than silently injecting zero. Explicit
|
Adopt upstream repair defaults rather than silently injecting zero, retaining
|
||||||
`repair_attempts: 0` in existing maintained definitions continues to mean no
|
explicit zero budgets in existing maintained definitions. Direct consumers to
|
||||||
repair. Explain that omitted/null enabled budgets can add a generation, latency,
|
the upstream migration/output contract for defaults, request replacements, and
|
||||||
and cost and still return invalid output. Request replacements, where already
|
their latency/cost implications rather than maintaining a local explanation.
|
||||||
exposed upstream, resolve their own defaults. Existing CLI domain outcome versus
|
Existing CLI domain outcome versus operational failure and HTTP
|
||||||
operational failure and HTTP completed-validation semantics remain distinct.
|
completed-validation semantics remain distinct application contracts.
|
||||||
|
|
||||||
Migrate application-defined OpenRouter backends to `provider: openrouter` when
|
Migrate application-defined OpenRouter backends to `provider: openrouter` when
|
||||||
those conventions are intended; do not infer that choice from endpoints.
|
those conventions are intended; do not infer that choice from endpoints.
|
||||||
@@ -349,8 +352,9 @@ the native prepared message hash/schema evidence through unchanged.
|
|||||||
Adopt ckprompt's `--show-tokens` with its native defaults, ordering, quiet and
|
Adopt ckprompt's `--show-tokens` with its native defaults, ordering, quiet and
|
||||||
help behavior. Preserve artifact-only CLI text output, native structured results,
|
help behavior. Preserve artifact-only CLI text output, native structured results,
|
||||||
and the independently formatted separate report; structured results acquire
|
and the independently formatted separate report; structured results acquire
|
||||||
native reasoning/cost fields without a Scriptorium report wrapper. Document the
|
native reasoning/cost fields without a Scriptorium report wrapper. Link the
|
||||||
changed automatic smoke representation and explicit structured alternatives.
|
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
|
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
|
this upgrade, adapting their integration only as needed for the new library
|
||||||
@@ -384,19 +388,69 @@ These are scoped reasons for local integration, not a general exception allowing
|
|||||||
parallel versions of native workflows. Shared loading and native bootstrap have
|
parallel versions of native workflows. Shared loading and native bootstrap have
|
||||||
no identified Scriptorium-specific requirement that warrants a legacy path.
|
no identified Scriptorium-specific requirement that warrants a legacy path.
|
||||||
|
|
||||||
### Documentation, Licensing, And Verification
|
### Documentation: Upstream Contracts And Local Integration
|
||||||
|
|
||||||
Update the canonical configuration, CLI, operations,
|
The user selected canonical upstream documentation for adopted PromptKit,
|
||||||
subprocess/migration, contributor, and internal documents with the implemented
|
ConfigKit, and CommandKit features. Scriptorium documents that it imports and
|
||||||
changes. Review HTTP compatibility against its existing contract without adding
|
adopts each library and links the relevant upstream owner. Remove local
|
||||||
report fields in this work. Update the architecture policy's current integration
|
explanations, reference tables, tutorials, and format/default catalogs that
|
||||||
description and versioned upstream links; accepted ADR decision text remains
|
merely restate those libraries. Upstream behavior discussed in this roadmap
|
||||||
unchanged. Mark the embedded-configuration direction in [future work](future.md)
|
identifies adoption work; it is not a parallel consumer reference to maintain.
|
||||||
as delivered only when its implementation lands. Other deferred directions
|
|
||||||
remain separate.
|
Use the [ConfigKit configuration contract][configkit-contract],
|
||||||
Describe configured bootstrap, native overwrite behavior, partial environment
|
[PromptKit formats][promptkit-formats], [PromptKit consumer guide][promptkit-consumer]
|
||||||
effects, and comparison behavior in configuration/operations guidance. Include
|
and [migration guide][promptkit-migration], and [CommandKit CLI][commandkit-cli]
|
||||||
maintained secret-free provisioning examples when implementation lands.
|
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 |
|
||||||
|
| --- | --- |
|
||||||
|
| `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` | Clarify the existing ownership rules and reading guide: local CLI/configuration/integration owners cover Scriptorium-specific behavior; adopted library features have canonical upstream owners. This is a focused documentation-ownership clarification, not a policy-suite refresh. |
|
||||||
|
| `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
|
||||||
|
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.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
### Licensing And Verification
|
||||||
|
|
||||||
The five selected components' COPYRIGHT and LICENSE texts are unchanged from
|
The five selected components' COPYRIGHT and LICENSE texts are unchanged from
|
||||||
their adopted baselines and remain LGPL-3.0-or-later. During implementation,
|
their adopted baselines and remain LGPL-3.0-or-later. During implementation,
|
||||||
@@ -457,3 +511,9 @@ requirement or a blocker for native CLI reporting.
|
|||||||
[cp120]: https://forge.maximumdirect.net/base-layer/commandkit/src/commit/2422ccf02d6b55756b07f21e66a581202a09fc3f/integrations/ckprompt/docs/releases/v0.12.0.md
|
[cp120]: https://forge.maximumdirect.net/base-layer/commandkit/src/commit/2422ccf02d6b55756b07f21e66a581202a09fc3f/integrations/ckprompt/docs/releases/v0.12.0.md
|
||||||
[secrets-contract]: https://forge.maximumdirect.net/base-layer/configkit/src/commit/4a7ae664a6287d71cba20f59c7c5b37b6f05b0a3/docs/config.md#explicit-secrets-directory-bootstrap
|
[secrets-contract]: https://forge.maximumdirect.net/base-layer/configkit/src/commit/4a7ae664a6287d71cba20f59c7c5b37b6f05b0a3/docs/config.md#explicit-secrets-directory-bootstrap
|
||||||
[secrets-api]: https://forge.maximumdirect.net/base-layer/configkit/src/commit/4a7ae664a6287d71cba20f59c7c5b37b6f05b0a3/secrets.go
|
[secrets-api]: https://forge.maximumdirect.net/base-layer/configkit/src/commit/4a7ae664a6287d71cba20f59c7c5b37b6f05b0a3/secrets.go
|
||||||
|
[configkit-contract]: https://forge.maximumdirect.net/base-layer/configkit/src/commit/4a7ae664a6287d71cba20f59c7c5b37b6f05b0a3/docs/config.md
|
||||||
|
[promptkit-formats]: https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/formats.md
|
||||||
|
[promptkit-consumer]: https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/consumers/pkg-promptkit.md
|
||||||
|
[promptkit-migration]: https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/consumers/configuration-migration.md
|
||||||
|
[commandkit-cli]: https://forge.maximumdirect.net/base-layer/commandkit/src/commit/0b53a63648c536afe50c46f948159116f776adae/docs/cli.md
|
||||||
|
[commandkit-consumer]: https://forge.maximumdirect.net/base-layer/commandkit/src/commit/2422ccf02d6b55756b07f21e66a581202a09fc3f/docs/consumers/guide.md
|
||||||
|
|||||||
Reference in New Issue
Block a user