Skip to content
This repository was archived by the owner on Aug 9, 2026. It is now read-only.

fix(agent): serialize YAML dates in lex get --json metadata - #35

Merged
TommiLindfors merged 1 commit into
mainfrom
fix/get-json-date-serialization
Jul 25, 2026
Merged

fix(agent): serialize YAML dates in lex get --json metadata#35
TommiLindfors merged 1 commit into
mainfrom
fix/get-json-date-serialization

Conversation

@TommiLindfors

Copy link
Copy Markdown
Contributor

Summary

  • Apply the same date/datetime → ISO string coercion used for provision JSON to plain lex get ID --json {metadata, body} output.
  • Expose shared jsonable_metadata / jsonable_meta_value helpers for both paths.
  • Add a regression test with unquoted YAML dates on the whole-law JSON path.

Test plan

  • uv run pytest tests/test_agent_retrieval.py tests/test_cli.py -q
  • Confirm CI green
  • Optional: temporarily unquote a date in a local current.md and run uv run lex get ID --json

Reuse jsonable_metadata so whole-law JSON matches provision evidence and does not raise TypeError on unquoted frontmatter dates.
@TommiLindfors
TommiLindfors merged commit 8992c9e into main Jul 25, 2026
1 check passed
@TommiLindfors
TommiLindfors deleted the fix/get-json-date-serialization branch July 25, 2026 05:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant