Align contributor documentation with shared configuration
This commit is contained in:
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
This is the contributor entry point for Scriptorium. Scriptorium is an
|
This is the contributor entry point for Scriptorium. Scriptorium is an
|
||||||
application that consumes the public
|
application that consumes the public
|
||||||
[PromptKit v0.23.3 package](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/804a4d32b23aa2e7973400bb0a322a7016574c9f/docs/consumers/pkg-promptkit.md);
|
[PromptKit v0.25.0 package](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/consumers/pkg-promptkit.md);
|
||||||
framework implementation work belongs in Promptkit. Application configuration
|
framework implementation work belongs in Promptkit. Application configuration
|
||||||
uses ConfigKit v1.2.1; keep Scriptorium's schema and source selection local.
|
uses ConfigKit v1.4.0; keep Scriptorium's schema and source selection local.
|
||||||
Operator interfaces use CommandKit v0.7.0, ckconfig v0.9.0, and ckprompt v0.10.0;
|
Operator interfaces use CommandKit v0.8.0, ckconfig v0.11.0, and ckprompt v0.12.0;
|
||||||
standard command families and presentation remain upstream-owned.
|
standard command families and presentation remain upstream-owned.
|
||||||
PromptKit uses the same ConfigKit release to load framework sources under its
|
PromptKit composes its settings into the shared ConfigKit result and retains
|
||||||
own separate schema and format contract.
|
its own schema and format contract.
|
||||||
|
|
||||||
## Initial Orientation
|
## Initial Orientation
|
||||||
|
|
||||||
@@ -48,15 +48,15 @@ Before recommending, planning, or implementing work:
|
|||||||
| CLI commands, flags, output, or exit behavior | [CLI contract](cli.md) and [adapter internals](internal/adapters.md) |
|
| CLI commands, flags, output, or exit behavior | [CLI contract](cli.md) and [adapter internals](internal/adapters.md) |
|
||||||
| HTTP routes, DTOs, limits, status mapping, or artifact policy | [HTTP API contract](api.md), [adapter internals](internal/adapters.md), and [source internals](internal/sources.md) |
|
| HTTP routes, DTOs, limits, status mapping, or artifact policy | [HTTP API contract](api.md), [adapter internals](internal/adapters.md), and [source internals](internal/sources.md) |
|
||||||
| Application configuration or precedence | [Configuration contract](config.md), [adapter internals](internal/adapters.md), [source internals](internal/sources.md), and `internal/config` definition/load tests |
|
| Application configuration or precedence | [Configuration contract](config.md), [adapter internals](internal/adapters.md), [source internals](internal/sources.md), and `internal/config` definition/load tests |
|
||||||
| Prepared-run presentation | [CLI contract](cli.md), [adapter internals](internal/adapters.md), and the [native CLI contract](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/d330d7637f2e7507eca931a899397222c82bc892/docs/cli.md) |
|
| Prepared-run presentation | [CLI contract](cli.md), [adapter internals](internal/adapters.md), and the [native CLI contract](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/0b53a63648c536afe50c46f948159116f776adae/docs/cli.md) |
|
||||||
| Promptkit source selection or captured framework inspection | [Configuration contract](config.md#framework-source-mapping), [framework configuration CLI contract](cli.md#framework-configuration-inspection), and [source internals](internal/sources.md) |
|
| Shared application/PromptKit loading or inspection | [Configuration contract](config.md#framework-source-mapping), [framework configuration CLI contract](cli.md#framework-configuration-inspection), and [source internals](internal/sources.md) |
|
||||||
| Prompt, profile, schema, generation, or validation semantics | [PromptKit v0.23.3 framework formats](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/804a4d32b23aa2e7973400bb0a322a7016574c9f/docs/formats.md) and the [Promptkit consumer guide](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/804a4d32b23aa2e7973400bb0a322a7016574c9f/docs/consumers/pkg-promptkit.md) |
|
| Prompt, profile, schema, generation, or validation semantics | [PromptKit v0.25.0 framework formats](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/formats.md) and the [Promptkit consumer guide](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/consumers/pkg-promptkit.md) |
|
||||||
| OpenAI-compatible outbound behavior or timeout layering | [PromptKit v0.23.3 integration contract](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/804a4d32b23aa2e7973400bb0a322a7016574c9f/docs/integrations/openai-compatible-chat.md) |
|
| OpenAI-compatible outbound behavior or timeout layering | [PromptKit v0.25.0 integration contract](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/integrations/openai-compatible-chat.md) |
|
||||||
| Subprocess behavior | [Subprocess integration](integrations/subprocess.md) and [CLI contract](cli.md) |
|
| Subprocess behavior | [Subprocess integration](integrations/subprocess.md) and [CLI contract](cli.md) |
|
||||||
| Runtime operation or recovery | [Operations](operations.md) |
|
| Runtime operation or recovery | [Operations](operations.md) |
|
||||||
| Dependencies, copied assets, or attribution | The [OSS policy](policy/oss.md), [component attributions](oss/attribution.md), and [architecture policy](policy/architecture.md) |
|
| Dependencies, copied assets, or attribution | The [OSS policy](policy/oss.md), [component attributions](oss/attribution.md), and [architecture policy](policy/architecture.md) |
|
||||||
| Release documentation, packaging, or publication | The [release policy](policy/release.md), [OSS policy](policy/oss.md), [release procedure](release.md), [hosted release workflow](../.woodpecker/release.yml), and [architecture policy](policy/architecture.md) |
|
| Release documentation, packaging, or publication | The [release policy](policy/release.md), [OSS policy](policy/oss.md), [release procedure](release.md), [hosted release workflow](../.woodpecker/release.yml), and [architecture policy](policy/architecture.md) |
|
||||||
| Examples or copyable assets | The owning Scriptorium contract, the relevant [PromptKit v0.23.3 format contract](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/804a4d32b23aa2e7973400bb0a322a7016574c9f/docs/formats.md), and the related files under `examples/` |
|
| Examples or copyable assets | The owning Scriptorium contract, the relevant [PromptKit v0.25.0 format contract](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/formats.md), and the related files under `examples/` |
|
||||||
| Architecture decisions or future work | The [documentation policy](policy/documentation.md), relevant accepted ADRs, and relevant roadmap documents |
|
| Architecture decisions or future work | The [documentation policy](policy/documentation.md), relevant accepted ADRs, and relevant roadmap documents |
|
||||||
|
|
||||||
Cross-project changes land and release in Promptkit before Scriptorium adopts
|
Cross-project changes land and release in Promptkit before Scriptorium adopts
|
||||||
@@ -70,7 +70,7 @@ the linked packages.
|
|||||||
## Baseline Validation
|
## Baseline Validation
|
||||||
|
|
||||||
The Go consumer minimum is the version declared in `go.mod`, currently 1.27.0,
|
The Go consumer minimum is the version declared in `go.mod`, currently 1.27.0,
|
||||||
required by application ConfigKit v1.2.1. Running a published binary does not
|
required by application ConfigKit v1.4.0. Running a published binary does not
|
||||||
require a Go installation. Release validation and builds use
|
require a Go installation. Release validation and builds use
|
||||||
the separately selected toolchain in the [release procedure](release.md).
|
the separately selected toolchain in the [release procedure](release.md).
|
||||||
|
|
||||||
|
|||||||
@@ -16,20 +16,17 @@ Native application `--set` records remain upstream records with native conflict
|
|||||||
handling. No application selectors are installed under configuration commands.
|
handling. No application selectors are installed under configuration commands.
|
||||||
|
|
||||||
`native_config.go` adapts the actual application result through
|
`native_config.go` adapts the actual application result through
|
||||||
`ckconfig.FromConfigKit` and framework inspection through `ckprompt.ConfigScope`.
|
`ckconfig.FromConfigKit` and focused framework inspection through
|
||||||
|
`ckconfig.FromConfigKitSubtree`.
|
||||||
Native views own effective values, paths, metadata, sources, findings, explanations,
|
Native views own effective values, paths, metadata, sources, findings, explanations,
|
||||||
redaction, and comparison. Application inspection does not construct an engine.
|
redaction, and comparison. Neither configuration scope constructs an engine.
|
||||||
Comparison loads each side from that side's selection; there is no config/engine
|
Comparison loads each side from that side's selection; there is no config/engine
|
||||||
cache or effective-document reconstruction.
|
cache or effective-document reconstruction.
|
||||||
|
|
||||||
`acquisitionState` contains application diagnostic evidence only, never loaded
|
An invocation feature supplies a context-local sink for the bootstrap report.
|
||||||
configuration or engines. Callback decorators forward it through native
|
The loader forwards safe native diagnostics and reports to CommandKit; it does
|
||||||
`Acquired` channels. An application LoadError is transported separately while
|
not cache results or reconstruct configuration evidence. Native adapters retain
|
||||||
the framework adapter runs, then its original typed cause is restored before
|
typed errors and the shared load's findings.
|
||||||
native outcome classification. This prevents app findings from becoming
|
|
||||||
framework findings. Native framework evidence remains unchanged; comparison
|
|
||||||
application messages identify left/right context. Callback marks prevent replay
|
|
||||||
when operations share invocation state.
|
|
||||||
|
|
||||||
`native_prompt.go` installs all twelve ckprompt callbacks, nil request builders,
|
`native_prompt.go` installs all twelve ckprompt callbacks, nil request builders,
|
||||||
and empty-default native namespace views. Inventories, named resources,
|
and empty-default native namespace views. Inventories, named resources,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ public behavior belongs in the linked contracts.
|
|||||||
| `cmd/scriptorium` | Build identity, signal-aware context, native status-to-process exit. | [CLI](../cli.md), [adapters](adapters.md) |
|
| `cmd/scriptorium` | Build identity, signal-aware context, native status-to-process exit. | [CLI](../cli.md), [adapters](adapters.md) |
|
||||||
| `internal/adapter/cli` | CommandKit composition, ckconfig/ckprompt acquisition, application loading, native request mapping, run/report effects, and HTTP process lifecycle. | [CLI](../cli.md), [adapters](adapters.md), [sources](sources.md) |
|
| `internal/adapter/cli` | CommandKit composition, ckconfig/ckprompt acquisition, application loading, native request mapping, run/report effects, and HTTP process lifecycle. | [CLI](../cli.md), [adapters](adapters.md), [sources](sources.md) |
|
||||||
| `internal/adapter/http` | Routes, strict DTO decoding, transport limits, public request/result/error mapping, and restricted artifact reader. | [HTTP API](../api.md), [adapters](adapters.md), [sources](sources.md) |
|
| `internal/adapter/http` | Routes, strict DTO decoding, transport limits, public request/result/error mapping, and restricted artifact reader. | [HTTP API](../api.md), [adapters](adapters.md), [sources](sources.md) |
|
||||||
| `internal/config` | ConfigKit application schema, discovery/selection, defaults/resolution/validation callbacks, and completed-value conversion. | [Configuration](../config.md), [sources](sources.md) |
|
| `internal/config` | Shared ConfigKit schema, secrets bootstrap, discovery/selection, and application definition callbacks. | [Configuration](../config.md), [sources](sources.md) |
|
||||||
| `internal/defaults` | Application and HTTP default constants. | [Configuration](../config.md) |
|
| `internal/defaults` | Application and HTTP default constants. | [Configuration](../config.md) |
|
||||||
| `internal/report` | HTTP terminal-observation metadata projection. It is not used for CLI native result reports. | [HTTP execution report](../api.md#execution-report), [adapters](adapters.md) |
|
| `internal/report` | HTTP terminal-observation metadata projection. It is not used for CLI native result reports. | [HTTP execution report](../api.md#execution-report), [adapters](adapters.md) |
|
||||||
|
|
||||||
|
|||||||
@@ -2,23 +2,22 @@
|
|||||||
|
|
||||||
This document covers application acquisition and the restricted HTTP artifact
|
This document covers application acquisition and the restricted HTTP artifact
|
||||||
reader. [Configuration](../config.md) owns field/discovery/composition contracts;
|
reader. [Configuration](../config.md) owns field/discovery/composition contracts;
|
||||||
the [PromptKit formats](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/804a4d32b23aa2e7973400bb0a322a7016574c9f/docs/formats.md)
|
the [PromptKit formats](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/formats.md)
|
||||||
own framework resources and execution semantics.
|
own framework resources and execution semantics.
|
||||||
|
|
||||||
## Application Boundary And Engine Construction
|
## Application Boundary And Engine Construction
|
||||||
|
|
||||||
`internal/config.Load` selects an explicit File or the ordered native SearchConfig
|
`internal/config.Load` selects an explicit File or the ordered native SearchConfig
|
||||||
presets and performs one ConfigKit load with imports, overlay selection, and
|
presets, prepares the selected source with native secrets bootstrap, and performs
|
||||||
explicit overrides. It returns the actual Result with native inspection evidence.
|
one layered ConfigKit load with imports, overlay selection, explicit overrides,
|
||||||
|
and the bundled underlay. It returns the actual Result and bootstrap report.
|
||||||
Definition callbacks supply application defaults, record actual path/address
|
Definition callbacks supply application defaults, record actual path/address
|
||||||
normalizations through ConfigKit, and validate retry/HTTP-size domains. Settings
|
normalizations through ConfigKit, and validate retry/HTTP-size domains. PromptKit
|
||||||
conversion consumes completed values without another merge or normalization pass.
|
composes its settings rules into the same typed definition.
|
||||||
|
|
||||||
The typed application PromptKit section selects acquisition only. In
|
`engine.go` passes the completed result to PromptKit's `NewFromConfig` along
|
||||||
`engine.go`, a nonempty resolved configuration path becomes an import-enabled
|
with the application retry setting and any runtime options. It performs no
|
||||||
main Input; an empty path leaves Main nil. The schema base and retry default are
|
second load, projection, or source-list expansion.
|
||||||
passed directly, retaining the bundled underlay. There is no source-list parser,
|
|
||||||
directory classification/expansion, or one-underlay-per-selector algorithm.
|
|
||||||
|
|
||||||
Framework imports resolve within the native source context. Message resources
|
Framework imports resolve within the native source context. Message resources
|
||||||
are captured from their defining contexts at engine construction. Schema and
|
are captured from their defining contexts at engine construction. Schema and
|
||||||
@@ -27,11 +26,10 @@ Independent collection checkouts are discovered by native file import globs,
|
|||||||
not application traversal. New invocations reload normally; a server retains
|
not application traversal. New invocations reload normally; a server retains
|
||||||
its single engine until restart.
|
its single engine until restart.
|
||||||
|
|
||||||
Application-only inspection uses its completed result without framework
|
Both configuration scopes inspect the completed shared document without
|
||||||
acquisition. Framework inspection exposes the native captured view separately.
|
constructing an engine. The focused view retains native whole-load evidence.
|
||||||
Diagnostic decoration in the [CLI adapter](adapters.md) carries application
|
The [CLI adapter](adapters.md) forwards bootstrap reports separately; there is
|
||||||
messages without combining evidence trees or effective documents. There is no
|
no per-invocation engine/config cache or cross-invocation snapshot guarantee.
|
||||||
per-invocation engine/config cache or cross-invocation snapshot guarantee.
|
|
||||||
|
|
||||||
## Restricted HTTP Artifact Reader
|
## Restricted HTTP Artifact Reader
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
**Base Policy Version:** 1.3
|
**Base Policy Version:** 1.3
|
||||||
|
|
||||||
**Last Updated**: 2026-11-20
|
**Last Updated**: 2026-11-22
|
||||||
|
|
||||||
**Upstream Source:** https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/architecture.md
|
**Upstream Source:** https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/architecture.md
|
||||||
|
|
||||||
@@ -50,18 +50,18 @@ inventory; [adapter internals](../internal/adapters.md) and
|
|||||||
## Framework And Application Boundaries
|
## Framework And Application Boundaries
|
||||||
|
|
||||||
Scriptorium consumes
|
Scriptorium consumes
|
||||||
[PromptKit v0.23.3](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/804a4d32b23aa2e7973400bb0a322a7016574c9f/docs/consumers/pkg-promptkit.md)
|
[PromptKit v0.25.0](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/consumers/pkg-promptkit.md)
|
||||||
through its supported public root package. Promptkit owns prompt execution,
|
through its supported public root package. Promptkit owns prompt execution,
|
||||||
preparation, prompt and profile formats, built-in profiles, model-client
|
preparation, prompt and profile formats, built-in profiles, model-client
|
||||||
behavior, validation, inspection semantics, and framework defaults. Scriptorium
|
behavior, validation, inspection semantics, and framework defaults. Scriptorium
|
||||||
owns the application domain, executable CLI and HTTP adapters, process behavior,
|
owns the application domain, executable CLI and HTTP adapters, process behavior,
|
||||||
and HTTP deployment policy. It interprets resolved configuration and uses
|
and HTTP deployment policy. It interprets resolved configuration and uses
|
||||||
PromptKit's supported APIs and results to satisfy user requests. The [format
|
PromptKit's supported APIs and results to satisfy user requests. The [format
|
||||||
reference](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/804a4d32b23aa2e7973400bb0a322a7016574c9f/docs/formats.md)
|
reference](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/formats.md)
|
||||||
and [outbound integration contract](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/804a4d32b23aa2e7973400bb0a322a7016574c9f/docs/integrations/openai-compatible-chat.md)
|
and [outbound integration contract](https://forge.maximumdirect.net/base-layer/promptkit/src/commit/207677e9948dc5699073a4d6620d21139033c72d/docs/integrations/openai-compatible-chat.md)
|
||||||
remain Promptkit's contracts.
|
remain Promptkit's contracts.
|
||||||
|
|
||||||
ConfigKit v1.2.1 owns configuration policy and the lifecycle through the final,
|
ConfigKit v1.4.0 owns configuration policy and the lifecycle through the final,
|
||||||
fully resolved configuration handoff. Scriptorium supplies application schema
|
fully resolved configuration handoff. Scriptorium supplies application schema
|
||||||
and domain callbacks through ConfigKit's supported extension points and consumes
|
and domain callbacks through ConfigKit's supported extension points and consumes
|
||||||
the completed result without redefining effective configuration. PromptKit's
|
the completed result without redefining effective configuration. PromptKit's
|
||||||
@@ -79,11 +79,10 @@ ADRs 0004 and 0005; the completed
|
|||||||
[adoption record](https://forge.maximumdirect.net/eric/scriptorium/src/commit/f5573f7c8f2ddf0d69414a05c978c8d6cfe291e7/docs/roadmap/commandkit-adoption.md)
|
[adoption record](https://forge.maximumdirect.net/eric/scriptorium/src/commit/f5573f7c8f2ddf0d69414a05c978c8d6cfe291e7/docs/roadmap/commandkit-adoption.md)
|
||||||
remains in Git history.
|
remains in Git history.
|
||||||
|
|
||||||
The CLI exposes Promptkit's captured framework configuration inspection. Its
|
The CLI exposes native whole-document and focused configuration inspection,
|
||||||
`show` and `explain` reports use Promptkit's native redaction for classified
|
including upstream sensitivity and application raw-key classifications. This
|
||||||
credential-shaped fields, including historical values. This scoped behavior is
|
is not a general-purpose filter for arbitrary sensitive content or a guarantee
|
||||||
not a general-purpose filter for arbitrary sensitive content and does not
|
that prompt/profile inspection and generated results are safe to publish.
|
||||||
extend to application configuration or existing prompt/profile inspection.
|
|
||||||
|
|
||||||
Application code may import Promptkit's public root package, but not its
|
Application code may import Promptkit's public root package, but not its
|
||||||
`internal` packages or catalog modules. It must not recreate the removed
|
`internal` packages or catalog modules. It must not recreate the removed
|
||||||
|
|||||||
@@ -14,9 +14,6 @@ Current behavior belongs to the [CLI](../cli.md), [configuration](../config.md),
|
|||||||
deferred from the [library upgrade roadmap](library-upgrades.md#deferred-work).
|
deferred from the [library upgrade roadmap](library-upgrades.md#deferred-work).
|
||||||
The upgrade retains current HTTP report shapes while adopting native CLI
|
The upgrade retains current HTTP report shapes while adopting native CLI
|
||||||
reporting.
|
reporting.
|
||||||
- **Embedded framework configuration:** deferred pending upstream support for a
|
|
||||||
native handoff preserving resource context and inspection evidence. The current
|
|
||||||
application settings select a separate PromptKit entry file.
|
|
||||||
- **Dynamic resource completion:** possible enhancement beyond native command,
|
- **Dynamic resource completion:** possible enhancement beyond native command,
|
||||||
flag, static-value, and path completion.
|
flag, static-value, and path completion.
|
||||||
- **Configurable namespace defaults and automatic report collection:** possible
|
- **Configurable namespace defaults and automatic report collection:** possible
|
||||||
|
|||||||
@@ -553,6 +553,12 @@ aliases, new HTTP fields, or new library feature guarantees.
|
|||||||
|
|
||||||
## Stage 11 — Align Contributor And Internal Documentation With The Final Structure
|
## Stage 11 — Align Contributor And Internal Documentation With The Final Structure
|
||||||
|
|
||||||
|
**Status: Complete.** Updated contributor dependency links and routing, internal
|
||||||
|
component and source flows, and architecture's implemented inspection boundary.
|
||||||
|
Removed the delivered embedded-configuration direction from future work while
|
||||||
|
preserving independent deferred directions. Accepted ADRs and policy provenance
|
||||||
|
remain unchanged. Final cross-document and upstream link checks follow below.
|
||||||
|
|
||||||
**Files:** `docs/development.md`, `docs/internal/{overview,adapters,sources}.md`,
|
**Files:** `docs/development.md`, `docs/internal/{overview,adapters,sources}.md`,
|
||||||
`docs/policy/architecture.md`, and `docs/roadmap/future.md`.
|
`docs/policy/architecture.md`, and `docs/roadmap/future.md`.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user