Align contributor documentation with shared configuration

This commit is contained in:
2026-11-23 03:43:30 +00:00
parent d427a1b972
commit 66e58a78a4
7 changed files with 47 additions and 50 deletions

View File

@@ -16,20 +16,17 @@ Native application `--set` records remain upstream records with native conflict
handling. No application selectors are installed under configuration commands.
`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,
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
cache or effective-document reconstruction.
`acquisitionState` contains application diagnostic evidence only, never loaded
configuration or engines. Callback decorators forward it through native
`Acquired` channels. An application LoadError is transported separately while
the framework adapter runs, then its original typed cause is restored before
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.
An invocation feature supplies a context-local sink for the bootstrap report.
The loader forwards safe native diagnostics and reports to CommandKit; it does
not cache results or reconstruct configuration evidence. Native adapters retain
typed errors and the shared load's findings.
`native_prompt.go` installs all twelve ckprompt callbacks, nil request builders,
and empty-default native namespace views. Inventories, named resources,

View File

@@ -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) |
| `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/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/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) |

View File

@@ -2,23 +2,22 @@
This document covers application acquisition and the restricted HTTP artifact
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.
## Application Boundary And Engine Construction
`internal/config.Load` selects an explicit File or the ordered native SearchConfig
presets and performs one ConfigKit load with imports, overlay selection, and
explicit overrides. It returns the actual Result with native inspection evidence.
presets, prepares the selected source with native secrets bootstrap, and performs
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
normalizations through ConfigKit, and validate retry/HTTP-size domains. Settings
conversion consumes completed values without another merge or normalization pass.
normalizations through ConfigKit, and validate retry/HTTP-size domains. PromptKit
composes its settings rules into the same typed definition.
The typed application PromptKit section selects acquisition only. In
`engine.go`, a nonempty resolved configuration path becomes an import-enabled
main Input; an empty path leaves Main nil. The schema base and retry default are
passed directly, retaining the bundled underlay. There is no source-list parser,
directory classification/expansion, or one-underlay-per-selector algorithm.
`engine.go` passes the completed result to PromptKit's `NewFromConfig` along
with the application retry setting and any runtime options. It performs no
second load, projection, or source-list expansion.
Framework imports resolve within the native source context. Message resources
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
its single engine until restart.
Application-only inspection uses its completed result without framework
acquisition. Framework inspection exposes the native captured view separately.
Diagnostic decoration in the [CLI adapter](adapters.md) carries application
messages without combining evidence trees or effective documents. There is no
per-invocation engine/config cache or cross-invocation snapshot guarantee.
Both configuration scopes inspect the completed shared document without
constructing an engine. The focused view retains native whole-load evidence.
The [CLI adapter](adapters.md) forwards bootstrap reports separately; there is
no per-invocation engine/config cache or cross-invocation snapshot guarantee.
## Restricted HTTP Artifact Reader