Repository navigation
Conversation
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.
Why this matters to users
Reading calendars, yearly summaries and library dashboards should be able to use the history the reader already records. A small application should not need to parse the entire history file and keep a large book index in its own memory just to answer questions such as how much someone read this month or which books they recently finished.
A native query prototype has already been exercised on physical readers. In serial logs from an X3 processed 11 sessions across 3 books (2,292 bytes) in 165 ms, and an X4 processed 99 sessions across 6 books (13,684 bytes) in 172 ms. These are small real-world examples, not comparative benchmarks or guarantees for large libraries. They demonstrate that an application can request bounded results from an existing native history provider.
The benefit of this interface is sharing that work across applications rather than requiring each guest to implement its own parser and aggregation logic. The host retains control over the data and access permissions. The guest can release the temporary result when it needs memory for something else.
The isolated SDK proposal is read-only and format-independent. The firmware's native history provider is a separate integration; no account service or upload behavior is required by this API.
Summary
Add an optional, versioned, read-only reading-history service for applications such as reading calendars, library summaries and progress displays. A host can aggregate its existing local history efficiently without requiring each guest to parse large records or allocate a full library index.
Validation
Full upstream make test passed with the pinned FreeInk SDK. A mock host drives a real guest through capability detection, malformed arguments, asynchronous query completion, each record kind, snapshot release and absent history. No firmware-specific history provider or firmware build is included.