Skip to content

groundtruth: tighten waba-embedded-signup against Sent docs snapshot#21

Merged
sent-dm merged 1 commit into
devfrom
batch2/unit-6-waba-signup-gt
May 19, 2026
Merged

groundtruth: tighten waba-embedded-signup against Sent docs snapshot#21
sent-dm merged 1 commit into
devfrom
batch2/unit-6-waba-signup-gt

Conversation

@sent-dm
Copy link
Copy Markdown
Contributor

@sent-dm sent-dm commented May 19, 2026

Scope

Aligns waba-embedded-signup skill + references with the confirmed Sent v3 docs snapshot at references/_inputs/sent-docs-v3-2026-05-19.md.

What changed

  • SKILL.md: rewrote "Unverified claims" to reflect confirmed facts — no public Embedded Signup endpoint (Channels page is dashboard-only), webhook envelope {field, sub_type, timestamp, payload} is confirmed. Fixed a stale /v3/webhooks/{id}/events reference (not in snapshot) to the documented POST /v3/webhooks/{id}/test.
  • waba-embedded-signup-spec.md: dropped ~245 lines of Meta-Graph mirroring (per CLAUDE.md "never mirror Meta API docs"). Confirms the Sent surface: dashboard-only Channels page, POST /v3/profiles/{id}/complete as the completion endpoint, x-api-key as the v3 auth header. Links to Meta docs for Graph specifics.
  • waba-onboarding-runbook.md: rewrote as the dashboard flow per Channel Setup — KYC + Meta Business Portfolio pre-flight, Continue Channel Setup, phone selection (hard to change later), Facebook/Meta login + WABA + permission grant, Meta payment (separate from Sent billing), completion confirmation, API credentials from /dashboard/api-keys. Failure modes anchored to verified AUTH_005/006/007 error codes.
  • whatsapp-sender-profile-mapping.md: replaced invented Profile schema with the real v3 schema; removed invented endpoints (DELETE/PATCH /v3/profiles/{id}/channels/whatsapp) and the invented channels.whatsapp.state field that aren't in the snapshot; cross-linked to sent-skills:sender-profile-architect.

All three reference files carry the standard <!-- Grounded against ... --> header.

Deliberate divergence from the task brief

The task suggested mentioning GET /v3/webhooks/event-types for WhatsApp sub-type discovery. That endpoint is not in the snapshot — only /v3/webhooks/{id}/test and the webhook model's event_types/event_filters fields are documented. I substituted "inspect GET /v3/webhooks + subscribe broadly and observe" rather than reference an unverified endpoint. Primary source wins.

Verification

  • bash scripts/validate-skills.sh exits 0; waba-embedded-signup body is 166 lines (< 500).

🤖 Generated with Claude Code

… docs snapshot

Align skill + references with confirmed Sent v3 behavior from
references/_inputs/sent-docs-v3-2026-05-19.md.

SKILL.md
- Replace stale "Unverified claims" with confirmed facts: no public
  Embedded Signup endpoint (Channels page is dashboard-only); webhook
  envelope is {field, sub_type, timestamp, payload} with sub-types
  <field>.<event>; WhatsApp-specific sub-types still need discovery.
- Fix stale /v3/webhooks/{id}/events reference (not in snapshot);
  substitute POST /v3/webhooks/{id}/test which is documented.

waba-embedded-signup-spec.md
- Drop ~245 lines of Meta-Graph mirroring (per CLAUDE.md "never mirror
  Meta API docs"). Link to Meta's Embedded Signup / Cloud API / FBL
  docs instead.
- Confirm Sent surface: no public Embedded Signup endpoint; dashboard
  Channels → WhatsApp is the customer-facing surface; /v3/profiles/
  {id}/complete is the documented completion endpoint (sensitive,
  idempotent, 10/min burst 5); x-api-key is the v3 auth header.
- Document the confirmed webhook envelope and explain how to discover
  WhatsApp sub-types empirically.

waba-onboarding-runbook.md
- Rewrite as the dashboard flow per the task spec: KYC + Meta Business
  Portfolio pre-flight, Continue Channel Setup, phone selection (hard
  to change later), Facebook/Meta login + WABA + permission grant,
  Meta payment (separate from Sent billing), completion confirmation,
  API credential retrieval from /dashboard/api-keys.
- Anchor failure modes to verified error codes (AUTH_005/006/007).

whatsapp-sender-profile-mapping.md
- Replace invented Profile schema with the real v3 schema (id, name,
  icon, description, short_name, role, status, settings).
- Remove invented endpoints DELETE/PATCH /v3/profiles/{id}/channels/
  whatsapp and channels.whatsapp.state field (not in snapshot).
- Confirm POST /v3/profiles/{id}/complete; note x-sender-id is
  per-profile, dashboard-exposed, v2 legacy.
- Cross-link to sent-skills:sender-profile-architect.

All three reference files now carry the standard grounding header.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sent-dm sent-dm merged commit 3df3773 into dev May 19, 2026
1 of 2 checks passed
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.

1 participant