Skip to content

Fix plugin upgrade terminal verification - #472

Merged
chubes4 merged 1 commit into
mainfrom
fix/471-plugin-upgrade-verifier
Aug 26, 2026
Merged

Fix plugin upgrade terminal verification#472
chubes4 merged 1 commit into
mainfrom
fix/471-plugin-upgrade-verifier

Conversation

@chubes4

@chubes4 chubes4 commented Aug 26, 2026

Copy link
Copy Markdown
Member

Summary

  • decode the first valid plugin-state JSON array after bounded WP-CLI stdout preambles
  • reject output without a valid array or requested plugin object
  • replace malformed inline case command substitution with valid active-status rendering
  • cover preamble acceptance and malformed-payload refusal in the bounded upgrade harness

Closes #471.

Verification

  • bash -n lib/plugin-upgrade.sh tests/plugin-upgrade-bounds.sh
  • shellcheck lib/plugin-upgrade.sh tests/plugin-upgrade-bounds.sh
  • bash tests/plugin-upgrade-bounds.sh
  • real WordPress Studio no-op convergence: DMC 0.72.1 active, release pointer verified, PLUGIN_UPGRADE_RESULT=complete
  • git diff --check

AI assistance

OpenCode with openai/gpt-5.6-sol reproduced the false deployment failure, implemented the parser and shell corrections, and ran deterministic plus real Studio verification under human direction.

@chubes4
chubes4 merged commit 956c8f6 into main Aug 26, 2026
61 checks passed
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.

Make plugin upgrade terminal verification tolerate WP-CLI preambles

1 participant