Skip to content

Expose workspace tools in sandbox mode#459

Merged
chubes4 merged 2 commits into
mainfrom
fix/workspace-tools-sandbox-mode
May 28, 2026
Merged

Expose workspace tools in sandbox mode#459
chubes4 merged 2 commits into
mainfrom
fix/workspace-tools-sandbox-mode

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 27, 2026

Summary

  • Register Data Machine Code workspace tools for sandbox mode in addition to chat and pipeline.
  • Keep write/edit/git tools marked as explicit opt-in tools.
  • Add a datamachine_code_remote_workspace_backend_should_handle filter so sandbox hosts can force the mounted local workspace backend even when git is unavailable.
  • Update the workspace policy smoke test to cover sandbox mode exposure.

Tests

  • php tests/smoke-workspace-policy-tools.php
  • php tests/smoke-remote-workspace-backend.php
  • homeboy lint --path /Users/chubes/Developer/data-machine-code@fix-workspace-tools-sandbox-mode --extension wordpress --changed-since origin/main --errors-only

Fixes chubes4/wp-codebox#175

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Traced WP Codebox sandbox failures to missing Data Machine Code tool mode registration and backend routing, drafted the minimal mode/filter updates and smoke-test coverage, and ran focused verification.

@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented May 27, 2026

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 9b9c76c

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/26544229559

Test

test — passed

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

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/26544229559

Audit

audit — passed

  • duplication — 4 finding(s)
  • intra-method-duplication — 2 finding(s)
  • dead_code — 1 finding(s)
  • repeated_literal_shape — 1 finding(s)
  • Total: 8 finding(s)

Deep dive: homeboy audit data-machine-code --changed-since 9b9c76c

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/26544229559
Tooling versions
  • Homeboy CLI: homeboy 0.199.4+0ec2a2e
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: fbe2bfe7
  • Action: unknown@unknown

@chubes4 chubes4 merged commit 9533caf into main May 28, 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.

Agent sandbox should fail loudly when workspace tools are unavailable

1 participant