IronFrame OuterFortress (Cart) 01 Decomp
Documentation Menu
On This Page

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.4.1] - 2026-12-01

Fixed

  • GitHub Pages Clean-Root Paths & Artifact Propagation (.github/workflows/pages.yml): Updated overview_srcs, extra_manuals, NAV_LABELS, TOP_NAV_ITEMS, and out_rel() to read Dev/docs/{FEATURES,ROADMAP}.md and emit .github/{CONTRIBUTING,SECURITY}.md at site root (CONTRIBUTING.html / SECURITY.html) so upload-pages-artifact does not exclude .github/, excluded internal governance files (CHARTER.md, DESIGN.md) from the public Pages build, and added a 5-second metadata propagation pause before deploy-pages@v4.
  • Broken Repo-Relative Documentation Links & Test Counts (Dev/AGENTS.md, Dev/docs/{CHARTER,DESIGN,FEATURES,OPERATIONS}.md, .github/CONTRIBUTING.md, README.md): Repaired relative links shifted during outer-root slimming and aligned offline unittest documentation counts (27/27).
  • Dynamic reCart Discovery & Clean-Root Release Packager (Dev/scripts/d4b_oracle_bridges.py, Dev/scripts/package_release.py): Updated resolve_recart_dir() to probe Builds/Latest/app, highest Builds/v*/app, and _SharedLibs/reCart, slimmed _ROOT_WHITELIST and resolved Dev/docs/FEATURES.md in package_release.py, and added a tracked Markdown link-integrity regression test (Dev/scripts/tests/test_scripts_cli_and_schemas.py).
  • Refreshed v0.4.1 .decomp Bundle & Clean-Room Hardening (IronFrame-OuterFortress-Cart-01.decomp, Dev/schemas/, Dev/docs/): Scrubbed remaining uncoded character/location names from Dev/schemas/types/mg_world.h, Dev/schemas/call_graph.json, Dev/schemas/d4_rewrites/*.json, Dev/docs/{CHARTER,DESIGN}.md, Dev/AGENTS.md, and CHANGELOG.md, tightened craftsmanship_d4_helpers.py / craftsmanship_d4_normalizer.py / export_decomp_bundle.py clean-room guards, re-exported the strict 55-entry v0.4.1 .decomp bundle, and refreshed version lockstep across active.state, Dev/research.manifest.json, and Dev/schemas/decomp_recipe.json.

[0.4.0] - 2026-11-23

Added

  • Clean-Room C11 NesBus Runtime & Lockstep Scene Driver (Dev/scripts/d4_harness/): Added modular <= 250-line C11 files (nes_bus.h, nes_bus.c, nes_ppu_apu.c, nes_cpu_ops.c, nes_cpu_exec.c, d4b_lockstep_scenes.c) implementing the RP2A03 6502 (56 mnemonics / 151 opcodes), RP2C02 PPU registers/VRAM/OAM DMA, RP2A03 APU/DMC latches and stalls, iNES Mapper 2 UNROM bus-conflict bank latching, --lockstep CLI dispatch in parity_runner_main.c, 5-scene / 650-frame execution, and 8 live linked clean C11 subsystem checkpoints.
  • Mesen 2.1.1 & reCart Oracle Bridges (Dev/scripts/d4b_oracle_bridges.py, Dev/scripts/run_d4b_lockstep.py, Dev/schemas/d4b_lockstep_report.json): Added headless Mesen 2.1.1 --testRunner Lua tracing and an ephemeral .NET 8 read-only reCart.Core.dll InterpreterOracle differential witness, achieving mismatchedFrames: 0 across 650 frames ($0100-$01FF hardware stack masked), 8/8 linked C checkpoints, and 650-frame witness verification (649 transitions, boot WRAM CRC32 f1e8ba9e) in digest-only v2 Dev/schemas/d4b_lockstep_report.json alongside --offline-synthetic and rc=2 MISSING_CORPUS_MEDIA gates.
  • Bank 1..4 & BANK_06 Clean-Room Table Decoders (Dev/scripts/decode_*.py): Added four <= 250-SLOC scripts (decode_rooms_and_metatiles.py, decode_guards_and_weapons.py, decode_codec_and_audio.py, and orchestrator decode_all_bank_tables.py) extracting 256 rooms (165 unique), 6 metatile tilesets, 256 room neighbor vectors (235 unique), 51 CHR headers, 123 patrol pointers (96 unique), 160 dialog pointer offsets (144 unique, metadata only with zero retail text), 217 room actor spawns (85 unique), 7 weapon tables, 4 password layout tables, 7 codec frequencies, 255 room call tables (116 entries, 72 unique message IDs), 5 volume envelopes, 12 note periods, 132 sound/BGM descriptors (64 SFX / 68 BGM), and dmc[0] strictly into gitignored --out-dir (Corpus/work/decoded_tables/) with unresolvedFieldCount: 0.
  • Clean-Room Specification Spokes (Dev/docs/specifications/): Added three tracked structural format chapters (rooms-metatiles-and-chr-format.md, guards-weapons-and-password-format.md, codec-and-bank06-audio-format.md) linked from Dev/docs/SPECIFICATIONS.md.
  • Lockstep & Decoder Validators + Offline Unit Tests (Dev/scripts/d4b_validation_helpers.py, Dev/scripts/tests/test_d4b_and_decoders.py): Added clean-room v2 lockstep/digest/spoke validators and expanded the offline unittest suite from 20 to 25 passing tests (-W error) validating --offline-synthetic, rc=2 missing-media gates, digest-only anti-dump checks, and v0.4.0 strict .decomp packaging (test_decomp_cleanroom_and_release.py, test_scripts_cli_and_schemas.py).

Changed

  • Unified Verifier & spec_coverage.json v2 Schema (Dev/scripts/verify_track_d5.py, Dev/schemas/spec_coverage.json): Updated verify_track_d5.py to enforce multi-scene execution lockstep and 4/4 specification spokes (17/17 full checks, 11/11 offline synthetic) while staying within the 250-SLOC budget, and refreshed Dev/schemas/spec_coverage.json via decode_all_bank_tables.py --write-spec-coverage (unresolvedFieldCount: 0, 5/5 checks).
  • v0.4.0 .decomp Bundle, Manifests & Documentation (Dev/schemas/decomp_recipe.json, Dev/research.manifest.json, IronFrame-OuterFortress-Cart-01.decomp, Dev/docs/): Advanced Dev/research.manifest.json (version: "0.4.0", execution lockstep verified), Dev/schemas/decomp_recipe.json (packageVersion: "0.4.0"), and the deterministic clean-room IronFrame-OuterFortress-Cart-01.decomp bundle (55 entries, 347,247 bytes, 0 strict clean-room violations), and synchronized root documentation, AGENTS.md, active.state, and technical manuals while archiving 0.1.0 notes to keep the three-minor window (0.4.0, 0.3.0, 0.2.0).

[0.3.0] - 2026-11-22

Added

  • Zero-Tell AST C11 Normalizer, Helpers & Synthetic Fixtures (Dev/scripts/craftsmanship_d4_helpers.py, Dev/scripts/craftsmanship_d4_ast_cleaner.py, Dev/scripts/craftsmanship_d4_normalizer.py, Dev/scripts/tests/synthetic_d4_fixtures.py): Added <= 250-SLOC tools normalizing all 26 cohesive domain C modules and 8 headers (34 C/header files, 507 symbols = 499 catalog functions + 8 synthesized adapters) into clean idiomatic C11 (0 decompiler tells across all 6 tell classes, clean fixed-width s8..u64 ghidra_compat.h, zero-suppression .clangd and compile_commands.json targeting msp430-unknown-none-elf), supporting --offline-synthetic and exit-code 2 MISSING_CORPUS_MEDIA containment.
  • Zero-Body Rewrite Shards (Dev/schemas/d4_rewrites/*.json): Added 5 dependency-grouped v2 JSON shards (core_runtime.json, core_gameplay.json, overlays_b00_b02.json, overlays_b03_b04.json, overlays_b05_b06.json) recording signatures, local variable renames, applied transforms, and docstring summaries across all 26 files and 507 symbols with 0 embedded C bodies and 0 trademark or PII leaks.
  • Craftsmanship & Strict .decomp Regression Coverage (Dev/scripts/tests/test_tiers_and_coalesce.py, test_decomp_cleanroom_and_release.py, test_scripts_cli_and_schemas.py): Expanded the offline unittest suite from 18 to 20 tests (-W error) validating all 6 decompiler tell classes, comma-operator if unrolling, zero-body d4_rewrites/*.json shards, isolated --offline-synthetic normalizer runs, missing-media rc=2 gates, and 47-entry v0.3.0 .decomp packaging.

Changed

  • Strict Zero-Warning C11 Build, Tier Materializer & Verifier (Dev/scripts/build_and_verify_d4.py, Dev/scripts/materialize_decomp_tiers.py, Dev/scripts/verify_track_d5.py): Enforced -std=gnu11 -fsigned-char -O1 -ffreestanding -fno-builtin -Wall -Wextra -Wno-unused-parameter (removing -Wno-int-to-pointer-cast and -Wno-pointer-to-int-cast) across both freestanding and host parity passes (26/26 compiled, 0 errors, 0 warnings, 0 tells, 10/10 host subsystem parity assertions), added clean idiomatic C11 tier output (36 synced files in Corpus/readable/) to materialize_decomp_tiers.py, and expanded verify_track_d5.py to 15/15 full checks (9/9 offline synthetic) alongside 8/8 6502 ROM match (CRC32=25ba3d04).
  • v0.3.0 .decomp Bundle, Manifests, Docs & Snapshot Hygiene (Dev/schemas/decomp_recipe.json, Dev/research.manifest.json, IronFrame-OuterFortress-Cart-01.decomp, Dev/docs/): Updated the .decomp bundle to v0.3.0 (47 entries including d4_build_report.json and the 5 d4_rewrites/*.json shards), advanced Dev/research.manifest.json (36 readable C11 files, zero-warning build gate passed), synchronized root documentation, AGENTS.md, active.state, and technical manuals, and folded the 2026-11-20 workspace hygiene snapshot (v0.2.0 clean-room archive).

Fixed

  • Header, Override & Pointer-Width Diagnostics (Dev/schemas/types/mg_player.h, Dev/schemas/types/nes_hardware.h, Dev/schemas/d3_symbol_overrides.json): Renamed placeholder struct fields (player_status_mask, *_zp72..76, unused_reg_4009_pad, unused_reg_400d_pad) and arg0 sub-entry parameters (factor, table_index), added non-colliding g_actor_soa_ram[128] (0x0300) and g_apu_mmio_regs[24] (0x4000) overrides (2,344 header externs), unrolled 69 comma-operator if (...) conditions, eliminated dead stack variables (284 warnings) and uninitialized register locals (228 warnings), parenthesized 55 bitwise & expressions, and lowered (short)(&g_* + idx) / (&g_*)[idx] / int-to-pointer expressions cleanly without warning suppressions.
  • Clean-Room CI Recipe & Normalizer Containment (.github/workflows/ci.yml, Dev/scripts/craftsmanship_d4_normalizer.py, Dev/scripts/materialize_decomp_tiers.py): Allowed excludedFiles: [] at D4 in .github/workflows/ci.yml, relocated synthetic raw C test fixtures out of production scripts into Dev/scripts/tests/synthetic_d4_fixtures.py (with header-only fallback when tests/ is absent), and isolated craftsmanship_d4_normalizer.py (--log-dir opt-in None, isolated temp --out-dir for --offline-synthetic).

[0.2.0] - 2026-11-20

Added

  • Cohesive Domain Module Map & Symbol Override Schemas (Dev/schemas/d3_module_map.json, Dev/schemas/d3_symbol_overrides.json): Added clean-room schemas partitioning all 499 indexed functions across 26 domain-grouped C modules (10 fixed-bank src/core/ modules and 16 switchable-bank overlays/ modules), mapping 1 local label (lbl_demo_input_loop), 20 synthetic/bank-scoped symbol entries (18 deduplicated externs), 44 raw function call overrides, 8 declarative bank/signature adapters, and 9 sub-entry prototypes with zero trademark tokens or C function bodies.
  • Cohesive C Coalescer & Multi-Tier Snapshot Materializer (Dev/scripts/coalesce_d4_modules.py, Dev/scripts/materialize_decomp_tiers.py): Built deterministic tools reusing nes_cli_common.py to merge 68 line-split fragments into 26 domain C modules, resolve all 299 raw symbol aliases and 44 raw cross-bank declarations (0 remaining raw tokens across .c and headers), synthesize 8 clean-room adapters into src/core/core_unrom_and_math.c, preserve raw, sliced, and mapped local snapshot tiers, and refresh SYMBOL_MAP.md, ARCHITECTURE_WALKTHROUGH.md, .clangd, and compile_commands.json.
  • Coalescing & Tier Offline Tests (Dev/scripts/tests/test_tiers_and_coalesce.py): Expanded the offline unittest suite from 14 to 18 passing tests covering raw symbol rewrite precedence, bank-scoped BANK_03 / BANK_01 table overrides, header regeneration, adapter synthesis, --offline-synthetic tier generation, idempotent sliced-tier preservation, and fail-closed exit code 2 missing-media handling.

Changed

  • Mapped C Parity Harness & Freestanding Build (Dev/scripts/d4_harness/, Dev/scripts/build_and_verify_d4.py): Updated parity_rom_and_mapper_tests.c, parity_gameplay_and_audio_tests.c, and synthetic extern generators to mapped g_* scalar and array globals (g_fixed_tbl_ff99, g_vram_transfer_queue, g_snd_pause_backup), verifying 26/26 freestanding C11 module compilations (0 errors, 0 warnings) and 10/10 host parity assertions.
  • Integrity Verifier, v0.2.0 .decomp Bundle & Documentation (Dev/scripts/verify_track_d5.py, Dev/schemas/decomp_recipe.json, Dev/docs/): Expanded verify_track_d5.py to 14/14 full checks (8/8 offline synthetic), updated IronFrame-OuterFortress-Cart-01.decomp and Dev/research.manifest.json to v0.2.0 (reCart 0.1.x clean-room verified), confirmed 8/8 ROM bank 1:1 6502 assembly parity (CRC32=25ba3d04), and synchronized root documentation, AGENTS.md, active.state, and technical manuals.

Fixed

  • Bank-Scoped Table Collisions, Indexed Array Rewrites & Bitwise & Safety (Dev/scripts/coalesce_d4_modules.py, Dev/schemas/d3_symbol_overrides.json): Pinned BYTE_ARRAY_bf00 explicitly to BANK_03.prg (g_b03_rom_tbl_bf00) and FUN_b622 to BANK_01.prg (g_b01_rom_tbl_b622), distinguished indexed (&DAT_0740)[i] accesses (g_vram_transfer_queue[i]) from scalar DAT_0740 reads (g_vram_transfer_queue[0]), and preserved bitwise & expressions without misclassifying them as address-of array operations.

(Earlier 0.1.0 release notes are preserved under git tag v0.1.0 and local Dev/docs/archive/.)