Skip to content

park(macOS): no-increase ratchet for direct APIClient call sites (~102 Source files) #9527

Open

Description

@Git-on-my-level

Status: parked

Not a single-PR unification. Full DAL / repository convergence is multi-PR (if pursued at all). This issue tracks the count and a no-increase goal until someone drives burn-down.

Current count (origin/main, 2026-07-23)

102 files under desktop/macos/Desktop/Sources reference APIClient:

rg -l 'APIClient' desktop/macos/Desktop/Sources --glob '*.swift' | wc -l

Of those, 85 are call-site / consumer files excluding the APIClient*.swift module surface and Generated/:

rg -l 'APIClient' desktop/macos/Desktop/Sources --glob '*.swift' \
  | rg -v '/APIClient' | rg -v '/Generated/' | wc -l

The older “79 files / one repository” framing is stale.

Goal (when unparked)

  1. No-increase ratchet on the chosen count (prefer the 102 Sources reference count or the 85 consumer count — pick one in the implementing PR and commit a baseline). Count may only stay flat or decrease.
  2. Optional incremental burn-down PRs (per domain: memories, tasks, apps, …) — not “finish one repository layer in one PR”.

Non-goals

  • Unifying all data access behind one repository abstraction in a single PR.
  • Blocking product work on DAL purity.

Context (still true)

  • Conversations already have ConversationRepository; most other surfaces fetch via providers/pages ad hoc.
  • Overlapping cache/refresh concerns remain a risk (staleness, duplicated refresh, inconsistent error handling) but are not yet a locked failure class.

Related

Activity

  1. added
    maintainer
    on Jul 12, 2026
  2. added
    parked
    on Jul 23, 2026
  3. changed the title [-]audit(macOS): unified data-access layer — 79 direct APIClient call sites, one repository (after #9515)[/-] [+]park(macOS): no-increase ratchet for direct APIClient call sites (~102 Source files)[/+] on Jul 23, 2026
  4. Git-on-my-level commented on Jul 23, 2026

    @Git-on-my-level
    MemberAuthor

    Rewrote this issue (title + body) and applied the parked label.

    • Recounted on current origin/main: 102 Source files reference APIClient (85 excluding APIClient*.swift / Generated). The old “79 / one repository” framing was wrong.
    • New framing: no-increase ratchet and/or wait for someone to drive incremental burn-down — not a single DAL-unification PR.
    • Implementation PRs are deferred; this issue stays open as parked tracking, not as a fake “closes park(macOS): no-increase ratchet for direct APIClient call sites (~102 Source files) #9527” mega-PR.
  5. added
    docs-tooling
    p3
    and removed
    parked
    docs-tooling
    p3
    on Oct 6, 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

    desktopdocs-toolingmacOSmaintainerp3refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions