Skip to content

id/atlas: define and verify visibility of derived graph and search results per reader profile #13583

Open

Description

@dezren39

A proposed cross-host conformance fixture from the ID R&D program (#13240). Decide and test which derived observations each reader or replication peer may receive. Scope the test to a small fixed corpus. The change should reuse the existing ID authority, graph and publication semantics.

Why this needs its own proof

The native implicit-trust exchange sends an inventory summary during the greeting before planning scoped offers. The scoped snapshot design already defines an included-only manifest. Atlas applies result filters and orders FTS candidates with BM25. Authorization of result rows, disclosure of replication metadata and influence of aggregate ranking statistics are different contracts. The present source evidence establishes these boundaries. No production exposure is asserted.

Acceptance

  1. Name each applicable reader/peer class, the metadata it is allowed to receive and the expected behavior for result order, counts, cursor existence and topology. Full-trust replication may admit more than a restricted reader. Record any accepted shared-statistics policy.
  2. Specify two small stores with identical material authorized to the reader and a different restricted record. Derive the expected visible nodes, edges and counts independently. Under a strict ranking profile, specify the corpus used for lexical statistics and compare ranking at the same visible cut.
  3. Supply deterministic expected observations through one existing query adapter and the intended federation or export adapter. Confirm that adding a hidden object never adds an unauthorized public result. A separate fixture should confirm the authorized full-trust view still works. Make no timing or physical erasure claim.
  4. Link the declared policy and fixture to the research book. This is a downstream acceptance item for the integration. It adds no new view machinery to impl(atlas/id): consumer view presets for ID-graph publication (#6062 follow-on 4) #11185 and does not reopen the completed B08/B09 slices.

Sources: native exchange, filtered lexical query, scoped snapshot decision, implicit-trust parent #9142, publication design #6062.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T18:08:42Z",
    "session_id": "ses_e5df72672afffesSF3AUwzFSzy",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "a5ed02dbdf2c44adad9748f46eb626d40423cb1f"
    },
    "auth_subject": "agent-next-25-local",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    app/id
    kind/design
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Fleet accepted the triage packet as task 21399 in repo-health-code-pilot. Book PR #13582 contains the derived-visibility proposal. This issue owns the downstream compatibility fixture and the profile decision for surfaces that opt in. The three existing #11185 audience presets retain their recorded scope. No production exposure, completed implementation, or executed fixture is claimed by this filing.

  4. added
    effort/m
    on Nov 23, 2026
  5. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  6. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Triage result — #13583

    Verdict: valid, distinct medium-sized work; keep the issue open and return it to implementation. This is not a small edit: the acceptance spans reader authorization, peer trust, derived graph observations, search statistics, and two adapter surfaces.

    Scope boundaries:

    Decision for the strict ranking profile: derive lexical statistics from the reader's authorized visible corpus. Do not share statistics across visibility cuts by default; any shared-statistics profile needs its own explicit disclosure policy and oracle.

    First implementation slice: add a deterministic executable oracle for two stores with identical authorized material and one differing restricted record. Independently derive the expected visible nodes, edges, and counts for a restricted reader and a full-trust peer; adding the hidden record must not change the restricted public result. Keep timing and physical-erasure claims out. Then wire the fixture through the named query and export/federation adapters as those contracts become available.

    No PR is appropriate for this triage packet. The issue remains open under the queue's normal triage follow-on, with the concrete first slice above as its resume point.

  7. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Research source and slice refinement: the specific ID derived-visibility proposal is staged in open PR #13582, not yet in the published main book. Its surface matrix supports keeping the first fixture to graph-query observables: authorized adjacency, count, and pagination at the same visible frontier for the two-store comparison. Search ranking, replication inventory, and cached derivatives remain separate acceptance surfaces.

  8. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Triage follow-on verification — #13583 (task 21408, lane oc-code-01)

    Verdict confirmed: the task-21399 triage stands. Valid, distinct effort/m design work; issue stays open for implementation. No small fix is appropriate for this packet — acceptance spans reader authorization, peer trust, derived-graph observables, search statistics, and two adapter surfaces.

    Verified this pass:

    Resume point for implementation: deterministic executable oracle for two stores with identical authorized material and one differing restricted record, per the task-21399 note; wire through query and export/federation adapters as those contracts land.

  9. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triage follow-on closed, implementation slice enqueued

  10. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Slice 1 landed as PR #13781 (branch xaltha/13583-derived-visibility, commit 98b84c4).

    What it does: paginated visible-adjacency queries on the existing link projection (links_from_visible_page / backlinks_to_visible_page in pkgs/id/crates/id-store/src/note_links.rs) plus a deterministic two-store fixture. Store A (A, B, C; A->B, A->C) vs store B (adds hidden neighbour H, A->H, H->B): for reader {A, B, C} the authorized adjacency, counts, and every page plus its next-page flag agree; a cursor naming a hidden edge steers neither store; the full-trust view of store B still shows H. This moves acceptance 2 (graph-query half: adjacency/count/pagination at the visible cut) and the full-trust half of acceptance 3. No new view machinery, no change to the #11185 presets, no timing claim.

    Evidence: cd pkgs/id && CARGO_TARGET_DIR=/tmp/id-target cargo test -p id-store --lib note_links via the fleet-command.yml fallback (fleet queue dispatch blocked by TLS #13185) — run https://github.com/developing-today/fleet/actions/runs/45265132247, 15 passed / 0 failed. Two earlier dispatch attempts failed for unrelated reasons (repo-root invocation where id-store is not a member; corrupt shared cargo cache on the ring build script) and are recorded in the PR body.

    Next slice: search-statistics half of acceptance 2 (strict ranking profile: freeze public BM25 statistics or partition the index, then compare ranking at the same visible cut), then the replication-inventory profile from acceptance 1/3.

  11. added a commit that references this issue on Nov 24, 2026
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/mkind/designstatus:in-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions