add: backend dependency readiness probe + bundled-vs-released audit#165
Draft
kraftbj wants to merge 4 commits into
Draft
add: backend dependency readiness probe + bundled-vs-released audit#165kraftbj wants to merge 4 commits into
kraftbj wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Foundation for the bundled-backends migration (
sdd/bundled-backends-migration/, umbrella DOTCOM-16826, step 1 DOTCOM-17180).What this PR ships
src/class-backend-readiness.php— pure-read probe that reports each backend's status (ok/missing/too_old/incompatible), source (bundled/standalone/none), installed version, and required minimum. No hooks registered, no options written, no loader changes.tests/php/Backend_ReadinessTest.php— 7 unit tests covering the version-comparison + source-detection logic.audits/2026-05-20-backend-dependency-delta.md— the analysis: bundled commit identity for each backend, what we'd lose by switching to today's released versions, why the dependency-header cutover is still blocked on the next ActivityPub release.sdd/bundled-backends-migration/— frontmatter flipped fromplanning→in-progress; review task 4 (backend compatibility gates) marked done with anchors in this PR.sdd/roadmap.md— moved from "In flight" to "On trunk", with the sub-issue range linked.What this PR does not do
Requires Plugins: activitypub, atmospheretofosse.php.fosse.php.bundled/.bundled/— that's DOTCOM-17182.The bundled load path short-circuits the version comparison, so today's production behavior is unchanged: every install loads bundled (current code matches
bundled/), readiness reportsokfor both backends.Minimum-version anchors
Backend_Readiness::MIN_ATMOSPHERE_VERSION = '1.1.0'— released version containing theatmosphere_post_embedfilter (Automattic/wordpress-atmosphere PR 72) that FOSSE'sPhoto_Post_Atmosphereprojects through.Backend_Readiness::MIN_ACTIVITYPUB_VERSION = '8.4.0'— forward-pointer placeholder. The released AP 8.3.0 lacks thetoot:blurhashJSON-LD@contextterm (Automattic/wordpress-activitypub PR 3327) that FOSSE'sBlurhashinjector relies on. Bump this constant to the real number once that release tags.The constants live in one place so each bump is a one-line change as upstream tags.
Why "fail today's released versions" is the right shape
This PR adds the readiness reporting before anything reads it for gating. Setting the AP anchor at the future-correct release number from day one means:
audits/2026-05-20-backend-dependency-delta.md) and the constants tell the same story.Testing
No JS changes, no e2e changes.
Linear