Plan upstream documentation deduplication

This commit is contained in:
2026-11-23 01:03:24 +00:00
parent b1ef8e20b6
commit 04483a68e8

View File

@@ -155,36 +155,32 @@ Use native partial-write semantics: completed environment writes survive a later
bootstrap or configuration failure. This work adds no rollback, transaction,
concurrent-environment protection, or custom filesystem-hardening layer.
### Other native APIs
### Adoption boundaries
Keep configuration inspection delegated to `ckconfig`. ConfigKit's new
`InspectSubtree` and scoped `Diff` are exposed through
`ckconfig.FromConfigKitSubtree` for future focused inspection. The existing app,
campaign, session, and party scopes remain separately loaded native results.
This scope adds no new inspection scopes.
CommandKit's invocation features support application-wide flags, context
decoration, and final diagnostic reports. These capabilities are opt-in and
remain available for future demonstrated needs. Current command declarations,
configuration acquisition, and domain lifecycle remain appropriate. The upgrade
requires no new invocation feature or lifecycle wrapper. `ckconfig` handles bare
`config explain` through core's native `ErrHelpRequested` preflight signal.
The separate `ckprompt` integration's token/cost reporting observes in-process
PromptKit work. It does not automatically collect usage from Narratio's
subprocess applications and is outside this adoption scope.
`Result.Value(path)` supports root-type-independent library consumers. Existing
typed field access remains appropriate for Narratio's current consumers. This
feature requires no generic accessor framework or conversion of subprocess
adapters into in-process libraries. Continue using native metadata and resource
contexts where they serve domain interpretation.
Keep configuration inspection delegated to `ckconfig` and preserve the app,
campaign, session, and party scopes. Current typed field access, command
declarations, and domain lifecycle remain appropriate. New inspection scopes,
invocation features, generic accessors, and `ckprompt` adoption are outside this
scope. The linked upstream documentation owns those library capabilities.
Domain catalogs, credential forwarding, persisted configuration projections, and
stage-owned resume fingerprints retain their current responsibilities. Diagnostic
inspection output is not substituted for reloadable configuration or semantic
reuse evidence.
### Documentation ownership
Narratio documents which libraries it uses and links to their canonical upstream
documentation for adopted library features. Local documentation owns Narratio's
schema, selected configuration sources and scopes, adapter wiring, domain rules,
and operator workflows. General library syntax, feature behavior, and API
semantics remain documented upstream.
Keep the Narratio-specific integration decisions in this roadmap actionable;
link their underlying library semantics upstream. Implementation does not require
writing consumer-local tutorials or feature references for ConfigKit, CommandKit,
or PromptKit.
## Required Changes
### Dependency and startup wiring
@@ -218,12 +214,41 @@ environment precedence as the selected ConfigKit bootstrap policy. ADR 0003's
configuration ownership decision remains applicable.
Update the configuration reference, CLI reference, operations and troubleshooting
guidance, configuration internals, and affected maintained examples. Explain
configured-directory selection, explicit-flag precedence, overwrite behavior,
primary-source comparison startup, and the removal of automatic conventional
directory loading. Replace stale fixed-fallback and before-any-configuration-read
language in affected documents. Link detailed bootstrap behavior to the pinned
upstream contract rather than maintaining a second implementation specification.
guidance, configuration internals, and affected maintained examples. Document
Narratio's selection of configured or explicit-directory bootstrap, the primary
comparison source, and the removal of automatic conventional-directory loading.
Link upstream for bootstrap control definitions and overwrite semantics. Replace
stale fixed-fallback and before-any-configuration-read language.
Add the adopted-library documentation boundary to `docs/policy/documentation.md`,
as a focused application of its canonical-ownership rule. Record the library
integration and canonical upstream links in the existing relevant local owners.
Use links appropriate to the adopted versions and refresh them with dependency
updates; attribution remains governed separately by the OSS policy.
Review the following existing documentation for duplicated upstream explanations:
- `docs/config.md`: replace general ConfigKit composition, import, inheritance,
presence, overlay, and secret-file processing descriptions with upstream links.
Retain Narratio's schema, discovery choices, resource interpretation, and
bootstrap-route selection.
- `docs/cli.md`: link to CommandKit and `ckconfig` for generic parsing, reporting
controls, inspection operations, report fields, and pointer semantics. Retain
Narratio's command inventory, installed selectors and scopes, domain reports,
and application-specific behavior.
- `docs/internal/configuration.md`, `docs/internal/overview.md`, and
`docs/development.md`: identify imported libraries and link upstream for their
APIs; keep Narratio component ownership and integration wiring locally.
- `docs/operations.md`, `docs/troubleshooting.md`, affected integration documents,
and `examples/README.md`: keep Narratio workflows and minimal runnable examples;
replace repeated library guidance with links. Direct downstream configuration
guidance to the owning application's documentation. Describe PromptKit's role
accurately where downstream tools use it; this work adds no Narratio PromptKit
dependency.
Consolidate or remove redundant prose and repair affected links. Preserve actual
Narratio-specific choices, supported examples, and useful operator navigation.
Library behavior needs no new local prose merely because it is adopted here.
Provide a concise manual migration for operators relying on the former fallback.
Retain environment-only deployments. Preserve existing credential-protection
@@ -250,3 +275,8 @@ Run the repository's normal tests, race tests, vet, build, maintained-example,
and documentation checks in proportion to the implemented change. Default tests
use temporary files and disposable environment values and remain independent of
sibling checkouts, real credentials, and live services.
Review documentation changes for clear ownership: generic library features link
upstream, Narratio-specific behavior remains discoverable locally, and rewritten
sections introduce no runtime requirement changes. Verify affected links and
maintained examples after removing duplicated descriptions.