Repository navigation
spec: close event-write contract evidence for #167 - #188
Conversation
Co-authored-by: Copilot <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 23 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 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThe PR proposes revision ChangesEvent-write contract
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
|
There was a problem hiding this comment.
Actionable comments posted: 4
🧹 Nitpick comments (1)
docs/CLI-PRODUCT-CONTRACT.md (1)
658-665: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winConfirm that a positive guest count must block cancellation.
Line 660 makes "the observed guest count must be a positive integer" a hard precondition. A non-matching fact then returns
state.conflict/EVENT_PRECONDITION_FAILED. The result is that a host cannot cancel an ownedPUBLISHEDevent that has zero guests.The supporting research states the opposite scope for this fact.
docs/research/2026-08-12-event-write-mapping-public-assets.mdlines 236-238 record only that the observed UI cancel choice was for an event with a positive guest count, and state that UI exposure is not promoted to endpoint authorization.If the positive count is intended only as a binding fact for staleness detection, bind it without making it a gate. If the gate is intentional, record the reason so the zero-guest cancel path is a documented product limitation.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/CLI-PRODUCT-CONTRACT.md` around lines 658 - 665, Revise the cancellation contract around the documented planning preconditions so a positive guest count is treated only as an observed/bound staleness fact, not as a required authorization gate. Preserve conflict handling for known mismatched bound facts where appropriate, but allow cancellation of owned PUBLISHED events with zero guests; alternatively, document the explicit product rationale if the guest-count gate is intentional.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/CLI-PRODUCT-CONTRACT.md`:
- Around line 685-689: Update the events cancel failure-mapping text to remove
“malformed Firestore Document” from the contract.protocol_changed cases, while
preserving the mappings for unrecognized statuses, endpoint errors/bodies, and
missing completion envelopes.
In `@spec/partiful.openapi.json`:
- Around line 3437-3477: Update the PartifulPosterImage schema’s height and
width properties to accept null in addition to numbers, matching the nullable
fields in the referenced Poster schema and allowing catalog entries with missing
dimensions. If the implementation guarantees numeric dimensions instead,
document that constraint and retain the existing strict numeric types.
- Around line 2296-2308: Update the nullValue property in the relevant OpenAPI
schema to use JSON null by replacing its string type and NULL_VALUE constant
with type "null". Preserve the surrounding object schema and required nullValue
field.
In `@tests/remote-api-contract.test.js`:
- Around line 954-958: Validate that both headings used to compute the
event-writes slice are present and ordered before calling slice; fail the test
explicitly when either indexOf result is -1 or the start boundary is not before
the end boundary. Keep the existing eventWrites assertions unchanged once the
guarded bounds are confirmed.
---
Nitpick comments:
In `@docs/CLI-PRODUCT-CONTRACT.md`:
- Around line 658-665: Revise the cancellation contract around the documented
planning preconditions so a positive guest count is treated only as an
observed/bound staleness fact, not as a required authorization gate. Preserve
conflict handling for known mismatched bound facts where appropriate, but allow
cancellation of owned PUBLISHED events with zero guests; alternatively, document
the explicit product rationale if the guest-count gate is intentional.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: efb8dba1-6bea-4b25-af8a-0cdf0855b043
📒 Files selected for processing (9)
docs/CLI-PRODUCT-CONTRACT.mddocs/REMOTE-API-CONTRACT.mddocs/adr/0001-greenfield-go-module-seams.mddocs/research/2026-08-10-contract-evidence-sources.mddocs/research/2026-08-10-partiful-api-contract-evidence-ledger.mddocs/research/2026-08-12-event-write-mapping-public-assets.mdspec/partiful.api-evidence.jsonspec/partiful.openapi.jsontests/remote-api-contract.test.js
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
Summary
Phase 1 contract evidence for #167. This PR proposes product and remote revision
2026-08-12.4, pending one delegated review. It does not implement Go, change shipped.3constants, use credentials, or make a live Partiful mutation.createEventandcancelEventrequest/completion mappingsKey mappings
event+cohostIds: []; fixed first-party fallback display/poster defaults; callable completion onlytitle,description,startDate,endDate,timezone,maxCapacity/enableWaitlist,customFields,image, plus privateupdatedBy; location, visibility, and display settings are excluded because they use field-specific callables{eventId,cancellationMessage,shouldSkipNotifyGuests}; ownedPUBLISHED, positive-guest, future event; exact confirmation requiredVerification
npm test -- --run tests/remote-api-contract.test.js— 36 passedTZ=America/Los_Angeles npx vitest run --exclude 'tests/*integration.test.js' --exclude 'tests/smoke-real-api.test.js'— 300 passednpm run typecheckgo test ./...go test -race ./...go vet ./... && go build ./... && go mod verifygit diff --checkReview gate
One delegated reviewer is required before merge. Go implementation remains blocked until this contract proposal is reviewed and merged.
Summary by CodeRabbit
Documentation
2026-08-12.4.API Specification
Tests