Skip to content

Add testing conventions, parallel paths, and fix agent prompt bugs#786

Open
kelos-bot[bot] wants to merge 1 commit intomainfrom
kelos-config-update-latest
Open

Add testing conventions, parallel paths, and fix agent prompt bugs#786
kelos-bot[bot] wants to merge 1 commit intomainfrom
kelos-config-update-latest

Conversation

@kelos-bot
Copy link
Copy Markdown

@kelos-bot kelos-bot bot commented Mar 24, 2026

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Updates agent configuration based on review feedback from recent PRs:

  1. New convention: Consistent parallel implementation paths — When the same feature is implemented in multiple code paths (e.g., polling source and webhook handler), keep the logic, data structures, and field checks consistent. Added to AGENTS.md, agentconfig.yaml, and kelos-workers.yaml.

  2. New convention: Test concurrency without time.Sleep — Use deterministic synchronization (channels, sync.WaitGroup, polling with timeout) instead of fixed sleeps. Added to AGENTS.md, agentconfig.yaml, and kelos-workers.yaml.

  3. New convention: Defer cleanup of global state overrides in tests — When overriding global state (os.Stdin, env vars), immediately defer the restoration. Added to AGENTS.md, agentconfig.yaml, and kelos-workers.yaml.

  4. Reviewer agent checklist updates — Added parallel paths check and testing convention checks to the reviewer agent's review checklist so these patterns are caught in future reviews.

    • Evidence: Same as items 1-3 above.
  5. Fix gh pr edit {{.Number}} bug in kelos-workers prompt — In the workers TaskSpawner context, {{.Number}} is the issue number, not the PR number. Changed to use gh pr edit without a number (defaults to current branch's PR).

  6. Remove redundant git checkout from kelos-squash-commits prompt — Kelos already checks out the branch automatically via branch: "{{.Branch}}" in the task template.

Which issue(s) this PR is related to:

N/A

Special notes for your reviewer:

All changes are backed by specific PR review findings. No speculative rules added.

Does this PR introduce a user-facing change?

NONE

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

@kelos-bot kelos-bot bot changed the title Add pre-push verification and cross-surface update conventions Add deploy-dev sync, controller migration, and release note conventions Mar 28, 2026
kelos-bot bot pushed a commit that referenced this pull request Mar 29, 2026
Add three new agent conventions from recent PR review feedback:

1. Per-TaskSpawner configuration should be CRD fields, not controller
   flags (PR #838 - gjkim42 review)
2. CRD API backward compatibility - never rename JSON field tags
   (PR #838 - P1 review finding)
3. Gate optional CRDs behind Helm values flags (PR #821 - PodMonitoring
   broke installs on clusters without monitoring.googleapis.com)

Also includes previously proposed conventions from PR #786:
- Consistent guidance across surfaces
- Provider-agnostic API design
- Idiomatic Helm values
- Deploy-dev workflow sync
- Controller-driven migration
- Release note user action requirements

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kelos-bot kelos-bot bot force-pushed the kelos-config-update-latest branch from bcdeef3 to 7ade17e Compare March 29, 2026 18:06
@kelos-bot kelos-bot bot changed the title Add deploy-dev sync, controller migration, and release note conventions Add CRD design, API compatibility, and Helm gating conventions Mar 29, 2026
@gjkim42
Copy link
Copy Markdown
Collaborator

gjkim42 commented Mar 30, 2026

/kelos pick-up
rebase on origin/main

@kelos-bot
Copy link
Copy Markdown
Author

kelos-bot bot commented Mar 30, 2026

🤖 Kelos Task Status

Task kelos-pr-responder-786 has succeeded. ✅

@kelos-bot kelos-bot bot added kind/cleanup and removed needs-kind Indicates an issue or PR lacks a kind/* label labels Mar 30, 2026
@kelos-bot
Copy link
Copy Markdown
Author

kelos-bot bot commented Mar 30, 2026

🤖 Kelos Agent @gjkim42

/kelos needs-input

Rebased on origin/main (was already up to date). Added kind/cleanup label to fix check-pr-labels CI check. Updated PR body formatting.

The only failing CI check is comment-label — this is a repo-level permissions issue (kelos-bot[bot] lacks write access), not related to this PR. All core checks (build, test, verify, e2e, integration) passed on the current commit.

Ready for re-review.

@kelos-bot kelos-bot bot force-pushed the kelos-config-update-latest branch from 7ade17e to 782ce1c Compare March 30, 2026 18:13
@kelos-bot kelos-bot bot changed the title Add CRD design, API compatibility, and Helm gating conventions Add Helm CRD escaping, Docker pinning, and Go safety conventions Mar 30, 2026
@kelos-bot kelos-bot bot changed the title Add Helm CRD escaping, Docker pinning, and Go safety conventions Add test synchronization, RBAC, and Go safety conventions Apr 1, 2026
@kelos-bot kelos-bot bot changed the title Add test synchronization, RBAC, and Go safety conventions Sync worker agent conventions and broaden K8s comparison rule Apr 2, 2026
@kelos-bot kelos-bot bot force-pushed the kelos-config-update-latest branch from 0871329 to 6379545 Compare April 3, 2026 18:15
@kelos-bot kelos-bot bot changed the title Sync worker agent conventions and broaden K8s comparison rule Add new agent conventions from PR review feedback and sync worker agent Apr 3, 2026
@kelos-bot kelos-bot bot changed the title Add new agent conventions from PR review feedback and sync worker agent Propagate conventions to all agents and add new rules from PR reviews Apr 4, 2026
@kelos-bot kelos-bot bot force-pushed the kelos-config-update-latest branch from 6f6241c to 41ed5c4 Compare April 7, 2026 18:06
@kelos-bot kelos-bot bot changed the title Propagate conventions to all agents and add new rules from PR reviews Add consistent parallel paths convention and fix workers prompt bug Apr 7, 2026
- Add parallel implementation paths convention to AGENTS.md, agentconfig,
  and workers agent config
- Add testing conventions: avoid time.Sleep in concurrency tests, defer
  cleanup of global state overrides
- Add parallel paths and testing checks to reviewer agent checklist
- Fix gh pr edit using issue number instead of defaulting to current branch
  in workers prompt
- Remove redundant git checkout from squash-commits prompt (Kelos already
  checks out the branch)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kelos-bot kelos-bot bot force-pushed the kelos-config-update-latest branch from 41ed5c4 to 5f6baa8 Compare April 8, 2026 18:08
@kelos-bot kelos-bot bot changed the title Add consistent parallel paths convention and fix workers prompt bug Add testing conventions, parallel paths, and fix agent prompt bugs Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant