Define empty debug directory as disabling capture

This commit is contained in:
2026-11-20 01:10:58 +00:00
parent 1601b535ff
commit 98ba7e1f55

View File

@@ -25,15 +25,14 @@ Item 2 selects the application command structure and input conventions. Item 3
selects native composition, shared loaders, and application preflight. Item 4 selects native composition, shared loaders, and application preflight. Item 4
selects native reporting, machine output, and outcomes. Item 5 selects conditional selects native reporting, machine output, and outcomes. Item 5 selects conditional
debug capture through the shared `--debug` flag, native diagnostics, and a run/ debug capture through the shared `--debug` flag, native diagnostics, and a run/
operation bundle with a `latest` symlink. Its capture inventory and depth are operation bundle with a `latest` symlink. Its capture inventory, depth, and
resolved below. Item 6 selects verification, migration guidance, and incorporation explicit-empty directory behavior are resolved below. Item 6 selects verification,
into the master roadmap; that incorporation is still pending. migration guidance, and incorporation into the master roadmap; that incorporation
is still pending.
The major architectural decisions are settled. Remaining choices are run-report The major architectural decisions are settled. Remaining choices are run-report
fields/versioning and durable record formats (item 4/U9), and explicit-empty fields/versioning and durable record formats (item 4/U9). Function signatures,
debug-directory handling plus any demonstrated need for verbosity without capture bundle filenames other than `latest`, and similar implementation details do not
(item 5). Function signatures, bundle filenames other than `latest`, and similar
implementation details do not
reopen the selected architecture. Broader PromptKit choices remain with the reopen the selected architecture. Broader PromptKit choices remain with the
master roadmap. master roadmap.
@@ -196,8 +195,8 @@ No upstream feature request has been identified as a blocker for this scope.
Evaluate any later demonstrated gap on its actual application need. On roadmap Evaluate any later demonstrated gap on its actual application need. On roadmap
reconciliation, incorporate these versions into U1, replace U10's open standard reconciliation, incorporate these versions into U1, replace U10's open standard
capability selection with this decision, and incorporate the application wiring capability selection with this decision, and incorporate the application wiring
and presentation decisions from items 2–5. Preserve the remaining record and and presentation decisions from items 2–5. Preserve the remaining record choices
debug choices explicitly as directed by item 6. explicitly as directed by item 6.
## 2. Native Command Surface And Inputs ## 2. Native Command Surface And Inputs
@@ -665,10 +664,10 @@ summary/trace hierarchy with a compact run index, configuration and composition
snapshots, and operation records; maintain a `latest` symlink at the debug root. snapshots, and operation records; maintain a `latest` symlink at the debug root.
The capture inventory and depth below are agreed: one default depth retaining The capture inventory and depth below are agreed: one default depth retaining
every application-visible turn, useful inputs and outputs, and application every application-visible turn, useful inputs and outputs, and application
assessments, with native snapshots and convenient readable views. Exact filenames assessments, with native snapshots and convenient readable views. An explicitly
and serialized application fields remain implementation choices. Explicit-empty empty debug directory disables capture while preserving native reporting-mode
directory handling and any demonstrated need for verbosity without capture selection, resolving verbosity without capture. Exact filenames and serialized
remain open. Implementation is pending. application fields remain implementation choices. Implementation is pending.
### Shared Debug Control With Conditional Capture ### Shared Debug Control With Conditional Capture
@@ -684,33 +683,53 @@ with each run's bundle beneath it. Temporary diagnostic output belongs under
`/tmp` or an operator-selected location under `/var`, rather than beside a `/tmp` or an operator-selected location under `/var`, rather than beside a
configuration file likely to live under `/etc`. Replace the old configuration- configuration file likely to live under `/etc`. Replace the old configuration-
relative `./notarius-debug` default. Precedence is CLI override, configured value, relative `./notarius-debug` default. Precedence is CLI override, configured value,
then application default. Explicit relative configuration paths retain their then application default. Nonempty relative configuration paths retain their
source-relative interpretation; relative CLI paths use the invocation directory. source-relative interpretation; nonempty relative CLI paths use the invocation
directory.
Omitting both directory overrides selects the default, so `--debug` enables Omitting both directory overrides selects the default, so `--debug` enables
verbosity and capture without requiring a path. Detailed explicit-empty handling verbosity and capture without requiring a path.
and any demonstrated need for verbosity without capture remain separate choices.
**Explicit-empty decision:** An explicitly empty `--debug-dir ""` or
`debug.directory: ""` disables capture while preserving native debug verbosity
and reporting-mode ordering. Omission inherits the configured value or default;
an explicit empty value is meaningful and must not fall back to either. CLI
selection overrides configuration, including when the CLI value is empty. A
nonempty CLI directory can therefore re-enable capture over an empty configured
directory when `--debug` is enabled. No additional flag is needed for verbosity
without capture.
Recognize an empty value before resolving relative paths so it cannot become the
invocation or configuration directory. Disabled capture creates no bundle and
leaves `latest` untouched. A nonempty but unusable destination follows the
requested-capture failure policy when capture is enabled; it does not silently
disable capture or select a fallback directory.
Determine capture from the application boolean and destination, not from Determine capture from the application boolean and destination, not from
`Invocation.ReportingMode()`. A later quiet or verbose selection can change `Invocation.ReportingMode()`. A later quiet or verbose selection can change
presentation without clearing the debug input. Explicit `--debug=false` follows presentation without clearing the debug input. Explicit `--debug=false` follows
native boolean binding semantics and disables capture. native boolean binding semantics and disables capture.
| Invocation flags | Reporting selection | Capture | | Configured directory | Invocation flags | Reporting selection | Capture |
| --- | --- | --- | | --- | --- | --- | --- |
| No `--debug`, with any directory selection | Selected native mode | None. | | Any | No `--debug`, with any directory selection | Selected native mode | None. |
| `--debug`, no directory override | Debug | Enabled under `/tmp/notarius-debug`. | | Omitted | `--debug` | Debug | `/tmp/notarius-debug`. |
| `--debug`, with a directory override | Debug | Enabled under the selected root. | | `/var/tmp/notarius` | `--debug` | Debug | `/var/tmp/notarius`. |
| `--debug --quiet`, with any directory selection | Quiet | Enabled. | | Any | `--debug --debug-dir ""` | Debug | None. |
| `--quiet --debug`, with any directory selection | Debug | Enabled. | | `""` | `--debug` | Debug | None. |
| `""` | `--debug --debug-dir /tmp/investigation` | Debug | `/tmp/investigation`. |
| Omitted | `--debug --quiet` | Quiet | `/tmp/notarius-debug`. |
| Omitted | `--quiet --debug` | Debug | `/tmp/notarius-debug`. |
| Any | `--debug --quiet --debug-dir ""` | Quiet | None. |
**Upstream ordering clarification:** CommandKit uses the last enabled reporting **Upstream ordering clarification:** CommandKit uses the last enabled reporting
mode. Thus `--debug --quiet` suppresses command output while retaining capture; mode. Thus `--debug --quiet` suppresses command output while retaining capture
`--quiet --debug` selects debug verbosity. Preserve that native ordering rather when the effective directory is nonempty; `--quiet --debug` selects debug
than making quiet unconditional. Quiet still shows failure explanations, and verbosity. Preserve that native ordering rather than making quiet unconditional.
capture does not bypass result suppression. On success the normal run report Quiet still shows failure explanations, and capture does not bypass result
includes the bundle location; failure explanations include an allocated bundle suppression. On success the normal run report includes the bundle location when
path when available. capture was enabled; failure explanations include an allocated bundle path when
available.
### Native Evidence And A Small Application Recorder ### Native Evidence And A Small Application Recorder
@@ -1112,11 +1131,10 @@ compatibility framework.
Resolve U1's dependency baseline and U10's CommandKit scope from items 1–4. Narrow Resolve U1's dependency baseline and U10's CommandKit scope from items 1–4. Narrow
U9 to remaining durable-field and accounting choices, and debug implementation U9 to remaining durable-field and accounting choices, and debug implementation
details within item 5's resolved inventory and depth. Preserve its separate details within item 5's resolved inventory, depth, and directory controls.
open directory-control choices. Reconcile removal inventory and acceptance Reconcile removal inventory and acceptance criteria, including old
criteria, including old inspection-command and machine-output compatibility inspection-command and machine-output compatibility assumptions. Preserve
assumptions. Preserve unresolved schema handling, role-specific retry/fallback unresolved schema handling, role-specific retry/fallback policy, worker defaults,
policy, worker defaults,
checkpoint transition choices, and other concrete choices until actually settled. checkpoint transition choices, and other concrete choices until actually settled.
Once incorporated, the master roadmap owns implementation sequencing and status; Once incorporated, the master roadmap owns implementation sequencing and status;