Skip to content

feat(contacts): add bounded private-safe listings - #181

Merged
KalebCole merged 16 commits into
mainfrom
feat/165-contacts
Aug 12, 2026
Merged

KalebCole merged 16 commits into
mainfrom
feat/165-contacts

Conversation

@KalebCole

Copy link
Copy Markdown
Owner

Summary

  • Adds contacts list [--query] to the Go command catalog and schema.
  • Acquires or refreshes a protected session without prompting, then sends the reviewed .5 getContacts request shape.
  • Traverses pages sequentially with a three-page/3,000-item client bound and required empty sentinel; repeated cursors, excess data, malformed bodies, and unsupported statuses fail closed.
  • Deduplicates by private identity with first occurrence winning, filters names locally, and provides digest-bound opaque local pagination.
  • Returns only displayName and sharedEventCount; private identity and raw transport values stay out of envelopes, errors, and diagnostics.
  • Advances the shipped Remote API revision to owner-reviewed 2026-08-11.5.

Private resolver boundary

No standalone exact-match resolver is exported in this slice. The accepted application seam has no current guest/cohost plan consumer, and S7/S8 are future slices. Adding an unused resolver now would create the dead speculative seam prohibited by ADR 0001. The internal catalog retains stable identity only for current deduplication and cursor binding; exact resolution will materialize with its first mutation-plan consumer.

Validation

  • go test -race ./...
  • go vet ./...
  • go build ./...
  • go mod tidy && go mod verify
  • npm test -- tests/remote-api-contract.test.js tests/drift.test.js (36 passed)
  • TZ=America/Los_Angeles PARTIFUL_SMOKE=0 npm test (349 passed, 6 live smoke tests skipped)
  • npm run typecheck
  • Go format, diff, public-schema, commit-trailer, and production privacy scans

No live API, credential, SMS, mutation, or real-person data was used.

Closes #165

@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

Warning

Review limit reached

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

Next review available in: 3 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: 0229c251-fd42-4a9c-89d2-6337dd60390c

📥 Commits

Reviewing files that changed from the base of the PR and between a426456 and 8d804b0.

📒 Files selected for processing (9)
  • docs/CLI-PRODUCT-CONTRACT.md
  • docs/research/2026-08-11-contacts-pagination-public-assets.md
  • internal/app/app.go
  • internal/app/contacts.go
  • internal/app/execute_test.go
  • internal/app/posters.go
  • internal/auth/auth.go
  • internal/remote/contacts.go
  • tests/remote-api-contract.test.js

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 01:54 UTC

@KalebCole

Copy link
Copy Markdown
Owner Author

Independent review cycle 1: Standards 1 blocker; Spec 0 findings. Contact success/error decoders currently ignore unknown fields. They must enforce the reviewed .5 envelope/error shapes and reject trailing/unreviewed data as contract.protocol_changed, while preserving any explicitly open Contact properties. The implementer is fixing this test-first.

@KalebCole

Copy link
Copy Markdown
Owner Author

Review cycle 1 Standards blocker is fixed test-first at d86910f593e05de719ffa4d2f11550c7bd5befec.

Contact 200 and reviewed signed-out 401 bodies now use strict json.Decoder paths with DisallowUnknownFields() and an explicit second decode that requires EOF. The .5 contact response objects do not explicitly permit additional properties, so unknown envelope/error fields fail closed. The existing private detail fixture now expects redacted protocol drift; new success-envelope unknown and trailing-JSON fixtures also fail closed. A clean reviewed 401 remains mapped to auth.expired.

Validation is green: Go race/vet/build/module; 36 contract+drift tests; 349 non-live JS tests with 6 live smoke tests skipped; typecheck; format/diff, schema, trailer, and production privacy scans. No live API, credential, or mutation was used.

@KalebCole

Copy link
Copy Markdown
Owner Author

Final review found the cycle-1 decoder fix was over-strict: Go DisallowUnknownFields recursively rejects the many additional Contact/paging fields present in the reviewed real artifact, while .5 leaves those response objects open. The implementer is restoring open-object decoding with strict single-value/EOF and required-known-field validation.

@KalebCole

Copy link
Copy Markdown
Owner Author

Final review correction is pushed test-first at 8d804b0d8b1e6c37d905e3b83ebc65be17ca8bb2.

The cycle-1 decoder fix was stricter than owner-reviewed revision .5: the success, Contact, paging, and unauthenticated-error schemas are open, and the reviewed artifact contains many extra Contact keys plus an extra terminal paging integer. Response decoders now accept unknown fields at those open levels while still using json.Decoder and requiring exactly one JSON value followed by EOF.

Known required fields and types, nonnegative shared-event counts, cursor types, traversal bounds, repeated-cursor detection, and terminal-sentinel rules remain explicit. Safe synthetic fixtures now cover unknown envelope/result/paging/Contact/nested/error fields and the terminal paging integer without exposing their values. Concatenated trailing JSON still returns redacted protocol drift.

All gates pass: Go race/vet/build/module; 36 contract+drift tests; 349 non-live JS tests with 6 live smoke tests skipped; typecheck; format/diff, schema, trailer, and production privacy scans. No live API, credential, or mutation was used.

@KalebCole
KalebCole merged commit 3cf4fdd into main Aug 12, 2026
2 checks passed
@KalebCole
KalebCole deleted the feat/165-contacts branch August 12, 2026 01:59
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.

Implement contacts and private resolution in Go

1 participant