Add versioned structured run-log export (JSON/CSV), multi-run bundles, UI entry points, and analysis utility#53
Merged
Conversation
Agent-Logs-Url: https://github.com/alanthssss/mcata/sessions/e17712f5-4ba6-4114-942b-b172b9436ccc Co-authored-by: alanthssss <32271197+alanthssss@users.noreply.github.com>
Agent-Logs-Url: https://github.com/alanthssss/mcata/sessions/e17712f5-4ba6-4114-942b-b172b9436ccc Co-authored-by: alanthssss <32271197+alanthssss@users.noreply.github.com>
Agent-Logs-Url: https://github.com/alanthssss/mcata/sessions/e17712f5-4ba6-4114-942b-b172b9436ccc Co-authored-by: alanthssss <32271197+alanthssss@users.noreply.github.com>
Agent-Logs-Url: https://github.com/alanthssss/mcata/sessions/e17712f5-4ba6-4114-942b-b172b9436ccc Co-authored-by: alanthssss <32271197+alanthssss@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add structured run log export for analysis and debugging
Add versioned structured run-log export (JSON/CSV), multi-run bundles, UI entry points, and analysis utility
Apr 21, 2026
Owner
Contributor
Author
|
All requirements from issue #52 are implemented in this PR:
All 341 tests pass. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a structured run-log export pipeline for gameplay analysis, balance tuning, debugging, and reproducible comparisons. It upgrades run persistence + export schema, exposes player/developer export entry points, and adds a small utility to parse/summarize/compare exported bundles.
Export schema + persistence overhaul
2.0.0) and export bundle schema (run-log-export.v1).runId, seed, started/ended timestamps, rounds/stages reached, outcome, final output, highest tier)avgOutputPerMove,avgMovesPerStage,energyEarnedTotal,energySpentTotal,lateGameClearSpeed)Step-level structured telemetry
stepNumber, actionboardBefore/boardAfteras plain value snapshots (no unstable object refs)energyBefore/energyAftermoveIndexWithinStage,moveIndexWithinRound, trigger flags, stage target, round number).JSON/CSV exports (current + multi-run)
GAME_CONFIG)current,recent N,all.UI export entry points + localization
?debug=export_logs): all-runs JSON, step CSV, summary CSV.en,zh-CN), and disabled when no run data exists.Workflow integration utility
src/scripts/analyzeRunLogExports.tsand npm scriptrunlog:analyze.Docs updated
docs/dev.md,docs/benchmark.md,docs/system.md,docs/balance.md, andREADME.mdupdated with export schema/workflow usage and analysis integration.Example
https://github.com/user-attachments/assets/cd547732-13f7-4796-b718-04014c5e7c3e