Skip to content

fix: bind job_id context to social publish tools#154

Merged
chubes4 merged 1 commit into
mainfrom
fix-2560-publish-jobid-bindings
Jun 6, 2026
Merged

fix: bind job_id context to social publish tools#154
chubes4 merged 1 commit into
mainfrom
fix-2560-publish-jobid-bindings

Conversation

@chubes4

@chubes4 chubes4 commented Jun 6, 2026

Copy link
Copy Markdown
Member

Summary

Companion fix for Extra-Chill/data-machine#2560.

The Bluesky, Facebook, Instagram, LinkedIn, Pinterest, Threads, and Twitter publish handlers all extend PublishHandler, whose handle_tool_call() requires the run's job_id to load engine_data. Their tool definitions omitted client_context_bindings, so after data-machine's explicit-context-bindings migration job_id would never reach them and every publish call would bounce at the base job_id guard the moment these handlers ran in a pipeline (same failure class as the events upsert storm).

What changed

  • Declare 'client_context_bindings' => array( 'job_id' ) on each of the 7 social publish tool defs.

Note

data-machine core also now auto-binds job_id for handler-class tools (Extra-Chill/data-machine#2561), but declaring it here is correct regardless of deployed core version.

Testing

  • php -l clean on all 7 changed handler files.

Refs Extra-Chill/data-machine#2560

The Bluesky, Facebook, Instagram, LinkedIn, Pinterest, Threads, and Twitter
publish handlers extend PublishHandler, whose handle_tool_call() requires the
run's job_id to load engine_data. Their tool definitions omitted
client_context_bindings, so after data-machine's explicit-context-bindings
migration job_id would never reach them and every publish call would bounce at
the base job_id guard the moment these handlers ran in a pipeline.

Declare 'client_context_bindings' => array( 'job_id' ) on each publish tool def,
matching data-machine core handlers. data-machine core also now auto-binds this
for handler-class tools, but declaring it here is correct regardless of core
version.
@homeboy-ci

homeboy-ci Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine-socials

Audit

audit — passed

Deep dive: homeboy audit data-machine-socials --changed-since 00f2694

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-socials-audit-homeboy-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-socials-audit-homeboy-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine-socials/actions/runs/27072815323
Tooling versions
  • Homeboy CLI: homeboy 0.221.2+5b82d2637
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 550f28b3
  • Action: Extra-Chill/homeboy-action@v2

@chubes4 chubes4 merged commit 17c51f4 into main Jun 6, 2026
1 check 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

Development

Successfully merging this pull request may close these issues.

1 participant