Skip to content

Implement event reads in Go #164

Closed

Description

@KalebCole

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

Implementation

Owner-reviewed product and remote contract revision 2026-08-12.1 merged in #182 at 936b316. PR #183 implements the complete S3 event-read surface and closes this issue when merged.

  • Commands: protected events list --when upcoming|past and events get, both through app.Execute.
  • Authentication: auth-owned session acquisition reuses the shared protected-command path. Refresh is serialized, rejected or expired refresh maps to auth.expired, missing credentials map to auth.required, and protected reads never receive or prompt through a terminal.
  • Projection: eventId is required. Other event-read fields use reviewed nullable/unavailable semantics. PUBLISHED maps to active; CANCELED maps to cancelled; UNSAVED and unknown values are protocol drift. Owner membership maps to host; known non-owner guest presence maps to attendee; known non-owner without a guest maps to none; missing owner data maps to null. All 16 guest statuses use the exact lossless read mapping.
  • List pagination: one complete upcoming or past response, received order, 1,000-item and 8-MiB bounds, and command/filter/offset/digest-bound local cursors. Changed refetches return CURSOR_SNAPSHOT_CHANGED.
  • Detail failures: getEventInfo must return an object. Reviewed 404 NOT_FOUND maps to resource.not_found; malformed responses and every unobserved received status, including 403, map to contract.protocol_changed.
  • Remote boundary: S3 calls only the two homepage list operations and getEventInfo. It does not call Firestore event GET, getCurrentGuest, or Firestore guest GET.

Explicit deferrals

  • cohost remains reserved and is never emitted because reviewed owner membership does not distinguish it from host.
  • permission.denied remains deferred until an inaccessible-event response is reviewed. This is not an S3 completion requirement.

Validation for PR #183

  • go test -race ./...
  • go vet ./...
  • go build ./...
  • go mod tidy with no module diff
  • TZ=America/Los_Angeles npm test — 352 passed, 6 live tests skipped
  • npm run typecheck
  • npm test -- --run tests/remote-api-contract.test.js — 31 passed
  • privacy scan and git diff --check

Tracked dependencies

#162 and #163

Activity

  1. KalebCole commented on Aug 11, 2026

    @KalebCole
    OwnerAuthor

    S3 evidence audit result: blocked on unavailable authenticated privacy-safe observations. Remote contract revision 2026-08-11.4 retains getMyUpcomingEventsForHomePage, getMyPastEventsForHomePage, getEventInfo, firestoreGetEvent, getCurrentGuest, and firestoreGetGuest response/status claims as explicit unknown; TypeScript request/shape assumptions remain non-authoritative. A complete revision needs owner-attended authenticated read-only observations for both list shapes and completeness/pagination, complete event/nullability/role/RSVP projection, authenticated not-found, and a safe known-existing inaccessible event to distinguish permission denial. partiful doctor reports no local auth config, so the orchestrator cannot gather those facts without private credentials or real-person action. Signed-out/public inference cannot close the user-specific list, role, RSVP, or permission gates. No Go S3 code will be guessed or registered.

  2. KalebCole commented on Aug 11, 2026

    @KalebCole
    OwnerAuthor

    Authenticated owner-attended read evidence is now captured and privacy-checked. Observed: upcoming/past list HTTP 200 shapes over 35/294 events with identical repeated identity sequences; getEventInfo 200 selected event and 404 NOT_FOUND synthetic missing; getCurrentGuest 200; Firestore guest 200 with matching guest status; Firestore event GET 403 PERMISSION_DENIED for both selected and synthetic IDs; selected getEventInfo is also readable signed-out. A proposed joint contract revision with #165 is now being drafted from the committed redacted artifact; no raw values or live mutation were retained.

  3. KalebCole commented on Aug 11, 2026

    @KalebCole
    OwnerAuthor

    Proposed read-evidence contract revision: #180

    The PR records the sanitized 35/294 event-list observations, selected event and guest reads, callable 404 NOT_FOUND, Firestore guest equality, Firestore event 403 PERMISSION_DENIED, and the signed-out selected-event result. It remains proposed and does not claim an inaccessible-event permission probe.

    Remaining implementation gate: independent owner review and merge, plus evidence for complete list-field projection, event state/role/RSVP mappings, list failures and safe bounded pagination, inaccessible-event permission distinction, current-guest alternate/null variants, and Firestore event success/not-found/attendee behavior. Go S3 must not use this proposal as authority until that gate closes.

  4. KalebCole commented on Aug 11, 2026

    @KalebCole
    OwnerAuthor

    PR #180 contract review cycle 1: review found an overbroad anonymous-access promotion plus shared privacy/inventory gaps. The selected signed-out event observation must remain evidence metadata, not universal getEventInfo security. The resumer is correcting this test-first; revision .5 remains proposed.

  5. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    PR #180 review cycle 1 fixes are pushed in 49a7d36: #180

    The normative getEventInfo security contract is bearer-only. The one selected signed-out success remains scoped to evidence metadata and the human ledger, and empty anonymous security alternatives can no longer bypass material-claim auditing. Privacy and observed-200 inventory guards are also corrected.

    Status remains proposed and not owner-reviewed. The S3 implementation gates previously listed on this issue remain open; no inaccessible-event permission behavior or universal public-read behavior is claimed.

  6. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    PR #180 review cycle 2 found a remaining single-sample overclaim: selected event/current-guest fields were promoted as operation-wide required/null-only types. The proposal is being corrected to conservative optional/union typing with explicit variant uncertainty. Go implementation remains gated.

  7. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    PR #180 review cycle 2 blockers are fixed in 79498e06ef31e1f5db8b99cc534b41cd5c6adc06.

    The approved CLI/shipped revision remains .4; the remote .5 proposal now avoids single-sample required-field and variant overclaims for event detail and current guest. All requested non-live validation passed (36 targeted, 292 full JS, typecheck, Go race/vet/build/mod, diff, PII, and strict privacy guards).

    Implementation remains gated on owner review and merge of proposed remote revision .5, then S3/S4 implementation and the shipped revision bump. No merge or owner-reviewed status change occurred.

  8. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    PR #180 final Spec blocker is fixed in 48a5754fa0e812988b7ec7b89354db3c4774feb0.

    EventInfo and CurrentGuest no longer impose top-level object types from one success sample. Their observed property schemas remain conditional, both obsolete evidence claims were removed, and the audited count is 1,230. All requested non-live JS, TypeScript, Go, diff, PII, and privacy validation passed.

    Owner review/merge and later S3/S4 implementation remain the gate. No merge or approval occurred.

  9. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    Remote API read contract revision 2026-08-11.5 is owner-reviewed and merged as a426456 after final Standards/Spec clearance and passing checks. Go S3 assessment/implementation has started in isolated branch feat/164-event-reads; unknown role/variant/failure behavior remains fail-closed and will not be guessed.

  10. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    S3 implementation assessment against owner-reviewed revision 2026-08-11.5

    Result: the public S3 catalog is still evidence-blocked, so no event command is being registered or partially shipped.

    Exact residual gates:

    • HomePageEvent requires only id. title, startDate, timezone, status, and guest.status are conditional observations. There is no reviewed mapping from remote status to product state, from guest status to product myRsvp, or from any reviewed list field to product userRole. Therefore a complete EventSummary cannot be produced without guessing.
    • EventInfo intentionally has no operation-wide top-level type or required fields. The product Event additionally requires stable projections for role/RSVP and fields including location, address, guest limit, poster, and links; .5 does not establish those projections or their null variants.
    • CurrentGuest is one selected object only. Null/alternate variants and RSVP semantics are still unknown. firestoreGetGuest confirms only selected status equality; it does not establish the product mapping.
    • firestoreGetEvent has no reviewed success path. Its selected and synthetic requests both returned 403 PERMISSION_DENIED, so it cannot supply event fields or distinguish permission denial from existence/not-found.
    • getEventInfo has reviewed selected 200 and synthetic 404 NOT_FOUND, but no reviewed inaccessible-event permission mapping. The selected signed-out 200 is metadata only and is not universal access evidence.
    • Upcoming/past are reviewed only as complete arrays in each observed one-response representation. Remote pagination, ordering, limits, failures, snapshots, and future completeness remain unknown. Local bounded cursors could operate only after the item projection is complete and the approved contracts explicitly establish that refetching this representation safely satisfies resumability.

    The allocated first protected-command tracer cannot be added independently: command definitions drive execution and schema, and events list/events get cannot enter the releasable catalog until their output/failure mappings are complete. Consequently, materializing internal/auth session acquisition now would have no real protected-command consumer and would create the dead seam that #155 prohibits.

    Evidence needed to resume: reviewed exact product mappings/null behavior for every EventSummary and Event field, role and RSVP semantics across relevant variants, callable inaccessible-event behavior (or another reviewed permission distinction), and explicit support for safe bounded local pagination over the one-response event representation. No live APIs, credentials, or mutations were used for this assessment.

  11. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    S3 resumed under the issue #114 delegation. Current first-party /events assets will supply exact LIVE/CANCELED, owner-membership, guest-status, and local list behavior. The product correction will make unproven optional fields explicitly nullable/unavailable, emit host for reviewed owner membership, reserve cohost until a distinct field is observed, keep unobserved permission mapping as protocol drift, and use local digest-bound pagination over the reviewed complete list representation. Contract PR comes before Go implementation.

  12. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    Contract correction is ready for delegated review in #182 at 57861fff56c7d29aca6e5109487ddb385dae25b6. This supersedes my earlier evidence-blocked conclusion; no Go implementation or shipped revision changed.

    Exact proposed mapping:

    • PUBLISHED → active; CANCELED → cancelled.
    • owner membership → host; known non-owner with guest → attendee; known non-owner without guest → none; unavailable ownerIds → null.
    • all 16 current guest statuses map losslessly to lowercase, hyphenated read values.
    • eventId is required; unsupported optional projections are null as unavailable-not-claimed.
    • list paging is local over one complete response, with 1,000-item/8-MiB ceilings and digest-change conflict.

    Explicitly deferred: cohost distinction and permission.denied until distinct owner-role and inaccessible-event evidence exist. An unobserved getEventInfo 403 remains protocol drift. S3 must not call Firestore event GET or the separate guest reads.

    Validation: 31 contract tests; full non-live suite 352 passed with 6 live tests skipped; typecheck; Go race/vet/build/module checks; privacy and diff checks.

  13. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    Product/remote event mapping revision 2026-08-12.1 passed targeted/full tests, required CI, and the single PR review after direct fixes; PR #182 merged as 936b316. The same implementation agent has resumed on fresh branch feat/164-event-reads. One implementation PR and one reviewer will be used.

  14. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    Implementation is ready in #183 at cb5132539cb1261d357a96ca61173ebdf896419c.

    Validation completed:

    • go test -race ./...
    • go vet ./...
    • go build ./...
    • go mod tidy with no module diff
    • TZ=America/Los_Angeles npm test — 352 passed, 6 live tests skipped
    • npm run typecheck
    • event remote-contract suite — 31 passed
    • privacy and diff checks

    The reviewed deferrals remain unchanged: cohost is reserved and never emitted, and permission.denied waits for inaccessible-event evidence. A received getEventInfo 403 remains protocol drift. No Firestore event or separate guest read is used.

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