Repository navigation
fix(agent): preserve millisecond provenance and session timestamps - #285
Merged
geekgonecrazy merged 2 commits intoOct 26, 2026
Merged
geekgonecrazy merged 2 commits into
geekgonecrazy merged 2 commits into
Conversation
Accept second and millisecond epochs at the session-date formatting boundary. Normalize the old projector's expanded-year created_at strings only in returned session-ledger KG read models, including read-only queries. Keep KG_GENERATION at 2. Do not require a migration, reindex, or writable open; leave timestamp producers, ordering, RPC payloads, provenance bytes, and session-manifest heads unchanged. Add regressions using DDSB7T6MPKZB's 1792920379589 timestamp. Verify correct dates and millisecond precision, unchanged valid dates and unrelated nodes, and unchanged cached KG bytes and generation after read-only queries. Validation: 3683 core library tests and all 9 KG-projection integration tests pass.
Use millisecond epochs for new goal, reasoning, response, graph, request-metadata, turn-envelope, and session lifecycle writes. Preserve subsecond turn durations and keep explicit timestamp_millis graph construction separate from raw historical imports. Share compatibility decoding and chronological comparisons across graph/session readers, trace export, triage, and CLI listings. Convert to protobuf seconds plus nanoseconds without losing milliseconds. Historical payloads remain byte-for-byte intact; causal links still take precedence over clocks. No KG generation bump, migration, or reindex is required. Cover same-second actions through journal replay, graph preparation, session storage and KG projection; legacy seconds, mixed-unit ordering, clock skew, raw-byte preservation, fallback callbacks, envelope durations and RPC precision. Core, agent, RPC, KG-projection, triage and targeted CLI suites pass; final accumulator and consistency regressions also pass.
geekgonecrazy
approved these changes
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation