Repository navigation
Description
Draft proposal — open for discussion. The API design and implementation scope are not yet agreed.
Description
Allow a kumo.pytorch graph contract to explicitly select either event_time < T (exclusive) or event_time <= T (inclusive), while preserving the existing inclusive default. Apply the selected boundary when determining eligible neighbors, before fanout selection, and consistently across graph hops and engines. The exact API field and placement are open for discussion.
Arena's existing graph workloads require strictly earlier history. Their anchors, task/workload definitions, labels and expected results should remain unchanged. Inclusive graph sampling can admit an event at T that belongs to a forecast's outcome window starting at T.
With sufficient fanout, the requested behavior is:
| Event timestamp | Exclusive policy | Inclusive policy |
|---|---|---|
T - 1 second |
Include | Include |
T |
Exclude | Include |
T + 1 second |
Exclude | Exclude |
This is a capability request, not a claim that the existing inclusive behavior violates its documented contract.
Current API and implementation
Source inspection of migration revision 134f663dcb2b17021cbc9de7292a93c6d699a56f found:
GraphSampleexposes a clock andtemporal="inherit"/"static", but no endpoint policy.TimeWindowbelongs to row/sequence/aggregate declarations and does not configure graph sampling.- The reference graph engine uses
<= root.cutoff. - The DiskGraph temporal sampler retains events equal to the anchor. Its sampling plan has no endpoint-policy field.
The same GraphSample field set was confirmed on GitHub main at 9d155981eb128a89d82320806fd9762fa6565f53 on 2026-11-13. This newer revision was inspected read-only; no migration checkout was updated and no runtime tests were run for this draft.
Expected benefit and acceptance criteria
Enable strict-history graph consumers without application-side runtime patches or changes to benchmark meaning.
- Preserve existing default behavior and explicitly support both endpoint policies in Kumo and DiskGraph.
- Verify events before, exactly at and after each request's cutoff, including multiple requests, limited fanout and multi-hop traversal.
- With fanout 1 and neighbors at
TandT - 1 second, exclusive sampling must select the earlier neighbor; inclusive sampling must select the boundary neighbor. - Preserve the request timestamp and supported timestamp precision; do not silently truncate or shift the caller's cutoff to emulate the policy.
- Document the API and add focused CPU correctness checks for both engines.
Alternatives
Changing workload history to inclusive would change the permitted information. Shifting timestamps would require assumptions about precision and can affect other request-relative calculations. Filtering the returned graph is insufficient: boundary events may already have displaced valid neighbors under fanout or affected later hops.
Stakeholders
Arena graph-workload consumers. Maintainer ownership to be determined; no individuals or teams are assigned by this draft.
Context and timelines
No requested delivery date. Existing repository issues were searched for “cutoff” and “inclusive” on 2026-11-13; neither search returned a match. This is a targeted duplicate check, not an exhaustive search of all issues and PRs.
Activity
[-][Draft] Support explicit inclusive/exclusive cutoff policies for temporal graph sampling[/-][+]Support explicit inclusive/exclusive cutoff policies for temporal graph sampling[/+][-]Support explicit inclusive/exclusive cutoff policies for temporal graph sampling[/-][+]Support explicit inclusive/exclusive cutoff policies for temporal graph sampling [kumo.pytorch][/+]Vedaant-J commentedon Nov 19, 2026
this would have to propagate to ttgen, sampling, index building all separately, is this really needed @nittin-murthi ? this would need to be tested across benchmarks