|
| 1 | +# IronFamily.FileEngine — Cleanup Phase 2 Report |
| 2 | + |
| 3 | +Date: 2026-05-07 |
| 4 | +Branch: master |
| 5 | +Commits made this run: 9 |
| 6 | + |
| 7 | +## 1. Summary |
| 8 | + |
| 9 | +- Phase A (legacy delete): skipped in this run (already deleted earlier); re-verify grep as specified returns hits due to active `IronConfig.Crypto` namespace usage in non-legacy code |
| 10 | +- Phase B (duplicate vectors): done (deleted untracked `libs/ironconfig-dotnet/tests/artifacts/vectors/`) |
| 11 | +- Phase C (empty shells): partially done (deleted untracked `tools/rv002_repro/`; skipped `tools/bench/` and `tools/bench_deps/` due to tracked content) |
| 12 | +- Phase D (consolidate bench): 6 of 7 tools merged (skipped `bench_profiles` — build broke); `unified-bench` left standalone |
| 13 | +- Phase E (CI guard): added `.github/workflows/forbidden-paths.yml` |
| 14 | +- Build status: .NET PASS, CMake PASS |
| 15 | + |
| 16 | +## 2. Bench consolidation results |
| 17 | + |
| 18 | +| Tool | Action taken | Notes | |
| 19 | +|------|--------------|-------| |
| 20 | +| bench-datasets | merged into `tools/megabench/Tools/BenchDatasets/` | kept as separate csproj | |
| 21 | +| bench_profiles | skipped | `dotnet build` failed: CS0017 (multiple entry points) + CS1503 in BenchmarkProfilesStabilized; needs refactor decision | |
| 22 | +| CRC32_KAT | merged into `tools/megabench/Tools/Crc32Kat/` | kept as separate csproj | |
| 23 | +| diff-bench | merged into `tools/megabench/Tools/DiffBench/` | kept as separate csproj | |
| 24 | +| ilog_bench | merged into `tools/megabench/Tools/IlogBench/` | kept as separate csproj | |
| 25 | +| incremental-bench | merged into `tools/megabench/Tools/IncrementalBench/` | kept as separate csproj | |
| 26 | +| iupd_bench_real | merged into `tools/megabench/Tools/IupdBenchReal/` | deleted empty nested `tools/rv002_repro/` | |
| 27 | + |
| 28 | +## 3. unified-bench analysis |
| 29 | + |
| 30 | +`tools/unified-bench/` appears to be a self-contained benchmark suite (with competitor codecs + a lot of internal writeups/logs) that produces internal decision docs (e.g. verdict/recommendations) alongside executable benchmarks. It is larger than the other small tools and contains multiple subfolders (CompetitorBenchmarks/MainBenchmarks/MicroBenchmarks/MemoryProfiling) plus many deliverable markdown/txt/log files. Recommendation: keep it separate under `tools/` for now; if it is still actively used, plan a dedicated migration into `tools/megabench/` after agreeing on what deliverables belong in-repo vs artifacts. |
| 31 | + |
| 32 | +Top-level files (selected): `unified-bench.csproj`, `Program.cs`, `IoTArtifactBenchmark.cs`, `IoTLogBenchmark.cs`, `SerializationFormatBenchmark.cs`, `VERDICT_AND_RECOMMENDATIONS.md`. |
| 33 | + |
| 34 | +## 4. Skipped — needs human review |
| 35 | + |
| 36 | +- Phase A re-verify command is too broad: it flags active `IronConfig.Crypto` namespace usage (non-legacy). If you want a strict re-verify, search specifically for legacy project path references (e.g. `legacy/IronConfig.Crypto/*.csproj`) or for removed legacy namespaces (Icf2/Icfx/Icxs/Bjv) outside legacy. |
| 37 | +- `tools/bench/` not deleted (contains tracked `compare_baseline.ps1`). Decide whether to keep it under `tools/megabench/Tools/` or retire it. |
| 38 | +- `tools/bench_deps/` not deleted (contains `README.md`). Decide whether it should live under `tools/megabench/Tools/` or be removed. |
| 39 | + |
| 40 | +## 5. Loose tools/ files (Icf2VectorGenerator.*, icfg_golden_vector_gen.cs) |
| 41 | + |
| 42 | +- `tools/Icf2VectorGenerator.csproj` is not in any solution; the implementation was retired (stub) to remove references to deleted legacy ICF2 APIs. |
| 43 | +- `tools/Icf2VectorGenerator.cs` exists (retired stub). |
| 44 | +- `tools/icfg_golden_vector_gen.cs` exists and is not referenced by any solution; treat as possibly dead until confirmed. |
| 45 | + |
| 46 | +## 6. New top-level structure |
| 47 | + |
| 48 | +``` |
| 49 | +. |
| 50 | +├── .github/ |
| 51 | +│ ├── ISSUE_TEMPLATE/ |
| 52 | +│ ├── workflows/ |
| 53 | +│ ├── CODEOWNERS |
| 54 | +│ ├── pull_request_template.md |
| 55 | +│ ├── release.yml |
| 56 | +│ ├── repo-topics.txt |
| 57 | +├── artifacts/ |
| 58 | +│ ├── bench/ |
| 59 | +│ ├── vectors/ |
| 60 | +├── bench/ |
| 61 | +│ ├── baselines/ |
| 62 | +│ ├── budgets/ |
| 63 | +│ ├── reproduce.ps1 |
| 64 | +│ ├── reproduce.sh |
| 65 | +├── docs/ |
| 66 | +│ ├── wiki/ |
| 67 | +│ ├── ENGINE_TRUTH_SUMMARY.md |
| 68 | +│ ├── ICFG_COMPATIBILITY.md |
| 69 | +│ ├── ICFG_SCHEMA_AND_TYPES.md |
| 70 | +│ ├── ICFG_SPEC.md |
| 71 | +│ ├── ILOG_COMPATIBILITY.md |
| 72 | +│ ├── ILOG_SCHEMA_AND_TYPES.md |
| 73 | +│ ├── ILOG_SPEC.md |
| 74 | +│ ├── IUPD_COMPATIBILITY.md |
| 75 | +│ ├── IUPD_SPEC.md |
| 76 | +│ ├── IUPD_STRUCTURE_AND_VALIDATION.md |
| 77 | +│ ├── NATIVE_C_API.md |
| 78 | +│ ├── NATIVE_C_EXAMPLES.md |
| 79 | +│ ├── README.md |
| 80 | +│ ├── RELEASE_PROCESS.md |
| 81 | +├── incremental_vectors/ |
| 82 | +│ ├── refusal_01_wrong_base_hash/ |
| 83 | +│ ├── refusal_02_unknown_algorithm/ |
| 84 | +│ ├── refusal_03_corrupted_crc32/ |
| 85 | +│ ├── refusal_04_target_hash_mismatch/ |
| 86 | +│ ├── refusal_05_missing_metadata/ |
| 87 | +│ ├── success_01_delta_v1_simple/ |
| 88 | +│ ├── success_02_irondel2_simple/ |
| 89 | +│ ├── success_03_delta_v1_medium/ |
| 90 | +│ ├── success_04_irondel2_medium/ |
| 91 | +│ ├── success_05_delta_v1_no_target/ |
| 92 | +│ ├── manifest.json |
| 93 | +├── libs/ |
| 94 | +│ ├── bjv-c/ |
| 95 | +│ ├── bjv-cpp/ |
| 96 | +│ ├── ironcfg-c/ |
| 97 | +│ ├── ironcfg-cpp/ |
| 98 | +│ ├── ironconfig-dotnet/ |
| 99 | +├── native/ |
| 100 | +│ ├── cmake/ |
| 101 | +│ ├── ironfamily_c/ |
| 102 | +│ ├── tests/ |
| 103 | +│ ├── third_party/ |
| 104 | +│ ├── CMakeLists.txt |
| 105 | +├── out/ |
| 106 | +│ ├── native/ |
| 107 | +├── releases/ |
| 108 | +│ ├── v0.1.0-internal.md |
| 109 | +├── specs/ |
| 110 | +│ ├── IRONDEL2_SPEC_MIN.md |
| 111 | +├── testing/ |
| 112 | +│ ├── fixtures/ |
| 113 | +│ ├── ilog/ |
| 114 | +│ ├── ironcfg/ |
| 115 | +│ ├── iupd/ |
| 116 | +│ ├── README.md |
| 117 | +├── tests/ |
| 118 | +│ ├── IronFamily.OtaCli.Tests/ |
| 119 | +├── tools/ |
| 120 | +│ ├── artifacts/ |
| 121 | +│ ├── bench/ |
| 122 | +│ ├── bench_deps/ |
| 123 | +│ ├── bench_profiles/ |
| 124 | +│ ├── datasets/ |
| 125 | +│ ├── delta-matrix/ |
| 126 | +│ ├── diagnostics/ |
| 127 | +│ ├── docs_truth_gate/ |
| 128 | +│ ├── evidence_verifier/ |
| 129 | +│ ├── gauntlet/ |
| 130 | +│ ├── git_policy/ |
| 131 | +│ ├── incremental-vector-gen/ |
| 132 | +│ ├── incremental-vector-test-net/ |
| 133 | +│ ├── ironcert/ |
| 134 | +│ ├── ironconfigtool/ |
| 135 | +│ ├── IronFamily.OtaCli/ |
| 136 | +│ ├── IronFamily.Vectors/ |
| 137 | +│ ├── megabench/ |
| 138 | +│ ├── unified-bench/ |
| 139 | +│ ├── dataset_generator.csx |
| 140 | +│ ├── generate_golden_vectors.py |
| 141 | +│ ├── Icf2VectorGenerator.cs |
| 142 | +│ ├── Icf2VectorGenerator.csproj |
| 143 | +│ ├── icfg_golden_vector_gen.cs |
| 144 | +├── vectors/ |
| 145 | +│ ├── large/ |
| 146 | +│ ├── medium/ |
| 147 | +│ ├── small/ |
| 148 | +├── .gitignore |
| 149 | +├── CLEANUP_REPORT.md |
| 150 | +├── CMakeLists.txt |
| 151 | +├── CMakePresets.json |
| 152 | +├── CODE_OF_CONDUCT.md |
| 153 | +├── CONTRIBUTING.md |
| 154 | +├── Directory.Build.props |
| 155 | +├── global.json |
| 156 | +├── CHANGELOG.md |
| 157 | +├── LICENSE |
| 158 | +├── README.md |
| 159 | +├── SECURITY.md |
| 160 | +``` |
| 161 | + |
| 162 | +## 7. Build verification |
| 163 | + |
| 164 | +- dotnet build: PASS (`dotnet build .\\libs\\ironconfig-dotnet\\IronConfig.sln -c Release`) |
| 165 | +- cmake build: PASS (`cmake --preset native-windows-debug` + `cmake --build --preset native-windows-debug`) |
| 166 | + |
| 167 | +## 8. Recommended next steps |
| 168 | + |
| 169 | +1. Decide what to do with `tools/bench_profiles/` (fix multiple-entry-point project layout vs retire it). |
| 170 | +2. Decide whether `tools/unified-bench/` should be migrated into megabench, kept as a separate tool, or archived; also decide whether its deliverable/log files belong under `artifacts/` instead of tracked source. |
| 171 | +3. Decide whether to retire or migrate `tools/bench/` and `tools/bench_deps/` into `tools/megabench/Tools/`. |
| 172 | +4. If you still want Phase A re-verify to be meaningful, replace the grep with a check for project path references to legacy folders (not namespace string matches). |
| 173 | + |
| 174 | +--- |
| 175 | + |
| 176 | +### Commits made this run |
| 177 | +``` |
| 178 | +86d89ce ci: add forbidden-paths guard to prevent build artifacts in git |
| 179 | +5d47006 refactor(bench): consolidate iupd_bench_real into megabench/Tools |
| 180 | +98c210c refactor(bench): consolidate incremental-bench into megabench/Tools |
| 181 | +1fd4530 refactor(bench): consolidate ilog_bench into megabench/Tools |
| 182 | +3711967 refactor(bench): consolidate diff-bench into megabench/Tools |
| 183 | +a606ff9 refactor(bench): consolidate CRC32_KAT into megabench/Tools |
| 184 | +ba4bc3e refactor(bench): consolidate bench-datasets into megabench/Tools |
| 185 | +eac5a8e chore(tools): retire legacy ICF2 vector generator |
| 186 | +27e763a chore(tools): remove legacy format commands from ironconfigtool |
| 187 | +``` |
0 commit comments