Record and validate bounded sets of consulted revisions for cached and asynchronous results #13

Closed
opened 2026-12-02 19:31:17 +00:00 by faumaray · 1 comment
Owner

A path search reads neighboring chunks for clearance, support and unreachable frontiers. A mesh reads neighbors at chunk boundaries. Applying either result requires the incarnation and the revisions of all records actually read. Tracking only the final route or emitted geometry misses dependencies.

The pinned graph algorithms can compare a graph-wide version during one traversal. A later cache lookup or publication also needs to check a caller-collected read set against a changed world. Immutable publication, covered by issue #5, supplies the value and publication identity. The present request concerns dependencies consulted while computing that value. Existing graph contract · Downstream path contract

Would a bounded collection of distinct key/revision pairs qualified by an epoch fit the library? A consumer should be able to detect conflicting observations and capacity exhaustion, then validate the set against a stable read view on publication/reuse. The application supplies the key, revision lookup and invalidation policy.

Replacement tests would keep a cached result across an unrelated edit, invalidate it on a neighboring support change, invalidate a previously failed search when its consulted frontier opens, and reject it after an epoch change even if all numeric revisions match. Repeated reads of one unchanged key should consume one entry. A conflicting read or an exceeded bound should be reported before a result can be published.

A path search reads neighboring chunks for clearance, support and unreachable frontiers. A mesh reads neighbors at chunk boundaries. Applying either result requires the incarnation and the revisions of all records actually read. Tracking only the final route or emitted geometry misses dependencies. The pinned graph algorithms can compare a graph-wide version during one traversal. A later cache lookup or publication also needs to check a caller-collected read set against a changed world. Immutable publication, covered by [issue #5](https://git.faumaray.com/Void/Library/issues/5), supplies the value and publication identity. The present request concerns dependencies consulted while computing that value. [Existing graph contract](https://git.faumaray.com/Void/Library/src/commit/7b0fea6095f603f9e1904f66dfdc7752f4be4792/include/Void/Algorithms/Graph.hpp) · [Downstream path contract](https://git.faumaray.com/Lagg1ng/stoneheart_at_home/src/commit/2a5df1a18b055adc71bd9d3defe2bec40c4496e7/docs/plan/systems/S03.md) Would a bounded collection of distinct key/revision pairs qualified by an epoch fit the library? A consumer should be able to detect conflicting observations and capacity exhaustion, then validate the set against a stable read view on publication/reuse. The application supplies the key, revision lookup and invalidation policy. Replacement tests would keep a cached result across an unrelated edit, invalidate it on a neighboring support change, invalidate a previously failed search when its consulted frontier opens, and reject it after an epoch change even if all numeric revisions match. Repeated reads of one unchanged key should consume one entry. A conflicting read or an exceeded bound should be reported before a result can be published.
Author
Owner

Implemented on branch issue/13-revision-read-set (local commit 63a9cc2).

Void::Algorithms::RevisionReadSet added: bounded epoch-qualified key/revision read sets with conflict, capacity and stable-view validation.

Merge request: #29

Implemented on branch `issue/13-revision-read-set` (local commit `63a9cc2`). `Void::Algorithms::RevisionReadSet` added: bounded epoch-qualified key/revision read sets with conflict, capacity and stable-view validation. Merge request: https://git.faumaray.com/Void/Library/pulls/29
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Void/Library#13