BC5 readiness: forward-compat spec, briefs, parity lint

Merged
JE
4mo ago
+3619-122

Summary

Foundation PR for BC5 release readiness. Additive across the board — no behavior changes, no breaking renames.

  • Forward-compat Smithy additions for BC5 read paths on existing operations:
    • Notification gains bubble_up_url, bubble_up_at
    • GetMyNotificationsOutput gains bubble_ups, scheduled_bubble_ups
    • Person gains tagline (alias of bio)
    • Todo gains steps (reuses existing CardStep shape)
    • Todoset gains todos_count, completed_loose_todos_count, todos_url, app_todos_url
    • memories member documented as observed-current behavior pending BC team's back-compat decision
  • Parallel BC4/BC5 provenance: spec/api-provenance.json restructured for parallel branch tracking. Post-launch topology (BC5 launched 2026-05-27; five merged into master, BC4 moved to the four branch): .bc3 tracks BC5 master (pinned at e52453ff, 2026-07-17 — main's #375 sync baseline, kept through the rebase; still pre-train, so it claims no coverage of the BC5 API train resources) and .compatibility.bc3-four keeps the BC4 baseline (four @ 9d73959a). Existing tooling reads the same .bc3 keys and works unchanged; sync-status iterates .compatibility keys generically.
  • make generate aggregator runs Smithy build, behavior model, URL routes, provenance sync, and per-language SDKs in dependency order.
  • make check-bucket-flat-parity flags bucket-scoped GET list operations without flat counterparts. Initial allowlist seeded with webhooks (legitimately per-project).
  • Branch-aware make sync-status reports drift for the active branch and the BC4 compatibility branch as two clearly-labeled blocks.
  • API gap registry at spec/api-gaps/ — 11 entries aligned with the BC3 parity plan's Phase 3 deliverables, plus COORDINATION.md describing the SDK ↔ BC3 plan relationship and the absorption lifecycle.
  • make validate-api-gaps validates frontmatter and required body sections (Ruby stdlib only, no gem deps).

The api-gap registry is durable: each entry transitions through a documented lifecycle (no-json-contract → addressed-in-bc3-pr-N → absorbed-in-sdk) with status changes flowing through git history. Living next to basecamp.smithy in spec/ makes the spec-ecosystem mental model explicit — entries describe expected future spec state and link back to Smithy structures on absorption.

Commit structure

  1. spec(bc5) — Smithy additions + provenance restructure + parity-lint allowlist seed
  2. build(make) — generate aggregator + parity lint + branch-aware sync-status + validator make-target
  3. docs(api-gaps) — API gap registry + COORDINATION.md + validator + CONTRIBUTING updates
    4-9. One commit per SDK (ts, ruby, python, kotlin, swift, go) for regenerated artifacts

Cross-team contract decisions (called out in COORDINATION.md)

Two items the SDK canary will surface that need BC team resolution before release:

  • memories: [] on BC5 — back-compat or accept-and-document.
  • Longstanding app_todoslists_url typo — server fix, alias period, or SDK accommodation.

Test plan

  • make smithy-check, make behavior-model-check, make provenance-check, make sync-spec-version-check, make sync-api-version-check
  • make go-check-drift, make kt-check-drift, make py-check-drift, make auth-routable-check
  • make ts-check, make rb-check, make py-check, make kt-check, make swift-check, make go-check
  • make conformance-{go,kotlin,typescript,ruby,python}
  • make check-bucket-flat-parity (1 bucket-scoped list op, allowlisted)
  • make validate-api-gaps (11 entries + allowlist, clean)
  • make sync-status reports both .bc3 (primary: master) and .compatibility.bc3-four (compat: four) blocks, clearly labeled
  • bash scripts/validate-api-gaps.sh passes from a clean shell (env -i ..., ruby --disable-gems ...)
  • make lint-actions

What this PR is NOT

This PR is the foundation. It does not include:

  • The TS canonical wire-capture canary (PR 2, stacked on this one)
  • Cross-language wire-replay decoders (PR 3)
  • Pairwise BC4↔BC5 comparison + check-bc5-compat orchestrator (PR 4)
  • API gap detector tooling (PR 5)
  • New SDK services for any registered gap — those land per-entry as BC3 ships each Phase 3 deliverable