Skip to content

Fix Planner handoff, Yoast indexing, and attachment errors - #2224

Open
BlueHotDog wants to merge 5 commits into
mainfrom
fix/wordpress-agent-feedback
Open

BlueHotDog wants to merge 5 commits into
mainfrom
fix/wordpress-agent-feedback

Conversation

@BlueHotDog

@BlueHotDog BlueHotDog commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

  • Direct Planner users to the explicit Executor handoff; keep Planner read-only.
  • Add guarded per-page Yoast indexing preferences with verified native persistence.
  • Keep attachment errors until dismissal and correct the image-only upload hint.
  • Fix client lint errors and update the Next.js E2E attachment locator to its accessible name.

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.


Devin Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T20:01:27.335848Z 364d60c New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread advisor-plans/README.md Outdated
# 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

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'; }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@BlueHotDog BlueHotDog changed the title Improve WordPress agent handoff, indexing, and attachment recovery Fix Planner handoff, Yoast indexing, and attachment errors Nov 21, 2026
@BlueHotDog
BlueHotDog force-pushed the fix/wordpress-agent-feedback branch from 1d43e0b to 62c2cee Compare November 26, 2026 19:41

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

This branch has not been deployed

No deployments
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