Add create-time visible_to_clients across the SDKs (+ bundled bc3 repin)

Merged
JE
4mo ago
+1098-141

Closes #395.

Exposes an optional, tri-state visible_to_clients boolean on the six SDK-modeled content-create operations. Rebased onto current main (0919e4e3), where upstream #403 (bc3 repin → 338b7a11 + canonical registry entries) and #404 (search absorption) have since landed — so this PR is now scoped to the code absorption plus only the registry work not covered upstream.

Part A — the feature

visible_to_clients on create for messages, todolists, check-in questions, schedule entries, documents, uploads — post a recording and set client visibility in one round trip (unblocks basecamp-cli#457 / PR #554).

Tri-state. Omitted vs true vs false are three distinct wire encodings, so it's modeled as an optional/pointer boolean everywhere (*bool in Go), never a plain bool with omit-on-zero:

  • Omitted → server applies its own rule (content defaults false for team callers; vault-folder creates inherit the folder; a client caller is always client-visible).
  • true / false → sent verbatim; an explicit false must reach the wire.

Always top-level — a sibling of the recordable fields. For the map-bodied CreateQuestion it must not nest inside the schedule wrapper (silent server no-op; guarded by a test).

Added to the six Smithy create inputs and fanned out via make generate to all six SDKs. Go's hand-written wrappers gained the field + pass-through, including the divergent map-bodied CreateQuestion. Follows the live all_day optional-boolean precedent.

Tests. Tri-state transport coverage (nil omits / true sent / explicit false sent-not-dropped) for all six Go ops — plus a top-level-placement guard on CreateQuestion and new documents/uploads server helpers — and a messages body-flow test per other SDK (TS, Ruby, Python, Kotlin, Swift).

Advances the existing visible-to-clients-on-creates.md registry entry to absorbed-in-sdk for the six content creates (adds the six Smithy refs).

Note: check-wrapper-drift deliberately excludes outgoing request wrappers, so it does not prove these six Create*Request fields stay synced with their generated structs — the tri-state transport tests are the real guarantee.

Part B — bc3 provenance repin + net-new registry work

Upstream #403/#404 already own the provenance repin, the canonical visible-to-clients-on-creates / external-links-doors registrations, and search absorption. This PR adds only what they didn't cover:

  • dock-tool-visible-to-clients.md (new, addressed-in-bc3-pr-12386) — the CreateTool create-time visible_to_clients extension, split out of the canonical entry because it's a distinct dock-tool op honored only by Chat::Transcript/Kanban::Board and isn't modeled yet.
  • card-table-wormholes.md (new, addressed-in-bc3-pr-12144) — wormhole CRUD shipped/documented in #12144 but unmodeled in the SDK (MoveCard exists; no wormhole shapes/ops). #12385 is the in-range recipe clarification that surfaced it. Register-only.
  • external-links-doors.md — folded in one design detail: create-and-discover (create → type=Door list for the new id) is a separately sanctioned composite, not implied by the plain 302/no-body create op.
  • README index updated accordingly.

Advances the bc3 provenance pin 338b7a11 → ca1d34bc (2026-07-24) so this absorption PR lands against the resolved bc3 head (the repository's mandatory upstream-sync rule). The single intervening commit — bc3 #12398 ("Disable Vips support for Matlib files": config/initializers/vips.rb + its loader-policy test + bin/test-in-container) — is a reviewed no-op: an image-loader security policy and a container test script, no route/controller/doc/API-contract change. Syncs the go:embed provenance copy and the Smithy-derived version (2026-07-24) across all six SDKs.

Follow-ups (out of scope)

  • Modeling: doors CRUD (#12375), CreateTool visibility (#12386), card-table wormholes (#12144/#12385).
  • CLI consumer basecamp-cli#457 / PR #554.

Verification

make generate && make check → green across all six SDKs, conformance, drift, parity, and the api-gaps registry (23 entries). Source-only rebase onto 0919e4e3 with a full regenerate — no hand-merged generated artifacts.