Skip to content

Research current mobile callables and Firestore migration candidates #206

Closed

Description

@KalebCole

Problem

The current remote API contract was reconstructed in #153 from the best evidence available at the time. The Explore prototype found a newer first-party surface in Partiful Android 3.8.28:

  • getDiscoverFeedV2 supports dynamic areas such as Seattle;
  • getDiscoverSectionsV2 returns current social discovery modes;
  • getDiscoverEventItemDecorators returns authenticated mutual context; and
  • the mobile bundle contains callable operations and request builders that are absent from the current OpenAPI spec.

This raises a useful but unproven possibility: some direct Firestore operations in the CLI may have current callable equivalents that were missed because earlier research focused on the web client and historical TypeScript code.

Prototype evidence:

Research question

What callable operations exist in the current mobile client, which ones are already represented accurately in spec/partiful.openapi.json, and which could replace direct Firestore access in a future CLI contract revision?

The goal is evidence, not a predetermined callable-only migration. Some Firestore access may remain the correct transport for realtime or collection behavior.

Work

  1. Acquire the latest publicly distributed Android package through a legitimate source and record its version and hashes. Do not commit the APK, bytecode bundle, or full decompiler output.
  2. Enumerate every statically recoverable Partiful callable name from the mobile bundle.
  3. Recover request construction, response consumption, pagination, and relevant client-side projection logic for operations that overlap supported CLI tasks.
  4. Diff the mobile inventory against:
    • spec/partiful.openapi.json;
    • spec/partiful.api-evidence.json;
    • production callable use under internal/remote/; and
    • production Firestore reads, collection queries, and patches.
  5. Classify each operation as:
    • already represented accurately;
    • newer replacement or version;
    • new capability;
    • possible Firestore replacement;
    • unrelated internal operation;
    • stale/dead code; or
    • unresolved.
  6. Run bounded, authenticated, read-only probes for high-value candidates. Capture only sanitized shapes and safe aggregates.
  7. For possible mutation replacements, use static first-party evidence by default. A live write requires a separate, explicit throwaway-event plan and owner approval. This issue does not require any live mutation.
  8. Recommend follow-up contract tickets and a command-by-command migration order. Do not change production transports in this issue.

Priority questions

  • Is there a current callable replacement for direct event Firestore PATCH?
  • Can current callables replace Firestore guest collection reads?
  • Is there a callable for host-message or blast-history reads?
  • Do newer event-detail operations expose the fields currently missing from getEventInfo?
  • Are cohost precondition reads available through callables?
  • Which Firestore paths are inherently realtime data-plane behavior rather than migration candidates?

Deliverables

  • A machine-readable mobile callable inventory with, at minimum:
    • operation name;
    • mobile app version;
    • evidence source;
    • recovered request fields;
    • observed or consumed response fields;
    • current OpenAPI status;
    • current CLI use;
    • related Firestore use;
    • probe status; and
    • disposition.
  • A concise research note that explains the transport map and unresolved gaps.
  • A complete inventory of production Firestore call sites, each classified as callable replacement verified, candidate, no replacement found, or realtime/data-plane exception.
  • Follow-up issue recommendations for evidence promotion and migration. Canonical OpenAPI changes remain owner-reviewed follow-up work.

Acceptance criteria

  • Every statically recoverable mobile callable is included exactly once in the inventory.
  • Inventory counts are computed mechanically and checked for duplicates.
  • Every production Firestore call site is mapped to one disposition.
  • Existing OpenAPI operations are compared by request and consumed-response behavior, not name alone.
  • High-value read candidates have reproducible, sanitized live probes or an explicit blocker.
  • Write candidates are not live-probed without a separate approved plan.
  • No credentials, phone numbers, user IDs, guest IDs, real names, raw response bodies, APKs, or decompiled proprietary bundles are committed.
  • The research separates current public-web projections, current mobile callable behavior, Firebase authentication, and Firestore data-plane access without calling one transport "legacy" merely because another is richer.
  • The result says whether a callable-first migration is practical, which commands can move, and what must remain mixed-transport.
  • go test ./..., go vet ./..., repository privacy checks, and research-artifact validation pass.

Related work

Activity

  1. added
    enhancement
    wayfinder:research
    on Sep 5, 2026
  2. KalebCole commented on Sep 5, 2026

    @KalebCole
    OwnerAuthor

    Research fanout is running across eight lanes:

    • current Android callable inventory;
    • production Firestore call-site audit;
    • OpenAPI and evidence-ledger gap analysis;
    • event-domain replacement candidates;
    • guest and RSVP replacement candidates;
    • cohost, message, blast, and activity candidates;
    • authenticated read/error probes; and
    • one controlled browser/write verification lane.

    The browser lane is using the authenticated durable profile and the Printing Press capture rules. Live writes are limited to user-owned throwaway events and one explicitly authorized attendee test target. It will not send blasts, invite real contacts, alter cohosts on real events, cancel real events, or guess mutation endpoints.

    Agent reports are evidence leads, not accepted findings. Each result will be checked against the repo, sanitized captures, remote readback, and cleanup state before the final inventory or follow-up tickets are posted.

    • hermes 🤖
  3. KalebCole commented on Sep 6, 2026

    @KalebCole
    OwnerAuthor

    Research fanout results

    Fourteen focused lanes completed across two waves. I reconciled their reports against the current repo, the sanitized mobile inventory, fresh live reads, remote branch state, and write cleanup.

    Research branch: https://github.com/KalebCole/partiful-cli/tree/research/issue-206-mobile-callables

    Commit: 34b7f2f

    Verdict

    A callable-first migration is practical and worth pursuing. A callable-only migration is not supported by the evidence.

    Partiful Android 3.8.28 contains 275 unique first-party callable names. Nineteen match the current OpenAPI and production Go callable references; 256 have no current CLI command mapping. The current Go CLI has five direct Firestore route shapes.

    The mobile callable surface is much richer than the current contract, but the current first-party editor still uses Firestore for generic event edits and the Auto-Reminders toggle. Several callable reads overlap current Firestore state, but they do not yet preserve every field or precondition the CLI needs.

    Verified callable findings

    • Explore V2 feed, sections, decorators, map pins, and date-range reads work for Seattle.
    • getEventInfo, home event lists, getCurrentGuest, and getMyRsvps are current callable reads.
    • getEventComments, getEventDisplayedHostMessages, and getPendingCohostRequestForEvent are live callables with {eventId} requests.
    • setEventLocation persisted a free-form location and passed independent getEventInfo readback.
    • updateDisplaySettings persisted the final theme and passed independent readback.
    • addGuest produced the authorized final declined RSVP state, which remains verified.
    • deleteEvent removed both self-owned throwaway events. Fresh reads return EVENT_NOT_FOUND for both.

    Firestore that must remain for now

    • Generic title/event-field editing still used Firestore Write streaming.
    • Auto-Reminders used Firestore Write streaming and read back enableGuestReminders:false.
    • The blast guest collection needs checkIn, which getGuests does not currently prove.
    • Displayed host messages do not prove equivalence to the blast guard's full host-message type count.
    • Pending cohost request is caller-specific and does not replace host-side request enumeration.
    • No general callable replacement for the current event document PATCH was found.

    A fresh host guests list probe also reproduces GUESTS_PROTOCOL_CHANGED, so getGuests needs a dedicated response-drift investigation before it can support migration work.

    Important blocker

    The create UI labeled throwaway events Private, but fresh callable readback showed public/published state. Publish/unpublish testing was intentionally stopped because safe reversal was unclear. Visibility needs its own controlled contract ticket.

    Artifacts

    Mechanical checks passed: 275 rows, 275 unique operation names, zero duplicates, priorities sum to 275, and five unique Firestore routes. go mod verify, go test ./..., go vet ./..., go build ./..., the repo PII guard, staged whitespace checks, and remote SHA verification passed.

    The canonical OpenAPI and evidence ledger remain unchanged. This issue stays open for owner review and follow-up ticket decisions.

    • hermes 🤖
  4. KalebCole commented on Sep 6, 2026

    @KalebCole
    OwnerAuthor

    Missing-feature issue portfolio

    The mobile callable research is now split into full contract-to-release vertical slices.

    New issues

    Foundation and personal state:

    Event lifecycle:

    Communication, social, and media:

    Ticketing and scheduling:

    Communities and account:

    Existing issues extended instead of duplicated

    Explore remains #102; no duplicate was created.

    Every created or updated issue includes the full lifecycle: current evidence capture, OpenAPI and evidence-ledger treatment, owner review, CLI product contract and schema, typed Go operation and transport, privacy and failure tests, controlled live readback for writes, README/skill updates, and native release gates.

    Independent GitHub readback verified 22 new issues, 13 updated issues, 35 unique titles, expected labels, exact remote bodies, required lifecycle sections, and resolved dependency references.

    • hermes 🤖
  5. 9 remaining items

  6. KalebCole commented on Sep 6, 2026

    @KalebCole
    OwnerAuthor

    Resolution

    Kaleb approved using this research to begin the Explore implementation tracked by Browse the Partiful Explorer feed before choosing an event.

    Accepted findings:

    • Partiful Android 3.8.28 exposes 275 unique first-party callable names.
    • A callable-first CLI migration is practical; a callable-only mandate is not supported.
    • Current Firestore behavior remains necessary where callables do not preserve required fields, preconditions, or first-party editor behavior.
    • The public Next.js projection is current but less capable than the mobile callable surface; it is not automatically legacy.
    • Static callable names remain research evidence until operation-specific request, response, authorization, failure, and persistence behavior is approved.
    • The first implementation train is authenticated Explore V1 using getDiscoverFeedV2, getDiscoverSectionsV2, and getDiscoverEventItemDecorators.

    Durable evidence:

    The canonical OpenAPI and released CLI remain unchanged by this research ticket. Feature issues own evidence promotion, owner review, implementation, and release.

    • hermes 🤖
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

    enhancementwayfinder:research

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions