Skip to content

id: block content follow-on — projections (outline, journal, database views) + note-granularity read-authority (from #8218) #12751

Open

Description

@dezren39

Refs #8218 — split follow-on for the remaining projections + read-authority scope.

Follow-on from #8218 (split recorded in task 20095, lane code-j).

Merged first slice: PR #12749 — block schema + tombstoned-ID non-reuse + D2 anchor resolution in pkgs/id/crates/id-store/src/note_blocks.rs (id-store), 10 tests, oracle: #5839 design record (doc/2026-11-10T20-12-00Z_design_id_content_model).

Remaining scope from #8218, per the #5839 record:

  1. Projections over the block tree — outline mode (fold/zoom/hoist), journal view over date-claimed daily notes with capture-append, database views (saved query + presentation over notes and typed properties; the database definition is itself a note).
  2. Read-authority enforcement at note granularity in every projection and in transclusion rendering, per the id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678 ruling (object → user default → server config → public; transclusion renders only when the reader may read the source note, otherwise degrades to authored surface in unresolved state).
  3. Invariant 6: no view (journal, database, outline, graph) exposes a note — or its existence metadata — to a reader the resolution order would deny.

Out of scope (unchanged): note substrate (#2048 packets), canvas/freeform (rejected for v1), block-level comments/reactions.

Activity

  1. added
    kind/featureNew feature or capability request
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

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

    @dezren39
    MemberAuthor

    Refs #8218 — this is the split follow-on for the remaining projections + read-authority scope.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Slice finished: PR #12912 (OPEN, MERGEABLE, base main) — #12912

    What it does: the #5678 read-resolution order (object -> user default -> server config -> public) as a shared resolver in id-store::read_authority; unknown notes denied, a known note with no recorded policy falls through the defaults.

    Resume notes: the previous run's uncommitted fix was recovered intact from worktree code-12233 (create() no longer inserts a Public policy entry) and committed as b424a46. The branch base was stale at 9794191; merged current main (cb4c54c) as d1f994d. The merge brought #12637, whose policies() snapshots the effective policy of every note — that re-states a phantom Public entry on rebuild and closes the fall-through after a restart, so policies() now snapshots only recorded policies (d6915ea), with the #12637 tests updated and two new tests added (test_policies_snapshots_only_recorded_policies, test_a_rebuild_keeps_a_note_with_no_policy_falling_through).

    Test evidence (local cargo): cargo test -p id-store 300 passed, 0 failed (lib 264 incl. the four previously failing fall-through tests, now green); cargo test -p id-web --lib -- note_policies 3 passed (seed-before-events refused, restart rebuild, snapshot-file restart). One unrelated failure in the full id-web lib run: send_through_the_handler_copies_the_file_and_retries_safely (502 vs 200; routes::file_handlers has no reference to this change; fails in isolation too). Laptop verification was blocked by a system execution-risk flag on the fleet-shell worktree step; the laptop worktree /home/user/code-12751 is checked out at this head for a follow-up run once that flag is cleared.

    Refs #12751

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/idPackage/app: id (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)status:in-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions