Repository navigation
feat(rsvp): add safe reads and mutation plans - #187
Conversation
Implement reviewed RSVP reads, compatibility safeguards, persistent single-use mutation plans, and submitted-only apply results. Ship product and remote contract revision 2026-08-12.3. 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: 44 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 (3)
📝 WalkthroughWalkthroughThe Go CLI adds ChangesRSVP Go implementation
Estimated code review effort: 5 (Critical) | ~120 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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: 8
🧹 Nitpick comments (5)
internal/app/rsvp_input.go (1)
489-498: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winExtract the duplicated schema fragments.
rsvpSetInputSchemaandrsvpSetSuccessSchemadeclarezero,one,fifty,fourHundred,stringItem,answers, andquestionnairewith identical bodies. The two copies must stay in sync whenever the questionnaire or plus-one shape changes. Extract the shared fragments into package-level helpers, for examplersvpQuestionnaireSchema()andrsvpPlusOneNameSchema(), and call them from both functions.Also applies to: 560-577
🤖 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 `@internal/app/rsvp_input.go` around lines 489 - 498, Extract the duplicated schema fragments from rsvpSetInputSchema and rsvpSetSuccessSchema into package-level helpers, such as rsvpQuestionnaireSchema and rsvpPlusOneNameSchema. Have both functions call these helpers for the shared zero/one/fifty/fourHundred, stringItem, answers, and questionnaire definitions, preserving the existing schema shapes while keeping future changes synchronized.internal/app/rsvp_set.go (2)
256-261: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winReuse
rsvpOperationinsideprepareRSVPRequest.
rsvpOperationderives the operation frominput.Intent.prepareRSVPRequestderives the same two values independently at lines 286 and 333 with the sameinput.Intent == "interested"test.Inspectat line 111 usesrsvpOperation, and the binding at line 191 usesprepared.Operation. The two derivations must agree, orInspectandConsumebind different operations for the same input. CallrsvpOperation(input)inprepareRSVPRequestto remove the second derivation.🤖 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 `@internal/app/rsvp_set.go` around lines 256 - 261, Update prepareRSVPRequest to derive the request operation exclusively by calling rsvpOperation(input), replacing both independent input.Intent checks. Preserve the existing operation assignment so Inspect and Consume use the same value.
238-254: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winDerive
expiresInSecondsfrom the authority TTL.Line 251 hardcodes
300.internal/mutation/mutation.gosets the record expiry withnow.Add(5 * time.Minute), andrsvpSetSuccessSchemaininternal/app/rsvp_input.goline 687 pins both the minimum and the maximum to300. Three literals encode one policy. If the authority TTL changes, the advertisedexpiresInSecondsreports a lifetime that the stored plan does not have.Export the TTL from the
mutationpackage and derive the value.♻️ Proposed refactor
Add the exported constant in
internal/mutation/mutation.go:// PlanLifetime is the lifetime of a stored mutation plan. const PlanLifetime = 5 * time.MinuteUse it for the record expiry in
Create, then derive the advertised value here:- ExpiresInSeconds: 300, + ExpiresInSeconds: int(mutation.PlanLifetime / time.Second),🤖 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 `@internal/app/rsvp_set.go` around lines 238 - 254, Export a PlanLifetime duration constant from the mutation package and use it in mutation.Create when calculating stored plan expiry. In the RSVP set success response, replace the hardcoded ExpiresInSeconds value with seconds derived from mutation.PlanLifetime, and update rsvpSetSuccessSchema to derive both minimum and maximum from the same constant so all plan lifetime behavior remains consistent.internal/app/rsvp_execute_test.go (1)
1419-1434: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueDerive the compatible event response from one fixture.
compatibleRSVPEventResponseandcompatibleRSVPEventdescribe the same compatible event in two places. If one changes, the other silently diverges, and the tests that use each fixture then verify different contracts.♻️ Optional consolidation
const ( rsvpCredentialsPath = "/config/partiful/credentials.json" rsvpMutationPath = "/config/partiful/mutation-plans.json" rsvpCredentials = `{"accessToken":"private-access-token","userId":"private-account","expiresAt":"2026-08-12T02:00:00Z"}` - compatibleRSVPEventResponse = `{"result":{"data":{"event":{ - "rsvpsEnabled":true, - "atCapacity":false, - "plusOneNamesRequired":false, - "questionnaireVersions":null - }}}}` )Then build the response from the map in each test with
rsvpEventResponse(t, compatibleRSVPEvent()).🤖 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 `@internal/app/rsvp_execute_test.go` around lines 1419 - 1434, Consolidate the duplicate compatible-event fixtures by making compatibleRSVPEventResponse derive from compatibleRSVPEvent through the existing rsvpEventResponse helper. Update tests that use the raw response fixture to build it with rsvpEventResponse(t, compatibleRSVPEvent()), ensuring both representations remain synchronized.internal/remote/rsvp.go (1)
291-308: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueAdd a short comment that
jsonTruthyreproduces client truthiness on purpose.The function mirrors JavaScript truthiness over raw JSON, and it deliberately ignores the
strconv.ParseFloatrange error so that an overflowing number such as1e999999999stays truthy. One sentence above the function would record that intent for future readers.🤖 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 `@internal/remote/rsvp.go` around lines 291 - 308, Add a one-sentence comment immediately above jsonTruthy documenting that it intentionally reproduces client-side JavaScript truthiness, including preserving truthiness for numeric values whose ParseFloat conversion overflows.
🤖 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 `@cmd/partiful/main.go`:
- Around line 30-31: Remove the explicit MutationPath assignment from the
configuration initialization near MutationRandom. Let internal/app/rsvp_set.go
derive the .mutation-plans path only when CredentialsPath is non-empty,
preserving the empty-path behavior when credential-path resolution fails.
In `@internal/app/rsvp_input.go`:
- Around line 383-403: Update requiredRSVPInteger to reject any non-whitespace
content after the decoded integer, matching the trailing-content validation used
by optionalQuestionnaire. Preserve the existing missing, non-number, and
invalid-integer behavior while ensuring inputs such as “2 garbage” return false.
- Around line 447-453: Update validRSVPTimezone to explicitly reject the "Local"
value before calling time.LoadLocation, while preserving the existing whitespace
and location validation. Add the blank-import of time/tzdata in the cmd/partiful
main package so named IANA zones validate without relying on system zoneinfo.
In `@internal/app/rsvp_set.go`:
- Around line 197-230: Update the post-send error handling in callRSVPMutation
so decode failures represented by remote.ErrProtocolChanged return
rsvpSubmitUncertainFailure instead of rsvpProtocolChangedFailure, while
preserving the existing RSVP_SUBMISSION_UNAVAILABLE mapping for
remote.ErrUnavailable and protocol-changed handling for other cases.
- Around line 352-367: Update the count validation in the RSVP parsing flow
before converting *current.Count to int, replacing maxInt() with an
architecture-aware bound that accounts for float64 rounding. Reject values >=
2^63 on 64-bit builds while allowing the exact 32-bit maximum and rejecting
larger values; adjust or remove maxInt() accordingly and preserve the existing
validation checks.
In `@internal/auth/auth.go`:
- Around line 198-206: Update the session creation flow in AcquireSession around
tokenUserID and credentials.UserID to reject empty userID values with
ErrRequired before constructing or refreshing a session. Ensure this validation
applies both on initial credential loading and after token refresh, so rsvp set
receives auth.required instead of creating a session with an empty account
fingerprint.
In `@internal/remote/rsvp.go`:
- Around line 310-323: Update optionalNumber to reject an explicitly present
JSON null before unmarshalling into float64, returning the existing
invalid-number error. Preserve nil for missing fields and successful parsing for
valid numeric values so CurrentGuest.Count cannot conflate null with zero.
In `@skills/partiful/references/rsvps-and-interest.md`:
- Around line 4-29: Revert the documented rsvp get/set command examples and
behavior descriptions to match the current Node CLI, which uses events rsvp
get/set and events interested with explore aliases. Remove the Go-only command
surface and unsupported --status interested form from this reference, keeping
those changes for the Go cutover.
---
Nitpick comments:
In `@internal/app/rsvp_execute_test.go`:
- Around line 1419-1434: Consolidate the duplicate compatible-event fixtures by
making compatibleRSVPEventResponse derive from compatibleRSVPEvent through the
existing rsvpEventResponse helper. Update tests that use the raw response
fixture to build it with rsvpEventResponse(t, compatibleRSVPEvent()), ensuring
both representations remain synchronized.
In `@internal/app/rsvp_input.go`:
- Around line 489-498: Extract the duplicated schema fragments from
rsvpSetInputSchema and rsvpSetSuccessSchema into package-level helpers, such as
rsvpQuestionnaireSchema and rsvpPlusOneNameSchema. Have both functions call
these helpers for the shared zero/one/fifty/fourHundred, stringItem, answers,
and questionnaire definitions, preserving the existing schema shapes while
keeping future changes synchronized.
In `@internal/app/rsvp_set.go`:
- Around line 256-261: Update prepareRSVPRequest to derive the request operation
exclusively by calling rsvpOperation(input), replacing both independent
input.Intent checks. Preserve the existing operation assignment so Inspect and
Consume use the same value.
- Around line 238-254: Export a PlanLifetime duration constant from the mutation
package and use it in mutation.Create when calculating stored plan expiry. In
the RSVP set success response, replace the hardcoded ExpiresInSeconds value with
seconds derived from mutation.PlanLifetime, and update rsvpSetSuccessSchema to
derive both minimum and maximum from the same constant so all plan lifetime
behavior remains consistent.
In `@internal/remote/rsvp.go`:
- Around line 291-308: Add a one-sentence comment immediately above jsonTruthy
documenting that it intentionally reproduces client-side JavaScript truthiness,
including preserving truthiness for numeric values whose ParseFloat conversion
overflows.
🪄 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: 2c4d37a3-f247-47e6-9f02-fa1e758477e8
📒 Files selected for processing (17)
README.mdcmd/partiful/main.godocs/CLI-PRODUCT-CONTRACT.mddocs/REMOTE-API-CONTRACT.mddocs/adr/0001-greenfield-go-module-seams.mdinternal/app/app.gointernal/app/execute_test.gointernal/app/rsvp.gointernal/app/rsvp_execute_test.gointernal/app/rsvp_input.gointernal/app/rsvp_set.gointernal/auth/auth.gointernal/mutation/mutation.gointernal/remote/events.gointernal/remote/rsvp.goskills/partiful/references/rsvps-and-interest.mdtests/remote-api-contract.test.js
| MutationPath: credentialsPath + ".mutation-plans", | ||
| MutationRandom: rand.Reader, |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
Do not derive MutationPath from a possibly empty credentialsPath.
auth.DefaultCredentialsPath reports failure through credentialsPathError, and in that case credentialsPath is empty. Line 30 then produces the relative path .mutation-plans, which resolves against the current working directory. rsvp set would write a plan file that contains the private request projection and the account fingerprint into an arbitrary directory.
mutationPath in internal/app/rsvp_set.go already appends the same .mutation-plans suffix when MutationPath is empty, and it returns "" when CredentialsPath is empty. Remove the explicit assignment and keep the single derivation in one place.
🛠️ Proposed fix
AuthRandom: rand.Reader,
- MutationPath: credentialsPath + ".mutation-plans",
MutationRandom: rand.Reader,📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| MutationPath: credentialsPath + ".mutation-plans", | |
| MutationRandom: rand.Reader, | |
| MutationRandom: rand.Reader, |
🤖 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 `@cmd/partiful/main.go` around lines 30 - 31, Remove the explicit MutationPath
assignment from the configuration initialization near MutationRandom. Let
internal/app/rsvp_set.go derive the .mutation-plans path only when
CredentialsPath is non-empty, preserving the empty-path behavior when
credential-path resolution fails.
| func validRSVPTimezone(value string) bool { | ||
| if strings.TrimSpace(value) != value { | ||
| return false | ||
| } | ||
| _, err := time.LoadLocation(value) | ||
| return err == nil | ||
| } |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Check whether the zone database is embedded and how timezones are validated elsewhere.
set -euo pipefail
# Test: Look for an existing time/tzdata import. Expect: an import in the main package.
rg -n 'time/tzdata' --glob '*.go'
# Test: Find all LoadLocation call sites for consistent validation. Expect: only rsvp_input.go.
rg -n -C3 'LoadLocation' --glob '*.go'
# Test: Inspect build/deploy images for tzdata availability. Expect: tzdata installed or a base image that includes it.
fd -H -i -t f 'Dockerfile*|*.dockerfile' --exec rg -n -C3 'FROM|tzdata' {} \;Repository: KalebCole/partiful-cli
Length of output: 160
🏁 Script executed:
#!/bin/bash
set -u
printf '%s\n' '--- candidate files ---'
git ls-files | rg '(^|/)(rsvp_input\.go|main\.go|go\.mod|go\.sum|Dockerfile[^/]*|.*\.dockerfile)$' || true
printf '%s\n' '--- timezone imports and calls ---'
rg -n -C3 'time/tzdata|LoadLocation|validRSVPTimezone|TIMEZONE_INVALID' --glob '*.go' . || true
printf '%s\n' '--- container and deployment references ---'
fd -H -t f . | rg -i '(^|/)(Dockerfile[^/]*|.*\.dockerfile|docker-compose[^/]*|.*\.ya?ml)$' | while read -r f; do
if rg -n -C3 '(^|[[:space:]])FROM([[:space:]]|$)|tzdata|go build|CGO_ENABLED' "$f" >/dev/null; then
printf '\n--- %s ---\n' "$f"
rg -n -C3 '(^|[[:space:]])FROM([[:space:]]|$)|tzdata|go build|CGO_ENABLED' "$f" || true
fi
done
printf '%s\n' '--- module metadata ---'
for f in $(git ls-files | rg '(^|/)go\.(mod|sum)$' || true); do
printf '\n--- %s ---\n' "$f"
sed -n '1,80p' "$f"
doneRepository: KalebCole/partiful-cli
Length of output: 2360
🏁 Script executed:
#!/bin/bash
set -u
if ! command -v go >/dev/null 2>&1; then
echo 'go: unavailable'
exit 0
fi
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
cat > "$tmpdir/probe.go" <<'EOF'
package main
import (
"fmt"
"time"
)
func main() {
for _, name := range []string{"UTC", "Local", "America/New_York", "Etc/DefinitelyMissing"} {
loc, err := time.LoadLocation(name)
fmt.Printf("%q: location=%v error=%v\n", name, loc, err)
}
}
EOF
printf '%s\n' '--- standard-library LoadLocation probe ---'
(cd "$tmpdir" && go run probe.go)Repository: KalebCole/partiful-cli
Length of output: 412
🏁 Script executed:
#!/bin/bash
set -u
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
mkdir "$tmpdir/empty-zoneinfo"
cat > "$tmpdir/no_tzdata.go" <<'EOF'
package main
import (
"fmt"
"time"
)
func main() {
for _, name := range []string{"UTC", "Local", "America/New_York", "Europe/London"} {
_, err := time.LoadLocation(name)
fmt.Printf("without tzdata %q: %v\n", name, err)
}
}
EOF
cat > "$tmpdir/with_tzdata.go" <<'EOF'
package main
import (
"fmt"
"time"
_ "time/tzdata"
)
func main() {
for _, name := range []string{"UTC", "Local", "America/New_York", "Europe/London"} {
_, err := time.LoadLocation(name)
fmt.Printf("with tzdata %q: %v\n", name, err)
}
}
EOF
printf '%s\n' '--- zoneinfo-free probe ---'
printf '%s\n' 'without embedded tzdata:'
(cd "$tmpdir" && ZONEINFO="$tmpdir/empty-zoneinfo" go run no_tzdata.go)
printf '%s\n' 'with embedded tzdata:'
(cd "$tmpdir" && ZONEINFO="$tmpdir/empty-zoneinfo" go run with_tzdata.go)Repository: KalebCole/partiful-cli
Length of output: 497
🏁 Script executed:
#!/bin/bash
set -u
printf '%s\n' '--- main package imports ---'
sed -n '1,100p' cmd/partiful/main.go
printf '%s\n' '--- RSVP normalization and execution flow ---'
sed -n '300,365p' internal/app/rsvp_input.go
rg -n -C5 'normalizedRSVPInput|public\(\)|AddGuest|timezone|TIMEZONE_INVALID' internal/app --glob '*.go' || trueRepository: KalebCole/partiful-cli
Length of output: 48817
🏁 Script executed:
#!/bin/bash
set -u
goroot="$(go env GOROOT 2>/dev/null || true)"
printf 'GOROOT=%s\n' "$goroot"
if [ -n "$goroot" ] && [ -f "$goroot/src/time/zoneinfo.go" ]; then
printf '%s\n' '--- time.LoadLocation implementation ---'
rg -n -C8 'func LoadLocation|ZONEINFO|gorootZoneSource|loadTzinfo' \
"$goroot/src/time/zoneinfo.go" \
"$goroot/src/time/zoneinfo_read.go" \
"$goroot/src/time/zoneinfo_unix.go" \
"$goroot/src/runtime' 2>/dev/null || true
fi
printf '%s\n' '--- runtime GOROOT implementation ---'
if [ -n "$goroot" ]; then
rg -n -C6 'func GOROOT|GOROOT' "$goroot/src/runtime" --glob '*.go' | head -120 || true
fiRepository: KalebCole/partiful-cli
Length of output: 242
🏁 Script executed:
#!/bin/bash
set -u
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
mkdir "$tmpdir/empty-zoneinfo"
cat > "$tmpdir/probe.go" <<'EOF'
package main
import (
"fmt"
"time"
)
func main() {
for _, name := range []string{"UTC", "Local", "America/New_York", "Europe/London"} {
_, err := time.LoadLocation(name)
fmt.Printf("%q: %v\n", name, err)
}
}
EOF
go build -o "$tmpdir/probe" "$tmpdir/probe.go"
printf '%s\n' '--- probe with invalid ZONEINFO and invalid GOROOT ---'
ZONEINFO="$tmpdir/empty-zoneinfo" GOROOT="$tmpdir/no-goroot" "$tmpdir/probe" 2>&1 || trueRepository: KalebCole/partiful-cli
Length of output: 347
Reject "Local" and embed tzdata
time.LoadLocation("Local") succeeds, but "Local" is not an IANA timezone. Reject it explicitly. Without system zoneinfo or _ "time/tzdata", named zones fail validation and return TIMEZONE_INVALID. Add _ "time/tzdata" to cmd/partiful/main.go.
🤖 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 `@internal/app/rsvp_input.go` around lines 447 - 453, Update validRSVPTimezone
to explicitly reject the "Local" value before calling time.LoadLocation, while
preserving the existing whitespace and location validation. Add the blank-import
of time/tzdata in the cmd/partiful main package so named IANA zones validate
without relying on system zoneinfo.
| if options.Apply { | ||
| if !bytes.Equal(inspected.Binding.Request, requestDocument) { | ||
| return rsvpPlanStaleFailure(definition.path, pretty) | ||
| } | ||
| if err := authority.Consume(options.PlanToken, binding); err != nil { | ||
| if errors.Is(err, mutation.ErrStale) { | ||
| return rsvpPlanStaleFailure(definition.path, pretty) | ||
| } | ||
| return internalFailure(definition.path, pretty) | ||
| } | ||
| switch params := prepared.Private.(type) { | ||
| case remote.AddGuestParams: | ||
| err = client.AddGuest( | ||
| ctx, | ||
| session.AccessToken, | ||
| deviceID, | ||
| params, | ||
| ) | ||
| case remote.MarkEventInterestParams: | ||
| err = client.MarkEventInterest( | ||
| ctx, | ||
| session.AccessToken, | ||
| deviceID, | ||
| params, | ||
| ) | ||
| default: | ||
| return internalFailure(definition.path, pretty) | ||
| } | ||
| if err != nil { | ||
| if errors.Is(err, remote.ErrUnavailable) { | ||
| return rsvpSubmitUnavailableFailure(definition.path, pretty) | ||
| } | ||
| return rsvpProtocolChangedFailure(definition.path, pretty) | ||
| } |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Inspect Consume's re-validation and the write-path error sentinels.
set -euo pipefail
# Test: Read the Consume implementation. Expect: binding re-comparison under lock before deletion.
ast-grep run --pattern 'func ($_ Authority) Consume($$$) ($$$) { $$$ }' --lang go internal/mutation
# Test: Inspect the write operations' error returns. Expect: ErrUnavailable for ambiguous responses.
ast-grep run --pattern 'func ($_ Client) AddGuest($$$) ($$$) { $$$ }' --lang go internal/remote
ast-grep run --pattern 'func ($_ Client) MarkEventInterest($$$) ($$$) { $$$ }' --lang go internal/remote
# Test: Confirm tests cover reuse and ambiguous submission. Expect: single-use and uncertainty tests.
rg -n -C3 'RSVP_SUBMISSION_UNCERTAIN|Consume\(' --glob '*_test.go'Repository: KalebCole/partiful-cli
Length of output: 160
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '%s\n' '--- candidate files ---'
git ls-files 'internal/mutation/**' 'internal/remote/**' '*_test.go' | sed -n '1,160p'
printf '%s\n' '--- exact declarations and references ---'
rg -n -C 6 'func .*Consume|type .*Authority|func .*AddGuest|func .*MarkEventInterest|ErrUnavailable|RSVP_SUBMISSION_UNCERTAIN|Consume\(' internal/mutation internal/remote internal --glob '*.go' | sed -n '1,260p'Repository: KalebCole/partiful-cli
Length of output: 16220
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '%s\n' '--- Consume implementation ---'
cat -n internal/mutation/mutation.go | sed -n '100,170p'
printf '%s\n' '--- RSVP source outline ---'
ast-grep outline internal/remote/rsvp.go
printf '%s\n' '--- RSVP write methods and sentinels ---'
rg -n -C 14 'func .*AddGuest|func .*MarkEventInterest|ErrUnavailable|ErrProtocolChanged|decode' internal/remote/rsvp.go
printf '%s\n' '--- RSVP/app tests ---'
rg -n -C 8 'AddGuest|MarkEventInterest|ErrUnavailable|ErrProtocolChanged|RSVP_SUBMISSION_UNCERTAIN|Consume\(' internal/remote internal/app --glob '*_test.go'Repository: KalebCole/partiful-cli
Length of output: 12741
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '%s\n' '--- apply-path mapping ---'
cat -n internal/app/rsvp_set.go | sed -n '145,245p'
rg -n -C 12 'func .*rsvpSubmitUnavailableFailure|func .*rsvpProtocolChangedFailure|RSVP_SUBMISSION_UNCERTAIN|RSVP_PROTOCOL_CHANGED|remote\.unavailable|contract\.protocol_changed' internal/app --glob '*.go'
printf '%s\n' '--- RSVP test cases ---'
cat -n internal/app/rsvp_execute_test.go | sed -n '1160,1255p'
printf '%s\n' '--- uncertainty semantics across repository ---'
rg -n -C 5 'SUBMISSION_UNCERTAIN|submission uncertain|uncertain|Create a new plan before another attempt|ProtocolChanged' --glob '!vendor/**' .Repository: KalebCole/partiful-cli
Length of output: 50379
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '%s\n' '--- binding equality ---'
rg -n -A 24 '^func equalBinding|^type Binding' internal/mutation/mutation.go
printf '%s\n' '--- deterministic source verifier ---'
python3 - <<'PY'
from pathlib import Path
mutation = Path("internal/mutation/mutation.go").read_text()
remote = Path("internal/remote/rsvp.go").read_text()
tests = Path("internal/app/rsvp_execute_test.go").read_text()
consume = mutation[mutation.index("func (authority Authority) Consume"):mutation.index("func (authority Authority) configured")]
assert "authority.Files.WithLock(authority.Path" in consume
assert "!equalBinding(record.Binding, binding)" in consume
assert "delete(stored.Records, token)" in consume
assert consume.index("!equalBinding(record.Binding, binding)") < consume.index("delete(stored.Records, token)")
mutation_call = remote[remote.index("func callRSVPMutation"):remote.index("func jsonTruthy")]
for marker in (
"fmt.Errorf(\"%w: RSVP mutation response body\", ErrProtocolChanged)",
"fmt.Errorf(\"%w: RSVP mutation result\", ErrProtocolChanged)",
"fmt.Errorf(\"%w: RSVP mutation data\", ErrProtocolChanged)",
"fmt.Errorf(\"%w: RSVP mutation response read\", ErrUnavailable)",
):
assert marker in mutation_call, marker
add_guest = remote[remote.index("func (client Client) AddGuest"):remote.index("func (client Client) MarkEventInterest")]
mark_interest = remote[remote.index("func (client Client) MarkEventInterest"):remote.index("func callRSVPMutation")]
assert "return fmt.Errorf(\"%w: add guest data\", ErrProtocolChanged)" in add_guest
assert "return fmt.Errorf(\"%w: event interest data\", ErrProtocolChanged)" in mark_interest
assert "return fmt.Errorf(\"%w: event interest completion\", ErrProtocolChanged)" in mark_interest
assert '"RSVP_SUBMISSION_UNCERTAIN"' in tests
assert '"RSVP_PROTOCOL_CHANGED"' in tests
print("source assertions passed")
PYRepository: KalebCole/partiful-cli
Length of output: 1773
Classify post-send decode failures as uncertain outcomes — Consume already revalidates all binding fields under the lock before deleting the token. callRSVPMutation maps malformed responses to remote.ErrProtocolChanged, so a successful mutation followed by an undecodable response returns RSVP_PROTOCOL_CHANGED instead of RSVP_SUBMISSION_UNCERTAIN.
🤖 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 `@internal/app/rsvp_set.go` around lines 197 - 230, Update the post-send error
handling in callRSVPMutation so decode failures represented by
remote.ErrProtocolChanged return rsvpSubmitUncertainFailure instead of
rsvpProtocolChangedFailure, while preserving the existing
RSVP_SUBMISSION_UNAVAILABLE mapping for remote.ErrUnavailable and
protocol-changed handling for other cases.
| if strings.TrimSpace(current.ID) == "" || | ||
| current.Status == "" || | ||
| current.Count == nil || | ||
| *current.Count < 0 || | ||
| math.Trunc(*current.Count) != *current.Count || | ||
| *current.Count > float64(maxInt()) { | ||
| return snapshot, rsvpProtocolError | ||
| } | ||
| count := int(*current.Count) | ||
| snapshot.Count = &count | ||
| return snapshot, 0 | ||
| } | ||
|
|
||
| func maxInt() int { | ||
| return int(^uint(0) >> 1) | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Confirm the Go version supports math.MaxInt and find other maxInt uses.
set -euo pipefail
# Test: Read the declared Go version. Expect: go 1.17 or later for math.MaxInt.
fd -H -t f '^go\.mod$' --exec cat {} \;
# Test: Find every maxInt call site. Expect: only the RSVP normalization path.
rg -n -C2 '\bmaxInt\s*\(' --glob '*.go'Repository: KalebCole/partiful-cli
Length of output: 279
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '%s\n' '--- go.mod ---'
cat go.mod
printf '%s\n' '--- target section ---'
cat -n internal/app/rsvp_set.go | sed -n '330,435p'
printf '%s\n' '--- maxInt references ---'
rg -n -C2 '\bmaxInt\s*\(' --glob '*.go' . || true
printf '%s\n' '--- math.MaxInt availability ---'
go version
go doc math.MaxInt 2>&1 || true
go doc math.MaxInt64 2>&1 || trueRepository: KalebCole/partiful-cli
Length of output: 6705
🏁 Script executed:
#!/bin/bash
set -euo pipefail
tmp="$(mktemp --suffix=.go)"
trap 'rm -f "$tmp"' EXIT
cat >"$tmp" <<'GO'
package main
import (
"fmt"
"math"
"strconv"
)
func main() {
fmt.Printf("int-size=%d max-int=%d float(max-int)=%s\n",
strconv.IntSize, math.MaxInt, strconv.FormatFloat(float64(math.MaxInt), 'g', -1, 64))
for _, value := range []float64{
float64(math.MaxInt) - 2,
float64(math.MaxInt) - 1,
float64(math.MaxInt),
} {
fmt.Printf("value=%s trunc-equal=%v gt-bound=%v ge-bound=%v converted=%d\n",
strconv.FormatFloat(value, 'g', -1, 64),
math.Trunc(value) == value,
value > float64(math.MaxInt),
value >= float64(math.MaxInt),
int(value))
}
}
GO
printf '%s\n' '--- amd64 boundary probe ---'
go run "$tmp"
printf '%s\n' '--- 386 boundary probe ---'
GOARCH=386 go run "$tmp"
printf '%s\n' '--- related tests and callers ---'
rg -n -C3 'normalizeRSVPCurrentGuest|currentCapacityCount|Count.*maxInt|MaxInt' internal --glob '*.go' || trueRepository: KalebCole/partiful-cli
Length of output: 3421
🌐 Web query:
Official Go documentation for when math.MaxInt was introduced and the Go specification semantics for converting out-of-range floating-point values to integers
💡 Result:
The constants MaxInt, MinInt, and MaxUint were introduced to the Go math package in Go 1.17 [1][2]. These constants were added to provide platform-independent integer limit values for the architecture-dependent int and uint types [1]. Regarding the conversion of floating-point values to integers, the current Go specification does not define a single, uniform behavior for out-of-range values [3][4]. Instead, the behavior is implementation-defined [3]. When a floating-point number is converted to an integer type, the value is truncated towards zero [5]. If the value is out of the representable range of the target integer type, the result is implementation-defined [3][4]. Historically, this has resulted in variations across different hardware architectures and platforms [3][4]. There are ongoing efforts to standardize this behavior. A proposal has been made to mandate saturating conversion behavior across all platforms, which would make the result of such conversions consistent and predictable [3]. As of August 2026, work on this standardization, including the potential use of compiler experiments, is being actively discussed within the Go project [3].
Citations:
- 1: math: add MaxUint, MinInt, MaxInt golang/go#28538
- 2: golang/go@e8eb1d8
- 3: proposal: cmd/compile: floating point to integer conversions should saturate on overflow golang/go#76264
- 4: https://go.googlesource.com/go.git/+/HEAD/test/convert5.go
- 5: https://bytegoblin.io/blog/golang-type-conversion-summary
Reject the rounded 64-bit count bound before converting to int. On 64-bit builds, float64(math.MaxInt) rounds to 2^63, so the current check accepts 2^63; its conversion to int is implementation-defined and can produce a negative capacity count. Use math.MaxInt with an architecture-aware bound. Use >= on 64-bit and > on 32-bit so the exact 32-bit maximum remains valid.
🤖 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 `@internal/app/rsvp_set.go` around lines 352 - 367, Update the count validation
in the RSVP parsing flow before converting *current.Count to int, replacing
maxInt() with an architecture-aware bound that accounts for float64 rounding.
Reject values >= 2^63 on 64-bit builds while allowing the exact 32-bit maximum
and rejecting larger values; adjust or remove maxInt() accordingly and preserve
the existing validation checks.
| userID := tokenUserID(credentials.AccessToken) | ||
| if userID == "" { | ||
| userID = tokenUserID(credentials.AccessToken) | ||
| userID = credentials.UserID | ||
| } | ||
| if state.TokenState == "healthy" { | ||
| session = Session{ | ||
| AccessToken: credentials.AccessToken, | ||
| UserID: userID, | ||
| AccessToken: credentials.AccessToken, | ||
| UserID: userID, | ||
| AccountFingerprint: accountFingerprint(userID), |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Find where credentialRecord.UserID is written and whether login sets it.
rg -nP -C6 '\bUserID\s*:' --type=go
rg -nP -C6 'func Login\(' --type=goRepository: KalebCole/partiful-cli
Length of output: 160
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- candidate files ---'
git ls-files | rg '(^|/)(auth\.go|rsvp_set\.go)$|credential|login|auth'
printf '%s\n' '--- auth.go outline and relevant symbols ---'
ast-grep outline internal/auth/auth.go --match 'Login' --view expanded || true
rg -n -C8 'type credentialRecord|credentialRecord|UserID|func Login|tokenUserID|accountFingerprint|internalFailure' internal/auth/auth.go internal/app/rsvp_set.go
printf '%s\n' '--- focused source ---'
sed -n '1,280p' internal/auth/auth.go
sed -n '340,420p' internal/auth/auth.go
sed -n '1,240p' internal/app/rsvp_set.goRepository: KalebCole/partiful-cli
Length of output: 32198
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- all credential persistence and login paths ---'
rg -n -C10 'credentialRecord|Credentials|AccessToken|UserID|userId|user_id|Login\(' --glob '*.go' .
printf '%s\n' '--- tests and fixtures for missing user IDs ---'
rg -n -C8 'UserID|userId|tokenUserID|accountFingerprint|internal\.failure|internalFailure|healthy' --glob '*_test.go' .Repository: KalebCole/partiful-cli
Length of output: 50379
🏁 Script executed:
#!/bin/bash
set -eu
find . -path '*/internal/auth/auth.go' -o -path '*/internal/app/rsvp_set.go' | sortRepository: KalebCole/partiful-cli
Length of output: 211
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- auth package files ---'
git ls-files internal/auth '*auth*_test.go' | sort
printf '%s\n' '--- RemoteAuth and sign-in response contracts ---'
rg -n -C12 'type RemoteAuth|SignInWithCustomToken|type SignIn|IDToken|RefreshToken|tokenUserID' internal/auth internal/remote --glob '*.go'
printf '%s\n' '--- focused missing-user and login tests ---'
rg -n -C10 'missing.*user|user.*missing|without.*user|UserID|userId|LoginPersists|AuthLogin' internal/auth internal/app --glob '*_test.go' |
rg -n -C6 'missing|without|UserID|userId|Login|login|IDToken|tokenUserID' | head -n 500Repository: KalebCole/partiful-cli
Length of output: 50378
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- exact auth source ranges ---'
sed -n '1,155p' internal/auth/auth.go
sed -n '270,365p' internal/auth/auth.go
printf '%s\n' '--- exact test declarations and assertions ---'
rg -n 'func Test.*(Login|AcquireSession|RSVPSet)|SignInWithCustomToken|IDToken:|userId' internal/auth internal/app --glob '*_test.go' |
head -n 300Repository: KalebCole/partiful-cli
Length of output: 12516
🏁 Script executed:
#!/bin/bash
set -eu
python3 - <<'PY'
from pathlib import Path
import re
auth = Path("internal/auth/auth.go").read_text()
rsvp = Path("internal/app/rsvp_set.go").read_text()
checks = {
"login persists tokenUserID without a non-empty guard":
re.search(r'UserID:\s+tokenUserID\(session\.IDToken\)', auth) is not None
and "if tokenUserID(session.IDToken) == \"\"" not in auth,
"credential loading does not require UserID":
re.search(r'credentials\.AccessToken == ""\s*\|\|', auth) is not None
and "credentials.UserID == \"\"" not in auth,
"session falls back to stored UserID":
re.search(r'userID := tokenUserID\(credentials\.AccessToken\).*?'
r'if userID == "" \{\s*userID = credentials.UserID',
auth, re.S) is not None,
"empty fingerprint is accepted by AcquireSession":
"AccountFingerprint: accountFingerprint(userID)" in auth
and "if userID == \"\"" not in auth,
"rsvp set maps empty fingerprint to internal failure":
re.search(r'if session\.AccountFingerprint == "" \{\s*'
r'return internalFailure', rsvp, re.S) is not None,
}
for name, passed in checks.items():
print(f"{'PASS' if passed else 'FAIL'}: {name}")
if not all(checks.values()):
raise SystemExit(1)
PY
printf '%s\n' '--- token response fields used by login ---'
rg -n -C8 'type SignIn|SignInWithCustomToken|IDToken|id_token' internal/auth internal/remote --glob '*.go' |
head -n 160Repository: KalebCole/partiful-cli
Length of output: 422
🏁 Script executed:
#!/bin/bash
set -eu
printf '%s\n' '--- protected-session error mapping ---'
rg -n -C20 'func acquireProtectedSession|ErrRequired|AUTHENTICATION_REQUIRED|auth\.required|internalFailure' internal/app --glob '*.go' |
head -n 260
printf '%s\n' '--- direct empty-identity RSVP cases ---'
rg -n -C12 'accessToken.*expiresAt|expiresAt.*accessToken' internal/app/rsvp_execute_test.go internal/app/execute_test.go |
rg -n -C4 'rsvp|userId|accessToken|expiresAt' |
head -n 260
printf '%s\n' '--- corrected source-shape verifier ---'
python3 - <<'PY'
from pathlib import Path
import re
auth = Path("internal/auth/auth.go").read_text()
rsvp = Path("internal/app/rsvp_set.go").read_text()
acquire = re.search(r'func AcquireSession\(.*?\n\}', auth, re.S)
if not acquire:
raise SystemExit("AcquireSession not found")
acquire = acquire.group(0)
checks = {
"AcquireSession builds healthy session from accountFingerprint(userID)":
'AccountFingerprint: accountFingerprint(userID)' in acquire,
"AcquireSession has no empty-user guard before healthy session":
'if userID == ""' not in acquire.split('if state.TokenState == "healthy"', 1)[1].split(
'if credentials.RefreshToken == ""', 1)[0],
"Login stores tokenUserID(session.IDToken)":
'UserID: tokenUserID(session.IDToken)' in auth,
"sign-in response validation checks IDToken but not sub":
'result.IDToken == ""' in Path("internal/remote/auth.go").read_text()
and 'tokenUserID(result.IDToken)' not in Path("internal/remote/auth.go").read_text(),
"rsvp set rejects empty AccountFingerprint as internal failure":
re.search(r'if session\.AccountFingerprint == ""\s*\{\s*return internalFailure',
rsvp, re.S) is not None,
}
for name, passed in checks.items():
print(f"{'PASS' if passed else 'FAIL'}: {name}")
if not all(checks.values()):
raise SystemExit(1)
PYRepository: KalebCole/partiful-cli
Length of output: 35213
Reject sessions without a user ID. SignInWithCustomToken does not require a sub claim, and credential loading accepts records without userId. When both IDs are empty, AcquireSession creates an empty fingerprint and rsvp set returns internal.failure. Return ErrRequired, including after refresh, so the command returns auth.required.
🤖 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 `@internal/auth/auth.go` around lines 198 - 206, Update the session creation
flow in AcquireSession around tokenUserID and credentials.UserID to reject empty
userID values with ErrRequired before constructing or refreshing a session.
Ensure this validation applies both on initial credential loading and after
token refresh, so rsvp set receives auth.required instead of creating a session
with an empty account fingerprint.
| partiful rsvp get <event-id> | ||
| partiful rsvp set <event-id> --status going --display-name "Example" \ | ||
| --party-size 1 --timezone America/Los_Angeles | ||
| partiful rsvp set <event-id> --status going --display-name "Example" \ | ||
| --party-size 2 --plus-one "Guest One" --timezone America/Los_Angeles | ||
| partiful rsvp set <event-id> --status not-going --display-name "Example" \ | ||
| --party-size 1 --timezone America/Los_Angeles | ||
| partiful rsvp set <event-id> --status interested | ||
| ``` | ||
|
|
||
| `events rsvp get` reads your saved status and questionnaire answers without changing the RSVP. `explore rsvp get`, `explore rsvp set`, and `explore interested` are equivalent aliases under the discovery command group. | ||
| `rsvp get` returns the current reviewed RSVP status or `null`. It does not | ||
| return guest or account IDs. | ||
|
|
||
| For questionnaire events, pass one repeatable answer per question. Keys may be the question ID or its exact text: | ||
| `rsvp set` returns a five-minute, single-use plan by default. Review the plan, | ||
| then repeat the same normalized input with its token: | ||
|
|
||
| ```bash | ||
| partiful events rsvp set <event-id> --answer "<question-id>=<value>" | ||
| partiful events rsvp set <event-id> --answer "Dietary restrictions?=None" --answer "Song request?=Anything" | ||
| partiful rsvp set <event-id> --status interested \ | ||
| --apply --plan "$PLAN_TOKEN" | ||
| ``` | ||
|
|
||
| Required answers are validated before submission. Successful writes read the Firestore guest document back to verify the saved status and questionnaire answers. Plain `--dry-run` remains offline; combining `--answer` with `--dry-run` performs read-only guest and event lookups to validate the live questionnaire preview. Ticketed or paid events remain unsupported because the CLI cannot purchase tickets. No newline at end of file | ||
| For a structured questionnaire response or larger input, use | ||
| `--input <path-or->`. Run `partiful schema rsvp.set` for its exact shape. | ||
| Ticketed, application, protected, at-capacity going, and unsupported | ||
| questionnaire flows fail closed. Applied success confirms only one submitted | ||
| request. It does not confirm persisted RSVP state. No newline at end of file |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Check which CLI surface currently exposes RSVP commands.
set -euo pipefail
fd -t f 'SKILL.md' skills --exec sed -n '1,80p' {} \;
rg -n --iglob '!**/node_modules/**' 'events\s+rsvp|events\s+interested|markEventInterest' -g '!skills/**' | head -50
rg -n 'rsvp' package.json 2>/dev/null || trueRepository: KalebCole/partiful-cli
Length of output: 2659
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '%s\n' '--- tracked CLI and documentation files ---'
git ls-files | rg '(^|/)(skills/partiful|cmd|internal|package\.json|go\.mod|README|docs/CLI-PRODUCT-CONTRACT)' | head -200
printf '%s\n' '--- package and Go module manifests ---'
for f in package.json go.mod; do
if [ -f "$f" ]; then
echo "[$f]"
cat -n "$f" | head -120
fi
done
printf '%s\n' '--- RSVP command declarations and legacy command references ---'
rg -n --hidden --glob '!**/.git/**' --glob '!**/node_modules/**' \
'rsvp|getRSVP|events[[:space:]]+(rsvp|interested)|markEventInterest|interested' \
skills cmd internal src packages package.json go.mod README.md docs 2>/dev/null | head -240Repository: KalebCole/partiful-cli
Length of output: 23971
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '%s\n' '--- Node package entry-point files ---'
for path in bin src; do
if [ -e "$path" ]; then
find "$path" -maxdepth 3 -type f -print | sort | head -120
fi
done
printf '%s\n' '--- Go CLI entry point and command registration ---'
cat -n cmd/partiful/main.go | head -240
rg -n -C 4 'rsvp|get|set|commands|definition' internal/app/app.go internal/app/rsvp.go
printf '%s\n' '--- README CLI surface ---'
sed -n '70,125p' README.md
printf '%s\n' '--- active RSVP skill reference ---'
cat -n skills/partiful/references/rsvps-and-interest.mdRepository: KalebCole/partiful-cli
Length of output: 38480
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '%s\n' '--- Node CLI registration ---'
rg -n -C 6 'commands/rsvp|rsvp|interested|events' src/cli.ts src/commands/rsvp.ts src/commands/events.ts src/lib/rsvp.ts
printf '%s\n' '--- Node command names and package launcher ---'
cat -n bin/partiful | head -100
cat -n src/cli.ts | head -260
printf '%s\n' '--- exact legacy command spellings across tracked source and docs ---'
rg -n --hidden --glob '!**/.git/**' --glob '!**/node_modules/**' \
'events[[:space:]]+rsvp|events[[:space:]]+interested|markEventInterest|rsvp[[:space:]]+get|rsvp[[:space:]]+set' \
bin src cmd internal skills README.md docs 2>/dev/null | head -240Repository: KalebCole/partiful-cli
Length of output: 48875
Keep this reference aligned with the current Node CLI.
The Node CLI still exposes events rsvp get/set and events interested, with explore aliases. The reference documents the Go-only rsvp get/set surface and an unsupported --status interested form. Keep this change with the Go cutover.
🤖 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 `@skills/partiful/references/rsvps-and-interest.md` around lines 4 - 29, Revert
the documented rsvp get/set command examples and behavior descriptions to match
the current Node CLI, which uses events rsvp get/set and events interested with
explore aliases. Remove the Go-only command surface and unsupported --status
interested form from this reference, keeping those changes for the Go cutover.
Source: Learnings
Co-authored-by: Copilot <[email protected]> Copilot-Session: 7b842425-e150-41a6-9cd2-6b0842fe8c01
Summary
2026-08-12.3Validation
go test -race ./...go vet ./...go build ./...go mod verifyTZ=America/Los_Angeles npm test -- --reporter=dot(356 passed, 6 skipped)npm run typecheckscripts/pii-guard.shgit diff --cached --checkCloses #166
Summary by CodeRabbit
New Features
rsvp getto retrieve reviewed RSVP status.rsvp setfor going, not-going, and interested responses.Documentation