3.3 KiB
3.3 KiB
TopData Rebuild Handoff - 2026-04-02
Current State
This handoff captures the first implementation milestone of the topdata rebuild.
The migration direction is:
- Python
2dabuilderinsow-devremains authoritative sow-toolkitnow owns the new topdata command surfacesow-moduleis the new long-term source home for migrated topdata content- wiki generation, wiki deploy, and tophak packaging are still deferred
Implemented In This Milestone
New sow-toolkit commands
validate-topdatabuild-topdatacompare-topdata
Current behavior:
validate-topdatavalidates the newtopdata/source root insow-modulebuild-topdatacurrently uses the Python builder as a reference backend and writes outputs intobuild/topdata/compare-topdatarebuilds fresh reference output from Python and compares it againstbuild/topdata/
This is an intentional bridge: it preserves current production behavior while the deeper merge/build rules are audited and ported.
New sow-module layout
Recommended migration root now exists:
topdata/
data/
tlk/
base_dialog.json
Generated outputs are expected under:
build/topdata/
2da/
tlk/
Canonical compatibility validation
The new validator already recognizes the current family of authoring shapes:
- dataset
base.jsonwithcolumns+rows - lockfiles as object maps of key -> numeric id
- module files using
entries - module files using
overrides - plain row files using
rows - TLK files with
entries
It is intentionally permissive for now:
- legacy parseable shapes can still load
- warnings are used where a file is parseable but not canonical yet
- this keeps migration practical while still nudging toward a formal schema
Important Rules Captured So Far
These behaviors are considered core and must be preserved in the eventual native compiler:
- base fallback from
base.json - TLK fallback from
base_dialog.json/ TLK base data - snippet files and grouped files both being valid
- grouped dataset families and plain tables both being valid
- lockfile-backed IDs
- ID allocation when a key has no existing lock entry
- “only override what we intentionally touch”
- deterministic output and deterministic compare behavior
What Is Still Deferred
- native Go merge/build parity for current Python rules
- shorthand expansion porting
- dataset-specific rule porting
- local wiki generation
- wiki deploy
- tophak packaging
- canonical normalize/export command
Suggested Next Steps
- Audit the current Python rules dataset-by-dataset, especially:
classesfeatitemprops- TLK merge behavior
- Capture representative parity fixtures from the Python builder.
- Replace the reference-backed
build-topdatabridge with native Go build logic one dataset family at a time. - Add a normalize/migrate command once the canonical JSON contract is nailed down.
- Only migrate wiki generation after compiler parity is stable.
Related UX State
Separate from topdata, the content repos already have:
- auto-installing
sow-toolkitwrappers - Linux/macOS shell wrappers
- Windows PowerShell and
.cmdwrappers - simplified
START-HERE.mddocs insow-moduleandsow-assets
Windows still needs a real smoke test from an actual Windows machine.