Skip to content

feat(host): add reset command to remove claws and users#19

Open
ric03uec wants to merge 3 commits intomainfrom
feat/issue-15-host-reset
Open

feat(host): add reset command to remove claws and users#19
ric03uec wants to merge 3 commits intomainfrom
feat/issue-15-host-reset

Conversation

@ric03uec
Copy link
Owner

Implements #15: Host Reset Command

  • Add clm host reset <host> command with:

    • --yes/-y: Skip confirmation prompt
    • --dry-run/-n: Preview targets without executing
    • --untrack: Remove host from tracking after reset
  • Core functionality:

    • enumerate_targets(): Discovers users (uid >= 1000, excluding xclm), claw.service services, and clawrium paths
    • execute_reset(): Runs ansible playbook to clean up host
    • Updates host record to clear claws array after reset
  • Files added:

    • src/clawrium/core/reset.py: Core reset module
    • src/clawrium/platform/playbooks/reset.yaml: Ansible playbook
    • tests/test_reset.py: 17 unit tests

Closes #15

Implements #15: Host Reset Command

- Add `clm host reset <host>` command with:
  - --yes/-y: Skip confirmation prompt
  - --dry-run/-n: Preview targets without executing
  - --untrack: Remove host from tracking after reset

- Core functionality:
  - enumerate_targets(): Discovers users (uid >= 1000, excluding xclm),
    *claw*.service services, and clawrium paths
  - execute_reset(): Runs ansible playbook to clean up host
  - Updates host record to clear claws array after reset

- Files added:
  - src/clawrium/core/reset.py: Core reset module
  - src/clawrium/platform/playbooks/reset.yaml: Ansible playbook
  - tests/test_reset.py: 17 unit tests

Closes #15
- Remove hardcoded model directives from opencode commands
- Add writing guide comments to spec template
- Simplify template with focus on data model first
- Fix plan command reference in output
- Remove redundant quality checklist (now in template)
- Add 3-phase workflow: capture, iterate, decide
- Iterate through all Socratic sections before completion
- Show progress checklist after each update
- Offer choice at end: spec, GitHub issue, or continue refining
- Add idea for PR review slash command (260323-prv)
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.

Enhancement: host reset command (destructive cleanup)

1 participant