Conversation
Add an Agent Skill that guides authoring and validating a Karta definition for a new Kubernetes workload type. Bundles the authoring workflow, a technical-guide cheatsheet, a sample index, a troubleshooting catalog, and three eval prompts. Content is grounded in the API types and validator. Signed-off-by: Roee Gil <roee.gil@run.ai>
Replace the prose eval-prompts.md with evals/evals.json in the skill-creator schema (id, prompt, expected_output, expectations) so the add-workload-type skill is consumable by the skill-creator eval and benchmark tooling. Each eval carries verifiable expectation assertions rather than a golden output. Signed-off-by: Roee Gil <roee.gil@run.ai>
Close the gaps surfaced by testing the skill against all committed samples: role-label keys are operator-specific (replica-type vs job-role), disambiguate roles that share a label via key existence, use byExpression when a controller has no phase/conditions, note a single matcher may AND its kinds, and allow intentional additionalChildKinds duplication for RBAC/owner traversal. Signed-off-by: Roee Gil <roee.gil@run.ai>
A component's replicasPath is the count of its own instances, not the pods beneath it. Add guidance (with the LeaderWorkerSet group-vs-size trap and a sibling-consistency self-check) and a value-level eval that asserts extracted scale numbers against a concrete manifest, so this class of valid-but-wrong scale error is catchable. Relates to #186. Signed-off-by: Roee Gil <roee.gil@run.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Skill improvements for
add-workload-type, surfaced by testing it against thebuilt-in catalog:
replicasPathis the count of itsown instances, not the pods beneath it. Grouped/replicated workloads expose two
numbers (how many groups/replicas vs members-per-group); a group-level
component scales on the group count. The LeaderWorkerSet trap
(
group->.spec.replicas, not.spec.leaderWorkerTemplate.size) is spelledout, with a sibling-consistency self-check.
concrete manifest, grounded in the real API, so a valid-but-wrong scale path is
catchable rather than invisible to a match-the-definition comparison.
Stacks on #187.
Related issue(s)
Fixes #194
Checklist
git commit -s)make check) - docs/evals only, no Go impact