Skip to content

Add read, edit, and photo management for the authenticated profile #99

Open

Description

@KalebCole

User scenario

I want an agent to read and update my Partiful profile without opening the app, including replacing or removing my profile photo.

Problem

The CLI has no profile command. It cannot show the authenticated account's public profile fields, update them, or manage the profile image. This also leaves agents without a supported way to confirm the identity used when Partiful creates cards or attributes event activity.

Verified product and API facts

Current Partiful profile editing uses getCurrentUser and updateUser. The observed editable fields are name, bio, photo, and socials. Profile images use the profile_image upload flow. No separate editable username field was observed. The CLI already has authenticated request and multipart upload infrastructure, but its upload helper is currently poster-specific.

No live profile mutation was performed during investigation.

Proposed experience

partiful profile get
partiful profile update --name "Kaleb" --bio "Seattle"
partiful profile update --social instagram=kaleb
partiful profile photo set ./portrait.jpg --dry-run
partiful profile photo remove --dry-run
partiful schema profile.update

profile get should return the caller's safe public profile representation. Updates should patch only supplied fields. Photo commands should validate the file locally, show the intended mutation under --dry-run, upload only after approval, then read the profile back.

Scope boundaries

  • Do not expose phone numbers, authentication metadata, internal account flags, or raw upstream payloads in normal output.
  • Do not invent a username field or let callers edit derived badges and statistics.
  • Do not clear omitted fields. An empty value must be an explicit supported action.
  • Reuse a generalized upload helper rather than duplicating multipart logic.
  • Profile photo changes are visible account mutations and need the same confirmation policy as other visible writes.

Discovery needed

Verify the exact updateUser patch envelope, social-link schema, profile-image response shape, supported image types and limits, and explicit photo-removal representation. Determine whether getCurrentUser is sufficient for read-back or whether the public profile read differs materially.

Acceptance criteria

  • profile get returns a stable JSON object containing only safe profile fields.
  • profile update patches only fields supplied by the caller.
  • Social links can be added, changed, and explicitly removed without replacing unrelated entries.
  • Profile photos can be set and removed after local validation.
  • --dry-run performs no upload and no account mutation.
  • Successful writes are read back and returned as normalized state.
  • Empty profiles and absent optional fields are successful states.
  • Invalid files, validation failures, permission errors, upload failures, and read-back mismatches produce structured errors.
  • CLI help, schema introspection, unit tests, and one controlled update/read-back/restore E2E ship together.

Related work

Profile badges are derived, read-only data and belong in a separate issue. Cards use the authenticated profile as sender identity but remain a separate product contract. Closed #5 established event-poster uploads; profile images use a different upload type and must not be treated as event posters.

Contract-to-release lifecycle (2026 mobile callable refresh)

Updated evidence starting point

Issue #206 inventories current-user, user-update, photo/media, account email/locale, consent, and deletion operations. This issue remains limited to profile presentation and profile-photo management; account lifecycle is #228.

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

  1. 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.
  2. Audit the current spec/partiful.openapi.json and spec/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.
  3. Obtain owner approval for the remote contract before implementation treats new evidence as authoritative.
  4. 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.
  5. Implement the required internal/remote transport 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.
  6. 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.
  7. 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.
  8. 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

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

  1. added
    enhancement
    on Aug 5, 2026
  2. added
    wayfinder:task
    on Sep 6, 2026
  3. KalebCole commented on Nov 14, 2026

    @KalebCole
    OwnerAuthor

    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. Profile photo upload needs a call on scope, since custom image uploads are out for events. Needs: Kaleb's go-ahead, then the profile read, edit, and photo operations reviewed into the spec.

  4. added
    held
    on Nov 14, 2026
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

    enhancementheldwayfinder:task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions