Keep raw runtime parameters out of early capture

This commit is contained in:
2026-11-28 16:12:52 +00:00
parent 63cdd7a7c5
commit 95d46c7da3
6 changed files with 127 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ and report delivery. See [preflight operation](../operations.md#preflight-lifecy
[Debug selection](../../internal/cli/run_debug.go) preserves native boolean and
supplied directory semantics independently of verbosity. Run and explicit preflight
calls [debug.Start](../../internal/framework/debug/recorder.go).
call [debug.Start](../../internal/framework/debug/recorder.go).
[Bundle allocation](../../internal/core/debugbundle/bundle.go) validates identity,
creates a new absolute per-run directory, and atomically updates a relative
latest link at start. Failure can return an available directory for explanation/
@@ -147,6 +147,10 @@ fallback directory. Available files are retained.
## Native And Application Evidence
Both invocation owners share early context capture. It records provider-parameter
override presence rather than raw maps; effective parameters remain in native
evidence with selected-target sensitivity marks applied.
[Run capture](../../internal/cli/run_capture.go) snapshots the original secret-aware
application/PromptKit configuration. The runner selects the explicit evidence
writer when provided, otherwise enabled debug, and writes original and parsed

View File

@@ -118,6 +118,12 @@ snapshot tests or additional upstream-library documentation are needed.
## Finding 3: Apply Existing Sensitive-Parameter Handling To Invocation Context
**Status: Complete.** Both commands use shared early context capture that omits
raw provider-parameter maps. Raw operation-request evidence uses the same
projection; target-aware native evidence still retains masked effective values.
Regression tests scan both commands' captures on success and early failure,
verify actual provider values are unchanged, and retain ordinary settings.
**Priority:** P2 — integration with the established capture contract.
Related plan stages: 1, 4, and 7.