H1+H2: headquarters_body is reset+derived every run (DB is never source); optional authored frontmatter override, hard-validated; tiebreak now population DESC -> city-bearing body -> type rank -> body_id, preserving belt tenancies and fixing GJ702B to GJ702Bb. T2: NULL-reset pass for corp_specialization/hq_placement before authored re-apply (poison-tested). T1: wiki/corporations/*.md globbed into IMPORT_ECONOMICS_SOURCES. M1: licensed_clinical_services vocabulary value (31st, NonPhysical->CityTenant) + somatic-futures retag. Fixpoint verified stable across 4 consecutive regens (0 diffs); regen systems.db. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
64 lines
2.2 KiB
Python
64 lines
2.2 KiB
Python
"""Source-file path constants for the economy_import modules.
|
|
|
|
Single façade: modules import their input paths from here. Paths that are
|
|
also part of the import_economics meta-stamp source set are defined once in
|
|
tooling/generator_sources.py and re-exported, so the stamp registry and the
|
|
importer can never disagree about where a stamped source lives.
|
|
"""
|
|
|
|
from pathlib import Path
|
|
|
|
from generator_sources import (
|
|
ARCHITECTURE_TRAIT_BIAS_TOML,
|
|
ARCHITECTURE_TRAIT_CATALOG_TOML,
|
|
ARCHITECTURE_ZONE_BIAS_TOML,
|
|
COLOR_REGISTER_BANDS_TOML,
|
|
CORP_HQ_PLACEMENT_TOML,
|
|
CORPORATIONS_DIR,
|
|
GENERATE_BRANDS_WRAPPER,
|
|
OBJECT_TAG_VOCABULARY_TOML,
|
|
REPO_ROOT,
|
|
SETTLEMENT_NAME_LOCKED_TOML,
|
|
SPECIALIZATION_VOCAB_TOML,
|
|
SYSTEM_SPECIALIZATION_TOML,
|
|
)
|
|
|
|
__all__ = [
|
|
"ARCHITECTURE_TRAIT_BIAS_TOML",
|
|
"ARCHITECTURE_TRAIT_CATALOG_TOML",
|
|
"ARCHITECTURE_ZONE_BIAS_TOML",
|
|
"BRANDS_TOML",
|
|
"CHAINS_TOML",
|
|
"COLOR_REGISTER_BANDS_TOML",
|
|
"COMMODITIES_TOML",
|
|
"CORPORATIONS_DIR",
|
|
"CORP_HQ_PLACEMENT_TOML",
|
|
"CURRENCY_ZONES_TOML",
|
|
"DB_PATH",
|
|
"GENERATED_BRANDS_TOML",
|
|
"GENERATE_BRANDS_WRAPPER",
|
|
"OBJECT_TAG_VOCABULARY_TOML",
|
|
"REPO_ROOT",
|
|
"SCHEMA_SQL",
|
|
"SETTLEMENT_NAME_LOCKED_TOML",
|
|
"SPECIALIZATION_VOCAB_TOML",
|
|
"STAR_MAP",
|
|
"SYSTEM_SPECIALIZATION_TOML",
|
|
"WIKI_STAR_SYSTEMS",
|
|
]
|
|
|
|
DB_PATH: Path = REPO_ROOT / "server" / "data" / "systems.db"
|
|
STAR_MAP: Path = REPO_ROOT / "docs" / "design" / "star-map.json"
|
|
COMMODITIES_TOML: Path = REPO_ROOT / "wiki" / "economics" / "commodities.toml"
|
|
CHAINS_TOML: Path = REPO_ROOT / "wiki" / "economics" / "production_chains.toml"
|
|
CURRENCY_ZONES_TOML: Path = REPO_ROOT / "wiki" / "economics" / "currency_zones.toml"
|
|
SCHEMA_SQL: Path = REPO_ROOT / "server" / "data" / "systems-schema.sql"
|
|
# CORPORATIONS_DIR moved to generator_sources.py (T1, PR #177): the corp pages
|
|
# are now part of the stamped source set, and stamped paths are defined once
|
|
# in the registry — re-exported via the import block above.
|
|
WIKI_STAR_SYSTEMS: Path = REPO_ROOT / "wiki" / "star-systems"
|
|
BRANDS_TOML: Path = REPO_ROOT / "wiki" / "economics" / "corporations" / "brands.toml"
|
|
GENERATED_BRANDS_TOML: Path = (
|
|
REPO_ROOT / "wiki" / "economics" / "corporations" / "generated_brands.toml"
|
|
)
|