Document HTTP maintenance scope and remediation

This commit is contained in:
2026-11-25 17:37:57 +00:00
parent aaa436d0f7
commit 9867d6eb12
8 changed files with 47 additions and 11 deletions

View File

@@ -49,6 +49,9 @@ owns preparation, credentials, admission, retries, repairs, and content validati
outcomes, preserving causes while keeping provider payloads out of terminal
explanations. A returned completed validation failure remains a domain outcome;
an unexpected nil successful result is an integration failure.
Run and serve share application-configuration diagnostic adaptation. Listener
failures include the selected address and a safe typed category while retaining
the cause; framework capture explanations remain generic pending upstream support.
`delivery.go` submits the actual RunResult to the invocation reporter with a
reusable artifact-byte text template. The optional file renders that same value
@@ -69,7 +72,7 @@ mapping to PromptKit requests. Its Runner interface is a consumer-side external
boundary using native values. Request controls do not mutate shared engine
defaults; shared backend capacity accounting remains in that engine.
HTTP optional reports use one per-request `internal/report.Collector`, attached
HTTP optional reports use one per-request adapter-local collector, attached
only for opted-in requests. It copies terminal aggregates, not event history,
and is never the CLI result report. Success/error attachment and encoded-size
handling retain the [HTTP contract](../api.md#execution-report). Reader sentinel

View File

@@ -8,10 +8,9 @@ public behavior belongs in the linked contracts.
| --- | --- | --- |
| `cmd/scriptorium` | ReleaseKit version handoff to CommandKit, 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/adapter/http` | Routes, strict DTO decoding, transport limits, public request/result/error mapping, terminal report projection, and restricted artifact reader. | [HTTP API](../api.md), [adapters](adapters.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) |
CommandKit, ckconfig, ckprompt, ConfigKit, PromptKit, and ReleaseKit are released upstream
dependencies, not local framework packages. There is no custom CLI formatter

View File

@@ -39,8 +39,11 @@ upstream-owned.
The reader accepts inline content without a root. File references need a root;
relative paths resolve below it and absolute paths must be lexically contained.
Traversal outside is rejected and the configured file byte limit applies, with
zero unlimited. Reads preserve native artifact metadata and honor cancellation.
Traversal outside is rejected without trimming pathname whitespace. The reader
checks for regular files before and after opening, and enforces the configured
byte limit while reading (zero means unlimited). It checks cancellation before
acquisition, around reads, and before returning success; synchronous filesystem
calls are not guaranteed to stop immediately. Reads retain artifact metadata.
Containment does not resolve symlinks. The OS may follow a symlink inside the
root to an outside target; this is not a filesystem sandbox or a defense against