Repository navigation
docs(skills): add backward-compatibility-policy skill and update coding rules - #939
Merged
Merged
Conversation
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
September 2, 2026 03:33
Contributor
There was a problem hiding this comment.
Code Review
This pull request establishes a comprehensive backward compatibility policy for the KHI project, updating Go and TypeScript coding rules, general guidelines in GEMINI.md, and adding a detailed SKILL.md guide. The policy clarifies that internal code requires no backward compatibility, and outlines anti-patterns and the workflow for .khi file changes. The review feedback suggests documenting an existing exception for Google Cloud API tasks using coretask.GetTaskResultOptional to support lightweight unit test fixtures.
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.
Summary
When developing or refactoring code in KHI, AI agents frequently over-engineer backward compatibility (preserving deprecated shims, adding variadic arguments solely to avoid updating 0-arg callers, adding defensive nil fallbacks for non-nil fields, etc.).
This PR adds a dedicated skill and updates coding rules:
.agents/skills/backward_compatibility_policy/SKILL.md.khifile serialization is the sole exception where compatibility is relevant, and requires explicit planning/discussion.GEMINI.mdto state the monorepo backward compatibility policy and clarify that updating test call sites and constructors to match new signatures is required.go-coding-rule.mdandts-coding-rule.mdto explicitly prohibit backward-compatibility wrappers and unnecessary parameter fallbacks in Go and TypeScript.