Skip to content

fix(remote): repair current getGuests contract drift #207

Open

Description

@KalebCole

Parent

#206

User scenario

As a host, I want guest reads to work against the current Partiful API so every guest-management workflow can fail closed on real data instead of protocol drift.

Problem

The current Go guests list path reproduces GUESTS_PROTOCOL_CHANGED on an active owned event. Guest administration, waitlist, check-in, blast audience selection, and RSVP review depend on a trustworthy guest read.

Evidence and current state

Issue #206 reproduced the failure and identified the current mobile getGuests callable. Closed #168 and merged PR #190 implemented the earlier contract, but they do not describe the current response.

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 guests list <event-id>

Commands must use the existing JSON envelope, schema catalog, pagination model, structured errors, and privacy projection.

Full 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. Propose the smallest remote-contract revision in spec/partiful.openapi.json, update spec/partiful.api-evidence.json, and add redacted evidence/research notes. Keep unknown variants explicit.
  3. Obtain owner approval for the remote contract. No implementation may treat unapproved research as authority.
  4. Update docs/CLI-PRODUCT-CONTRACT.md, the application command catalog, machine-readable partiful schema, help, safety classification, output projection, and exact empty-state behavior.
  5. Implement one typed application operation that the CLI uses directly and a future MCP adapter can reuse, plus the required internal/remote transport. Do not expose raw callable or Firestore commands.
  6. Add fake-transport contract tests, parser/validation tests, privacy regressions, permission/error cases, pagination bounds, and CLI/MCP parity coverage.
  7. 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.
  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.

Scope boundaries

This is a read-contract repair. Fixtures and diagnostics must omit phone numbers, emails, guest IDs, and user IDs.

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.

Related work

Activity

  1. added
    bug
    wayfinder:task
    on Sep 6, 2026
  2. KalebCole commented on Nov 14, 2026

    @KalebCole
    OwnerAuthor

    Triage bot: question for Kaleb. 9c9fb70 (guests from the guests subcollection) and #249 (host fallback with bounded traversal) look like they cover this drift. If so, this can close. Needs: confirmation.

  3. added
    question
    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

    bugquestionwayfinder:task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions