Skip to content

feat(content-store): rename storage with filesystem and Azure layers #75

Closed

Description

@allisonmahmood

Problem

packages/storage is the platform's object store for a patch's bytes. "Storage" is reserved for the later per-patch file primitive, so the package is renamed content-store and its two drivers become Effect layers chosen by wiring, not by an operator's env var.

Do

  • packages/content-store: a ContentStore service (put, get, delete by key, streaming or bytes as today's consumer needs) with two layers — filesystem (dev/tests) and Azure blob — each with its own Config slice (Redacted credentials). PATCHY_STORAGE_DRIVER is deleted: apps/server provides the Azure layer when its config is present, the filesystem layer otherwise.
  • Failures as Schema.TaggedError (ObjectNotFound, StoreUnavailable…) with the driver error as cause.
  • Interim: packages/db's upload contract keeps calling the store through a thin runPromise seam until the patches ticket.
  • Tests ported to @effect/vitest; the filesystem layer tested against a Scoped temp dir; the Azure layer's error mapping tested by an alternate failing layer.
  • Delete packages/storage; packages/content-store/CONTEXT.md (content store, object key); promote the language-service warnings to error.

Done when

@patchy/storage no longer exists; the server runs on the filesystem layer under pnpm dev; driver selection is wiring in apps/server/src/start.ts.

Decisions implemented

Package decomposition by capability (content-store, two implementations), spec self-hosting removal (operator driver choice).


Filed from the Effect v4 port spec (#68) by the map task Write the port spec and file the build tickets.

Activity

  1. added
    ready-for-agent
    area:server
    on Aug 28, 2026
  2. added 2 commits that reference this issue on Aug 29, 2026
    690271d
    f8bed11
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

    area:serverready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions