Skip to content

fix: validate malformed atlas shapes before rendering - #1

Merged
sapochat merged 3 commits into
mainfrom
janus/improve-20260802-182507
Aug 3, 2026
Merged

fix: validate malformed atlas shapes before rendering#1
sapochat merged 3 commits into
mainfrom
janus/improve-20260802-182507

Conversation

@sapochat

@sapochat sapochat commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • reject non-object atlas documents before field access
  • validate root text, invariant, hierarchy, item-container, and item-field shapes
  • return controlled validation errors instead of renderer tracebacks
  • add malformed-shape regression coverage

Verification

  • PYTHONPATH=src python3 -m unittest discover -s tests -v — 8 passed
  • valid CLI render — passed
  • independent malformed-input matrix — 187/187 invalid cases rejected controllably
  • Python 3.11 and 3.14 checks — passed
  • diff/privacy scans — clean
  • independent review — passed

Review focus

  • schema strictness and error clarity for malformed JSON

@sapochat
sapochat marked this pull request as ready for review August 3, 2026 15:05
@sapochat
sapochat merged commit 9c9e3ed into main Aug 3, 2026
2 checks passed
@sapochat
sapochat deleted the janus/improve-20260802-182507 branch August 3, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant