feat(db): corp-HQ settlement model + per-settlement population/class bake (T-1074/T-1075, D-242)
Remove the reserved=1 corp-HQ city-pool cross-reference (duplicate co-named cities); corp_specialization keyed on the D-237 vocabulary extended 27->30; authored corp_hq_placement.toml {CityTenant,Standalone} map; headquarters_body backfill via lifted most-populated-body heuristic + body-type tiebreak; standalone HQs emitted as ordinary settlement rows; Zipf rank-size population spread from bodies.population at import; settlement_class defaults PopulationBudget + settlement_name_locked.toml hero pins; retire orphaned populate-corporations.sh; regen systems.db.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -74,6 +74,16 @@ SPECIALIZATION_VOCAB_TOML: Path = (
|
||||
SYSTEM_SPECIALIZATION_TOML: Path = (
|
||||
REPO_ROOT / "wiki" / "economics" / "system_specialization.toml"
|
||||
)
|
||||
# D-242 corp-HQ settlement model (T-1074): specialization -> {CityTenant,
|
||||
# Standalone} placement map, keyed on the reused D-237 vocabulary above.
|
||||
CORP_HQ_PLACEMENT_TOML: Path = (
|
||||
REPO_ROOT / "wiki" / "economics" / "corp_hq_placement.toml"
|
||||
)
|
||||
# D-242 population/settlement_class bake (T-1075): the small authored
|
||||
# NameLocked hero-city override list.
|
||||
SETTLEMENT_NAME_LOCKED_TOML: Path = (
|
||||
REPO_ROOT / "wiki" / "economics" / "settlement_name_locked.toml"
|
||||
)
|
||||
# D-232 architecture-flavor trait-template catalog + sparse hero bias (#993).
|
||||
ARCHITECTURE_TRAIT_CATALOG_TOML: Path = (
|
||||
REPO_ROOT / "wiki" / "economics" / "architecture_trait_catalog.toml"
|
||||
@@ -132,6 +142,8 @@ IMPORT_ECONOMICS_SOURCES: tuple[Path, ...] = (
|
||||
REPO_ROOT / "tooling" / "schema_version.py",
|
||||
SPECIALIZATION_VOCAB_TOML,
|
||||
SYSTEM_SPECIALIZATION_TOML,
|
||||
CORP_HQ_PLACEMENT_TOML,
|
||||
SETTLEMENT_NAME_LOCKED_TOML,
|
||||
ARCHITECTURE_TRAIT_CATALOG_TOML,
|
||||
ARCHITECTURE_TRAIT_BIAS_TOML,
|
||||
OBJECT_TAG_VOCABULARY_TOML,
|
||||
|
||||
Reference in New Issue
Block a user