Skip to content

Retire obsolete capture hosts per brain - #403

Merged
TheWeiHu merged 1 commit into
mainfrom
fix/retired-capture-hosts
Sep 29, 2026
Merged

TheWeiHu merged 1 commit into
mainfrom
fix/retired-capture-hosts

Conversation

@TheWeiHu

Copy link
Copy Markdown
Owner

Stale-capture warnings currently keep naming machines for up to 60 days after they stop writing, including when a machine is decommissioned or its projects move to another brain.

Add devbrain hosts list, retire <hostname>, and restore <hostname>. Retirement is scoped to the selected brain and stored in its synced data repository. A capture newer than the recorded retirement baseline automatically reactivates the host. Local capture failures and wedged-flush warnings remain enabled; invalid retirement data cannot silently overwrite the saved state.

Validation: targeted heartbeat tests cover retirement/restoration, isolation between brains, reactivation, unknown hosts, local-host protection, and malformed data. Preview binary successfully listed the laptop and stale satellite from the real brain. Full make test passed, including Go vet, all Go packages, dashboard regressions, and the Git configuration guard.

The installed CLI and live host retirement state have not been changed.

@TheWeiHu
TheWeiHu marked this pull request as ready for review September 29, 2026 07:05
@TheWeiHu
TheWeiHu merged commit 52bcc20 into main Sep 29, 2026
3 checks passed
@TheWeiHu
TheWeiHu deleted the fix/retired-capture-hosts branch September 29, 2026 07:05
@TheWeiHu TheWeiHu mentioned this pull request Sep 29, 2026
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