Repository navigation
Fix Planner handoff, Yoast indexing, and attachment errors - #2224
BlueHotDog wants to merge 5 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b1e3f5b73b
ℹ️ 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".
| # Agent workflow and WordPress acceptance plans | ||
|
|
||
| Prepared on 2026-11-15 against commit `e87074a5`. | ||
| These plans cover handoff guidance, per-page indexing, screenshot behavior, attachment recovery, and remaining landing-page acceptance. |
There was a problem hiding this comment.
Split the combined change to meet the repository size limit
The reviewed commit adds 3,246 net-new lines across 32 files, combining Planner handoff, Yoast indexing, attachment recovery, screenshot characterization, and acceptance documentation. This exceeds the explicit limit of fewer than 500 net-new lines in the root AGENTS.md. Split the independent workstreams and supporting documentation into smaller reviewable changes before landing.
AGENTS.md reference: AGENTS.md:L25-L25
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Devin Review found 1 potential issue.
1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
| throw new Frontman_Tool_Error( __( 'You cannot edit this post.', 'frontman-agentic-ai-editor' ) ); | ||
| } | ||
| $keys = 'surerank' === self::provider() ? self::SURERANK_META : array_map( static fn( string $key ): string => '_yoast_wpseo_' . $key, self::META ); | ||
| if ( self::indexing_supported() ) { $keys[] = '_yoast_wpseo_meta-robots-noindex'; } |
There was a problem hiding this comment.
🟡 Indexing denial blocks text-only SEO updates
When indexing metadata permission is denied, guard rejects title-only updates even when all existing text permissions pass. update_seo calls this guard regardless of supplied fields. Previously authorized text updates now fail without requesting an indexing change.
Learn more
The shared guard now adds the indexing metadata permission whenever the indexing reader is supported. update_seo invokes that guard before determining whether the request supplies indexing. Consequently, denying that one metadata capability blocks text-only requests as well, including runtimes where the indexing sanitizer is missing but text writes remain advertised. The existing deny-indexing fixture provides a real WordPress capability filter that exercises this condition.
Example: An administrator has post and text-metadata permissions, but a site policy denies editing _yoast_wpseo_meta-robots-noindex. Calling wp_update_seo with only an object ID and a title previously succeeded; it now returns a metadata permission error before saving the title.
Recommended fix: Separate indexing write authorization from the existing text-field guard and require it when indexing is supplied. Preserve authorization for any indexing information included in snapshots, adjusting snapshot selection if necessary. Add a text-only update case under deny-indexing, alongside a case confirming that a mixed indexing request still fails before any text write.
Was this helpful? React with 👍 or 👎 to provide feedback.
1d43e0b to
62c2cee
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 62c2ceeaa8
ℹ️ 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".
| return $value; | ||
| } ); | ||
| add_filter( 'update_post_metadata', static function ( $check, int $id, string $key ) use ( $frontman_seo_test ) { | ||
| if ( 'fail-indexing-write' === $frontman_seo_test && '_yoast_wpseo_meta-robots-noindex' === $key ) { return false; } |
There was a problem hiding this comment.
Remove the newly introduced metadata test doubles
When the indexing fault cases run, this filter returns false before WordPress performs the metadata write; the new delete_post_metadata filter similarly substitutes a deletion failure. These are test doubles, not failures exercised through the real persistence dependency. Root AGENTS.md explicitly prohibits introducing or using test doubles without user permission, and no such permission was supplied. Replace these short-circuits with real dependency failure scenarios, or obtain explicit permission before retaining them.
AGENTS.md reference: AGENTS.md:L33-L34
Useful? React with 👍 / 👎.
Changes
Validation
All 32 CI checks pass on
364d60c5, including E2E, server security/lint, build, client/server tests, dead-code analysis, and all eight WordPress compatibility jobs.