Skip to content

Recover cleanup identity from stored metadata#546

Merged
chubes4 merged 3 commits into
mainfrom
fix/issue-541-cleanup-metadata-recovery
Jun 3, 2026
Merged

Recover cleanup identity from stored metadata#546
chubes4 merged 3 commits into
mainfrom
fix/issue-541-cleanup-metadata-recovery

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented Jun 3, 2026

Summary

  • Recover blank cleanup/reconciliation repo, branch, and path identity fields from trusted stored worktree metadata when it matches the handle/path identity.
  • Classify detached and protected/base-branch worktree cases with specific reason codes, hints, and stored identity evidence instead of collapsing into generic missing/protected metadata buckets.
  • Add targeted smoke coverage for detached stored-branch recovery, protected-base diagnostics, and inconsistent identity metadata blocking.

Closes #541.

Verification

  • php -l inc/Workspace/Workspace.php && php -l inc/Workspace/WorkspaceMetadataReconciliation.php && php -l tests/smoke-worktree-cleanup.php && php -l tests/smoke-worktree-metadata-reconcile.php
  • php tests/smoke-worktree-cleanup.php (145/145 assertions passed)
  • php tests/smoke-worktree-metadata-reconcile.php (197/197 assertions passed)
  • git diff --check

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Drafted and tested the cleanup/reconciliation metadata recovery implementation and targeted smoke coverage; Chris remains responsible for review and merge.

@homeboy-ci
Copy link
Copy Markdown
Contributor

homeboy-ci Bot commented Jun 3, 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 08dd72b

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

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 08dd72b

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

Audit

audit — passed

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

Deep dive: homeboy audit data-machine-code --changed-since 08dd72b

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/26905281186
Tooling versions
  • Homeboy CLI: homeboy 0.219.1+e3e7246
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: 1f9ab9d7
  • Action: unknown@unknown

@chubes4 chubes4 merged commit 60057a9 into main Jun 3, 2026
5 checks passed
@chubes4 chubes4 deleted the fix/issue-541-cleanup-metadata-recovery branch June 3, 2026 18:41
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.

Recover cleanup identity fields from stored worktree metadata

1 participant