[PR #1186] awc_cue_labels: reject excessively nested JSON (AWC-CUE-JSON-DEPTH) #1218

Open
opened 2026-11-26 20:20:29 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1186
Author: @Taffyyy-ops
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: fix/awc-cue-json-depth


📝 Commits (2)

  • bb91633 awc_cue_labels: reject excessively nested JSON (AWC-CUE-JSON-DEPTH)
  • 6722fc8 awc_cue_labels: enforce deterministic JSON nesting depth cap

📊 Changes

2 files changed (+89 additions, -1 deletions)

View changed files

➕ tests/test_awc_cue_json_depth.py (+58 -0)
📝 tools/awc_cue_labels.py (+31 -1)

📄 Description

Claimed in the coordination issue as: AWC-CUE-JSON-DEPTH

What and why

A deeply nested invalid cue sheet raises RecursionError during JSON decoding and prints a traceback. Convert it to a concise ValueError so the CLI exits cleanly without publishing a label directory.

Tested

  • python -I tests/test_awc_cue_json_depth.py: 2 passed, synthetic inputs only.
  • python -I tests/test_awc_cue_labels.py: 2 passed.
  • python -I scripts/check_no_game_data.py; git diff --check: passed.
  • Windows 11, Python standard library. GPU not required.

AI-assisted: yes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1186 **Author:** [@Taffyyy-ops](https://github.com/Taffyyy-ops) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/awc-cue-json-depth` --- ### 📝 Commits (2) - [`bb91633`](https://github.com/ubiquitarianism/leonida/commit/bb916335511b39ab05be196b0d5932abaca7e8d3) awc_cue_labels: reject excessively nested JSON (AWC-CUE-JSON-DEPTH) - [`6722fc8`](https://github.com/ubiquitarianism/leonida/commit/6722fc8c64474181bc6474c5d28523f46acf014d) awc_cue_labels: enforce deterministic JSON nesting depth cap ### 📊 Changes **2 files changed** (+89 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `tests/test_awc_cue_json_depth.py` (+58 -0) 📝 `tools/awc_cue_labels.py` (+31 -1) </details> ### 📄 Description Claimed in the coordination issue as: AWC-CUE-JSON-DEPTH ### What and why A deeply nested invalid cue sheet raises RecursionError during JSON decoding and prints a traceback. Convert it to a concise ValueError so the CLI exits cleanly without publishing a label directory. ### Tested - python -I tests/test_awc_cue_json_depth.py: 2 passed, synthetic inputs only. - python -I tests/test_awc_cue_labels.py: 2 passed. - python -I scripts/check_no_game_data.py; git diff --check: passed. - Windows 11, Python standard library. GPU not required. AI-assisted: yes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1218
No description provided.