Skip to content

Keep a person's client flag when it is false - #1055

Merged
robzolkos merged 1 commit into
mainfrom
keep-person-client-flag
Nov 23, 2026
Merged

robzolkos merged 1 commit into
mainfrom
keep-person-client-flag

Conversation

@robzolkos

@robzolkos robzolkos commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

An agent on Basecamp set to trust anyone on its project ignored Campfire mentions from everyone except its operator. chat messages, chat line and people show printed a non-client author with no client key, so a connector requiring client == false refused all of them. The cause was in the SDK, and SDK v0.39.0 fixes it (basecamp-sdk#1111): Person.Client is now a *bool. This moves the CLI onto v0.39.0.

What changes besides the bump:

  • Trust decisions refuse a person whose read didn't say whether they're a client. The connector's project trust counts someone on a project's people list as a member only when the list says they aren't a client. Setup's checks of the operator, the allowlist and each Ping participant refuse a person read without the flag, the way they refuse a client. bc3 renders all four reads (project people, a person, the profile and a Ping's people) through its full person partial, which always sends client, so no real member is refused. The connect tests' fake people now carry the flag the way bc3 does.
  • Display and filters keep their old behaviour. people list, people clients, the clients-disable check and the workspace hub read a missing flag as "not a client", as before.
  • The Nix vendor hash and the MCP model provenance follow go.sum and the SDK release.

Checks

  • bin/ci passes on this head, 2a6058c8, which is based on current main.
  • New tests: chat line prints the creator's client as false, true or no key, matching what Basecamp sent. Project membership refuses a listed person with no flag. Setup refuses an operator, an allowlisted person or a Ping participant whose read had no flag. Each one fails when its fix is reverted. The chat line test also fails against an SDK built to drop false.
  • Verified against a local bc3. The before is CLI main and the after is this change, read back from the API:
Command non-client author, before after
chat messages no key false
chat line no key false
people show no key false
people show (a client) true true
  • Adversarial review, run locally with pi openai-codex/gpt-6.1-sol (thinking high), in two rounds on the earlier branch:
    • Round 1 found three things, all fixed: setup's trust checks read a missing flag as "not a client", the Nix hash was stale, and the SDK completer aliasing (fixed in the SDK).
    • Round 2 found no production defect.
  • The rebuilt branch. It was stacked on the first commit of #1044 because the SDK bump needed it. Main has since moved to SDK v0.37.0 in #1049, so this is now one commit on main. I checked that the change's content is identical to the reviewed commit 1ed37982, apart from the bump files. A whole-tree search found no new reader of Person.Client on main.
  • I haven't run the connector itself against a live account with this build; its admission is covered by the unit tests above.

Card: Agent connector silently ignores Campfire @mentions from anyone but the operator

Copilot AI balanced review requested due to automatic review settings November 22, 2026 21:33
@github-actions github-actions Bot added commands CLI command implementations tui Terminal UI sdk SDK wrapper and provenance tests Tests (unit and e2e) deps labels Nov 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The PR depends on an unmerged, breaking SDK draft and a release/rebase after CLI #1044, leaving the final SDK pin, MCP provenance, and Nix vendor hash pending human confirmation.

No open issues 🎉

What changed in this PR

Updates the CLI to an SDK commit that preserves client: false, addressing missing author flags that caused connector project trust to reject non-client Campfire mentions. The SDK pin remains unreleased, pending the release and rebase described in the PR.

Changes:

  • Preserve explicit client flags and reject missing flags in connector trust checks, while keeping existing display and filter behavior.
  • Carry overdue-report pagination support for CLI and MCP callers.
  • Add regression tests and refresh SDK provenance, model metadata, and the Nix vendor hash.

[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

File Description
nix/​package.nix Refreshes the dependency vendor hash.
internal/​version/​sdk-provenance.json Records the pinned SDK revision.
internal/​tui/​workspace/​data/​hub.go Preserves existing client display defaults.
internal/​mcpserver/​testdata/​catalog_snapshot.txt Updates the overdue-report description.
internal/​mcpserver/​server_test.go Tests overdue-report pagination through MCP.
internal/​mcpserver/​model/​PROVENANCE.json Records the synchronized model revision.
internal/​mcpserver/​model/​openapi.json Syncs report pagination and project request fields.
internal/​connector/​setup/​pings_test.go Tests rejection of Ping participants with missing client flags.
internal/​connector/​setup/​checks.go Tracks missing client flags and rejects them in trust checks.
internal/​connector/​setup/​checks_test.go Tests client-flag conversion and trust rejection.
internal/​connector/​admission/​sdk.go Requires explicit non-client status for project membership.
internal/​connector/​admission/​sdk_test.go Tests membership rejection when the flag is missing.
internal/​commands/​reports.go Adds overdue-report pages, total counts, and next-page hints.
internal/​commands/​reports_test.go Tests report paging, summaries, and navigation hints.
internal/​commands/​people.go Adapts client reads while retaining filter behavior.
internal/​commands/​connect_setup_test.go Adds explicit client flags to test people.
internal/​commands/​chat_test.go Tests preservation of false, true, and absent creator flags.
go.sum Updates SDK dependency checksums.
go.mod Pins the SDK commit containing the client-flag fix.
.surface Records the overdue report’s new --page flag.

Review effort: Balanced

basecamp chat messages, chat line and people show printed a non-client
author with no client key at all, because the SDK's Person.Client was a
bool tagged omitempty. The local agent connector's project trust requires
client == false, so it refused every Campfire mention from anyone but its
operator.

This moves to SDK v0.39.0, where Person.Client is a *bool, so false is
kept and written back, and a person a response says nothing about has no
key. The callers that read the flag change with it:

- Trust decisions refuse a person whose read left the flag out. The
  connector's project trust counts a listed person as a member only when
  the listing says they are not a client, and setup's checks of the
  operator, the allowlist and each Ping participant refuse a person read
  without the flag, as they refuse a client. The project people listing,
  a person, the profile and a Ping's people all render through bc3's
  full person partial, which always sends client, so no real member is
  refused. The connect tests' fake people now carry the flag too.
- people list, people clients and the clients-disable check, and the
  workspace hub read a missing flag as not a client, as they did before.

The SDK move also brings a fix for a completion's deprecated completer
sharing pointers with its creator, and the Nix vendor hash and MCP model
provenance follow go.sum and the SDK commit.
@robzolkos
robzolkos force-pushed the keep-person-client-flag branch from 1ed3798 to 2a6058c Compare November 23, 2026 00:48
Copilot AI balanced review requested due to automatic review settings November 23, 2026 00:48
@robzolkos
robzolkos marked this pull request as ready for review November 23, 2026 00:48
@robzolkos
robzolkos requested a review from a team as a code owner November 23, 2026 00:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

No active review issues are reported for the SDK update intended to preserve explicit client: false values in JSON output.

No open issues 🎉

Review effort: Balanced

@robzolkos
robzolkos merged commit e18cb59 into main Nov 23, 2026
42 checks passed
@robzolkos
robzolkos deleted the keep-person-client-flag branch November 23, 2026 01:04
jeremy added a commit that referenced this pull request Nov 23, 2026
…950575

* origin/main:
  Keep a person's client flag when it is false (#1055)
  Filter gauge listings by chosen projects (#1049)
  Say how to recover a broken connect.json, and keep reporting around it (#1053)
  Support schedule entry drafts, highlights, and join links (#1019)
  Let auth login reach a beta preview on a private network (#1054)
  Resubscribe the feed when its socket stays connected and stops delivering (#1056)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands CLI command implementations deps sdk SDK wrapper and provenance tests Tests (unit and e2e) tui Terminal UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants