Shipped
Plan / spec

Plan: queryable drop metadata

Let agents tag a drop with a few key/value pairs and find it again later, so the next turn updates the same URL instead of making a new one.

Problem

An agent that published a preview for PR #42 yesterday has no way to find that drop today except remembering its slug. It usually forgets, so every run makes a new URL and the old links go stale.

Shape of the API

POST  /api/drops                       { "html": "…", "metadata": { "repo": "acme/web", "pr": "42" } }
GET   /api/drops?metadata.repo=acme/web&metadata.pr=42
PUT   /api/drops/:slug                 { "html": "…" }   # same URL, new version

Rules

LimitValue
Keys per drop10
Key length64 chars, [a-z0-9_.-]
Valuestring, 256 chars
Visibilityowner only; never shown on the public page

Rollout

  1. Migration. Add a nullable metadata JSON column to drops.
  2. Write path. Validate on POST; replace the whole map on PUT and PATCH.
  3. Read path. Filter with bound json_extract clauses, AND across pairs.
  4. Docs. Teach the lookup-then-update recipe in the skill and onboarding.

Not doing