Skip to content

Bounded read-only triple-pattern API and cursors #10221

Closed

Description

@dezren39

Problem and goal

Expose conjunctive patterns over TermPattern and LogicalGraphId with stable ordering, opaque snapshot cursor, mandatory page limit, server-side authorization and an operator-validated resource profile.

Version and design basis

Version: V2. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/part-a-graph/versioned-design.md#5-9126--graph-query-and-visualization (section: 5. #9126 — graph query and visualization).
Tier: crucial.
Statement IDs: S5.8, S5.10, S5.11
Enables: Attributes, social projections and optional visualization share one authorized graph-read path and source_record provenance.

Scope and ownership

Parent: #9126 (native component/meta parent).

  • pkgs/id/crates/id-core/src/graph/query.rs (new; owner: A-GRAPH-9126-01)
  • pkgs/id/crates/id-core/src/graph/cursor.rs (new; owner: A-GRAPH-9126-01)
  • pkgs/id/crates/id-core/tests/graph_query_reference.rs (new; owner: A-GRAPH-9126-01)
    Hard dependencies (native blockers): A-GRAPH-9125-01 — Typed terms, LogicalGraphId and source_record provenance.; 9110-02 — Common crate-root export and interface registration; no graph ownership of lib.rs.
    Soft sequencing (not blockers): A-GRAPH-9125-02 — Prefer the measured index adapter when available; API contract remains backend-independent.

Test / evidence first

Create or validate pkgs/id/crates/id-core/tests/graph_query_reference.rs first. Proposed command: cargo test -p id-core --test graph_query_reference
Oracle: reference — expected Reference matcher and paged query agree at a fixed frontier; cursor pages concatenate without omission/duplication, and unauthorized or over-budget queries never report complete.; verifier: Independent pure matcher over canonical typed-triple fixtures and cursor-page concatenation checker..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: not applicable.
Rollback: Remove only graph query/cursor modules and test; no event bytes or existing query-local/remote API is rewritten.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: blocked (dependency) — mandatory preflight result
    task: 17062
    issue: #10221 (ID/Atlas slice A-GRAPH-9126-01)
    lane: code-c (repo-worker-code)
    at: 2026-11-14T17:43Z

    Preflight performed exactly as the A-GRAPH-9126-01 packet mandates (triage/preflight only; no implementation attempted, no production rollout authorized):

  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1

  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane (code-h), worker repo-worker-code, queue task 17062
    state: blocked (reason_class: blocked)
    preflight: native blockers checked 2026-11-17T18:00Z — #10160 CLOSED, #10196 OPEN. No implementation started (A-GRAPH-9126-01 stays out of scope).
    resume: when #10196 is closed, requeue or re-claim task 17062 and re-run the preflight.

  5. removed their assignment
    on Nov 20, 2026
  6. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 | action: picked-up | worker: repo-worker-code | lane: oc-code-06

    Claimed queue task 17062 for mandatory preflight of slice A-GRAPH-9126-01. Checking native blockers #10160 and #10196 before any implementation; task will be self-blocked if either remains open.

  7. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 | action: blocked | worker: repo-worker-code | lane: oc-code-06

    Preflight re-check for slice A-GRAPH-9126-01 (2026-11-20): fresh GitHub state shows blocker #10196 OPEN (typed triple identity and canonical signed records); #10160 CLOSED. A native blocker remains, so the queue task is self-blocked (reason-class: blocked, dep-linked to #10160/#10196) and no implementation was started, per the slice contract. Queue-side recheck interval 900s; unblocks when all native blockers close.

  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Closed as done. #11977 merged and deliver this slice. Every file this issue declares is on main, and its declared check passes on main d26fa16:

    • cargo test -p id-core --test graph_query_reference → 7 passed, 0 failed (run 2026-11-22)

    The issue stayed open after the merge, so tasks that name it as a blocker kept waiting on finished work. They are free to proceed.

    By: Claude, 2026-11-22 flow review. Undo: reopen.


    Generated by Claude Code

  9. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Claimed queue task 17062 to verify the mandatory A-GRAPH-9126-01 preflight. Fresh GitHub state already shows issue #10221 closed and both native blockers #10160 and #10196 closed; verifying the recorded delivery PR before completing as already done. No implementation started.

  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Preflight task completed as already done: fresh GitHub state shows #10221 CLOSED, native blockers #10160 and #10196 CLOSED, and delivery PR #11977 MERGED (b0ddaf7). The issue records cargo test -p id-core --test graph_query_reference — 7 passed, 0 failed. No implementation was performed by this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions