Skip to content

Workflow Completeness: PR-creating prompts omit /kind labels, causing needs-kind on agent PRs #802

@kelos-bot

Description

@kelos-bot

🤖 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:

  1. 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>
    
  2. 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`
    
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions