Skip to content

Fix repeated GitHub issue list calls#492

Merged
chubes4 merged 1 commit into
mainfrom
fix/nonrepeatable-issue-list
Jun 1, 2026
Merged

Fix repeated GitHub issue list calls#492
chubes4 merged 1 commit into
mainfrom
fix/nonrepeatable-issue-list

Conversation

@chubes4

@chubes4 chubes4 commented Jun 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Let list_github_issues use Data Machine's default duplicate-call guard instead of opting out as repeatable.
  • Add smoke coverage so identical issue-list calls cannot regain unbounded repeat behavior through the tool definition.

Why

Static validation iterator runs were exhausting max_turns by repeatedly calling list_github_issues with identical parameters. Since the tool was marked duplicate_policy=repeatable, Data Machine could not reject the duplicate and nudge the agent toward the next required pipeline action.

Tests

  • php -l inc/Tools/GitHubTools.php
  • php tests/smoke-github-create-tools.php

Notes

  • php tests/smoke-github-pr-comment-tool.php currently has unrelated stale schema-shape assertions for comment_github_pull_request; left out of this focused fix.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Diagnosed repeated iterator tool calls from runtime artifacts, drafted the tool duplicate-policy fix and smoke assertion, and ran targeted verification. Chris remains responsible for review and merge.

@homeboy-ci

homeboy-ci Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine-code

Lint

lint — passed

ℹ️ Full options: homeboy docs commands/lint
ℹ️ Save lint baseline: homeboy lint data-machine-code --baseline
Deep dive: homeboy lint data-machine-code --changed-since 1cb75f7

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

Test

test — passed

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

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

Audit

audit — passed

  • audit — 11 finding(s)
  • Total: 11 finding(s)

Deep dive: homeboy audit data-machine-code --changed-since 1cb75f7

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

@chubes4 chubes4 merged commit 52afc7f into main Jun 1, 2026
5 checks 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