Update configuration and CLI startup documentation

This commit is contained in:
2026-11-23 14:30:39 +00:00
parent 43a7d398b6
commit 6026933b24
3 changed files with 56 additions and 116 deletions

View File

@@ -40,16 +40,9 @@ configuration, contact storage, or initialize adapters.
## Invocation syntax
Place flags after the complete command path; they may be interspersed with
operands there. For example, `narratio session plan --format json SESSION`
and `narratio session plan SESSION --format json` are equivalent. Flags are
local to the selected command. `--` ends option parsing.
Value flags accept `--name value` or `--name=value`. Boolean flags accept
presence as true or an explicit value such as `--force=false`. Repeated
single-value flags use the last successfully parsed value; every occurrence
must parse. Repeatable flags accumulate values. An explicitly supplied empty,
false, or zero value differs from omission. Narratio additionally normalizes
repeatable `--artifacts` values as described below.
operands. Use command help for installed flags. The [CommandKit CLI contract](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/0b53a63648c536afe50c46f948159116f776adae/docs/cli.md#registered-command-syntax)
describes parsing, repetition, and boolean values. Narratio additionally
normalizes repeatable `--artifacts` selections as described below.
## Configuration selectors
@@ -62,7 +55,6 @@ repeatable `--artifacts` values as described below.
| `--session ID` | Session identity for native configuration inspection only. |
| `--session-file PATH` | Exact session source; domain commands use positional `SESSION` as the identity assertion. |
| `--party-file PATH` | Select the canonical roster instead of the campaign's default file. |
| `--secrets-dir PATH` | Explicit credential-bootstrap directory. |
| `--previous-session-id ID` | Assert the configured previous-session identity on applicable domain commands. |
Explicit relative file/directory paths use the invocation directory. Explicit
@@ -74,7 +66,7 @@ players, family expansion, planning, and execution consistently.
Selectors are installed only where applicable; command help lists them.
`session init` creates new input and therefore has no existing-session-file
or party-file selection. `session clean --all` accepts pipeline/overlay/secrets
or party-file selection. `session clean --all` accepts pipeline/overlay
selection and rejects campaign, session, party, and previous-session selectors.
When no explicit session file is selected, local discovery precedes remote
@@ -190,7 +182,7 @@ narratio session init SESSION --remote --audio-s3-prefix audio/session/
Choose exactly one destination: `--output PATH` or `--remote`. Options include
`--date YYYY-MM-DD`, `--title TEXT`, `--previous-session-id ID`, `--force`,
configuration/overlay/campaign/secrets selectors, and exactly one audio override
configuration/overlay/campaign selectors, and exactly one audio override
if needed: `--audio-dir PATH` or `--audio-s3-prefix PREFIX`.
A configured session template retains its import/resource authoring context;
@@ -268,26 +260,11 @@ narratio config explain --list --under /scriptorium --historical
narratio config validate --details --severity error
```
- `show` displays safe effective values; `--path POINTER` selects a current
value, including present null. An empty pointer selects the root.
- `sources` lists native source records, imports, placements, version evidence,
and empty optional-import selections. `--source-id ID` selects a record from
that load. Available source evidence can be reported after load failure.
- `explain --path POINTER` reports effective/history fragments, origins,
resolution reasons/dependencies, and safe secret-reference metadata.
`explain --list` discovers paths. `--under POINTER`, `--historical`, and
`--explicit=true|false` filter discovery; they require `--list`. Historical-only
paths do not match an explicitness filter. Neither mode supplied shows help.
- `validate` returns concise status or native structured scope outcomes.
`--details` includes findings; repeatable `--severity error|warning` and
`--code CODE` filter displayed findings, never validation success.
- `--scope all` is supported for show/validate, requiring applicable context for
every reached scope. It is unsupported for sources, explain, and diff.
Paths use JSON Pointer: escape `/` as `~1` and `~` as `~0`. Malformed pointers
fail as usage; a well-formed unknown selected path fails operationally.
Native report fields and detailed source/history semantics are documented in the
[selected CommandKit CLI contract](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/b57bfe176cff05a892e6cb07ebb5f350239e55d4/docs/cli.md#configuration-scopes).
Use native show, sources, explain, and validation operations; their options,
path syntax, findings, and report shapes are described in the
[CommandKit configuration contract](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/0b53a63648c536afe50c46f948159116f776adae/docs/cli.md#configuration-scopes).
`--scope all` is supported for show and validate and requires applicable context
for every reached scope. Domain catalog and plan views remain separate.
### Independent comparisons and overrides
@@ -304,11 +281,9 @@ and `--against-overlay`, applicable scopes accept `--against-campaign`,
defaults; they never inherit left-side selections. Each party default follows
that side's campaign.
Concise diff reports `additions`, `changes`, and `deletions`; detailed diff
reports `scope` and `differences` with `path`, `before`, `after`, and
`hidden_changed`. Snapshots distinguish absence, null, and redaction. Comparison
uses effective values rather than source arrangement. Secret changes remain
hidden safely. A diff is inspection output, not a configuration patch.
Each reached pipeline side performs its own configured startup; both sides use
the process environment. See the [native comparison contract](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/0b53a63648c536afe50c46f948159116f776adae/docs/cli.md#compare-configuration-selections)
for report and comparison semantics.
Only app inspection supports ordered, repeatable `--set POINTER=JSON`, plus
`--against-set POINTER=JSON` for the comparison side. ConfigKit applies these
@@ -325,18 +300,9 @@ reports use YAML; text uses the same data. Version and native inspection command
may have native text renderers. Report format does not change artifact formats.
There is no public report schema-version field.
| Category | Ordinary | `--quiet` | `--verbose` | `--debug` |
| --- | --- | --- | --- | --- |
| Final report | Shown | Hidden | Shown | Shown |
| Terminal failure | Shown | Shown | Shown | Shown |
| Info and Warning | Hidden | Hidden | Shown | Shown |
| Debug | Hidden | Hidden | Hidden | Shown |
| Progress by default | Hidden | Hidden | Hidden | Shown |
The last enabled quiet/verbose/debug mode wins. Explicit false clears only the
currently selected matching mode, returning to ordinary mode. There is no mode
stack. Independent `--progress` or `--progress=false` overrides the default;
quiet always suppresses progress. Verbose and progress can be combined.
[CommandKit reporting](https://forge.maximumdirect.net/base-layer/commandkit/src/commit/0b53a63648c536afe50c46f948159116f776adae/docs/cli.md#reporting) defines formats and visibility controls.
Bootstrap evidence is presented as final diagnostics on stderr, independently
of the substantive command report and its `--format` selection.
Progress covers stage transitions/reuse, audio transfers/cache reuse, and
individual durable speaker/artifact checkpoints and validated reuse. Info adds
@@ -438,6 +404,7 @@ Removed command paths have no compatibility aliases.
| `session locks SESSION` | `session locks list SESSION` |
| `--session FILE` | `--session-file FILE`; inspection `--session` now asserts identity |
| `--session-id ID` | Positional `SESSION` on domain commands; `--session ID` on config inspection |
| `--secrets-dir PATH` | Configure the main pipeline file or supply environment values; see [Secrets Handling](config.md#secrets-handling). |
| `config diff LEFT_OVERLAY RIGHT_OVERLAY` | `config diff --overlay LEFT_OVERLAY --against-overlay RIGHT_OVERLAY` |
Campaign identity and file selectors may now accompany each other. Party-file