Skip to content

Fix high-volume workspace cleanup planning#684

Merged
chubes4 merged 6 commits into
mainfrom
fix/issue-674-high-volume-cleanup
Jun 13, 2026
Merged

Fix high-volume workspace cleanup planning#684
chubes4 merged 6 commits into
mainfrom
fix/issue-674-high-volume-cleanup

Conversation

@chubes4

@chubes4 chubes4 commented Jun 13, 2026

Copy link
Copy Markdown
Member

Summary

  • Makes retention cleanup planning include a full-workspace artifact inventory by default, without requiring manual artifact offset paging.
  • Reports total reclaimable bytes up front, with separate artifact-cleanup and worktree-removal byte buckets plus largest-win summaries.
  • Surfaces kept/blocked artifact and worktree paths separately with stable reason codes, and dedupes duplicate worktree scan rows before classification.

Fixes #674.

Verification

  • php tests/smoke-workspace-cleanup-plan-high-volume.php
  • php tests/smoke-worktree-cleanup-cli.php
  • php tests/smoke-worktree-cleanup.php
  • php -l inc/Workspace/WorkspaceCleanupPlan.php
  • php -l inc/Workspace/WorkspaceArtifactCleanup.php
  • php -l inc/Cli/Commands/WorkspaceCommand.php
  • php -l inc/Workspace/WorkspaceWorktreeCleanupEngine.php
  • php -l tests/smoke-workspace-cleanup-plan-high-volume.php

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Drafted the cleanup planning implementation, smoke test coverage, and verification commands for Chris to review.

@homeboy-ci

homeboy-ci Bot commented Jun 13, 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 8ce5ebc

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

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 8ce5ebc

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

Audit

audit — passed

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

Deep dive: homeboy audit data-machine-code --changed-since 8ce5ebc

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/27471061789
Tooling versions
  • Homeboy CLI: homeboy 0.228.22+c939469
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: c555adf8
  • Action: unknown@unknown

@chubes4 chubes4 merged commit accd1fc into main Jun 13, 2026
5 checks passed
@chubes4 chubes4 deleted the fix/issue-674-high-volume-cleanup branch June 13, 2026 15:40
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.

Refactor workspace cleanup for hundreds of agent-created worktrees

1 participant