Skip to content

docs(contract): propose event-read mapping for #164 - #182

Merged
KalebCole merged 3 commits into
mainfrom
spec/164-event-mapping
Aug 12, 2026
Merged

KalebCole merged 3 commits into
mainfrom
spec/164-event-mapping

Conversation

@KalebCole

@KalebCole KalebCole commented Aug 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • record privacy-safe current first-party /events asset evidence and propose remote/product revision 2026-08-12.1
  • define nullable event reads, lossless read RSVP values, conservative role/state mappings, and bounded local snapshot pagination
  • keep shipped Go revisions at product 2026-08-10.1 and remote 2026-08-11.5; this PR has no Go implementation

Exact mappings

  • PUBLISHED → active; CANCELED → cancelled
  • current user in ownerIds → host; known non-owner with guest → attendee; known non-owner without guest → none; missing ownerIds → null
  • all 16 guest statuses map one-to-one to lowercase hyphenated read values
  • only eventId is required; unavailable optional fields are null without claiming remote absence

Boundaries deferred

  • cohost stays reserved because current assets do not distinguish it from owner membership
  • permission.denied stays deferred until an inaccessible-event response is reviewed; unobserved getEventInfo 403 is protocol drift
  • S3 must not use firestoreGetEvent, getCurrentGuest, or firestoreGetGuest
  • list paging is local over one complete response, with 1,000-item/8-MiB ceilings and digest-change conflict

Validation

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

Refs #164

Summary by CodeRabbit

  • Documentation

    • Updated the CLI and remote API contracts to proposed revision 2026-08-12.1.
    • Documented event pagination, status and RSVP mappings, ownership roles, nullable fields, and protocol-drift handling.
    • Clarified that unavailable fields are represented as null without implying remote absence.
    • Added research evidence covering event reads, public assets, guest statuses, and pagination behavior.
  • API Schema

    • Added event and guest status enums.
    • Added event owner identifiers and refined status field definitions.
  • Tests

    • Expanded contract coverage for revised schemas, mappings, pagination, nullable reads, and evidence validation.

Record current first-party event status, owner membership, guest statuses, and conservative local snapshot semantics for #164. Keep shipped Go revisions unchanged pending delegated review.

Co-authored-by: Copilot <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@KalebCole, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 41 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 463f0c9c-26e8-46ec-bcc5-384d42c7c9cc

📥 Commits

Reviewing files that changed from the base of the PR and between 57861ff and 1bd04d7.

📒 Files selected for processing (6)
  • docs/CLI-PRODUCT-CONTRACT.md
  • docs/REMOTE-API-CONTRACT.md
  • docs/research/2026-08-10-partiful-api-contract-evidence-ledger.md
  • spec/partiful.api-evidence.json
  • spec/partiful.openapi.json
  • tests/remote-api-contract.test.js

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f685521a-d3af-4ad3-8466-9327148c8077

📥 Commits

Reviewing files that changed from the base of the PR and between 3cf4fdd and 57861ff.

📒 Files selected for processing (10)
  • CONTEXT.md
  • docs/CLI-PRODUCT-CONTRACT.md
  • docs/REMOTE-API-CONTRACT.md
  • docs/research/2026-08-10-contract-evidence-sources.md
  • docs/research/2026-08-10-partiful-api-contract-evidence-ledger.md
  • docs/research/2026-08-11-event-contacts-read-observation.md
  • docs/research/2026-08-12-event-read-mapping-public-assets.md
  • spec/partiful.api-evidence.json
  • spec/partiful.openapi.json
  • tests/remote-api-contract.test.js

📝 Walkthrough

Walkthrough

The proposed 2026-08-12.1 contract adds public event-read evidence, closed status schemas, nullable CLI projections, local snapshot pagination, revised failure handling, and expanded contract tests.

Changes

Event-read contract revision

Layer / File(s) Summary
Public event evidence and mappings
docs/research/*, spec/partiful.api-evidence.json
Documents public asset provenance, event states, ownership, guest statuses, pagination limits, unsupported behaviors, and proposed evidence status.
Remote schema and revision updates
docs/REMOTE-API-CONTRACT.md, spec/partiful.openapi.json, docs/CLI-PRODUCT-CONTRACT.md
Updates the proposed revision and adds constrained EventStatus and GuestStatus schemas with related field references.
CLI event projections and pagination
CONTEXT.md, docs/CLI-PRODUCT-CONTRACT.md
Defines nullable event fields, local digest-bound cursors, status mappings, role and RSVP normalization, protocol-drift handling, and event-detail failures.
Contract and evidence validation
tests/remote-api-contract.test.js
Validates revisions, evidence claims and assets, schemas, projections, pagination rules, failure boundaries, and shipped revision constants.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related issues

  • KalebCole/partiful-cli issue 164 — Covers the same proposed event-read contract, including nullable projections, mappings, pagination, and failure handling.

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the contract documentation change and the proposed event-read mapping for issue #164.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch spec/164-event-mapping

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-12 02:44 UTC

Ubuntu added 2 commits August 12, 2026 02:40
Co-authored-by: Copilot <[email protected]>

Copilot-Session: 7b842425-e150-41a6-9cd2-6b0842fe8c01
Co-authored-by: Copilot <[email protected]>

Copilot-Session: 7b842425-e150-41a6-9cd2-6b0842fe8c01
@KalebCole
KalebCole merged commit 936b316 into main Aug 12, 2026
2 checks passed
@KalebCole
KalebCole deleted the spec/164-event-mapping branch August 27, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant