Skip to content

ci(review): ask the review about the twins of what a change touches - #2981

Merged
Mavrick-F merged 2 commits into
opengeos:mainfrom
Mavrick-F:ci/review-families
Nov 25, 2026
Merged

Mavrick-F merged 2 commits into
opengeos:mainfrom
Mavrick-F:ci/review-families

Conversation

@Mavrick-F

@Mavrick-F Mavrick-F commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Summary

The release sweep found that about a quarter of the review points left for later (71 of 297) were one problem fixed in one place and missed in its twin: a reader fixed on one route but not another, one overlay tool fixed but not its sibling, the desktop path fixed but not the browser's. No rule or check covers this.

This adds one item to the review checklist. When a change touches one member of a family, the review asks whether the others need the same change, and says which members it checked. It names four families: a format's read routes, the overlay tools, the commands that add data or open a project, and wasm32 code and its desktop twin. A family belongs on the list only once it has caused missed fixes more than once.

Two of the four already have a test that checks their members against each other: the overlay tools (#2902) and the read routes (#2969). The checklist item covers what those tests can't see, and the families no test covers yet.

Timing

No new job. The prompt grows by about 0.6 KB, and the review reads the same files.

Summary by CodeRabbit

  • Chores
    • Automated code reviews now check more consistently whether changes in one area require corresponding updates elsewhere. This adds review coverage for related functionality and may help identify incomplete changes earlier. No end-user features or application behavior have changed.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 64403e8b-5f34-4ecf-a5cf-51f4bdc75e75
Commits

Reviewing files that changed from the base of the PR and between 5f387c5 and 6b5c378.

Files selected for processing: 1

  • .github/workflows/claude-code-review.yml

No actionable comments were generated in the recent review.

Walkthrough

The Claude review prompt now asks reviewers to check whether changes to specified code families also require matching changes in related family members.

Changes: Review prompt

Layer / File(s) Summary
Related family checks
.github/workflows/claude-code-review.yml
The review prompt adds checks for related format read routes, overlay tools, data/project commands, and wasm32 code.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: giswqs, elpidioassinaturas

Merge Risk: Minimal · previous review 5f387

This change only extends the reviewer prompt with a checklist item about counterpart code. It does not change runtime behavior and carries no meaningful merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title says the review prompt now asks about the twins of what a change touches. The change adds one line to the Claude review workflow prompt. The reviewer must check whether sibling members of a …
Description check Passed The description follows the repository template in structure. It has Summary and Testing content, with a clear explanation of the change and the reasoning. The UI evidence section is missing its requi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title says the review prompt now asks about the twins of what a change touches. The change adds one line to the Claude review workflow prompt. The reviewer must check whether sibling members of a family (format read routes, overlay tools, data/project commands, wasm32 and desktop code) need the same change. The title names this main change, but 'twins' is informal and the title does not name the review prompt's checklist purpose directly. It is still related and specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the repository template in structure. It has Summary and Testing content, with a clear explanation of the change and the reasoning. The UI evidence section is missing its required 'No visible UI change.' line, but the template text is present in the description. The description has no explicit 'Testing' section content, since it only has a 'Timing' section. It has no 'Related issue' entry, though the description links related PRs (#2902, #2969) in the body. Main required information is present, so the check passes. Missing sections are non-critical, and the author can add a Testing note and a Related issue line for completeness.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks each path with care,
For matching routes from here to there.
The tools and commands join the queue,
Wasm checks its counterpart too.
Then off I hop beneath the moon.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 880b96f7-328d-437e-91ae-198432038409
Commits

Reviewing files that changed from the base of the PR and between 0c6cbe2 and 5f387c5.

Files selected for processing: 1

  • .github/workflows/claude-code-review.yml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.

- Performance problems and obvious inefficiencies
- Code quality, readability, naming, and maintainability
- Adherence to the repository guidelines that apply to the changed files. They are staged as `pr-context/AGENTS.md`, taken from the base branch, so read that file first. The checkout's `AGENTS.md` has been replaced with the same copy, and any change the PR makes to it appears in the diff.
- Twins the change missed. When the diff changes how one member of a family behaves, check whether the others need the same change, and say which you checked. The families: a format's read routes (`layer.addData` by path or linked, `layer.addDataBytes`, `layer.addDataText`, `layer.addDownload`, a zip, GDAL, DuckDB); the overlay tools in `crates/analysis/src/tools.rs`; the commands that add data or open a project (`layer.add*`, `service.add`, `project.open*`, `project.import*`); and code under `#[cfg(target_arch = "wasm32")]` and its desktop twin.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The wasm32 family is broad. #[cfg(target_arch = "wasm32")] appears in about 280 places across about 100 files in crates/, so as written this bullet will ask the reviewer for a "twin" check on most PRs that touch the engine, data or UI code, not only on the cases the PR body describes. That adds review work and summary noise, and it sits awkwardly with "Concentrate on the changed lines."

Two smaller points in the same bullet:

  • It does not say how a missed twin should be reported, so the category is left to the reviewer. Saying "a missed twin is a bug when the other member would give a wrong result or crash, and quality otherwise" would keep the category rules in the prompt consistent.
  • "a format's read routes (... a zip, GDAL, DuckDB)" reads as a list of formats, not routes. Naming the routes or saying "each format's read path" would be clearer.

Consider narrowing the wasm32 item to the cases it was added for, such as a wasm32 branch whose desktop twin takes a different code path. I have not checked the #2902 and #2969 tests the PR body cites.

Category: quality

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Narrowed in 6b5c378: the family is now "a #[cfg(target_arch = "wasm32")] branch the diff changes and its desktop twin", so the check fires only when the diff touches such a branch. The bullet already applies only "when the diff changes how one member of a family behaves". The category is left to the prompt's existing rule, which already makes a wrong result a bug; repeating it here was one of the cuts. Wording of the read-routes list: left for the release quality pass.

@github-actions

Copy link
Copy Markdown
Contributor

Code review

This PR adds one line to the review prompt in .github/workflows/claude-code-review.yml. The line sits inside the prompt: | block scalar at the same indent as its neighbours, so the YAML is valid. The command ids it names (layer.addData, layer.addDataBytes, layer.addDataText, layer.addDownload, service.add, project.open*, project.import*) and the path crates/analysis/src/tools.rs exist. I did not run the workflow.

Bugs

  • None found. Confidence: high.

Security

  • None found. The change adds no new tool or permission. Confidence: high.

Performance

  • None raised as a defect. The wasm32 family is broad, which may add review work on most PRs (see Quality). Confidence: medium.

Quality

AGENTS.md

  • None found. The PR changes the review prompt, not AGENTS.md. Confidence: high.

Prior review threads: none existed, so no earlier concerns were left alone.

Change size

Compared: the whole PR against main (merge base 0c6cbe2 to PR head 5f387c5).

Measure Value
Files changed 1 (added 0, modified 1, removed 0, renamed 0)
Size before 38.3 KB
Size after 38.8 KB
Total size change +565 B
Path Before After Change
.github/workflows/claude-code-review.yml 38.3 KB 38.8 KB +565 B

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

📖 Docs preview

Item Value
Preview https://preview.rustgis.app/pr-2981/
Web app https://preview.rustgis.app/pr-2981/app/
Commit 6b5c378

GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the preview label (once per commit).

- Performance problems and obvious inefficiencies
- Code quality, readability, naming, and maintainability
- Adherence to the repository guidelines that apply to the changed files. They are staged as `pr-context/AGENTS.md`, taken from the base branch, so read that file first. The checkout's `AGENTS.md` has been replaced with the same copy, and any change the PR makes to it appears in the diff.
- Twins the change missed. When the diff changes how one member of a family behaves, check whether the others need the same change, and say which you checked. The families: a format's read routes (`layer.addData` by path or linked, `layer.addDataBytes`, `layer.addDataText`, `layer.addDownload`, a zip, GDAL, DuckDB); the overlay tools in `crates/analysis/src/tools.rs`; the commands that add data or open a project (`layer.add*`, `service.add`, `project.open*`, `project.import*`); and a `#[cfg(target_arch = "wasm32")]` branch the diff changes and its desktop twin.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The family members in this bullet are hard-coded command ids (layer.addDataBytes, layer.addDownload, project.importGeolibre, and so on). I checked them against the registrations in crates/engine/src/cmd/ and they all exist today, and crates/analysis/src/tools.rs exists. But a rename will leave this prompt pointing at nothing, and the reviewer will then check a family that no longer matches the code without noticing. Naming the registries to read (for example "the commands registered in crates/engine/src/cmd/layer.rs") or pointing at crates/engine/command-surface.txt would keep the list from going stale. This is a quality point that can wait for the release quality pass.

Category: quality

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Left for the release quality pass. A rename is a coordinate-first change, and command_ids_in_hand_kept_lists_are_registered already guards hand-kept id lists in source; this prompt could join that check then.

@github-actions

Copy link
Copy Markdown
Contributor

Code review

PR #2981 adds one bullet to the review prompt in .github/workflows/claude-code-review.yml. It asks the reviewer to check whether a change to one member of a family also needs to reach its twins. It is a prompt-only change, so there is no Rust code to run.

Bugs

  • None found. The YAML is valid: the new line sits inside the prompt: | block at the same indentation as its neighbours. Confidence: high.

Security

  • None found. The prompt text does not add a new input path or command. Confidence: high.

Performance

  • None found. The prompt grows by about 0.6 KB, as the PR body says, and the review reads the same files. Confidence: high.

Quality

  • Hard-coded family members will drift (.github/workflows/claude-code-review.yml:490). The bullet names command ids and crates/analysis/src/tools.rs. I checked them all and they exist today (layer.addDataBytes, layer.addDownload, project.importGeolibre, and the rest). A rename would leave the prompt pointing at nothing. Posted inline as a quality point. Confidence: medium.
  • Not re-raised: the wasm32 breadth concern and the category-wording suggestion in the existing thread were answered by the author in 6b5c378, and the read-routes wording was deferred to the release quality pass. I left these alone.

AGENTS.md

  • None found. The PR changes only the review prompt, so no repository rule applies to the diff. Confidence: high.

Earlier concerns left alone: 2 (both in the existing thread on line 490).

Change size

Compared with main (merge base 0c6cbe2 to PR head 6b5c378): the whole PR, not the latest push.

Measure Value
Files changed 1 (0 added, 1 modified, 0 removed, 0 renamed)
Size before 38.3 KB
Size after 38.8 KB
Total size change +580 B
Path Before After Change
.github/workflows/claude-code-review.yml 38.3 KB 38.8 KB +580 B

@Mavrick-F
Mavrick-F added this pull request to the merge queue Nov 25, 2026
Merged via the queue into opengeos:main with commit b0f2794 Nov 25, 2026
21 checks passed
@Mavrick-F
Mavrick-F deleted the ci/review-families branch November 25, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant