Repository navigation
docs: make development and review skills release-aware - #32926
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
This pull request is merged. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Commit: 8a85707abd3ba295ccc199c2454e26e61a26ddb7
P2: Resolve the conflicting normal-test scope in the Claude review entry point
The updated G-RACE-STRESS gate delegates normal test scope to the shared risk rule. For an R1 local sequential change whose affected callers are fully covered by focused tests, that rule permits omitting the owning-package run. But the same Claude self-review skill's §6 still unconditionally requires focused tests and the entire owning package for every ordinary sequential change:
Consequently that same eligible R1 change still requires a full package run through Claude self-review while the shared Codex path permits focused-only evidence, contrary to the PR's stated common scope. Please make the entry points point to one consistent, explicitly agreed rule. Preserve the existing test obligation unless the narrower scope is intentionally authorized; this finding does not imply that any test or assertion was deleted or that a product failure has occurred.
Review scope: read-only commit/design review, including the four entry points, their shared upgrade and validation rules, and the changed Claude references. The reviewed Claude skill tree's relative Markdown targets exist. The same-head Required and documentation whitespace checks passed; product UT/BVT/upgrade CI was skipped for this docs-only change. I did not run the skills, Go tests, database, or upgrade/restore tests.
… rules (#32929) ## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [x] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Related to #32924 ## What this PR does / why we need it: Backport the development and review skills from #32926 to 4.2-dev. Codex and Claude share the release compatibility, validation scope, race, and evidence reuse rules. The fallback comparison base is upstream 4.2-dev. 4.2-dev maintenance favors fixes that preserve the released persistence and protocol contracts. A change to either contract, including an opt-in format, needs a reviewable design. Explain the maintenance need, why the simplest contract-preserving fix falls short, the old and new behavior, and the affected readers, writers or peers. Support the decision with evidence for the applicable compatibility, partial failure and recovery paths. Resolve the upgrade source from the supported 4.2 release line when that boundary is affected. Adapted references to the 4.2-dev tree and retained its build tooling. Validated the four skill entries, 72 local references and the PR template. The diff contains only skill documentation.
## What type of PR is this? - [ ] API-change - [ ] BUG - [ ] Improvement - [x] Documentation - [ ] Feature - [ ] Test and CI - [ ] Code Refactoring ## Which issue(s) this PR fixes: Related to #25392. Follow-up to #32926. ## What this PR does / why we need it: The Claude review entry instructed reviewers to scan the entire diff independently for each lens, even though the shared review guide already defines one change map. Read each changed hunk once, then apply each relevant lens to the affected contract. Use the same map for functional closure, unhappy paths, and any index-plugin checks. Validated all four skill entry points, relative links, and all 21 change-scope tests. Signed-off-by: XuPeng-SH <[email protected]>
What type of PR is this?
Which issue(s) this PR fixes:
Related to #32924
What this PR does / why we need it:
The BIT_COUNT upgrade bug showed that a change to the interpretation of a stored expression ID can break released data even when the encoding is unchanged. Route this class of changes from both
mo-devandmo-self-reviewto their shared upgrade contract.Resolve and pin the applicable published source release only for affected boundaries. A user-specified baseline or project upgrade policy takes precedence. Otherwise, use the latest supported stable release for the target line. This keeps routine changes on the existing workflow and lets the default advance as releases ship.
Preserve existing definitions by default and bind new definitions to the intended semantics using the existing owners. A deliberate change to old behavior uses an explicit migration or rebuild and verifies affected materialized values, dependent indexes, and recovery from partial progress. Remove superseded unreleased compatibility paths in the changed scope, and avoid per-row compatibility work. Use the smallest evidence that proves the affected behavior, including post-upgrade writes or recomputation when they can expose the change. Document affected rollback steps and data-loss limits separately.
Validated both skill entry points and their links to the shared reference. Checked the upstream release lookup and resolved v4.2.8 to its release commit. Walked through persisted expression semantics, same-binary RPC, and a docs-only change against the guidance. This PR changes skill instructions only.
Design and review workflow
Use one risk and evidence map from development through final review. Group mechanical work, reuse valid results, and revisit only affected closures on follow-up. A revisioned issue or PR design section can hold the approved design where it already provides the required technical detail.
Compare a proposed mechanism with a direct change at the current owner. For material complexity, identify the responsibility added or duplicated, the cost or failure mode, and the simpler viable option. Check overfitting with an equivalent real path and a neighboring control. For CI-only selection changes, check the actual selected cases and execution mode with focused workflow evidence. Use product counterexamples for suspected overfit in product behavior. For performance claims, compare equivalent results and completed work across the measured boundary.
The Codex and Claude development and review entry points use the same upgrade contract. A shared risk rule also determines normal owning-package test scope. Focused evidence covers local changes whose affected behavior is bounded. Changes to shared fixtures, test selection, or behavior outside that scope require owning-package evidence. Contract and systemic changes retain their applicable consumer and risk-specific checks. The Codex and Claude review guides and their pipeline and concurrency references use the shared test scope, race protocol, and evidence validity rules. Local test synchronisation can use focused race stress. Production changes to shared state or lifecycle retain owning-package race coverage. After a rebase, reuse evidence when the relevant inputs and execution mode still support the result.
Validated all four skill entry points, shared reference links and CI change classification. The change-scope suite passed all 21 tests, and the complete diff classifies as documentation.