Repository navigation
Description
User scenario
I want an agent to create a Partiful card, preview its structured content, share its public link, edit it later, and delete it when I no longer want it published.
Problem
Partiful Cards are a standalone product surface, but the CLI has no cards namespace, endpoint contracts, schemas, or tests. Event posters and comments cannot substitute for cards because cards have their own ownership, public page, appearance settings, and lifecycle.
Verified product and API facts
Current Partiful bundles expose createCard, updateCard, deleteCard, createCardComment, and deleteCardComment. The observed card model includes:
{
"title": "...",
"description": "...",
"image": {},
"displaySettings": {
"theme": "...",
"effect": "...",
"titleFont": "..."
}
}The product supports built-in image search/categories, JPEG/GIF/PNG upload, title, note, theme or custom hue, title font, animated effect, editing, deletion, and sharing. Sender identity comes from the authenticated profile in the observed composer. Routes exist for card creation, public card display, and editing.
No card mutation was performed during investigation. Exact card reads/listing, upload details, defaults, constraints, and public URL construction still need verification.
Proposed experience
partiful cards create --title "Thank you" --description "Great night"
partiful cards create --title "Congrats" --image ./card.gif --theme sunset --dry-run
partiful cards get <cardId>
partiful cards update <cardId> --effect confetti --dry-run
partiful cards delete <cardId>
partiful cards share <cardId>
partiful schema cards.createCreates and updates should return normalized card state plus the canonical public URL when the server provides enough information to construct it safely. Updates must patch only supplied fields.
Scope boundaries
- Cards are not events, event posters, profile cards, or event comments.
- Use the authenticated account as sender identity unless further API evidence proves an explicit override is supported.
- Do not invent defaults for theme, effect, font, image shape, or share URLs.
- Validate local media before upload.
--dry-runmust not upload or mutate. - Deletion needs confirmation and read-back or a verified not-found state.
- Card comments are a separate follow-up unless required to make card reads faithful.
Discovery needed
Verify the canonical create/get/list/update/delete payloads and response shapes, image upload endpoint and upload type, media limits, default display settings, partial-update behavior, ownership checks, public URL format, deletion semantics, pagination, and whether cards can be private or unpublished.
Acceptance criteria
- Users can create, read, update, delete, and obtain a canonical share URL for owned cards.
- Updates patch only supplied fields and preserve all other content and display settings.
- Local images are validated before network activity.
-
--dry-runperforms no upload and no card mutation. - Successful create/update operations are read back and returned as normalized state.
- Listing or reading zero cards is a successful empty state.
- Ownership, validation, upload, permission, not-found, and read-back mismatch errors are structured.
- Normal output does not expose authentication metadata or internal user IDs.
- CLI help, schemas, unit tests, and a controlled create/read/update/delete E2E with cleanup ship together.
Related work
Closed #5 covers event images and posters. #20 covers event comments and uploaded event photos. Neither represents the standalone Card lifecycle.
Contract-to-release lifecycle (2026 mobile callable refresh)
Updated evidence starting point
Issue #206 corroborates current Card, recipient, and Card-comment callable names. Operation-specific schemas and controlled Card lifecycle evidence remain required.
Issue #206 and its research branch are evidence inputs, not authority. Operation names alone do not establish request schemas, authorization, response semantics, persistence, or safe mutation behavior.
Delivery lifecycle
- Capture current first-party request, response, authorization, pagination, failure, and consumed-field evidence. Use read-only probes first and controlled self-owned fixtures for writes.
- Audit the current
spec/partiful.openapi.jsonandspec/partiful.api-evidence.json. Propose the smallest remote-contract revision needed, or record a reviewed no-change decision when the existing transport contract is sufficient. - Obtain owner approval for the remote contract before implementation treats new evidence as authoritative.
- Update
docs/CLI-PRODUCT-CONTRACT.md, the typed application operation, public command catalog,partiful schema, help, output projection, empty states, structured failures, and safety metadata together. - Implement the required
internal/remotetransport and one typed application operation that the CLI uses directly and a future MCP adapter can reuse. Do not expose raw callable, Firestore, or shell escape hatches. - Add fake-transport contract tests, input and projection tests, privacy regressions, permission/error cases, pagination bounds, and CLI/MCP semantic parity when MCP is available.
- Run controlled end-to-end verification. Every mutation needs dry-run, exact authorization and precondition checks, at-most-once dispatch, independent readback, and fixture cleanup.
- Update README and the Partiful skill, then run
go mod verify,go test ./...,go test -race ./...,go vet ./...,go build ./..., the PII guard, and./scripts/verify-native-release.sh.
Dependency updates
- No new blocker; use Research current mobile callables and Firestore migration candidates #206 as evidence input.
Additional acceptance gates
- Operation-specific evidence is sanitized, reproducible, and classified by source.
- OpenAPI and evidence-ledger treatment is owner-approved before implementation lands.
- CLI product contract, schema, help, safety metadata, and JSON output agree.
- Empty, malformed, unauthenticated, unauthorized, not-found, and protocol-drift cases are explicit.
- Private identifiers and backend bodies do not enter normal output, errors, diagnostics, fixtures, or MCP context.
- Controlled live verification exercises the actual transport and independent readback.
- Full Go, race, vet, build, privacy, contract, and native release gates pass.
Activity
KalebCole commentedon Nov 14, 2026
Triage bot: held for Kaleb. Every new command waits for his review for now (draft VISION (#256)), and a command ships only for an operation defined in
spec/partiful.openapi.json, with Go tests and reviewed schema goldens. Delete must prompt on a TTY and fail safely under --no-input. Needs: Kaleb's go-ahead, then the Card operations reviewed into the spec.