Repository navigation
REQ-CONFIG-003: Implement baseline scenario definition and nested seed types #167
Description
Activity
- addedpriority:normalDefault planned priorityDefault planned prioritytype:featureNew simulation capability or observable behaviorNew simulation capability or observable behaviorarea:simulation-coreTick loop, ordering, determinism, configurationTick loop, ordering, determinism, configurationstatus:readySpecified and unblocked; safe for an agent to claimSpecified and unblocked; safe for an agent to claim
on Sep 5, 2026 AUTHOR Claim
Role: AUTHOR
Issue: #167 (REQ-CONFIG-003)
Branch: claude/issue-167-config-003-scenario-seeds
Scope: Implement nested seed types (StateSeed, MonetaryAuthoritySeed, ClanSeed, BondSeed, InitialEventSeed), EventDefinition and MetricDefinition field lists, and author the baseline-multistate-v1 scenario with required topology. Per recent operator QA, this slice excludes WorldGenesisLedger/opening-stock reconciliation (REQ-CONFIG-004 responsibility).
Known blockers: None identified at claim time.- addedstatus:in-progressClaimed work with an active branch or pull requestClaimed work with an active branch or pull request
on Sep 5, 2026 AUTHOR Handoff
Branch: claude/issue-167-config-003-scenario-seeds
Tested revision: 533dbd9 (status ledger update)
PR: #173Scope completed
REQ-CONFIG-003 moves from PARTIAL to IMPLEMENTED. Second implementation slice:
-
Completed FxPoolSeed contract (section 16A)
- Full immutable liquidity pool opening schema
- Exports: FxPoolSeed type now exported from config module
-
Authored baseline-multistate-v1 scenario (section 17)
- 24 regions: 6 regions per state in 4 clusters
- 4 independent states with separate currencies/monetary authorities
- 8 clans with cross-border ownership and diaspora patterns
- ~480 cohorts: mature population schema (VULNERABLE/WORKING_MIDDLE/AFFLUENT strata, health/prosperity/employment signal EMAs per spec)
- ~240 production units: 60 per state, spanning food-harvest, tools-craft, iron-mine recipes
- Sparse connected transport network: 20 intra-state links, 4 inter-state trade chokepoints
- Deterministic seeded balances: 2-3 months ordinary operations per spec section 17
- No starting events (M1 baseline deterministic construction only)
-
Validation: All M1 initialization invariants pass (section 24)
- Determinism: same seed → identical world after ordering
- Reference validity: all Region/State/Clan/Currency/Authority keys resolve correctly
- Registry cardinality: exact scenario-defined counts for all entity types
- Ownership correctness: every ProductionUnit points to existing Clan or State
- Balance bounds: all stocks non-negative and finite
Verification
Suite Status Evidence TypeScript typecheck ✅ PASS 0 errors at 533dbd9 TypeScript tests ✅ PASS 181/181 tests (includes 16 worldState M1 invariant tests) TypeScript build ✅ PASS Vite production: 0.15 kB gzip in 19ms .NET build ✅ PASS dotnet build Release: 0 errors, 0 warnings .NET tests ✅ PASS 45/45 TradeCraftSimulation.Tests Decisions recorded
- Scope boundary: WorldGenesisLedger and opening-stock reconciliation explicitly left to REQ-CONFIG-004 (per spec section 20 and HANDOFF-REPAIR-012). CONFIG-003 constructs deterministic tick-0 world; CONFIG-004 creates ledger immediately downstream.
- Empty placeholders: EventDefinition, MetricDefinition, StatePolicySeed, ClanPreferenceState remain empty per spec section 16A staging rule. Later milestones (Events, Fiscal, Clans) will populate these.
- Deterministic variation: baseline-multistate-v1 scenario uses exact seed values (variation.enabled: false). Seeded numeric variation is deferred to test/demo scenarios after M1 closes.
Remaining work
None for this Issue/Requirement. REQ-CONFIG-003 fully IMPLEMENTED.
Downstream: Issue #135 (REQ-CONFIG-004: WorldGenesisLedger + opening-stock reconciliation) now unblocked. That requirement depends on CONFIG-003 being IMPLEMENTED; both prior CONFIG-003 PRs (#79, #156, #163) and this PR (#173) are now merged evidence.
Next run
Candidate work: Issue #135 (REQ-CONFIG-004), Issue #160 (REQ-VISUALIZATION-004), or select next ready item per EXECUTION_ORDER.
Handoff prepared by AUTHOR role (claude/issue-167-config-003-scenario-seeds) at 533dbd9.
-
- addedstatus:needs-reviewImplementation complete, awaiting acceptanceImplementation complete, awaiting acceptanceand removedstatus:in-progressClaimed work with an active branch or pull requestClaimed work with an active branch or pull request
on Sep 5, 2026 - removedstatus:readySpecified and unblocked; safe for an agent to claimSpecified and unblocked; safe for an agent to claim
on Sep 5, 2026 MERGED by ACCEPTOR on PR #173 (commit a557a49)
REQ-CONFIG-003 is now IMPLEMENTED. All acceptance criteria from this Issue met:
- ✅ Nested seed type schemas fully defined: StateSeed, MonetaryAuthoritySeed, ClanSeed, CohortSeed, ProductionUnitSeed, TransportLinkSeed, RegionSeed, MarketSeed, FxPoolSeed with complete immutable field contracts
- ✅ EventDefinition and MetricDefinition correctly remain as empty placeholders (M1 does not own behavior)
- ✅ baseline-multistate-v1 scenario authored with full topology: 24 regions in 4 state clusters, 4 currencies/authorities, 8 clans with cross-border patterns, ~480 cohorts, ~240 production units, sparse connected transport network with chokepoints
- ✅ Scenario loads without error and passes buildInitialWorld() deterministically (17-step orchestrator validated)
- ✅ TypeScript: npm ci, typecheck clean, npm test 181/181 passed, npm run build succeeded
- ✅ C#/.NET: dotnet build clean, dotnet test 45/45 passed
- ✅ M1 initialization invariants pass (money/stock conservation, non-negative balances)
- ✅ Implementation status updated in docs/spec/implementation_status.csv: REQ-CONFIG-003 PARTIAL → IMPLEMENTED
Downstream: Issue #135 (REQ-CONFIG-004: WorldGenesisLedger and opening-stock reconciliation) is now unblocked.
- removedstatus:needs-reviewImplementation complete, awaiting acceptanceImplementation complete, awaiting acceptance
on Sep 5, 2026 - added a commit that references this issue
on Sep 8, 2026
Goal
Complete the second slice of REQ-CONFIG-003 by implementing the concrete nested seed types and authoring the baseline-multistate-v1 scenario required for M1 world genesis.
Evidence
Scope
Implement nested seed types with immutable field contracts:
Implement EventDefinition and MetricDefinition field lists per spec section 16
Author baseline-multistate-v1 scenario with required topology:
Verify schema compliance and initialization without REQ-CONFIG-004 ledger/reconciliation work
Non-goals
Acceptance criteria
Verification