Skip to content

bug(events): get and list never return the event host #262

Backlog

Description

@KalebCole

🤖 Kaleb's Grok Bot:

Problem

partiful events get and partiful events list never return who is hosting an event. The product envelopes have no host, owner, creator, or organizer field. userRole on list is only the current user's role (host or attendee), not the host's identity.

This was reproduced against v3.1.0 (tag 6618674, product contract 2026-11-12.3) and the same omission is still in current main (017e0f2). On events get, userRole and myRsvp are always null, even when list has values for the same event.

guests list is not a workaround: it is host-only (exit 4, HOST_PERMISSION_REQUIRED for guest events), and even the host view has no host flag. There is no cohosts list (COMMAND_NOT_FOUND).

Repro

  1. Run partiful events list --when upcoming.
  2. Inspect any item: keys are eventId, title, start, end, timezone, state, userRole, myRsvp. No host or owner field.
  3. Run partiful events get <event-id> for a guest event and for a hosted event.
  4. Both responses use the same data keys, none of them a host field. userRole and myRsvp are null in both cases.

Root cause

The raw API is not missing host identity entirely. It returns ownerIds (opaque user IDs, not display names). The CLI already parses them, then drops them from the product envelope. Line numbers below are from current main (017e0f2).

  • Remote contract in spec/partiful.openapi.json: HomePageEvent.ownerIds (line 3589) and EventInfo.ownerIds (line 3654) are string[]. Neither schema documents host, hostName, creator, or organizer.
  • The remote layer already maps that field to remote.Event.OwnerIDs / OwnerIDsPresent: struct at internal/remote/events.go:32-33, homepage list decoder at internal/remote/events.go:365-399, getEventInfo decoder at internal/remote/events.go:443-477 (also stores every raw key, including ownerIds, in RawFields).
  • The product mapper uses OwnerIDs only to set the current user's userRole on list (internal/app/events.go:154-183, host check at lines 160-167). It never emits the IDs. executeEventGet (internal/app/events.go:185-244) copies title, dates, state, and a handful of RawFields, and leaves userRole and myRsvp unset (JSON null). eventDetail (internal/app/events.go:20-36) has no host or owner field.
  • Product contract 2026-11-12.3 encodes the omission in eventCollectionSuccessSchema and eventGetSuccessSchema (internal/app/app.go:928-1008). On get, userRole and myRsvp are typed as "null" (lines 997-998).

Proposed fix

  1. Bump the product contract and add a reviewed host field to both events.list items and events.get, at minimum the already-parsed ownerIds (for example hostIds). Wire it in projectEventSummary and executeEventGet from event.OwnerIDs.
  2. Also project userRole and myRsvp on events get with the same logic list already uses. Today get advertises those keys but the schema forces them to null.
  3. Do not invent display names. See the name-resolution findings below.
  4. Do not treat guests list or a new cohosts list as the fix. The first is host-only. The second does not exist and would be a separate command.

This changes the output schema and goldens, so it is on the hold list. Do not merge without Kaleb's yes.

Name resolution (spec on main)

Researched read-only in spec/partiful.openapi.json on main (017e0f2; the file is unchanged from v3.1.0). The spec is the source of truth. One command may make only one remote call.

  • The same-call event payloads do not include host display names. getMyUpcomingEventsForHomePage (line 1195) and getMyPastEventsForHomePage (line 1296) return HomePageEvent with ownerIds only (line 3589). getEventInfo (line 215) returns EventInfo with ownerIds only (line 3654). EventDisplaySettings is theme, effect, and titleFont (line 4065). There is no host, hostName, ownerName, creator, or organizer field on those schemas.
  • There is no spec operation that looks up arbitrary user IDs and returns display names. No getUser, getProfile, or similar path exists.
  • lookupFirebaseUser (line 2190, POST /v1/accounts:lookup) takes only the current session idToken (lines 2197-2203) and can return FirebaseLookupUser.displayName (line 3380) for the authenticated Firebase user. It is not a general profile lookup for ownerIds.
  • getContacts (line 306) returns Contact items with id, name, and sharedEventCount (schema lines 3902-3921). That is a separate call, so using it from events get or events list would be a chained call, which is out of scope. The spec also does not document that Contact.id matches ownerIds, so this is not a reviewed join.
  • getGuests (line 415) returns GuestListItem with name and optional userId (lines 4350-4381). That is also a separate call, and guests are not the host list. The CLI already treats guests list as host-only.

So names cannot come from the same list or get call as specified today. Resolving ownerIds to display names needs a follow-on research and contract review, not an invented endpoint or inferred join.

Related issues (not duplicates)

No existing issue asks to return the event host on events get or events list.

Activity

  1. added
    bug
    held
    on Nov 23, 2026
  2. KalebCole commented on Nov 23, 2026

    @KalebCole
    OwnerAuthor

    🤖 Kaleb's Grok Bot:

    Contract review on main (017e0f2) for host names: no typed same-call source is in the spec, so I did not open a PR.

    HomePageEvent and EventInfo document ownerIds only (spec/partiful.openapi.json L3589 and L3654). List and get responses have no users map or host profile object. The only name-like clue is research: hostName was present on 17 of 330 getEventInfo responses (spec/research/rsvp-read-evidence-redacted-20260812.json L227-228), but type and values were redacted. VISION.md keeps that as research until it is reviewed into the spec, so I will not guess that it is a display-name string. List fixtures do not retain enough key names to confirm the field there. VISION.md also says the CLI must not print Partiful user IDs, so I am not shipping raw ownerIds as a stand-in.

    A second call would need your explicit exception to the one-call rule. getContacts can return names, but it is a paged traversal (2,451 contacts over 4 pages in the 2026-08-11 observation) and Contact.id is not a reviewed match for ownerIds. getGuests is one extra call per event, host-only today, and is a guest list rather than a host list.

    The clean path is a typed, privacy-safe observation of hostName on get and list, then a held PR once that is in the spec. Details are in tasks.db row 94. Waiting on you.

  3. KalebCole commented on Nov 24, 2026

    @KalebCole
    OwnerAuthor

    🤖 Kaleb's Grok Bot:

    Kaleb said the vision should allow a JSON of host IDs, so I opened two held PRs. Names stay unset; I did not guess them. Neither PR is merged.

    Exact new VISION.md line:
    The CLI never prints phone numbers, email addresses, or access tokens. It may print event host IDs (Partiful user IDs of event owners) as hostIds, and it never prints other Partiful user IDs.

    Waiting on your merge yes for both.

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

    bugheld

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions