Skip to content

fix(kit): the WordPress case syncs an Author's or Contributor's posts - #206

Merged
leemour merged 3 commits into
mainfrom
fix/wordpress-content-roles
Nov 19, 2026
Merged

leemour merged 3 commits into
mainfrom
fix/wordpress-content-roles

Conversation

@leemour

@leemour leemour commented Nov 19, 2026

Copy link
Copy Markdown
Member

Task

FIND-2812: a WordPress CLI made from the template's config case could not sync posts for an Author or Contributor sign-in.

Why

WordPress refuses both roles the pages list with a private status: HTTP 400, with 403 inside. The refusal failed the whole post kind, and every later run stopped at the same call.

What

  • WordPress case (kit/test/from-config/wordpress/wirecat.config.ts): the pages call names optional.needs on capabilities.edit_pages (cli-core 0.710.0, #3154). Pages check edit_others_pages instead of edit_others_posts. The config is now the same as wordpress-cli's.
  • Content seed: a test for every call with optional.needs. A sign-in without that right never sends the call (the fake would record it in refusals), and the sync ends complete with the gap. A CLI without needs registers no test.
  • cli-core 0.707.0 → 0.710.0.

Testing

  • Lint, typecheck, docs:check and kit/test/from-config.test.ts pass.
  • kit e2e (it builds every case) was not run locally because memory is short; CI runs it.
  • The new seed test was run inside wordpress-cli, a CLI generated from this template with the same config, and passes there. It is in wordpress-cli#4, together with the live check on Docker WordPress 6.9.4 as an Author and a Contributor.

🤖 Generated with Claude Code

leemour and others added 2 commits November 19, 2026 14:02
WordPress refuses an author or a contributor the pages list with a private
status (HTTP 400, 403 inside), and the refusal failed the whole post sync.
The case's pages call now names optional.needs on capabilities.edit_pages
(cli-core 0.710.0) and checks edit_others_pages for a partial read; posts
keep edit_others_posts.

The content seed tests every call with optional.needs: a sign-in without
that right never sends it (the fake would list it in refusals) and the sync
completes with the gap. cli-core 0.707.0 -> 0.710.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@socket-security

socket-security Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​wirecat/​cli-core@​0.707.0 ⏵ 0.710.097 +1100100 +19670

View full report

…0.0)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit a04dadf into main Nov 19, 2026
16 checks passed
@leemour
leemour deleted the fix/wordpress-content-roles branch November 19, 2026 13:19
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