Repository navigation
Description
Parent
User scenario
As a host or commenter, I want to find and attach supported media without manually handling private upload URLs.
Problem
Poster selection exists, but current Go lacks GIF search, Unsplash search, video upload, photo albums, and reactions.
Evidence and current state
Issue #206 inventories searchGifs, getGif, searchUnsplashPhotos, trackUnsplashPhoto, getVideoUploadUrl, uploadVideo, event media reads, and photo reactions. Request contracts are not yet reviewed.
The mobile inventory is research evidence, not authority. Operation names do not establish request schemas, authorization, response semantics, or persistence.
Proposed experience
Command sketches, subject to contract review:
partiful media gifs search <query>
partiful media photos search <query>
partiful media upload <event-id> <path>
partiful media albums <event-id>
Commands must use the existing JSON envelope, schema catalog, pagination model, structured errors, and privacy projection.
Full 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.
- Propose the smallest remote-contract revision in
spec/partiful.openapi.json, updatespec/partiful.api-evidence.json, and add redacted evidence/research notes. Keep unknown variants explicit. - Obtain owner approval for the remote contract. No implementation may treat unapproved research as authority.
- Update
docs/CLI-PRODUCT-CONTRACT.md, the application command catalog, machine-readablepartiful schema, help, safety classification, output projection, and exact empty-state behavior. - Implement one typed application operation that the CLI uses directly and a future MCP adapter can reuse, plus the required
internal/remotetransport. Do not expose raw callable or Firestore commands. - Add fake-transport contract tests, parser/validation tests, privacy regressions, permission/error cases, pagination bounds, and CLI/MCP parity coverage.
- Run a controlled end-to-end test. For every mutation, verify persisted state through an independent read, handle ambiguous completion without retry, and clean up the fixture.
- 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.
Scope boundaries
Validate MIME type, dimensions, size, ownership, provider attribution, content warnings, upload expiry, and deletion/readback. Never expose signed upload URLs.
Do not add unrelated mobile callables, generic HTTP escape hatches, raw private identifiers, or speculative compatibility layers.
Discovery needed
- Exact operation-specific request fields and wrapper metadata
- Successful, empty, malformed, unauthenticated, unauthorized, not-found, and protocol-drift responses
- Pagination, ordering, completeness, size, and rate-limit behavior where applicable
- Current first-party field consumption and projection rules
- Mutation idempotency, reversal, notification, and independent readback semantics where applicable
Acceptance criteria
- Current operation-specific evidence is sanitized, reproducible, and classified by source.
- OpenAPI, evidence ledger, and remote-contract docs are updated and owner-approved.
- CLI product contract, public command catalog, schema, help, and safety metadata are updated together.
- Successful results use stable JSON, documented nullable/empty states, bounded output, and opaque cursors where needed.
- Invalid input and every reviewed remote failure return structured errors without leaking backend bodies or private identifiers.
- Every mutation supports dry-run, exact authorization/precondition checks, at-most-once dispatch, and independent readback.
- The CLI invokes one typed application operation; when the MCP surface exists, it invokes the same operation and passes semantic parity tests.
- README and Partiful skill guidance match the released command surface.
- Full Go, race, vet, build, privacy, contract, and native release gates pass.
Blocked by
None. Contract evidence and owner approval are still mandatory gates inside this issue.
Activity
matijani commentedon Oct 15, 2026
One thing the inventory hints at but the plan doesn't name:
trackUnsplashPhotois almost certainly Partiful's wrapper for the Unsplash download-tracking requirement. So it belongs on the attach mutation, not onpartiful media photos search, and it should fire once per selection. Fire it from search and you inflate counts. Skip it and Partiful's Unsplash app is out of guidelines. I'd check how the privacy projection treats photographer name and profile link too. That's public attribution data the output has to keep, and a blanket redaction rule would strip it. Pretty sure the Unsplash key behind it is Partiful's and shared by every user, so bound search pagination hard.Part of what I build is Pexafy, which has no tracking call and one schema across Unsplash, Pexels and Pixabay, but it can't replace anything that has to go through Partiful's own gateway, so it only matters if photo search ever sources independently and attaches through
media upload.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. Video and album uploads are custom media uploads, which are out of scope. Needs: Kaleb's go-ahead, then the media search and album operations reviewed into the spec.