Skip to content

Preserve structured WP-CLI recipe results#2054

Open
chubes4 wants to merge 1 commit into
mainfrom
fix/2048-wp-cli-json-result
Open

Preserve structured WP-CLI recipe results#2054
chubes4 wants to merge 1 commit into
mainfrom
fix/2048-wp-cli-json-result

Conversation

@chubes4

@chubes4 chubes4 commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Preserve successful structured WP-CLI output before temporary wrapper cleanup so recipe consumers receive the command result.

What changed

  • Snapshot Playground response text while the temporary WP-CLI wrapper still exists.
  • Add a recipe-level regression proving JSON output survives wrapper cleanup.
  • Register the focused regression test as an npm script.

How to test

  1. Run npm run test:wp-cli-recipe-result; expect Structured WP-CLI JSON remains in execution.result.json after wrapper cleanup..
  2. Run npx tsx tests/wp-cli-temporary-script.test.ts; expect All 3200 temporary wrapper invocations remain isolated across concurrency levels..

Compatibility

Restores the existing WP-CLI recipe result contract without changing response schemas; exit codes, errors, and cleanup behavior remain intact.

Evidence

  • Base unchanged since verification: main remains at 6aa2b97.
  • Reviewer-resolvable evidence from source_refs[0]: WP Codebox 0.14.0 drops successful WP-CLI JSON result from recipe intake #2048
  • Verified finalization base: main at 6aa2b97
  • build: passed (TypeScript project build completed) (Passed)
  • composer-overlay: passed (Autoload layout contract preserved) (Passed)
  • wp-cli-recipe-result: passed (Structured JSON survived wrapper cleanup) (Passed)
  • wp-cli-temporary-script: passed (3200 isolated invocations) (Passed)

AI assistance

  • AI assistance: Yes
  • Tool(s): Homeboy (OpenCode)
  • Model: openai/gpt-5.6-sol
  • Used for: Traced the lazy Playground response through temporary-script cleanup, implemented the narrow snapshot boundary, built recipe-level regression coverage, and reviewed deterministic gate evidence.

Source relationships

@chubes4

chubes4 commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator Author

Combined Lab verification update: run 50eadcfc-23c9-450a-929f-cb47f08f2a65 used integration commit 427cd1514bd157cc4fcf07cf6744acb1eb7d7d98 (#2054 + #2057). Structured WP-CLI output now survives cleanup and parses end to end; the import report, WordPress site plan, materialization receipt, and eight page provenance records are present.

The prior warning/truncation chain was fixed separately in #2057. The only remaining evidence gap is transformer_reference, tracked in #2058.

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.

WP Codebox 0.14.0 drops successful WP-CLI JSON result from recipe intake

1 participant