Prepare v0.16.0 release notes
This commit is contained in:
165
docs/releases/v0.16.0.md
Normal file
165
docs/releases/v0.16.0.md
Normal file
@@ -0,0 +1,165 @@
|
|||||||
|
# Scriptorium v0.16.0
|
||||||
|
|
||||||
|
This pre-1.0 minor release adopts CommandKit's native CLI, loads application and
|
||||||
|
PromptKit settings through one ConfigKit configuration, and supports namespaced
|
||||||
|
prompt collections. It also adopts ReleaseKit and fixes HTTP input precision,
|
||||||
|
file identity, and cancellation defects.
|
||||||
|
|
||||||
|
**Upgrading from v0.15.x requires changes to CLI invocations, configuration,
|
||||||
|
prompt/profile definitions, and HTTP consumers.** There is no legacy CLI or
|
||||||
|
configuration conversion layer. Follow the [CLI migration guide][migration]
|
||||||
|
and [PromptKit migration guidance][promptkit-migration] before upgrading jobs
|
||||||
|
or deployments.
|
||||||
|
|
||||||
|
## Native CLI and subprocess migration
|
||||||
|
|
||||||
|
CommandKit now supplies configuration inspection and comparison, PromptKit
|
||||||
|
inventory and inspection, requirements discovery, prepared-request preview,
|
||||||
|
explicit provider smoke tests, and Bash/Zsh/Fish completion. Smoke tests can
|
||||||
|
contact providers and incur cost; they are not startup checks.
|
||||||
|
|
||||||
|
| Previous interface | Replacement |
|
||||||
|
| --- | --- |
|
||||||
|
| `run --prompt ID` or `--prompt-id ID` | `run ID` |
|
||||||
|
| `render --prompt ID` | `promptkit show prepared ID` |
|
||||||
|
| `inspect prompt --prompt ID` | `promptkit show prompt ID` |
|
||||||
|
| `inspect profile --profile ID` | `promptkit show profile ID` |
|
||||||
|
| `--config-overlay NAME` | `--overlay NAME` |
|
||||||
|
| `--input NAME=PATH` | `--input-file NAME=PATH`; `--input` now means literal text |
|
||||||
|
| `--llm-base-url URL` | `--endpoint URL` |
|
||||||
|
| Duration-valued `--timeout` | Integer `--timeout-seconds` for each generation attempt |
|
||||||
|
| `--out PATH` | Redirect stdout to the desired file |
|
||||||
|
| `--execution-report PATH` | `--report PATH`, optionally with `--report-format` |
|
||||||
|
|
||||||
|
Repeat input and variable mappings instead of comma-separating them. Prefer
|
||||||
|
native short aliases such as `--profile`, `--var`, and `--input-text`; native
|
||||||
|
canonical aliases remain available. Prompt-version selection and the old
|
||||||
|
directory/schema flags are removed. See the [CLI reference][cli] for the full
|
||||||
|
interface.
|
||||||
|
|
||||||
|
Automatic/text generation output is exactly the artifact bytes, without an
|
||||||
|
added newline. Structured stdout and separate reports use the full native
|
||||||
|
RunResult, including content and metadata, rather than the former CLI
|
||||||
|
metadata-only execution report. Report format selection is independent of main
|
||||||
|
output: omitting `--report-format` delegates to CommandKit's automatic renderer;
|
||||||
|
the filename extension does not choose a format.
|
||||||
|
|
||||||
|
Quiet suppresses main stdout even when redirected, but an explicitly requested
|
||||||
|
report file is still written when a result exists. Resultless failures leave an
|
||||||
|
existing report untouched. Output and report delivery remain nontransactional;
|
||||||
|
keep destinations separate and check exit status before treating files as fresh.
|
||||||
|
Native inspection and result shapes replace the former custom formats, so
|
||||||
|
update structured-output consumers as well as command lines. The
|
||||||
|
[subprocess guide][subprocess] covers capture and delivery responsibilities.
|
||||||
|
|
||||||
|
Completed generated-content validation failure now exits **4**, rather than 2,
|
||||||
|
and still delivers its result. Native usage/invalid-configuration failures use
|
||||||
|
2, diff-check differences use 3, and operational failures use 1. Diagnostics
|
||||||
|
remain separate from result output. Native `--show-tokens` provides an optional
|
||||||
|
usage/cost summary; it does not change the main result format.
|
||||||
|
|
||||||
|
## Shared configuration and collections
|
||||||
|
|
||||||
|
- Replace `prompt_dir`, `profile_dir`, `schema_dir`, and the old backend mapping
|
||||||
|
with native PromptKit definitions beneath the root `promptkit` key. The old
|
||||||
|
`defaults.render_format` setting is removed. Use root `config.imports` in
|
||||||
|
place of `configkit.imports`; imports are optional unless marked
|
||||||
|
`required: true`. The [maintained configuration][example] demonstrates the
|
||||||
|
application entry point.
|
||||||
|
- Migrate resources to ID-bearing sequences and select one prompt definition
|
||||||
|
per ID. Review inheritance, same-ID replacement, source-relative message and
|
||||||
|
schema resources, and qualified collection references using the
|
||||||
|
[upstream migration guide][upstream-migration]. Old
|
||||||
|
`promptkit-openrouter-standard` and `promptkit-openrouter-auto` profiles have
|
||||||
|
no automatic replacements; select an available profile or define your own.
|
||||||
|
- Discover independently maintained collections through ConfigKit glob imports
|
||||||
|
of `collection.yml` or `collection.yaml`. Each collection declares its own
|
||||||
|
namespace and relative imports. The [collection example][collections]
|
||||||
|
demonstrates the convention. The server captures configuration at startup;
|
||||||
|
restart it after updating installed collections.
|
||||||
|
- Configuration discovery now searches native working-directory, user-config,
|
||||||
|
home-directory, and Unix-system locations in that order. It is no longer
|
||||||
|
limited to the two former system `config.yml` paths. Set an explicit config
|
||||||
|
path when migrating unattended jobs.
|
||||||
|
- Native `app` and focused `promptkit` configuration scopes inspect the same
|
||||||
|
complete resolved document, including framework validation. Both support
|
||||||
|
native overrides and comparisons. Override paths and conflicts follow
|
||||||
|
ConfigKit semantics; overlapping overrides are not a last-wins mechanism.
|
||||||
|
- ConfigKit's configured secrets bootstrap can populate the process environment
|
||||||
|
before acquisition, including inspection. PromptKit continues to resolve
|
||||||
|
named credentials at its own lifecycle point. Raw API keys remain unsupported
|
||||||
|
in configuration and request arguments. See [configuration][config] for
|
||||||
|
acquisition, sensitivity, and bootstrap behavior.
|
||||||
|
|
||||||
|
PromptKit now supplies a default repair budget of one for enabled validation
|
||||||
|
when omitted; use an explicit zero to disable correction. Review budgets when
|
||||||
|
migrating definitions because repairs can add provider calls and cost. For
|
||||||
|
application-defined OpenRouter backends, select `provider: openrouter` to enable
|
||||||
|
provider-specific accounting; endpoint names do not select provider conventions.
|
||||||
|
Native CLI results expose upstream accounting, while HTTP's existing report
|
||||||
|
projection remains separate.
|
||||||
|
|
||||||
|
## HTTP compatibility and fixes
|
||||||
|
|
||||||
|
HTTP remains in maintenance mode for trusted hosts on a trusted network. It has
|
||||||
|
no built-in authentication or authorization, and this release does not expand
|
||||||
|
its supported exposure model or add aggregate memory or connection-lifetime
|
||||||
|
guarantees. See [operations][operations].
|
||||||
|
|
||||||
|
- Remove `prompt_version` from requests; strict decoding now rejects it. Prompt
|
||||||
|
and profile selection uses exact IDs, including qualified collection IDs.
|
||||||
|
- Update response consumers for removal of `metadata.prompt_version`,
|
||||||
|
`metadata.model_name`, `metadata.endpoint`, `metadata.validation_mode`,
|
||||||
|
`metadata.validation_status`, `metadata.repair_attempts_used`, and
|
||||||
|
`metadata.model_params.backend_id`. Use `metadata.model_params`,
|
||||||
|
`metadata.selected_backend_id`, and `validation` as appropriate. Terminal
|
||||||
|
execution reports also no longer include `prompt_version`.
|
||||||
|
- Large integers in `model.extra_params`, including nested values, retain their
|
||||||
|
precision through HTTP decoding and provider handoff.
|
||||||
|
- File-reference whitespace is preserved instead of silently selecting a
|
||||||
|
different pathname. File inputs must resolve to regular files; FIFOs and
|
||||||
|
other unsupported types return `400 artifact_read_failed`. Acquisition now
|
||||||
|
checks cancellation during reads and before success, while retaining lexical
|
||||||
|
containment and byte limits. Cancellation remains cooperative, and symlink
|
||||||
|
handling is unchanged.
|
||||||
|
|
||||||
|
HTTP terminal reporting is now contained within the HTTP adapter. That internal
|
||||||
|
relocation adds no report fields. Regression coverage now exercises shared
|
||||||
|
backend admission at server composition, reliable concurrency-test cleanup,
|
||||||
|
startup capture failures, and distinct accounting-field mappings. The
|
||||||
|
[HTTP API reference][http] owns the current wire contract.
|
||||||
|
|
||||||
|
## Startup diagnostics and maintainer changes
|
||||||
|
|
||||||
|
Listener startup failures now identify the selected address and a useful typed
|
||||||
|
failure category. Missing message files and malformed templates can still
|
||||||
|
produce generic capture explanations; richer native diagnostics remain
|
||||||
|
[pending upstream support][capture], not an implemented feature of this release.
|
||||||
|
|
||||||
|
Maintainers now use the root ReleaseKit launcher instead of
|
||||||
|
`scripts/release.sh`. Runtime version identity comes from ReleaseKit; the
|
||||||
|
separately injected revision metadata is removed. The hosted workflow uses the
|
||||||
|
`releasekit_gitea_token` secret for asynchronous binary delivery. Follow the
|
||||||
|
[release procedure][release] when migrating release automation; retain the old
|
||||||
|
delivery secret for historical tagged workflows.
|
||||||
|
|
||||||
|
Selected libraries are PromptKit v0.25.0, ConfigKit v1.4.0, CommandKit v0.8.0,
|
||||||
|
ckconfig v0.11.0, ckprompt v0.12.0, and ReleaseKit v0.10.0. Building from source
|
||||||
|
now requires **Go 1.27.0 or newer**, up from 1.25.5; the selected release toolchain
|
||||||
|
is Go 1.27.4. Published Linux amd64 and arm64 binaries do not require a Go
|
||||||
|
installation.
|
||||||
|
|
||||||
|
[migration]: https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/consumers/upgrading-cli.md
|
||||||
|
[promptkit-migration]: https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/consumers/upgrading-promptkit.md
|
||||||
|
[upstream-migration]: https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/consumers/configuration-migration.md
|
||||||
|
[cli]: https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/cli.md
|
||||||
|
[subprocess]: https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/integrations/subprocess.md
|
||||||
|
[example]: https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/examples/config.yml
|
||||||
|
[collections]: https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/examples/config.discovery.yml
|
||||||
|
[config]: https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/config.md
|
||||||
|
[operations]: https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/operations.md
|
||||||
|
[http]: https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/api.md
|
||||||
|
[capture]: https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/roadmap/capture-diagnostics.md
|
||||||
|
[release]: https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/release.md
|
||||||
|
|
||||||
|
[COPYRIGHT](https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/COPYRIGHT) | [LICENSE](https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/LICENSE) | [ATTRIBUTION](https://forge.maximumdirect.net/eric/scriptorium/src/tag/v0.16.0/docs/oss/attribution.md)
|
||||||
Reference in New Issue
Block a user