Skip to content

Implement RSVP and standard mutation plans in Go #166

Closed

Description

@KalebCole

Derived from the approved architecture in #155 and ADR 0001 (PR #160).

Contract status

RSVP mapping revision 2026-08-12.2 passed delegated review and merged as af0c469 through #184. PR #185 was closed unmerged after review. Evidence-backed revision 2026-08-12.3 passed delegated review and merged as c7fca72 through #186. Full implementation is proposed in #187 at 3c1cfdf; it uses the approved contract and makes no live call during tests.

Executable surface after delegated approval

  • rsvp set accepts going, not-going, and interested. Going and not-going require nonempty caller-supplied displayName; interested rejects it.
  • Explicit currentGuest: null selects create and omits guestId. An object with valid ID/status and compatible count selects update and includes the private ID. A missing property or any other variant is contract.protocol_changed.
  • Planning reads getEventInfo and getCurrentGuest once. It requires RSVP-enabled, non-application, non-ticketed, unprotected compatible events. Going does not support at-capacity or waitlist flows.
  • Party input uses named plus ones, exact party-size consistency, maxCountPerGuest, and remainingCapacity with update delta from the bound current-guest count.
  • Going requires the latest questionnaire version when enabled. Going omits questionnaire data when disabled; not-going always omits it.
  • The private plan binds operation, normalized input, exact request, account fingerprint, currentGuest marker/ID/status/count, and the normalized event safeguard snapshot. Public plans redact guest/account/user IDs.
  • Apply re-reads both facts once. Any bound change returns safety.plan_stale. Apply then consumes the five-minute single-use token before exactly one transport attempt. There are no retries; uncertainty requires a new plan.
  • Going/not-going return only {eventId,intent,submitted:true} after reviewed callable completion. Interested additionally requires truthy success and matching interested. No result claims persisted RSVP state or performs a post-write read.
  • rsvp get returns the reviewed object status or {eventId,status:null} for explicit currentGuest null. Unconstrained fields remain unavailable.

Implementation acceptance

  • The no-apply invocation has no mutation effect.
  • Fixture tests cover null/create, object/update, private-ID redaction, each compatibility exclusion, party and questionnaire checks, changed event/currentGuest/account/input, expiry, reuse, ambiguous transport, completion-predicate failure, and no post-write read.
  • Server rejection statuses, endpoint failures, and all unobserved response variants remain protocol drift.
  • Ticketing, applications, password-protected RSVP, waitlist, persisted business state, and post-write reads remain unsupported.

Tracked dependencies

#163 and #164

Activity

  1. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    RSVP wire mapping revision 2026-08-12.2 passed one review, full validation, CI, and merged as af0c469. The same agent is now defining the executable S5 product boundary: explicit display-name input, null-safe current-guest create/update selection, current-guest-only stale precondition, and submitted-request success without claiming persisted state or doing an unreviewed post-write read.

  2. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    PR #185 is closed without merge after its single review found two concrete blockers: (1) getCurrentGuest null/missing behavior must be observed before create-vs-update selection; (2) current event read facts must cover questionnaire version, password protection, ticketing, and party/limit safeguards before going/not-going apply. A minimal authenticated read-only capture is now the next action. No RSVP mutation will be sent.

  3. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    The specific read-only blockers are now captured without mutation: explicit currentGuest:null for a no-guest event, one typed existing-guest object, and safeguard facts across 330 event details (RSVP enablement, capacity, plus-one rules, questionnaire versions, ticketing, guest action, waitlist, and password fields). Raw private data was deleted; a sanitized artifact is on spec/166-rsvp-read-evidence. The same agent is replacing closed PR #185 with an evidence-backed safe policy.

  4. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    Implementation PR #187 is ready for the single delegated review.

    SHA: 3c1cfdf0d4935cc048db6ffcf9889eaac1e99582

    It implements the full accepted RSVP surface through app.Execute: private-ID-free reads, exact create/update/interest mappings, approved compatibility checks, atomic five-minute single-use plans, stale re-reads, one-shot apply, and submitted-only results. Full Go race/vet/build/module checks, 356 non-live JS tests (6 skipped), TypeScript, privacy, and diff checks pass. No live call or mutation was used. No known blockers.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions