Skip to content

feat(primitives): descriptions on tables and file stores in the config, manifest and inventory #249

Closed

Description

@allisonmahmood

Part of #247. Implements spec §6's primitive descriptions; decision Discovery for agents (descriptions as the first argument, config-owned). The CLI's change reminder is ticket 6's.

What to build

  • Config: table(description, columns, options?) and files(description) in patchy/config; the description is the first argument and typed as a non-empty string. init's starter config and every project skill example use the new shape. Config refuses a table and a file store with the same name (invalid_manifest naming both).
  • Manifest: tables[name].description and files[name].description, required and non-blank in the Manifest schema in packages/api; the server refuses a blank one as invalid_manifest.
  • Inventory: description on patchy.tables and patchy.stores in the company database's inventory schema (initialisation DDL changed in place; nothing is deployed, dev databases are recreated). The additive diff treats a description change as allowed: a publish that defines the primitive replaces its description, omission preserves it, rollback never changes it; a description-only change does not advance the schema revision. GET /api/patches/:patchId/inventory returns it.
  • Skills: patchy-tables and patchy-files teach what a good description says (what one row or object is, its identifying keys, units), not "lunch table".

Admitted at merge

Manifests with descriptions only; the packed SDK flow's fixture repos gain them.

Done when

  • A blank description is refused at config execution and at the server; a redefinition replaces the stored description and omission preserves it; a description-only change leaves the schema revision alone.

Surfaces

The wire (Manifest in packages/api, docs/API.md), the CLI (packages/patchy/README.md, ADR-0004's init tree note), the project skills under packages/sdk/skills, the Primitives glossary (Definition gains the description), docs/product.md § Primitives from decided to built, ADR-0009's inventory paragraph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions