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)"
  }
}

Acceptance criteria

  • Delivered: Id/atlas: define and verify visibility of derived graph and search results per reader profile — the outcome named in the title is demonstrably in place.
  • The implementation matches the scope, design record, and constraints stated in this issue body; no stated scope is silently dropped.
  • Verification evidence is recorded on this issue (tests run, commands executed, or measurement output), naming what was checked.
  • Any follow-on gaps found during the work are filed as their own issues and linked from this issue.

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
  12. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Conductor dispatch: claimed queue task 21444 (repo-health-code-pilot, slice 1: deterministic two-store derived-visibility oracle) as repo-worker-conductor. Worker session ses_e5df3fb93cfffezr5Vp1bfFv22 engaged in worktree ~/git/fleet/queue-21444-13583-052517 on branch queue-21444-13583-slice1-052517. Done check: cargo test -p id-directory derived_visibility.

  13. 14 remaining items

  14. added
    meta/protocol-gap
    on Nov 28, 2026
  15. added 2 commits that reference this issue on Nov 28, 2026
  16. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    Slice 3 landed as PR #16373 (merge commit b055c0b). Lane code-i verified on the branch via the fleet remote-dispatch path: cargo test -p atlas-core --test derived_visibility_federation --test derived_visibility -> 7/7 pass (4 lexical from slice 2 + 3 new: export-adapter two-store agreement, cached-derivative visible-cut serving, vector-branch tier check). The PR also flips this record's surface-decisions table (export adapter + cached derivatives pinned, vector check recorded with the unclassified-chunk caveat as scoped follow-up) and marks Remaining work complete. All four acceptance boxes now have fixtures; closing is left to review.

  17. added
    priority/normal
    and removed
    queue/claimed
    on Nov 28, 2026
  18. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Census note — CEN-C13, 2026-11-29

    Full body + comments re-read firsthand for the 2026-11-29 census. (Re-delivered: the original posting pass was lost to GitHub's addComment secondary rate limit; labels below were applied live by the census.)

    Verdict: stale — acceptance complete: all four boxes fixture-pinned. Open only for the closing review (the census does not close).

    Blocker: none. Slices landed via PRs #13781/#15585/#16373 (slice 3 merged with 7/7 tests); the policy note's remaining-work rows are flipped complete. Remainder: the closing review (left by the lane) + filing the unclassified-shard stamping follow-up as its own issue if untracked.

    Gaps: no priority label; two status labels at once (status:in-review + status/in-progress).
    Strengths: rigorous scoping from the first triage (writer-set view ≠ read ACL; #11185 presets explicitly preserved; no timing/erasure claims); the shared-statistics question got a real, declared answer (monolithic index = looser contract, recorded) instead of an assumed one; slice 3's vector check refuted the suspected exposure for classified corpora with evidence and honestly recorded the unclassified-shard caveat instead of fixing out of scope.

    Labels (applied by the census): added priority/normal.

  19. added
    priority/low
    and removed
    priority/normal
    on Nov 29, 2026
  20. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Priority validation 2026-11-29 (Felix): priority/normal → priority/low — all four acceptance boxes are fixture-pinned (slices merged via PRs #13781, #15585, #16373); the issue is open only for the closing review, which is not time-sensitive.

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

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Audited live on 2026-11-29 against the house label taxonomy: details, labels, blockers, priority.

    Gaps found: no ## Acceptance criteria section in the body; carries two status labels at once (status:in-review and status/in-progress) — owner should leave exactly one current status
    Strengths found: detailed body with scope and context a picker-up can start from; links a parent issue and/or design record; active discussion: 20 recent comment(s) skimmed
    Comment skim: comments mention blocking; comments show claim/progress (20 comments in the latest page).
    Actions taken by the census: appended ## Acceptance criteria section to the body (original text unchanged).

    Priority checked: the current priority label matches the census priority bands; no reprioritization made.

  22. removed
    status/in-progress
    on Nov 29, 2026
  23. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census remediation — 2026-11-29

    Status-label deduplication:

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/designmeta/protocol-gappriority/lowstatus/in-reviewuser/reviewwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions