test: verify published content callback image contract
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.jsonsource 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.