Skip to content

Register generated companion blocks before editor validation - #884

Open
chubes4 wants to merge 5 commits into
mainfrom
fix-883-register-generated-companion-blocks
Open

Register generated companion blocks before editor validation#884
chubes4 wants to merge 5 commits into
mainfrom
fix-883-register-generated-companion-blocks

Conversation

@chubes4

@chubes4 chubes4 commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • load and run each generated companion block registration callback immediately after materialization
  • verify every emitted block name is in the runtime registry before editor capture
  • classify core/missing with originalName as invalid editor evidence
  • cover generic companion registration plus Blocks Engine form-select and form-input

Fixes #883. Depends on Automattic/wp-codebox#2244 for originalName emission by the editor validator.

Verification

  • npm test (55 selected tests; fixture-matrix contracts 261/261)
  • php tests/smoke-companion-plugin.php (104 assertions)
  • node --test tests/editor-validation-contract.test.mjs
  • php -l includes/class-static-site-importer-plugin-materializer.php
  • git diff --check

Fixture integrity

No tracked fixture files changed.

AI assistance

OpenAI gpt-5.6-terra via OpenCode traced the late activation lifecycle, implemented immediate companion registration verification and missing-block editor contracts, and ran the listed verification. Chris Huber remains responsible for every line.

chubes4 added 5 commits August 8, 2026 07:56
AI assistance: OpenAI gpt-5.6-sol via OpenCode traced the fixture-matrix failure, implemented representation-aware script filtering, added contract coverage, and ran verification. Chris Huber directed the work and remains responsible for every line.
AI assistance: OpenAI gpt-5.6-sol via OpenCode added precise PHPCS suppressions for declared artifact base64 decoding and representation-preserving encoding, then ran the policy and repository test suites. Chris Huber remains responsible for every line.
AI assistance: OpenAI gpt-5.6-terra via OpenCode diagnosed the font-materialization contract, implemented typed italic-axis validation and detailed failure diagnostics, and ran local tests. Chris Huber directed the work and remains responsible for every line.
AI assistance: OpenAI gpt-5.6-terra via OpenCode traced late companion activation past init, implemented immediate registration verification and missing-block editor contracts, and ran the SSI suite. Chris Huber remains responsible for every line.
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.

Register generated companion blocks before editor validation

1 participant