Skip to content

id: implement native graph navigation API v1 (per #5831 decision record) #7612

Open

Description

@developing-today

Implementation tracking issue for the decision record landed on issue #5831 (comment 6719944526, task 12913, 2026-11-08). Implementation timing is a separate later decision (programme epic #2056); this issue exists so the design is not treated as finished work with no next action.

Scope, per the #5831 record:

Acceptance: each invariant in the #5831 record is covered by a test naming its oracle (the record itself); parity is proven by running the same operation suite against all three surfaces over a shared fixture graph.

Acceptance criteria

  • Every invariant in the id: design: native graph model & navigation API (from #5677) #5831 decision record is covered by a test that names the record as its oracle.
  • The same operation suite passes against the CLI, script/API, and agent surfaces with identical semantics, filters, ordering, and bounds (presentation-only differences).
  • Cursor walks are deterministic in (created_at, id) order, duplicate-free, and carry explicit truncation markers.
  • Traversals respect visibility: no operation leaks nodes or edges the caller cannot see.

Activity

  1. added
    queue/queued
    app/id
    on Nov 8, 2026
  2. added
    task/triage
    priority/normal
    effort/l
    status/needs-triage
    meta/enriched
    on Nov 8, 2026
  3. dezren39 commented on Nov 8, 2026

    @dezren39
    Member

    Intake review

    Related: decision record on #5831 (comment 6719944526, task 12913), parent model #5677, pagination bounds #5821/#6622, epic #2056.
    Live check: tracking issue for a landed design; no implementation PR exists. The issue itself notes implementation timing is a separate later decision — enrichment does not change that.
    Notes / risks: parity across three surfaces is the cost driver; build the operation suite surface-agnostically from the start or parity becomes a rewrite. Nothing here should start before the #2056 programme schedules it.
    Suggested approach: implement the graph + operations once behind the canonical interface, then bind the three surfaces to the shared suite.

    — fleet monitor (repo-fleet-monitor), 2026-11-08 08:12 CST run: acceptance criteria appended to the body, labels normalized, meta/enriched applied.

  4. added
    task/small-fix
    and removed
    task/triage
    status/needs-triage
    on Nov 10, 2026
  5. dezren39 commented on Nov 10, 2026

    @dezren39
    Member

    🤖 Agent note · triaged

  6. added
    work/assigned
    and removed
    queue/queued
    on Nov 10, 2026
  7. 43 remaining items

  8. added
    status/needs-triage
    on Nov 26, 2026
  9. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · handed off

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor cron run 2026-11-26 06:14 CST; task 14512
    • Found via: monitor reconciliation
    • Task: Claim-evaporation repair: the queue task is queued unclaimed (lease expired, attempts 3) while the issue still carried queue/claimed + work/assigned. Labels reset to queue/queued + status/needs-triage to match the live queue truth.
    • Expectation: a worker re-claims from the queue; checkpoint stage at evaporation: blocked_packet_defect
    • Links: queue repo-health-code-pilot
  10. dezren39 commented on Nov 26, 2026

    @dezren39
    Member

    Lane 4: slices 1 and 2 landed in #15469 (squash 56b45e0).

    • id-core::graph::navigation: typed nodes and edges (untyped relationships refused at insert), neighbors, backlinks, threads-for-object, history-for-object and bounded shortest path. Cursor paging is bound to its request, caps report truncation, and invisible nodes never appear or reveal themselves.
    • id-core::graph::navigation_wire: a JSON request and answer form over the same core (the script/API surface), plus a text rendering.
    • id nav CLI over a graph file, with a parity suite asserting the CLI and the API return identical answers.

    Still open here: binding the graph to the live stores rather than a snapshot file, and the agent (MCP) surface joining the same parity suite, which this issue's acceptance requires. The lane 4 claim on slices 1 and 2 is released.


    Generated by Claude Code

  11. dezren39 commented on Nov 26, 2026

    @dezren39
    Member

    agent-note:v1 — state: parked (task 14512, lane BK)

  12. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Slice status re-verification (lane code-f, task 14512)

    Fresh read of the issue, comments, PR #15469, and origin/main:

    Task 14512 re-parked: resume when a lane takes the live-store-binding + MCP-parity remainder (or on the time gate for re-verification).

  13. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Slice status re-verification (lane oc-code-03, task 14512)

    Fresh read of the issue, decision record (#5831 comment 6719944526), PR #15469, and origin/main:

    • Slices 1-2 still merged and present on origin/main. id-core graph navigation plus navigation_wire plus the id nav CLI plus the CLI/API parity suite. Model check: all 8 record node kinds and all 8 record edge types (incl. mentions) present with the Decision-1 endpoint table; the parity test runs one operation suite through CLI args and JSON API over a shared fixture and requires equal answers.
    • Still open, unchanged: (a) binding the graph to the live stores rather than a snapshot file; (b) the agent (MCP) surface joining the parity suite. No open PR references id: implement native graph navigation API v1 (per #5831 decision record) #7612 (checked this shift).
    • New scoping findings for the next lane:
      • Builder home is clean: id-store depends on id-core, so a store-backed builder (an id-store module constructing NavGraph from fold_notes / LinkProjection / project_threads / board append-list projections) needs no new crate or dependency flip.
      • Timestamp gap: note/link store events carry no created_at; the nav order key (created_at, id) needs a recorded ordering-key source (ingestion clock or caller-supplied resolver) before a store builder can claim deterministic order. That is a small recorded decision, not code.
      • Agent surface is dependency-blocked, not just unclaimed: a repo-wide grep finds no MCP server/transport; the shipped MCP bridge is translator plus policy library only, and the live client surface is forward design (book/design/agents-mcp.md). Per record Decision 3 this is a parity exception to record, and the surface itself belongs to the id(phase-14): Agents in worlds (MCP bridge) — v1 — first-iteration design + spike plan #6300-series programme, not this packet.
      • Fit: the store binding across 8 node kinds is staged implementation work on an effort/l issue; it exceeds this small_fix packet timebox. Recommend re-packetizing the remainder as staged slices (note-subgraph builder plus timestamp decision; board/post subgraph; chat/thread subgraph; MCP parity when a surface ships) or upgrading the packet kind.
    • No code changes this run. Task 14512 re-parked: resume when a lane takes the note-subgraph store-binding slice (with the timestamp decision recorded) or re-verify on the time gate.
  14. dezren39 commented on Nov 28, 2026

    @dezren39
    Member

    Lane 1237-J (alpha DRIVE queue-draw, 2026-11-28 12:37 CST run) — queue task 14512 claimed 2026-11-28T18:48:00Z, parked 24h. Gate re-verified firsthand this claim, with one framing update:

    Wake / ready condition (non-person): the remainder is re-packetized as staged slices (note-subgraph builder first) with the timestamp ordering-key decision recorded on this issue — then a lane takes the note-subgraph store-binding slice. No code changed by this lane.

  15. removed
    status/needs-triage
    queue/queued
    on Nov 29, 2026
  16. dezren39 commented on Nov 29, 2026

    @dezren39
    Member

    🤖 Census note — CEN-C05, 2026-11-29 (Drew's full issue census)

    Label cleanup: removed stale status/needs-triage (this issue has been triaged and re-verified repeatedly) and queue/queued (it contradicted queue/blocked; queue task 14512 is parked).

    State, consolidated from the 2026-11-27/28 re-verifications: slices 1–2 are merged on main (PR #15469 — id-core graph navigation, navigation_wire, id nav CLI, CLI/API parity suite). The old gate (programme epic #2056 scheduling) is gone — #2056 closed 2026-11-26. The real remaining blockers are:

    1. A decision: note/link store events carry no created_at, but the nav ordering key is (created_at, id). The timestamp ordering-key decision must be recorded on this issue before the live-store binding slices can be packetized.
    2. A dependency: the agent/MCP surface has no MCP server/transport in-repo; it belongs to the id(phase-14): Agents in worlds (MCP bridge) — v1 — first-iteration design + spike plan #6300-series programme (Decision 3 parity exception).

    Wake condition (from lane 1237-J, concurred): re-packetize the remainder as staged slices — note-subgraph builder first — once the ordering-key decision is recorded here.

  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

  18. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: status/blocked alongside status/needs-triage at enumeration (pile-up recorded; blocked + queue/blocked is the operative state).

    Strengths: detailed body with context a picker-up can start from; linked to its epic/programme via epic/* labels; full ## Acceptance criteria present.

    Blocker: status/blocked + queue/blocked carried; unblock path is the #5831 decision record's implementation order stated in the body.

    Actions taken: Verified complete — no changes needed.

    Priority: priority/normal retained — matches the work's urgency as evidenced on the issue; no band change.

  19. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Decided: For live-store graph projection, created_at is the local EventStore receipt time (now_ms) captured on the first durable receipt of each signed event, stored by event ID and preserved across replay/reopen; the event ID remains the tie-breaker. Existing records with no receipt timestamp are migrated as a single legacy cohort and ordered within that cohort by ID.
    Why: The #5831 decision record fixes (created_at, id) order, but ChainExt note/link operations have no signed wall-clock timestamp. Event IDs are immutable and each EventStore::ingest already receives now_ms. The API promises one store snapshot and cross-surface parity for that state; it does not claim replicas with different receipt histories have identical arrival-time order.
    Undo: If signed event time becomes a protocol field, migrate the stored receipt-time source and update the resolver and parity fixtures; keep event ID as tie-break.
    By: lane oc-code-03

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/ideffort/lepic/id-programkind/enhancementmeta/enrichedpriority/normalqueue/blockedstatus/blockedtask/small-fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions