Add typed Homeboy promotion adapter#946
Open
chubes4 wants to merge 1 commit into
Open
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.
Summary
Expose a typed Homeboy promotion adapter through DMC's managed-worktree safety boundary.
What changed
How to test
php tests/homeboy-promotion-apply-cli.php; expect adapter success and rejection matrix passes.php tests/workspace-handle.php; expect workspace handle contract passes.php tests/worktree-get-cli-json-contract.php; expect managed worktree JSON resolution passes.php tests/smoke-workspace-file-policy.php; expect 12/12 mutation policy checks pass.Compatibility
Additive CLI and optional parameter only; existing patch behavior is unchanged.
Evidence
Declared public contracts
workspace-promotion-apply: New WP-CLI adapter consumes Homeboy promotion requests and returns canonical managed-worktree responses.workspace-apply-patch-dry-run: WorkspaceWriter apply_patch gains an opt-in check-only mode used before mutation.Compatibility impact: Existing workspace patch callers are source-compatible because dry_run defaults false; the new CLI is additive.
External-consumer impact: Homeboy can configure this command as a generic worktree provider apply invocation; existing DMC clients are unaffected.
External usage: completed; source: Homeboy #7898 live provider configuration and DMC workspace patch contract review; limitations: End-to-end no-override Cook requires the paired Homeboy provider-command slot and wp-coding-agents configuration change.; evidence: Extra-Chill/homeboy#7898
AI assistance
Source relationships