- scripts/webhook-adapter.py authenticates the raw Gitea body with the repo
webhook secret (HMAC-SHA256), whitelists push/pull_request candidate actions,
resolves the repository from the accepted root graph, uses the accepted pin as
base (payload base is only a hint), aggregates CI strictly, and delegates to
the existing candidate-notify verifier for reachability, dedupe/replay,
baseline revalidation and impact.
- --reconcile scans open PRs in allowlisted repositories, recovers candidates
whose fast notification was lost with the same idempotent state, retries
transient API errors with bounded backoff, fails closed on 401/403, and
reports errors without claiming a downstream success.
- 8 focused adapter tests plus the full 79-test integration suite pass on real
temporary Git fixtures. Docs/evidence record the trust rules and that the
platform webhook/cron deployment itself is still external (#10 M0).
Refs cflmy/marqdo#3, cflmy/marqdo#10