Skip to content

Add scoped runtime tool source#2200

Merged
chubes4 merged 2 commits into
mainfrom
issue-1485-runtime-tools
May 23, 2026
Merged

Add scoped runtime tool source#2200
chubes4 merged 2 commits into
mainfrom
issue-1485-runtime-tools

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 22, 2026

Summary

  • Adds a run-scoped runtime tool source for client/transport-declared tool definitions using the Agents API declaration contract.
  • Keeps runtime tools denied by default unless explicitly named by allow_only or an allow-mode tool policy, then lets the existing Agents API policy pass continue filtering.
  • Marks runtime tools as client/external executor tools and refuses server-side PHP execution for them instead of adding a fake executor path.

Refs #1485. This is the declaration/policy slice only; client/transport callback fulfillment is tracked in #2205.

Testing

  • php tests/tool-source-registry-smoke.php
  • php tests/runtime-tool-declaration-smoke.php
  • php tests/pipeline-tool-policy-snapshot-smoke.php
  • php tests/ai-completion-assertion-packet-smoke.php
  • php tests/upsert-handler-result-handoff-smoke.php
  • php tests/adjacent-handler-tool-policy-smoke.php
  • php tests/agent-conversation-runner-request-smoke.php
  • vendor/bin/phpcs inc/Api/Chat/ChatOrchestrator.php inc/Engine/AI/Tools/ToolExecutor.php inc/Engine/AI/Tools/ToolPolicyResolver.php inc/Engine/AI/Tools/ToolSourceRegistry.php inc/Engine/AI/Tools/Sources/RuntimeToolSource.php tests/adjacent-handler-tool-policy-smoke.php tests/ai-completion-assertion-packet-smoke.php tests/pipeline-tool-policy-snapshot-smoke.php tests/tool-source-registry-smoke.php tests/upsert-handler-result-handoff-smoke.php
  • vendor/bin/phpcs tests/tool-source-registry-smoke.php

Follow-up

AI assistance

@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented May 22, 2026

Homeboy Results — data-machine

Lint

lint — passed

ℹ️ Full options: homeboy docs commands/lint
Deep dive: homeboy lint data-machine --changed-since 9caa8a9

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-lint-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-lint-quality-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/actions/runs/26334711300

Test

test — passed

  • 834 passed

ℹ️ Auto-fix lint issues: homeboy refactor data-machine --from lint --write
ℹ️ Collect coverage: homeboy test data-machine --coverage
ℹ️ Save test baseline: homeboy test data-machine --baseline
ℹ️ Pass args to test runner: homeboy test -- [args]
ℹ️ Full options: homeboy docs commands/test
Deep dive: homeboy test data-machine --changed-since 9caa8a9

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-test-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-test-quality-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/actions/runs/26334711300

Audit

audit — passed

  • dead_code — 187 finding(s)
  • requested_detectors — 133 finding(s)
  • intra-method-duplication — 74 finding(s)
  • repeated_literal_shape — 13 finding(s)
  • field_patterns — 9 finding(s)
  • parallel-implementation — 8 finding(s)
  • structural — 6 finding(s)
  • Taxonomy — 5 finding(s)
  • Abilities — 4 finding(s)
  • Flow — 4 finding(s)
  • Total: 456 finding(s)

Deep dive: homeboy audit data-machine --changed-since 9caa8a9

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-audit-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-audit-quality-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/actions/runs/26334711300
Tooling versions
  • Homeboy CLI: homeboy 0.197.2+718b1d1a
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: dd23ee80
  • Action: unknown@unknown

@chubes4 chubes4 merged commit fd53299 into main May 23, 2026
5 checks passed
@chubes4 chubes4 deleted the issue-1485-runtime-tools branch May 23, 2026 14:16
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