Repository navigation
refactor(core)!: delete legacy input-shape aliases for tools, bundles, schemas, and post identity - #4157
Conversation
…, schemas, and post identity
Homeboy Results —
|
Homeboy Results —
|
|
Follow-up 765f142: the claimed handler-tool fixture in Out of scope here: per-property AI disclosure: Claude (Anthropic) in the Pi coding agent, via a Roadie session at the maintainer's direction, wrote this comment and the follow-up commit. |
Summary
Core still accepted several pre-1.0 input shapes: the
context_bindingsalias, automatic job_id binding for handle_tool_call tools,{allow, default: deny}tool policies, bundle directories without schema_version, flat tool-parameter maps with per-propertyrequiredflags, publish-format sniffing, and a meta_query fallback for post identity. This change deletes all of them, so each input now has one current shape. Callers, fixtures, tests and docs across the monorepo are updated to match.What changed
client_context_bindings(e.g.job_id) explicitly; thecontext_bindingsalias and the automatic job_id binding for handle_tool_call tools are gone.{mode, tools, categories}, andAgentBundler::from_directory()reads only schema-versioned bundles (the old monolithic-manifest reader and its helpers are deleted).ToolSchemaNormalizeraccepts only root JSON-schema objects with a rootrequiredarray;InsertContentAbilityandUpsertPostAbilitytool definitions now use that shape.WordPressPublishHelper::applySourceAttribution()uses the explicitcontent_formatit is given (default html) and no longer sniffs content for block markup.UpsertPostAbilityresolvesidentity_metaonly through the post-identity reservations table (malformed identities now returninvalid_identity_meta);find_legacy_candidatesis renamedfind_posts_identified_by_meta.Verification
( if git diff --quiet --no-renames 3b44185 -- ' (
( if git diff --quiet --no-renames 3b441855293e64f96937cb96dece6cbafe8b3f11 -- ':(literal)plugins/data-machine'; then :…): command succeeded; test execution not confirmed on0f51eb5. Basemain@3b44185unchanged. 167078 ms; retained gate metadata.! grep -rqE --exclude-dir=vendor --exclude-dir=node_modules --exclude-dir=build (
! grep -rqE --exclude-dir=vendor --exclude-dir=node_modules --exclude-dir=build "[^_]context_bindings|requiredNames|mer…): command succeeded; test execution not confirmed on0f51eb5. Basemain@3b44185unchanged. 340 ms; retained gate metadata.1-verify-file-4fcc86ca70e514edae3286e33ef81a29fc34ff4a7707fc948cabb73d6e96c747.txt (
(cd plugins/data-machine && { [ -d vendor ] || composer install -q --no-interaction; }); for f in $(git diff --name-onl…): Accepted inherited failure: 1 test also fails on basemain@3b44185.sha256:b0991e8431a49b0fc5ea9c545e59058fa24eeec3f7fb2d8134890324a6d8e0f4repro: verified (the repro gate failed on base and passed on the candidate).
CI: pending
Cook run
agent-task-3c385e9e-6d34-4650-999c-ea2fe8dc2177agent-task-3c385e9e-6d34-4650-999c-ea2fe8dc2177-attempt-1-44ca8e13510eff4e105cf1d9c74f72e3dedbd2399dfd300a510eff4e105cf1d9c74f72e3dedbd2399dfd300aDelivery
Evidence
AI disclosure
Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served claude-opus-5-5. Cook time: 44m24s.
The AI found every caller across the monorepo, deleted the legacy code paths, converted producers, fixtures, tests and docs to the current shapes, and ran local smoke, php -l and phpcs checks on the changes, under the direction of the Cook requester. Homeboy reports controller verification separately from this account of the AI's work. A human reviews before merge.
Closes #4152