Skip to content

Add cleanup-eligible drain command#785

Merged
chubes4 merged 3 commits into
mainfrom
safe-cleanup-drain
Jun 17, 2026
Merged

Add cleanup-eligible drain command#785
chubes4 merged 3 commits into
mainfrom
safe-cleanup-drain

Conversation

@chubes4

@chubes4 chubes4 commented Jun 17, 2026

Copy link
Copy Markdown
Member

Summary

  • Add a non-destructive-by-default cleanup-eligible drain operation for worktrees.
  • Reuse the existing bounded cleanup-eligible apply primitive across repeated passes until empty, pass-limited, or budget-limited.
  • Report per-pass evidence and final free space, while refusing the unpushed-commit discard mode.

Tests

  • php -l inc/Workspace/WorkspaceCleanupEligibleDrainOrchestrator.php
  • php -l inc/Abilities/WorkspaceAbilities.php
  • php -l inc/Cli/Commands/WorkspaceCommand.php
  • for test in tests/*.php; do php "$test" || exit $?; done

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Drafted the focused cleanup drain orchestration, CLI/ability wiring, and smoke test coverage; Chris retains responsibility for review and verification.

@homeboy-ci

homeboy-ci Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine-code

Lint

lint — failed

ℹ️ Auto-fix: homeboy lint data-machine-code --path /home/runner/work/data-machine-code/data-machine-code --changed-since 478b13a --fix (or homeboy refactor data-machine-code --path /home/runner/work/data-machine-code/data-machine-code --changed-since 478b13a --from lint --write)
ℹ️ Some issues may require manual fixes
ℹ️ Full options: homeboy docs commands/lint
Deep dive: homeboy lint data-machine-code --changed-since 478b13a

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

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 478b13a

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

Audit

audit — passed

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

Deep dive: homeboy audit data-machine-code --changed-since 478b13a

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/27718945793
Tooling versions
  • Homeboy CLI: homeboy 0.238.0+ccd7d5e0bfec+69c730f
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 11a1dc93
  • Action: unknown@unknown

@chubes4 chubes4 merged commit 0f7723b into main Jun 17, 2026
@chubes4 chubes4 deleted the safe-cleanup-drain branch June 17, 2026 21:20
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