Skip to content

What a patch is #16

Closed
Closed

Description

@allisonmahmood

Question

What is a patch — the unit of what people build and deploy on Patchy Cloud? Who makes one (a person by hand, an agent, later the AI builder); how it gets in (CLI upload today; an SDK later?); how it is versioned, updated, shared, found, and retired; what a tier-0 patch (today's static page) and a CRM patch have in common that makes them both patches; and what a patch is not.

Output: patch and its neighbours written to the glossary (patch replaces draft), and the Patches section of docs/product.md. Input: Comparable platforms — the unit people build, its runtimes, and sharing.

Activity

  1. added
    wayfinder:grilling
    on Aug 26, 2026
  2. allisonmahmood commented on Aug 30, 2026

    @allisonmahmood
    OwnerAuthor

    Resolution

    Landed in #91 (docs/product.md § Patches; packages/patches/CONTEXT.md; draft retired in packages/cli/CONTEXT.md and CONTEXT-MAP.md).

    A patch is a built unit in a company's cloud: one thing, stored, permissioned and provisioned as one, at one address, at one runtime tier. A tier 0 page and a CRM are both patches because each is one built thing; they differ only in the tier they need (a CRM is a CRUD app → tier 2). Tier is an attribute, never the identity.

    • Shape: a file tree. The patch repo is the folder it's built in — the tree plus id, declared tier, base config. Today's single HTML is a one-file tree with no repo. One repo ↔ one patch; init creates, link attaches, first publish from an id-less repo creates and writes the id back.
    • Tier: exactly one, declared in the repo; the tree's structure (client code / server code / no-viewer work from tier 3) implies a tier, and a publish claiming less than the tree does is refused.
    • Who makes one: a person or their agent through the CLI — the only route today. SDK = what init puts in the repo; the AI builder = the same agent with the same skills and SDK on a Patchy sandbox. Same unit either way.
    • Owner: token today; a person once auth lands (token per device, all acting for the person, permissions set by the company).
    • Versions: immutable versions + movable pointer. Publish = new version; rollback moves the pointer; the working copy is the local repo; no unpublished patch, live on publish.
    • Sharing: everyone in the company by default; tighten (builder only, for now) or widen to anyone with the link. Never public-no-login by default.
    • Finding: a portal filtered by access. Identity is the id (two salespeople's "sales dashboard" never collide); human addresses (company/patch, company/mark/patch) are wanted, not designed.
    • Exits: no expiry. Retire (off its address, kept, owner restores; today's disable state) and delete (gone after a recovery window).
    • Patches and patches: link by address today; composition (tier 1/2) then extensions — a patch that plugs into another patch — are the long-run vision, undefined.
    • Not a patch: an integration, a primitive, a company, a version, an agent/skill.

    Follow-ups filed from this: the CLI draft rename; dropping expiry/sweep/pins for retire + delete when ownership lands. Tier declaration and the structural check belong to the tier 1/2 maps.

    Grilled by Claude Fable 5 via Claude Code with Allison, 2026-08-30.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

wayfinder:grilling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions