cockpit: Semaphore's repositories include infra-agents (THE-63) #33
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-cockpit!33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/the63-infra-agents"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
semaphore/projects/variables.tfgains"infra-agents"inrepositories. That is the whole diff.The project, its
deploytemplate and itsci-agentsuser 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:ci-agents' password in the Semaphore UI, log in as it, mint one token with no expiry, and put it atsecret/ci/agents/semaphore-api;mise exec -- make projects-idsand setSEMAPHORE_PROJECT_IDandSEMAPHORE_TEMPLATE_IDas theinfra-agentsrepository's Actions Variables.The store's part is on
main:bao/policies/ci-agents.hclbinds theagentsrole toolympus/infra-agents,refs/heads/mainand apushevent (infra-secretsceff046), and the deploy key's reach names the two agent Guests.Refs: paperclip:THE-63
Review started (round 1/5) on
1b50426d15— reading the diff now.repo: olympus/infra-cockpit | PR: #33 | head:
1b50426d15| round: 1/5 | verdict: mergeRecommendation: 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 torepositoriesinsemaphore/projects/variables.tf:8, and nothing else.Verified — what follows from the line is what the body says.
semaphore/projects/projects.tfmapsfor_each = var.repositoriesover project, none key, repository, inventory, environment, deploy template, ephemeral password, userci-${replace(each.key, "infra-", "")}and its Manager membership — forinfra-agentsthat is the project, thedeploytemplate and theci-agentsuser the body names, with the short-name rule (ci-agents, notci-infra-agents) matching the store path.Verified — "creates … and replaces nothing":
plan / projects-plan-checkon1b50426is green, and that judge is red on any destroy or replace (docs/deploy.md§ Before the merge).Verified — the store side is on
mainas claimed:olympus/infra-secretsbao/policies/ci-agents.hclgrants the agents login read onsecret/data/ci/agents/semaphore-api— the exact path the Operator's token act targets — andceff046(The agents' CI identity, and the runner's reach over their two records, THE-62, !53) isinfra-secrets' head commit.Verified — the two Operator acts in the body match
docs/deploy.mdAdding a repository: mint the token intosecret/ci/agents/semaphore-api; read the ids withmise exec -- make projects-idsand setSEMAPHORE_PROJECT_ID/SEMAPHORE_TEMPLATE_ID.ADVISORY (spec) —
semaphore/projects/projects.tf, resourcesemaphoreui_project_template.deploy(playbook = "scripts/semaphore-deploy.sh"): after the merge, the new project's first task runs that script out ofolympus/infra-agents, andinfra-agents'maincarries onlyREADME.mdtoday.docs/deploy.mdassigns 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 runsplan.yml(guest, runner and projects checks, all green on1b50426) andpr-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 insemaphore/projects/variables.tf" — this change is exactly that line, and theci-agentsnaming follows the documented short-name rule.ADVISORY (standards) — ticket-reference convention:
AGENTS.md§ Agent skills → Pull requests anddocs/agents/issue-tracker.mdask the body to name the task asCP-<index>(Vikunja, project 11). The body referencespaperclip:THE-63instead — traceable in the company tracker, but not through the repo's documented resolution path, and noCP-<index>is named. Either use theCP-<index>form or amenddocs/agents/issue-tracker.mdto name the second tracker; as written, one of the two documents is out of date.Summary
infra-agentsgainsscripts/semaphore-deploy.sh).CP-<index>ticket perAGENTS.md).projects.tf), the store policy atinfra-secretsmain, commitceff046, 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 toceff046but not read by me.