Skip to content

Centralize bootstrap dependency checks#2423

Open
chubes4 wants to merge 1 commit into
mainfrom
refactor/bootstrap-dependency-checks
Open

Centralize bootstrap dependency checks#2423
chubes4 wants to merge 1 commit into
mainfrom
refactor/bootstrap-dependency-checks

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 31, 2026

Summary

  • Extract request-shape runtime gating from data-machine.php into DataMachine\Core\Bootstrap\RuntimeEnvironment.
  • Add DataMachine\Core\Bootstrap\DependencyChecker with named checks for Agents API contracts, Action Scheduler, ZipArchive, IMAP, WordPress Abilities, and filesystem writes.
  • Wire the Agents API access-store and pending-action observer guards through the shared checker, plus fix two lint-gate blockers surfaced by Homeboy.

Refs #2416.
Refs #2417.

Testing

  • php -l data-machine.php inc/bootstrap.php inc/Core/Bootstrap/RuntimeEnvironment.php inc/Core/Bootstrap/DependencyChecker.php tests/bootstrap-runtime-environment-smoke.php tests/frontend-runtime-gate-smoke.php
  • php tests/bootstrap-runtime-environment-smoke.php
  • php tests/frontend-runtime-gate-smoke.php
  • vendor/bin/phpcs data-machine.php inc/bootstrap.php inc/Core/Bootstrap/RuntimeEnvironment.php inc/Core/Bootstrap/DependencyChecker.php tests/frontend-runtime-gate-smoke.php tests/bootstrap-runtime-environment-smoke.php inc/Core/FilesRepository/MediaValidator.php inc/Engine/AI/ConversationManager.php
  • homeboy lint --path /Users/chubes/Developer/data-machine@refactor-bootstrap-dependency-checks --extension wordpress
  • homeboy test --path /Users/chubes/Developer/data-machine@refactor-bootstrap-dependency-checks --extension wordpress

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Drafting the bootstrap/dependency-check extraction, smoke coverage, lint fixes, and verification commands; Chris remains responsible for review and merge.

@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented May 31, 2026

Homeboy Results — data-machine

Lint

lint — passed

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

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

Test

test — passed

  • 247 passed
  • 3 skipped

ℹ️ 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 424a39a

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

Audit

audit — passed

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

Deep dive: homeboy audit data-machine --changed-since 424a39a

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/26714897904
Tooling versions
  • Homeboy CLI: homeboy 0.213.4+bf104bef
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 06cc67ae
  • Action: unknown@unknown

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