feat: add agent_id + model_id to log --json; fix truncated flag
- _CommitJson TypedDict now includes agent_id and model_id (both always present, empty string for non-agent commits). - _commit_to_json serialises c.agent_id and c.model_id from CommitRecord. - truncated flag now correctly fires when -n limit is hit: fetch limit+1 commits, check length, slice to limit — probe pattern avoids false negatives when walk_limit == len(history). - Module docstring example updated: sha256: prefixes, agent_id/model_id fields, files_added populated, stale '--stat required' note removed. - _CommitJson docstring updated: files are always populated in --json mode. - TDD: new tests/test_log_json_schema.py with 20 tests covering schema invariants, file list population, agent provenance fields, filters, and edge cases (initial commit, merge commit two-parent).
0 comments
muse hub commit comment sha256:48ffbe325ef0c814485063ac6b560f78f40bd8ab18d5c1f9652bc526a473332e --body "your comment"
No comments yet. Be the first to start the discussion.