Skip to content

Fix JsonUtils typed loads validation#1497

Open
duyua9 wants to merge 1 commit intovolcengine:mainfrom
duyua9:fix-jsonutils-loads-typeadapter
Open

Fix JsonUtils typed loads validation#1497
duyua9 wants to merge 1 commit intovolcengine:mainfrom
duyua9:fix-jsonutils-loads-typeadapter

Conversation

@duyua9
Copy link
Copy Markdown

@duyua9 duyua9 commented Apr 16, 2026

Summary\n- instantiate TypeAdapter before validating typed JsonUtils.loads input\n- export JsonUtils from memory utils\n- add regression coverage for raw dict and Pydantic model loading\n\n## Validation\n- python3 -m py_compile openviking/session/memory/utils/json_parser.py openviking/session/memory/utils/init.py tests/session/memory/test_json_stability.py\n- PYTHONPATH=. uv run --no-project --with ruff python -m ruff check --select I,F401 openviking/session/memory/utils/json_parser.py openviking/session/memory/utils/init.py tests/session/memory/test_json_stability.py\n- PYTHONPATH=. uv run --no-project --with pydantic --with json-repair python - <<'PY' ... direct JsonUtils.loads regression check\n\nNote: full pytest through uv run is blocked in this local environment because editable install builds the bundled Rust AGFS/CLI and the installed CommandLineTools libxcrun.dylib has an incompatible architecture. Running pytest without installing the project then fails in tests/conftest.py because the bundled AGFS client is unavailable.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 16, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🏅 Score: 95
🧪 PR contains tests
🔒 No security concerns identified
✅ No TODO sections
🔀 No multiple PR themes
⚡ No major issues detected

@github-actions
Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants