🤖 Kelos Self-Update Agent @gjkim42
Problem
PR-creating TaskSpawner prompts explicitly enumerate only generated-by-kelos and ok-to-test labels when instructing agents to create or edit PRs. This omits the /kind label, causing agent PRs to be tagged needs-kind by triage. The explicit label lists in prompts effectively override the general convention in CLAUDE.md.
Evidence
Prompts that omit /kind labels:
kelos-workers.yaml step 5b: gh pr create --label generated-by-kelos --label ok-to-test — no /kind label
kelos-workers.yaml steps 7a/6b: "Ensure the PR has labels 'generated-by-kelos' and 'ok-to-test'" — no /kind
kelos-pr-responder.yaml step 7: "Ensure the PR has labels 'generated-by-kelos' and 'ok-to-test'" — no /kind
kelos-config-update.yaml: "create a PR with labels generated-by-kelos and ok-to-test" — no /kind
Prompt that correctly includes /kind:
kelos-image-update.yaml: --label generated-by-kelos --label ok-to-test --label kind/feature ✅
Affected open PRs (all have needs-kind):
PRs from image-update correctly have kind/feature:
Root Cause
The CLAUDE.md Pull Requests section says: "Choose exactly one /kind label from: bug, cleanup, docs, feature." However, the prompt templates explicitly enumerate incomplete label lists, which the agent follows literally instead of supplementing with the CLAUDE.md convention.
This is distinct from #776 (which proposes adding PR conventions to AgentConfigs). Even if #776 is fixed, the explicit label lists in prompts would likely still override the general convention. Both the AgentConfig and the prompt need to be aligned.
Proposed Fix
Update each PR-creating prompt to include the appropriate /kind label:
-
kelos-workers.yaml: Add guidance to include the appropriate /kind label based on the issue's kind label. If the issue has kind/bug, use --label kind/bug, etc. Example:
gh pr create --label generated-by-kelos --label ok-to-test --label <kind-label-from-issue>
-
kelos-config-update.yaml: Per CLAUDE.md, "PRs that only modify files under self-development/ are internal agent improvements — use /kind cleanup". Add --label kind/cleanup:
create a PR with labels `generated-by-kelos`, `ok-to-test`, and `kind/cleanup`
-
kelos-pr-responder.yaml: Add guidance to ensure the PR has a /kind label. Since the PR already exists, check if one is present and add it if missing based on the linked issue's kind.
Related Issues
🤖 Kelos Self-Update Agent @gjkim42
Problem
PR-creating TaskSpawner prompts explicitly enumerate only
generated-by-kelosandok-to-testlabels when instructing agents to create or edit PRs. This omits the/kindlabel, causing agent PRs to be taggedneeds-kindby triage. The explicit label lists in prompts effectively override the general convention inCLAUDE.md.Evidence
Prompts that omit
/kindlabels:kelos-workers.yamlstep 5b:gh pr create --label generated-by-kelos --label ok-to-test— no/kindlabelkelos-workers.yamlsteps 7a/6b: "Ensure the PR has labels 'generated-by-kelos' and 'ok-to-test'" — no/kindkelos-pr-responder.yamlstep 7: "Ensure the PR has labels 'generated-by-kelos' and 'ok-to-test'" — no/kindkelos-config-update.yaml: "create a PR with labelsgenerated-by-kelosandok-to-test" — no/kindPrompt that correctly includes
/kind:kelos-image-update.yaml:--label generated-by-kelos --label ok-to-test --label kind/feature✅Affected open PRs (all have
needs-kind):PRs from image-update correctly have
kind/feature:kind/featurelabel ✅Root Cause
The
CLAUDE.mdPull Requests section says: "Choose exactly one/kindlabel from:bug,cleanup,docs,feature." However, the prompt templates explicitly enumerate incomplete label lists, which the agent follows literally instead of supplementing with the CLAUDE.md convention.This is distinct from #776 (which proposes adding PR conventions to AgentConfigs). Even if #776 is fixed, the explicit label lists in prompts would likely still override the general convention. Both the AgentConfig and the prompt need to be aligned.
Proposed Fix
Update each PR-creating prompt to include the appropriate
/kindlabel:kelos-workers.yaml: Add guidance to include the appropriate/kindlabel based on the issue's kind label. If the issue haskind/bug, use--label kind/bug, etc. Example:kelos-config-update.yaml: Per CLAUDE.md, "PRs that only modify files underself-development/are internal agent improvements — use/kind cleanup". Add--label kind/cleanup:kelos-pr-responder.yaml: Add guidance to ensure the PR has a/kindlabel. Since the PR already exists, check if one is present and add it if missing based on the linked issue's kind.Related Issues