Skip to content

fix: expose system task prompts as bundle artifacts#2202

Merged
chubes4 merged 2 commits into
mainfrom
issue-1536-system-task-prompts
May 23, 2026
Merged

fix: expose system task prompts as bundle artifacts#2202
chubes4 merged 2 commits into
mainfrom
issue-1536-system-task-prompts

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 22, 2026

Summary

  • Exposes registered system task prompt definitions as versioned prompts/system-tasks/...json bundle artifacts during export.
  • Preserves prompt artifact files through array bundle import/export and includes them in upgrade planning with stable artifact IDs.
  • Adds a shared installed system-task prompt artifact store so runtime resolution can use installed artifact defaults while local overrides remain untouched and are reported as locally modified.

Tests

  • php tests/prompt-auth-template-artifacts-smoke.php
  • php tests/agent-bundle-format-smoke.php
  • php tests/datamachine-package-artifacts-smoke.php
  • vendor/bin/phpcs inc/Engine/AI/System/SystemTaskPromptRegistry.php inc/Core/Agents/AgentBundler.php inc/Engine/Bundle/AgentBundleArrayAdapter.php inc/Engine/Bundle/AgentBundleUpgradePlanner.php inc/Cli/Commands/AgentBundleCommand.php tests/prompt-auth-template-artifacts-smoke.php

Notes

  • php tests/agent-bundle-upgrade-planner-smoke.php currently fatals before exercising this change because the smoke stubs AgentsAPI\\Core\\Workspace\\WP_Agent_Workspace_Scope and then Composer autoload loads the same class from vendor/automattic/agents-api.

AI assistance

Fixes #1536

@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/26334629745

Test

test — passed

ℹ️ Auto-fix lint issues: homeboy refactor data-machine --from lint --write
ℹ️ Collect coverage: homeboy test data-machine --coverage
ℹ️ 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/26334629745

Audit

audit — passed

  • requested_detectors — 46 finding(s)
  • intra-method-duplication — 17 finding(s)
  • dead_code — 10 finding(s)
  • parallel-implementation — 4 finding(s)
  • Api — 1 finding(s)
  • Directives — 1 finding(s)
  • Retention — 1 finding(s)
  • repeated_literal_shape — 1 finding(s)
  • structural — 1 finding(s)
  • Total: 82 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/26334629745
Tooling versions
  • Homeboy CLI: homeboy 0.197.2+e48590b4
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: dd23ee80
  • Action: unknown@unknown

@chubes4
Copy link
Copy Markdown
Member Author

chubes4 commented May 23, 2026

CI follow-up pushed in e48590b.

Verified after Homeboy autofix:

  • homeboy lint --path /Users/chubes/Developer/data-machine@issue-1536-system-task-prompts --extension wordpress --changed-since 9caa8a97d5f139b550888f99189db1798dd06cc0
  • php tests/prompt-auth-template-artifacts-smoke.php
  • php tests/agent-bundle-format-smoke.php
  • php tests/datamachine-package-artifacts-smoke.php

@chubes4 chubes4 merged commit 9abd4ec into main May 23, 2026
5 checks passed
@chubes4 chubes4 deleted the issue-1536-system-task-prompts 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.

Externalize AI system task prompts into versioned artifacts

1 participant