Import devctl's archived GitHub copy, so the next change deletes it with the App (AHT-246, AHT-251) #46

Merged
merge-queue merged 1 commit from devctl-import-to-delete into main 2026-11-29 23:51:53 -08:00
Owner

First of two changes that delete devctl's GitHub copy, by the same path that deleted diagrams and fzt-showcase (ROMAINE-55): this one imports it into tofu, the next removes it, and that apply deletes it with the infra-bootstrap GitHub App.

  • Why tofu: Nelson's decision (AHT-246) is that devctl is destroyed, not kept archived. Forgejo's copy is already deleted with forgejo-management delete. GitHub refused its copy: gh's token lacks delete_repo, and widening a stored token is a static credential. The infra-bootstrap App is the one identity that has deleted romaine-life repositories, and only this repo's CI holds it.
  • Added: tofu/deleting-repos.tf, an import block plus a github_repository.deleting resource for devctl, with archived = true and lifecycle { ignore_changes = all }.
  • What this apply does: it imports github.com/romaine-life/devctl into state and changes nothing on GitHub. The plan should show 1 to import, 0 to add, 0 to change, 0 to destroy.
  • Left alone: every other resource, including github_repository.retired (devctl isn't added there, since that resource sets visibility and other settings).

The tool-side route, a short-lived App token from auth so a PC can finish the GitHub side, is filed as AHT-273.

Work package: AHT-251

🤖 Generated with Claude Code

First of two changes that delete devctl's GitHub copy, by the same path that deleted diagrams and fzt-showcase (ROMAINE-55): this one imports it into tofu, the next removes it, and that apply deletes it with the infra-bootstrap GitHub App. - **Why tofu:** Nelson's decision (AHT-246) is that devctl is destroyed, not kept archived. Forgejo's copy is already deleted with `forgejo-management delete`. GitHub refused its copy: gh's token lacks `delete_repo`, and widening a stored token is a static credential. The infra-bootstrap App is the one identity that has deleted romaine-life repositories, and only this repo's CI holds it. - **Added:** `tofu/deleting-repos.tf`, an `import` block plus a `github_repository.deleting` resource for `devctl`, with `archived = true` and `lifecycle { ignore_changes = all }`. - **What this apply does:** it imports github.com/romaine-life/devctl into state and changes nothing on GitHub. The plan should show 1 to import, 0 to add, 0 to change, 0 to destroy. - **Left alone:** every other resource, including `github_repository.retired` (devctl isn't added there, since that resource sets visibility and other settings). The tool-side route, a short-lived App token from auth so a PC can finish the GitHub side, is filed as [AHT-273](https://openproject.home.romaine.life/wp/AHT-273). Work package: [AHT-251](https://openproject.home.romaine.life/wp/AHT-251) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Import devctl's archived GitHub copy, so the next change deletes it with the App (AHT-246, AHT-251)
All checks were successful
Checks / check-files (pull_request) Successful in 3s
Suite default / reused-checks (pull_request) Successful in 7s
Suite tofu / apply (pull_request) Has been skipped
Suite tofu / scope (pull_request) Successful in 7s
Suite default / scope (pull_request) Successful in 7s
Suite default / check-fetches (pull_request) Has been skipped
Suite tofu / scope (push) Has been skipped
Suite tofu / check-plan (push) Has been skipped
Suite tofu / apply (push) Has been skipped
Suite tofu / reused-checks (push) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
Suite default / check-logs (pull_request) Has been skipped
merge-queue landed on main
Suite tofu / check-plan (pull_request) Successful in 3m33s
Suite tofu / reused-checks (pull_request) Successful in 7s
7e1769b9dc
merge-queue deleted branch devctl-import-to-delete 2026-11-29 23:51:53 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/infra-bootstrap!46
No description provided.