Skip to content

primitives: successive valid manifests admit a cumulative table and store name collision #333

Closed

Description

@allisonmahmood

Problem

Omitting a table in a later manifest does not delete it. Adding a file store under its name nonetheless succeeds, leaving two resource kinds under one cumulative discovery name. The product says tables and stores cannot share a name.

Reproduction

  1. Publish/provision a documents table.
  2. Submit a new individually valid manifest with no tables and a documents file store.
  3. Observe version 2 succeed and inventory contain documents in both tables and stores.
{"tables":["documents"],"stores":["documents"],"collisions":["documents"]}

The real provisioner reproduced this on PGlite and native PostgreSQL. The independent reviewer then exercised actual Content.publish, Patches preflight/record and filesystem storage: version 2 committed and activated the store-only manifest while retaining both inventory entries. Reverse store-to-table reuse also reproduced.

Controls rejected a same-manifest collision, preserved a row through omission/same-kind reintroduction, and admitted a fresh store name without collision. This is publication-service proof, not HTTP/CLI/browser proof. No data loss is claimed. The inspected discovery handler prefers the old table, but that downstream result was not separately executed.

Cause and smallest change

Manifest validation compares only one version. Tables.diff compares new stores with old stores and new tables with old tables, never the opposite cumulative namespace.

Before DDL, refuse an incoming store name in snapshot.tables and an incoming table name in snapshot.stores. Use the existing not_additive error with a fresh-name remedy. Keep same-manifest validation and preservation of omitted data. Product contract.

Audited at ef3e790. Found and independently checked by separate GPT-6 Astra agents in Oh My Pi, using only ordinary offline workflows and synthetic data.

Activity

  1. added
    bug
    needs-triage
    area:server
    area:primitives
    on Sep 20, 2026
  2. added a commit that references this issue on Sep 24, 2026
    a1ded5e
  3. added a commit that references this issue on Sep 24, 2026
    2f1ffeb
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:primitivesarea:serverbugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions