Skip to content

feat(events): support RSVP deadlines and correctly persist guest limits #107

Open

Description

@KalebCole

Problem

Hosts need to set when RSVPs close and cap attendance while creating or updating a party. The CLI exposes --capacity, but does not expose an RSVP deadline. A real create also showed a capacity write mismatch: events create --capacity 12 returned success while the Partiful editor still displayed Unlimited spots.

User scenario

Create a picnic for August 22 at 3 PM, close RSVPs on August 20 at noon, and cap attendance at 12. This should be possible in one agent-safe CLI operation and verifiable with read-after-write.

Desired CLI

partiful events create \
  --title "Sunset Picnic" \
  --date "Aug 22 2026 3:00pm" \
  --timezone America/Los_Angeles \
  --capacity 12 \
  --rsvp-deadline "Aug 20 2026 12:00pm"

partiful events update <event-id> \
  --capacity 12 \
  --rsvp-deadline "Aug 20 2026 12:00pm"

Acceptance criteria

  • events create and events update accept --rsvp-deadline <date> and parse it in the event timezone.
  • --capacity N persists the exact guest limit during create and update.
  • Machine-readable schemas document both fields.
  • Structured output returns normalized deadline and capacity values.
  • Read-after-write verification detects rejected or silently ignored fields.
  • Invalid deadlines fail closed: malformed timestamps, deadlines after event start, and non-positive capacity.
  • Unit tests cover payload encoding, timezone conversion, validation, create, update, and schema output.
  • No guessed API fields: RSVP deadline wire format is established from captured first-party behavior or an authoritative endpoint response.

Reproduction for capacity mismatch

  1. Run partiful events create ... --capacity 12 --format json.
  2. Command returns success.
  3. Open the new party in Partiful editor.
  4. Capacity displays Unlimited spots.

Notes

The existing code appears to encode create and update capacity through different payload paths. Treat RSVP deadline as an API-contract discovery task before implementation; do not ship a plausible but unverified field name.

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

Updated evidence starting point

Issue #206 confirms current event-detail readback and a mixed callable/Firestore editor. Existing TypeScript evidence must be refreshed into the current Go remote and product contracts before deadline/capacity implementation.

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 8, 2026
  2. KalebCole commented on Aug 8, 2026

    @KalebCole
    OwnerAuthor

    Implementation update:

    • RSVP deadline support is implemented in feat(events): support RSVP deadlines #108 with first-party contract evidence and live read-after-write validation.
    • The create-time capacity mismatch remains open in this issue. Immediate workaround is a post-create events update --capacity N, which live read-after-write confirmed persists guestLimit: 12.
    • CodeRabbit first-pass findings were fixed in 89ecea2; re-review is currently rate-limited.
  3. added
    wayfinder:task
    on Sep 6, 2026
  4. KalebCole commented on Nov 14, 2026

    @KalebCole
    OwnerAuthor

    Triage bot: question for Kaleb. RSVP deadline support shipped in #108, and b1d9eeb now reports capacity in events get. If the create-time capacity mismatch no longer reproduces, this can close. Needs: confirmation, not a live test from triage.

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

    enhancementheldquestionwayfinder:task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions