Protect captured prompt configuration files

This commit is contained in:
2026-10-04 00:56:14 +00:00
parent f8d00e2f20
commit 9b82eb7da2
6 changed files with 187 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
# Implementation Plan: PromptKit v0.12.0 Adoption
**Last updated:** 2026-10-03
**Status:** In progress; Stages 1–4 completed.
**Last updated:** 2026-10-04
**Status:** In progress; Stages 1–5 completed.
**Audience:** Luna coding agent.
## Scope and Execution
@@ -309,6 +309,14 @@ collision cases, plus `git diff --check`, then commit. Check that resource
accounting uses the frozen snapshot and never changes the engine's source or
resource-resolution behavior to facilitate tracking.
**Completion marker:** Stage 5 complete. `Runtime.SourcePaths` now projects
host YAML and effective source-relative message files from PromptKit's captured
configuration inspection, using field provenance for inherited references.
Process output protection consumes that ledger. Focused source-accounting and
subprocess collision tests passed, including unchanged input bytes, no provider
dispatch, JSON Pointer-escaped keys, and acceptance of an unused alternate
output; `git diff --check` passed.
## Stage 6 — Verify Operator Prompt Overrides and Captured Execution
**Primary files:** `internal/framework/llm/adapter_test.go` and focused runtime