Adopt shared campaign and session configuration
This commit is contained in:
@@ -7,8 +7,9 @@ User-visible fields, defaults, discovery, and selection belong in the
|
||||
|
||||
## Typed Configuration Handoff
|
||||
|
||||
Pipeline, campaign, session, and party loaders retain their actual typed
|
||||
ConfigKit results. ConfigKit owns imports, overlay composition, inheritance,
|
||||
Pipeline, campaign, session, and party loaders retain their actual
|
||||
ConfigKit results. Campaign and party inputs retain shared extensions, while
|
||||
Narratio's operational settings use strict typed bindings. ConfigKit owns imports, overlay composition, inheritance,
|
||||
presence, typed secrets, and native source/history evidence. Narratio's
|
||||
supported definition callbacks complete configuration-owned defaults,
|
||||
normalization, resource resolution, and validation before handoff. Consumers
|
||||
@@ -73,9 +74,9 @@ entry imports use the source file's native relative context.
|
||||
## Canonical Party And Derived Catalog
|
||||
|
||||
File-backed party loading supports imports; contextless `ParseParty` accepts
|
||||
bytes. The definition checks the main version and effective roster. Native
|
||||
source coordinates establish roster order, favoring each child's declaration.
|
||||
A deterministic renderer materializes canonical party YAML. The selected roster
|
||||
bytes. The completed native mapping is validated against the shared contract and
|
||||
Narratio's roster requirements. Character IDs determine projection order. The
|
||||
native result supplies standalone canonical party YAML. The selected roster
|
||||
supplies both the players projection and concrete family members, including when
|
||||
an explicit party file replaces the campaign default.
|
||||
|
||||
|
||||
@@ -213,6 +213,14 @@ artifacts. Family keys, dependencies, and repeated player names still work.
|
||||
|
||||
## Stage 5 — Replace campaign and session configuration shapes
|
||||
|
||||
**Complete.** Commit: `Adopt shared campaign and session configuration`.
|
||||
Verification: focused shared-campaign, session-default, imported-origin,
|
||||
snapshot, party, family, and template-path tests passed with Go 1.27.4;
|
||||
`go test ./... -run '^$'` compiled all packages. A broader configuration and
|
||||
application test run still contains many retired campaign/session fixtures and
|
||||
the old prepared-autocorrection and spell-input consumers; acquisition,
|
||||
preparation, and fixture reconciliation belong to Stages 6, 8, 21, and 22.
|
||||
|
||||
**Read:** roadmap “Campaign and session field layout” and “Shared acquisition”;
|
||||
[Configuration Internals](../internal/configuration.md). Entry points:
|
||||
`config.go`, `document_configkit.go`, validation, resource resolution, and renderers.
|
||||
|
||||
Reference in New Issue
Block a user