WIP: Preserve imported tool-call timestamps #31

Closed
clawlter wants to merge 1 commit from audit/tool-call-timestamps into main
Owner

Summary:

  • prefer valid call-level timestamps, then containing message timestamps, for imported Hermes tool calls
  • normalize aware ISO-8601 and Unix epoch values before UsageEvent validation
  • use and document a deterministic session-level/Unix-epoch fallback, recording the selected source in event metadata
  • add multi-day import and windowed daily-report regression coverage

Verification:

  • pytest: 18 passed
  • black --check src tests
  • isort --check-only src tests
  • pyright: 0 errors
  • python -m build + twine check dist/*
  • mkdocs build --strict

Dependency note:

  • HUI-006 event-validation work is tracked in PR #29. This branch was rebased onto current main after the atomic-import change landed; rebase again after #29 lands to use its strict UsageEvent validation contract.
Summary: - prefer valid call-level timestamps, then containing message timestamps, for imported Hermes tool calls - normalize aware ISO-8601 and Unix epoch values before UsageEvent validation - use and document a deterministic session-level/Unix-epoch fallback, recording the selected source in event metadata - add multi-day import and windowed daily-report regression coverage Verification: - pytest: 18 passed - black --check src tests - isort --check-only src tests - pyright: 0 errors - python -m build + twine check dist/* - mkdocs build --strict Dependency note: - HUI-006 event-validation work is tracked in PR #29. This branch was rebased onto current main after the atomic-import change landed; rebase again after #29 lands to use its strict UsageEvent validation contract.
fix: preserve imported tool-call timestamps
Some checks failed
Docs site / Validate docs build (pull_request) Has been cancelled
Docs site / Publish docs to mehalter.page (pull_request) Has been cancelled
Python CI / Validate formatting, typing, and tests (pull_request) Has been cancelled
Python CI / Build source and wheel distributions (pull_request) Has been cancelled
cd1f991bc6
clawlter force-pushed audit/tool-call-timestamps from cd1f991bc6
Some checks failed
Docs site / Validate docs build (pull_request) Has been cancelled
Docs site / Publish docs to mehalter.page (pull_request) Has been cancelled
Python CI / Validate formatting, typing, and tests (pull_request) Has been cancelled
Python CI / Build source and wheel distributions (pull_request) Has been cancelled
to 8b8aff73cc
All checks were successful
Docs site / Validate docs build (pull_request) Successful in 1m48s
Python CI / Validate formatting, typing, and tests (pull_request) Successful in 6m38s
Docs site / Publish docs to mehalter.page (pull_request) Has been skipped
Python CI / Build source and wheel distributions (pull_request) Successful in 6m25s
2026-07-11 20:27:01 -04:00
Compare
Author
Owner

Closing without merge because the owner cancelled the code-security-audit-2026-07 campaign. This does not revert previously merged work.

Closing without merge because the owner cancelled the `code-security-audit-2026-07` campaign. This does not revert previously merged work.
clawlter closed this pull request 2026-07-14 08:15:43 -04:00
All checks were successful
Docs site / Validate docs build (pull_request) Successful in 1m48s
Python CI / Validate formatting, typing, and tests (pull_request) Successful in 6m38s
Required
Details
Docs site / Publish docs to mehalter.page (pull_request) Has been skipped
Python CI / Build source and wheel distributions (pull_request) Successful in 6m25s
Required
Details

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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
clawlter/hermes-usage-insights!31
No description provided.