test(seo): enable article schema gate policy for release closeout#2570
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cf0d1fec22
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| $hasReciprocalHreflangPolicy = is_array($hreflang) | ||
| && ($hreflang['enabled'] ?? null) === true | ||
| && ($hreflang['policy'] ?? null) === 'reciprocal_counterparts_verified'; |
There was a problem hiding this comment.
Revalidate reciprocal hreflang before closing out
When hreflang_gate_v1 contains this policy but the counterpart has since been unpublished or the marker was copied into schema_json, closeout now treats hreflang as OK without checking the generated alternates. The rollout writer verifies both en and zh-CN alternates and reciprocal links in ArticleSeoGateRollout::validateReciprocalHreflang() (lines 265-299), but this gate only checks the marker, so articles:release-closeout can report success while public SEO no longer emits a reciprocal hreflang pair.
Useful? React with 👍 / 👎.
What changed
Why
Daily bilingual article releases need schema and hreflang to be independent release gates instead of permanent closeout holds, while keeping old held content compatible and keeping articles:seo-gate-rollout as the write authority.
Validation
Intentionally deferred