Skip to content

Implement contacts and private resolution in Go #165

Closed

Description

@KalebCole

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

  • Contract surface: contacts list [--query] and the private exact-match
    resolver later used by guest/cohost plans.
  • Evidence gate: getContacts success/body/failures, safe display fields,
    private stable identity, shared-event count, pagination, and ambiguity
    behavior. Determine whether filtering and pagination are remote or must be
    performed over a safely bounded complete catalog; if client-side, evidence
    must establish that the product collection contract can be synthesized
    without an unbounded fetch.
  • Dependencies: S1 collection behavior and S2 session acquisition.
  • Safe verification: privacy-redacted fixtures containing synthetic
    ambiguous and duplicate-name cases; assert that no private identity can
    enter envelopes or errors.
  • Complete when: public output contains only display name/shared-event
    count and the private resolver deterministically returns no match, one bound
    identity, or match.ambiguous.

Tracked dependencies

#162 and #163

Activity

  1. KalebCole commented on Aug 11, 2026

    @KalebCole
    OwnerAuthor

    S4 evidence audit result: blocked on unavailable authenticated privacy-safe observations. Remote revision 2026-08-11.4 retains getContacts success status/body as explicit unknown and its request as TypeScript-derived inference. A complete revision needs an owner-attended redacted successful catalog transaction, identity equality/stability facts, shared-event count types, exact pagination/completeness and filtering semantics, and safe failure mappings. partiful doctor reports no local auth config, so these account-scoped observations require unavailable private credentials/real-person action. Synthetic ambiguity tests need no live people, but cannot establish the remote catalog. Emails and phone numbers will not be sought, captured, or exposed. No Go S4 code will be guessed or registered.

  2. KalebCole commented on Aug 11, 2026

    @KalebCole
    OwnerAuthor

    Authenticated owner-attended contact evidence is now captured and privacy-checked. Observed 2,451 contacts twice with identical identity sequence/set, no duplicate identities, typed name/private identity/sharedEventCount on every item, and exact cursor traversal twice: 1000/1000/451 items followed by an empty terminal sentinel; data-page nextCursor values are strings. Signed-out getContacts returns 401 UNAUTHENTICATED. Current first-party public assets establish that name filtering is local over the traversed catalog. A proposed joint contract revision with #164 is now being drafted; no raw identity/name/contact value was retained.

  3. KalebCole commented on Aug 11, 2026

    @KalebCole
    OwnerAuthor

    Proposed read-evidence contract revision: #180

    The PR records two sanitized 2,451-contact traversals with 1000/1000/451 pages plus an empty sentinel, stable repeated identity sequence/set, required safe field types, signed-out 401 UNAUTHENTICATED, and public first-party evidence for cursor request shape and local name filtering. Private identity remains transport-only.

    Remaining implementation gate: independent owner review and merge, a reviewed safe bound for future complete-catalog traversal, unsupported failure mappings, and unresolved invalid-cursor, cursor lifetime/reuse, ordering, snapshot, useAuthUser, rate-limit, future-completeness, and duplicate behavior. Synthetic ambiguity/privacy fixtures also remain implementation work. Go S4 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 missing machine-ledger facts for first-occurrence client dedup and explicit unknowns for rate limiting/future completeness, plus a fail-open aggregate privacy guard. The resumer is correcting these 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 machine ledger now records only the public first-party client's local behavior: deduplicate by contact id, with the first occurrence winning. Server duplicate/order behavior, rate limiting, and future catalog completeness remain explicit unknowns. Strict aggregate allowlisting and mutation privacy regressions reject unknown name/ID keys and arbitrary values.

    Status remains proposed and not owner-reviewed. The S4 safe-bound, unsupported-failure, cursor, ordering/snapshot, and future-completeness implementation gates remain open.

  6. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    PR #180 review cycle 2 also found the approved CLI product contract was advanced to proposed remote .5 before implementation. It is being restored to shipped .4; the remote contract proposal remains separate and unapproved.

  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 and records exact machine/human uncertainty and provenance. 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 S4 implementation has started in isolated branch feat/165-contacts using the reviewed cursor traversal and privacy constraints.

  10. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    S4 implementation is complete and open for review in #181 at 919cc141cc94882571edd4346eb59e35c5296a0b.

    The Go CLI now registers private-safe contacts list [--query], acquires or refreshes authentication without prompting, traverses the reviewed cursor sequence with an explicit three-page/3,000-item client bound plus required empty sentinel, rejects repeated cursors and all unreviewed variants, deduplicates first occurrence by private identity, filters locally, and returns only display name/shared-event count through opaque resumable collection cursors. The shipped Remote API revision is now 2026-08-11.5.

    The private exact-match resolver is intentionally not exposed without a real S7/S8 guest/cohost plan consumer. ADR 0001 gives no present seam that would avoid a dead speculative API. #181 documents that boundary and retains identity only inside the current transport/application flow.

    All requested non-live gates pass: Go race/vet/build/module, 36 contract+drift tests, 349 full 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.

  11. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    PR #181 review cycle 1 found one fail-open transport issue: unknown contact envelope/error fields were silently ignored. The implementation agent is adding contract-aware strict decoding and protocol-drift tests; no live API work is needed.

  12. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    PR #181 review cycle 1 Standards blocker is fixed test-first at d86910f593e05de719ffa4d2f11550c7bd5befec.

    Success and signed-out 401 contact responses now reject unknown fields and trailing JSON through strict single-value decoders. Raw unknown values remain absent from envelopes and diagnostics. A valid reviewed 401 still maps to auth.expired.

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

  13. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    PR #181 final review caught and is fixing an availability regression: open reviewed response objects must accept additional contact/paging fields. Trailing JSON and malformed required fields remain fail-closed.

  14. KalebCole commented on Aug 12, 2026

    @KalebCole
    OwnerAuthor

    PR #181 final review correction is pushed test-first at 8d804b0d8b1e6c37d905e3b83ebc65be17ca8bb2.

    The previous strict decoder over-applied unknown-field rejection to response objects that .5 leaves open. The corrected single-value decoders accept reviewed extra fields at envelope, Contact, paging, nested, and 401 error levels while retaining required known-field/type checks, cursor and sentinel rules, bounds, and EOF enforcement. Safe fixtures prove the real open-shape pattern without retaining or exposing raw values; trailing concatenated JSON still fails closed.

    All prior non-live validation passes: Go race/vet/build/module, 36 contract+drift tests, 349 JS tests with 6 live smoke tests skipped, typecheck, format/diff, schema, trailers, and production privacy scans. No live API or credentials were 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