Skip to content

test: verify published content callback image contract - #1098

Merged
sidneyswift merged 3 commits into
mainfrom
codex/content-callback-docs-contract
Oct 22, 2026
Merged

sidneyswift merged 3 commits into
mainfrom
codex/content-callback-docs-contract

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Binds the documented optional results[].imageUrl and callback responses to the actual route, validator, handler and poster from #1097. Synthetic cases cover image retention/order, MIME and download fallback, the existing filename rule, video-only compatibility, secret validation before JSON parsing, the unconfigured-bot 503, 400 issue paths, normal 200 acknowledgement and skipped terminal retries. Only contract tests, the shared fixture and verification README change; runtime behavior is unchanged.

The Records P2/P3 correction records the actual 200/400/401/503 schemas, examples and shared CORS boundaries. A 200 acknowledgement does not prove file delivery; no stable 500 envelope, browser-preflight, image-only generation or exactly-once guarantee is added. Both this PR and Marketing #222 remain drafts pending Records acceptance. Marketing currently pins this preparatory API candidate and must refresh to the actual merge before release.

Validation: 285 focused tests across 28 files pass, including 20 published-callback cases and both model-option suites from #1099; the new response cases first failed for the missing fixture (8 failed, 12 passed). Constructor typecheck, full lint, changed-file formatting and whitespace pass. Whole-project TypeScript retains exactly 211 inherited diagnostic lines with none added; it is not clean. The two shared fixtures match. Source acceptance, actual merge pins, normal publication and real Slack delivery are separate gates; original #438 and broader holds remain open.

Rebased onto actual #1099 merge 3ae02e2dcc79f3d3188fb4371a288108a455a755. The complete three-file callback contribution is byte-identical to the prior corrected version; all five sibling files match the accepted merge. Fresh real-base review and Records acceptance remain separate from readiness; no automatic Cubic review ran after the branch rewrite.


Summary by cubic

Binds the documented optional results[].imageUrl callback field from #1097 to the actual route, validator, handler, and poster using synthetic bot/thread/media leaves. Only the contract tests, shared fixture, and lib/contracts/README.md change; runtime behavior is unchanged.

  • Covers image retention/order before videos, MIME and download fallback, the filename rule, legacy video-only calls, secret validation before JSON parsing, the unconfigured-bot 503, terminal retry skip, no image-only posting, and documented 200/400/401/503 schemas, examples, and shared CORS headers.
  • Records no stable 500 envelope, browser preflight, or delivery guarantee; a 200 acknowledgement does not prove file delivery, and receiver support stays separate from the polling mapper release.
  • Updates the fixture's content.json source hash to preserve the callback example's source formatting; the API fixture release precedes the actual Marketing source pin, and the coordinator owns merge/release.

Written for commit 325b29a. Summary will update on new commits.

View guided diff Turn on auto-fix

@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 22, 2026 12:28am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: recoupable/api/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8f338f53-6524-45d7-b450-cc66bfe67905
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sidneyswift
sidneyswift force-pushed the codex/content-callback-docs-contract branch from beebbce to 325b29a Compare October 22, 2026 00:27
@sidneyswift
sidneyswift marked this pull request as ready for review October 22, 2026 00:40
@sidneyswift
sidneyswift merged commit 59141c7 into main Oct 22, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 325b29aa Deployed Oct 22, 2026 by vercel[bot]
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