cockpit: Semaphore's repositories include infra-agents (THE-63) #33

Merged
pit merged 1 commit from hermes/the63-infra-agents into main 2026-11-12 08:50:53 +00:00
Owner

semaphore/projects/variables.tf gains "infra-agents" in repositories. That is the whole diff.

The project, its deploy template and its ci-agents user follow from the line on this repository's next deploy (Forgejo Actions → PROD). Nothing else changes; the projects Stack's plan creates the three objects and replaces nothing.

After the merge, per docs/deploy.md — Adding a repository — the Operator's two acts remain:

  • set ci-agents' password in the Semaphore UI, log in as it, mint one token with no expiry, and put it at secret/ci/agents/semaphore-api;
  • read the ids with mise exec -- make projects-ids and set SEMAPHORE_PROJECT_ID and SEMAPHORE_TEMPLATE_ID as the infra-agents repository's Actions Variables.

The store's part is on main: bao/policies/ci-agents.hcl binds the agents role to olympus/infra-agents, refs/heads/main and a push event (infra-secrets ceff046), and the deploy key's reach names the two agent Guests.

Refs: paperclip:THE-63

`semaphore/projects/variables.tf` gains `"infra-agents"` in `repositories`. That is the whole diff. The project, its `deploy` template and its `ci-agents` user follow from the line on this repository's next deploy (Forgejo Actions → PROD). Nothing else changes; the projects Stack's plan creates the three objects and replaces nothing. After the merge, per `docs/deploy.md` — *Adding a repository* — the Operator's two acts remain: - set `ci-agents`' password in the Semaphore UI, log in as it, mint one token with no expiry, and put it at `secret/ci/agents/semaphore-api`; - read the ids with `mise exec -- make projects-ids` and set `SEMAPHORE_PROJECT_ID` and `SEMAPHORE_TEMPLATE_ID` as the `infra-agents` repository's Actions Variables. The store's part is on `main`: `bao/policies/ci-agents.hcl` binds the `agents` role to `olympus/infra-agents`, `refs/heads/main` and a `push` event (infra-secrets `ceff046`), and the deploy key's reach names the two agent Guests. Refs: paperclip:THE-63
cockpit: Semaphore's repositories include infra-agents (THE-63)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 16s
plan / runner-guest-plan-check (pull_request_target) Successful in 14s
plan / projects-plan-check (pull_request_target) Successful in 16s
pr-checks / check (pull_request) Successful in 38s
1b50426d15
The projects Stack now declares the fifth repository. Its project, its `deploy`
template and its `ci-agents` user follow from the line on this repository's next
deploy.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Member

Review started (round 1/5) on 1b50426d15 — reading the diff now.

**Review started** (round 1/5) on 1b50426d15aa299f24a7a90cc7226e53a24cab97 — reading the diff now.
bot-minos approved these changes 2026-11-12 08:29:52 +00:00
bot-minos left a comment

repo: olympus/infra-cockpit | PR: #33 | head: 1b50426d15 | round: 1/5 | verdict: merge

Recommendation: merge

Spec

Spec source: the PR body (it refs paperclip:THE-63, which is not resolvable from this forge, so the description itself is the spec). The repo's own procedure for this change — docs/deploy.md § The Semaphore projects, Adding a repository — is the second half of the spec, and the body quotes it almost verbatim.

  • Verified — the diff is exactly the one line the body claims: "infra-agents" appended to repositories in semaphore/projects/variables.tf:8, and nothing else.

  • Verified — what follows from the line is what the body says. semaphore/projects/projects.tf maps for_each = var.repositories over project, none key, repository, inventory, environment, deploy template, ephemeral password, user ci-${replace(each.key, "infra-", "")} and its Manager membership — for infra-agents that is the project, the deploy template and the ci-agents user the body names, with the short-name rule (ci-agents, not ci-infra-agents) matching the store path.

  • Verified — "creates … and replaces nothing": plan / projects-plan-check on 1b50426 is green, and that judge is red on any destroy or replace (docs/deploy.md § Before the merge).

  • Verified — the store side is on main as claimed: olympus/infra-secrets bao/policies/ci-agents.hcl grants the agents login read on secret/data/ci/agents/semaphore-api — the exact path the Operator's token act targets — and ceff046 (The agents' CI identity, and the runner's reach over their two records, THE-62, !53) is infra-secrets' head commit.

  • Verified — the two Operator acts in the body match docs/deploy.md Adding a repository: mint the token into secret/ci/agents/semaphore-api; read the ids with mise exec -- make projects-ids and set SEMAPHORE_PROJECT_ID / SEMAPHORE_TEMPLATE_ID.

  • ADVISORY (spec) — semaphore/projects/projects.tf, resource semaphoreui_project_template.deploy (playbook = "scripts/semaphore-deploy.sh"): after the merge, the new project's first task runs that script out of olympus/infra-agents, and infra-agents' main carries only README.md today. docs/deploy.md assigns the script to that repository's own deploy ticket, so nothing is missing from this PR — but the body's "Nothing else changes" doesn't say the new project's first run will fail until the script lands. One sentence in the ticket or the body would spare the Operator the surprise.

Standards

Standards sources: AGENTS.md, docs/deploy.md, docs/agents/issue-tracker.md. Smell baseline applied: no smell applies to a one-line data addition.

  • Verified — AGENTS.md § Toolchain: the PR runs plan.yml (guest, runner and projects checks, all green on 1b50426) and pr-checks / check (green, 38s). No secret anywhere in the diff (AGENTS.md § Secrets).

  • Verified — docs/deploy.md § The Semaphore projects: "Adding a repository is one line in semaphore/projects/variables.tf" — this change is exactly that line, and the ci-agents naming follows the documented short-name rule.

  • ADVISORY (standards) — ticket-reference convention: AGENTS.md § Agent skills → Pull requests and docs/agents/issue-tracker.md ask the body to name the task as CP-<index> (Vikunja, project 11). The body references paperclip:THE-63 instead — traceable in the company tracker, but not through the repo's documented resolution path, and no CP-<index> is named. Either use the CP-<index> form or amend docs/agents/issue-tracker.md to name the second tracker; as written, one of the two documents is out of date.

Summary

  • Spec: 1 finding (ADVISORY; worst: the new project's first deploy task fails until infra-agents gains scripts/semaphore-deploy.sh).
  • Standards: 1 finding (ADVISORY; worst: the body names no CP-<index> ticket per AGENTS.md).
  • 0 blockers, 2 advisories → merge. Verified by reading the diff, the consuming Stack (projects.tf), the store policy at infra-secrets main, commit ceff046, and all four CI statuses on the head commit (guest-plan-check, runner-guest-plan-check, projects-plan-check, pr-checks/check — all success). Not verified: the plan-check job logs beyond their green status, and store state beyond the policy file — the deploy key's reach over the two agent Guests is cited to ceff046 but not read by me.
repo: olympus/infra-cockpit | PR: #33 | head: 1b50426d15aa299f24a7a90cc7226e53a24cab97 | round: 1/5 | verdict: merge Recommendation: merge ## Spec Spec source: the PR body (it refs `paperclip:THE-63`, which is not resolvable from this forge, so the description itself is the spec). The repo's own procedure for this change — `docs/deploy.md` § The Semaphore projects, *Adding a repository* — is the second half of the spec, and the body quotes it almost verbatim. - **Verified** — the diff is exactly the one line the body claims: `"infra-agents"` appended to `repositories` in `semaphore/projects/variables.tf:8`, and nothing else. - **Verified** — what follows from the line is what the body says. `semaphore/projects/projects.tf` maps `for_each = var.repositories` over project, none key, repository, inventory, environment, deploy template, ephemeral password, user `ci-${replace(each.key, "infra-", "")}` and its Manager membership — for `infra-agents` that is the project, the `deploy` template and the `ci-agents` user the body names, with the short-name rule (`ci-agents`, not `ci-infra-agents`) matching the store path. - **Verified** — "creates … and replaces nothing": `plan / projects-plan-check` on 1b50426 is green, and that judge is red on any destroy or replace (`docs/deploy.md` § Before the merge). - **Verified** — the store side is on `main` as claimed: `olympus/infra-secrets` `bao/policies/ci-agents.hcl` grants the agents login read on `secret/data/ci/agents/semaphore-api` — the exact path the Operator's token act targets — and `ceff046` (*The agents' CI identity, and the runner's reach over their two records*, THE-62, !53) is `infra-secrets`' head commit. - **Verified** — the two Operator acts in the body match `docs/deploy.md` *Adding a repository*: mint the token into `secret/ci/agents/semaphore-api`; read the ids with `mise exec -- make projects-ids` and set `SEMAPHORE_PROJECT_ID` / `SEMAPHORE_TEMPLATE_ID`. - **ADVISORY** (spec) — `semaphore/projects/projects.tf`, resource `semaphoreui_project_template.deploy` (`playbook = "scripts/semaphore-deploy.sh"`): after the merge, the new project's first task runs that script out of `olympus/infra-agents`, and `infra-agents`' `main` carries only `README.md` today. `docs/deploy.md` assigns the script to that repository's own deploy ticket, so nothing is missing from this PR — but the body's "Nothing else changes" doesn't say the new project's first run will fail until the script lands. One sentence in the ticket or the body would spare the Operator the surprise. ## Standards Standards sources: `AGENTS.md`, `docs/deploy.md`, `docs/agents/issue-tracker.md`. Smell baseline applied: no smell applies to a one-line data addition. - **Verified** — `AGENTS.md` § Toolchain: the PR runs `plan.yml` (guest, runner and projects checks, all green on 1b50426) and `pr-checks / check` (green, 38s). No secret anywhere in the diff (`AGENTS.md` § Secrets). - **Verified** — `docs/deploy.md` § The Semaphore projects: *"Adding a repository is one line in `semaphore/projects/variables.tf`"* — this change is exactly that line, and the `ci-agents` naming follows the documented short-name rule. - **ADVISORY** (standards) — ticket-reference convention: `AGENTS.md` § Agent skills → Pull requests and `docs/agents/issue-tracker.md` ask the body to name the task as `CP-<index>` (Vikunja, project 11). The body references `paperclip:THE-63` instead — traceable in the company tracker, but not through the repo's documented resolution path, and no `CP-<index>` is named. Either use the `CP-<index>` form or amend `docs/agents/issue-tracker.md` to name the second tracker; as written, one of the two documents is out of date. ## Summary - Spec: 1 finding (ADVISORY; worst: the new project's first deploy task fails until `infra-agents` gains `scripts/semaphore-deploy.sh`). - Standards: 1 finding (ADVISORY; worst: the body names no `CP-<index>` ticket per `AGENTS.md`). - 0 blockers, 2 advisories → merge. Verified by reading the diff, the consuming Stack (`projects.tf`), the store policy at `infra-secrets` `main`, commit `ceff046`, and all four CI statuses on the head commit (guest-plan-check, runner-guest-plan-check, projects-plan-check, pr-checks/check — all success). Not verified: the plan-check job logs beyond their green status, and store state beyond the policy file — the deploy key's reach over the two agent Guests is cited to `ceff046` but not read by me.
pit merged commit f46a81e167 into main 2026-11-12 08:50:53 +00:00
pit deleted branch hermes/the63-infra-agents 2026-11-12 08:50:53 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
olympus/infra-cockpit!33
No description provided.