Political World API evolution model
✅ Source + repository policy verified 📈 Framework evolution
Political World contains a useful distinction that many small mods postpone until too late:
mod version ≠ public API versionThe inspected package metadata identifies the core as 1.7.0 while the inspected API source declares 1.9.0.
A separate newer development runtime has also been observed with API 1.14.0.
These facts belong to different evidence scopes and should remain separate.
Four layers of evolution
Section titled “Four layers of evolution”A maintainable addon framework needs to track at least:
1. Core version
Section titled “1. Core version”The product/mod release.
Example:
Political World 1.7.02. Public API contract
Section titled “2. Public API contract”The versioned surface other addons compile against.
Example in inspected source:
PoliticalWorldAPI 1.9.03. Capabilities
Section titled “3. Capabilities”Fine-grained runtime feature discovery.
Example:
event.subscribelocalization.registercontent.batch-registerdiagnostics4. Internal implementation
Section titled “4. Internal implementation”Refactorable code not covered by the public compatibility promise.
Example:
Main.ScenarioBridgefolder structureprivate partial methodsinternal registriesWhy independent versions help
Section titled “Why independent versions help”The core can release gameplay fixes without changing the API contract.
The API can gain creator features without requiring a major gameplay release.
An addon can ask for the minimum public contract it needs instead of matching the full mod version.
Capability growth without hard dependency
Section titled “Capability growth without hard dependency”A new API minor can add:
new optional capabilityOlder addons remain compatible because they never request it.
Newer addons can probe:
HasCapability(...)and degrade only the optional feature.
Documentation must move with source
Section titled “Documentation must move with source”The current repository itself demonstrates the risk: source and README reached API 1.9 while several AI/versioning entry documents still described 1.6.
The architecture is sound; the documentation pipeline needs consistency checks.
Future CI opportunity
Section titled “Future CI opportunity”WorldBox Modding Docs should eventually demonstrate a check that compares:
source ApiVersionREADME API badge/textAI_START_HEREllms.txtAPI_VERSIONINGreference indexA mismatch should produce a build warning or failure.
Deprecation is part of compatibility
Section titled “Deprecation is part of compatibility”A stable API is not one that never changes.
It is one that tells consumers:
- what changed;
- when it changed;
- what replaces the old member;
- how long the migration window lasts;
- which major release may remove it.
General lesson
Section titled “General lesson”The moment another mod depends on your code, versioning becomes architecture.
Do not wait for the first breaking update to invent the rules.