Artifacts
File registration and scoped access grants. Bytes live in the
agentpack-artifacts bucket; the row in artifacts.artifacts is the
handle.
Tables
| Table | Purpose |
|---|---|
artifacts.artifacts | (agent_id, key, mime, size, sha256, expires_at). |
artifacts.grants | Time-bound read grants to other agents or tokens. |
Flow
- Agent calls
/registerwith metadata; gets a signed upload URL. - Agent PUTs bytes directly to Storage.
/grantissues a read token for another agent or a short-lived URL./fetchredeems a grant and streams the blob.
Routes
| Method | Path | Purpose |
|---|---|---|
| POST | /register | Reserve a row, get upload URL. |
| POST | /commit | Mark upload complete (size + sha check). |
| POST | /grant | Issue a read grant. |
| POST | /revoke | Revoke a grant. |
| POST | /fetch | Redeem a grant to a signed URL. |
| POST | /list | List artifacts for an agent. |
Retention
agentpack_artifacts_reap (03:47 UTC daily) deletes rows and blobs past
expires_at (default artifacts_ttl_days = 30).