Skip to content

Clarify BFB conversion boundaries#125

Merged
chubes4 merged 1 commit into
mainfrom
fix/boundary-cleanup-121-123
Jun 7, 2026
Merged

Clarify BFB conversion boundaries#125
chubes4 merged 1 commit into
mainfrom
fix/boundary-cleanup-121-123

Conversation

@chubes4

@chubes4 chubes4 commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Expose a BFB-side h2bc capability discovery seam that consumes html_to_blocks_capabilities() when h2bc provides it and otherwise reports the tracked h2bc dependency instead of stale placeholder data.
  • Keep BFB declared-format only by removing the unused detect() requirement from the adapter interface/docs and preserving explicit bfb_convert( $content, $from, $to ) routing.
  • Clarify Site Editor marker ownership as a shared BFB/h2bc extension contract and add BFB-level marker conversion coverage through the public conversion path.

Closes #121.
Closes #122.
Closes #123.

Upstream dependency: chubes4/html-to-blocks-converter#418

Verification

  • homeboy --force-hot lint block-format-bridge
  • php tests/smoke-capabilities-abilities.php && php tests/smoke-h2bc-capability-discovery-prefixed.php && php tests/smoke-h2bc-capability-discovery-standalone.php && php tests/smoke-multi-consumer-bundled-load.php && php tests/smoke-cli-command.php && php tests/smoke-normalization-api-branches.php && php tests/smoke-content-normalization.php && php tests/smoke-insert-conversion-measurement.php && php tests/smoke-duplicate-version-registry.php && php tests/smoke-scoped-h2bc-hooks.php && php vendor_prefixed/chubes4/html-to-blocks-converter/tests/smoke-site-editor-marker-transforms.php

Notes

  • homeboy test block-format-bridge is currently blocked before PHPUnit runs because the active Homeboy/WP Codebox test harness cannot load @automattic/wp-codebox-core or HOMEBOY_WP_CODEBOX_CORE_MODULE for buildWordPressPhpunitRecipe.
  • BFB now has the consumer seam for h2bc capabilities, but full real transform inventory still depends on h2bc exposing the public capability API tracked in h2bc #418.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Investigating the BFB/h2bc boundary issues, drafting and implementing the BFB capability seam, docs cleanup, tests, and PR description; Chris remains responsible for review and acceptance.

@chubes4 chubes4 merged commit e730309 into main Jun 7, 2026
4 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

1 participant