Skip to content

Auto-finalize active worktrees merged to default#501

Merged
chubes4 merged 2 commits into
mainfrom
feat/issue-497-auto-finalize-merged-worktrees
Jun 2, 2026
Merged

Auto-finalize active worktrees merged to default#501
chubes4 merged 2 commits into
mainfrom
feat/issue-497-auto-finalize-merged-worktrees

Conversation

@chubes4

@chubes4 chubes4 commented Jun 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds active-no-signal-merged-apply to promote clean active-no-signal-report rows with suggested_action=merged_to_default into cleanup_eligible lifecycle metadata.
  • Revalidates containment, primary/worktree identity, protected branch names, dirty state, unpushed commits, and remote-default containment immediately before metadata writes.
  • Records merge-to-default cleanup evidence including transition reason, detected timestamp, default/branch refs, heads, dirty/unpushed counts, and commits_outside_default.

Fixes #497

Testing

  • php -l inc/Workspace/Workspace.php
  • php -l inc/Cli/Commands/WorkspaceCommand.php
  • php -l inc/Abilities/WorkspaceAbilities.php
  • php -l tests/smoke-worktree-metadata-reconcile.php
  • php tests/smoke-worktree-metadata-reconcile.php
  • php tests/smoke-worktree-finalizer-cli.php
  • php tests/smoke-tool-schemas.php
  • php tests/smoke-deferred-ability-registration.php
  • php tests/smoke-agents-md-marker.php
  • git diff --check
  • homeboy test --path . --extension wordpress

Notes

  • for test_file in tests/smoke-*.php; do php "$test_file" || exit $?; done stops in the unrelated tests/smoke-github-fetch-exclude-labels.php test with existing exclude_labels parsing/logging assertions.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (gpt-5.5)
  • Used for: implementation draft, tests, and verification; Chris remains responsible.

@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 8932818

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

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 8932818

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

Audit

audit — passed

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

Deep dive: homeboy audit data-machine-code --changed-since 8932818

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/26795005034
Tooling versions
  • Homeboy CLI: homeboy 0.218.0+ff36cb5
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 5eb10bf6
  • Action: unknown@unknown

@chubes4 chubes4 force-pushed the feat/issue-497-auto-finalize-merged-worktrees branch from fa546c6 to ff36cb5 Compare June 2, 2026 02:40
@chubes4 chubes4 merged commit cf95064 into main Jun 2, 2026
5 checks passed
@chubes4 chubes4 deleted the feat/issue-497-auto-finalize-merged-worktrees branch June 2, 2026 02:47
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.

Auto-finalize active worktrees that are merged to default

1 participant