Skip to content

Add guests mutuals to find known people on an event attendee list #76

Open

Description

@KalebCole

User story

As a Partiful user, I want to see which people on an event's visible attendee list are already my Mutuals, so I can quickly answer "who do I know here?" without comparing two lists by hand.

Partiful defines a Mutual as someone the user has attended a party with before. For hosts, invited guests also become Mutuals.

Problem

The CLI exposes the two halves of this workflow but cannot connect them:

  • contacts list returns people plus userId and sharedEventCount, but it is account-wide and not event-specific.
  • guests list <eventId> returns RSVP records, but drops the guest document's user reference.
  • The skill has no workflow for finding known people at an event.

The most useful version of this journey is attendee-facing: "I'm going to this event. Which Going/Maybe guests are my Mutuals?" Current direct Firestore guest-list reads fail for an event the authenticated user attends but does not host, even when Partiful's UI may expose a guest list. The implementation must discover and use Partiful's canonical attendee-visible read path. It must not bypass event privacy settings or Firestore permissions.

Verified API facts

  • POST /getMutuals works with the current callable envelope and returns paginated records with userId, name, sharedEvent, sharedEventCount, and isPastGuest.
  • Hosted-event guest documents store the Partiful identity in fields.user.referenceValue.
  • The user ID at the end of that reference joins correctly to /getMutuals results.
  • Direct Firestore collection reads are not a valid attendee-facing fallback.

Proposed CLI

partiful guests mutuals <event-id>
partiful guests mutuals <event-id> --status GOING MAYBE
partiful schema guests.mutuals

Default statuses: GOING and MAYBE, matching the attendee lists Partiful says guests can see. Hosts may request other statuses only when their existing permissions allow it.

Suggested JSON shape:

{
  "eventId": "...",
  "eventTitle": "...",
  "mutuals": [
    {
      "userId": "...",
      "name": "...",
      "status": "GOING",
      "sharedEventCount": 3,
      "sharedEvent": { "id": "...", "title": "..." },
      "isPastGuest": true
    }
  ],
  "counts": {
    "visibleAttendees": 42,
    "matchedMutuals": 6
  }
}

Proposed code changes

  1. Add getMutuals to src/lib/api/endpoints.ts, including request/response schemas and paging metadata.
  2. Add a paginated mutual fetcher and a pure join function, preferably in src/lib/mutuals.ts:
    • fetch all mutual pages, not only the first eight results;
    • extract attendee identity from the canonical attendee-list response;
    • join by exact Partiful userId;
    • deduplicate users;
    • skip plus-ones or phone-only guests that have no Partiful user reference.
  3. Add guests mutuals <eventId> in src/commands/guests.ts.
  4. Add guests.mutuals to src/commands/schema.ts and CLI help.
  5. Preserve current host behavior, but first discover the canonical endpoint/query used by Partiful for a non-host's visible Going/Maybe list. Fail closed with a clear privacy/permission error when the host hides the guest list or the authenticated user cannot view it.
  6. Add unit tests for pagination, reference parsing, exact joins, deduplication, status filtering, hidden lists, and guests without user identities. Add live integration coverage for one hosted event and one attended event with a visible guest list.

Skill changes

Update skills/partiful/references/guests-invitations-and-cohosts.md with:

  • the guests mutuals workflow and examples;
  • the distinction between Partiful Mutuals and address-book contacts;
  • default Going/Maybe visibility;
  • privacy behavior when a guest list is hidden or unavailable;
  • guidance to summarize names and counts without echoing Partiful user IDs in user-facing responses.

Update the route in skills/partiful/SKILL.md so prompts such as "who do I know at this event?", "which attendees are my mutuals?", and "find friends going" route to this workflow.

Acceptance criteria

  • partiful guests mutuals <eventId> returns the intersection of the authenticated user's Mutuals and the event's visible attendee list.
  • The command follows /getMutuals pagination until exhausted.
  • Default output considers only GOING and MAYBE.
  • It works for a hosted event.
  • It works for an attended, non-host event when Partiful exposes the guest list to that user.
  • It fails closed when the list is hidden or unavailable, without scraping private data or bypassing permissions.
  • JSON output, schema introspection, --help, tests, and Partiful skill docs ship together.

Sources

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

Updated evidence starting point

Issue #206 verified authenticated mutual-guest decorators and inventories getMutualGuests, getMutualGuestsForEvents, getMutuals, and directional follow operations. Mutuals remain distinct from follows and Crush.

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 3, 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. As described it joins several reads in one command, and chained-call commands are out (draft VISION (#256)). Joining contacts list with an event guest list is that pattern. Needs: Kaleb's go-ahead, then a single Partiful call that returns mutual status 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