Skip to content

refactor(manifest): share ordered sibling group traversal - #14571

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/share-manifest-sibling-traversal
Nov 25, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/share-manifest-sibling-traversal

Conversation

@vincentkoc

Copy link
Copy Markdown
Collaborator

Summary

Share the position scan and ordered bucket traversal between the single-segment and adjacent-pair rules. Each rule still owns candidate eligibility, its grouping key, and the merge operation.

Verification

Compared applyTemplateRules before and after across all 32 rule subsets and 62 inputs. All 1,984 results matched, including group order, metadata, object sharing and the segment cutoff. Both merge orders with the pending RPC grouping change produced identical file contents and preserved its three RPC keys. The changed file passes the pinned formatter and git diff --check.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

This refactor appears safe to merge.

Summary

Extracts mergeSiblingPositions so the single-segment and adjacent-pair rules share their position scan and ordered bucket traversal.

  • Both sibling rules use one ordered route-group scan.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Single-segment rule] -->|Width 1 and rule callbacks| C[Shared position scan]
  B[Adjacent-pair rule] -->|Width 2 and rule callbacks| C
  C --> D{Candidate has a key?}
  D -->|No| E[Keep original group]
  D -->|Yes| F[Bucket in encounter order]
  F --> G[Run rule-owned merge]
  E --> H[Next position]
  G --> H
Loading

Reviews (1) · Last reviewed commit: "refactor(manifest): share ordered siblin..." · Reviewed by Greptile

@vincentkoc
vincentkoc marked this pull request as ready for review November 25, 2026 16:26
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-25T16:26:41.963486Z
We couldn’t complete this review. Comment @codex review to try again.
7c9094d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@vincentkoc
vincentkoc merged commit 0dd8789 into main Nov 25, 2026
42 of 43 checks passed
@vincentkoc
vincentkoc deleted the refactor/share-manifest-sibling-traversal branch November 25, 2026 16:40
vincentkoc added a commit that referenced this pull request Nov 25, 2026
…-artifact-cancellation-projection

* commit '3d4633176f15f3bd8072751af788bf31c7f2e0d8':
  refactor(views): reuse JSON record and request-line projections (#14582)
  test(cutter): share loopback listener and descriptor fixtures (#14578)
  ci(apple): give the macOS lane room for the discovered macOS-gated tests
  test(native): accept plutil nesting diagnostics on stdout
  fix(native): admit the missing-UUID dyld_info refusal when it exits 0
  refactor(ghidra): share the executable file probe (#14573)
  refactor(artifacts): reuse carrier ranges and Mach-O field decoding (#14574)
  perf(tar): update global PAX map in place after budget accounting (#14580)
  refactor(manifest): share ordered sibling group traversal (#14571)
  test(browser): reuse page and Evidence inspection fixtures (#14581)
  ci(apple): run the macOS lane when a pull request changes a macOS-gated test
  test(cli): use the registered argument schemas directly (#14586)
  test(bun): share the file-handle read observer (#14577)
  test(mcp): share the successful tool assertion (#14576)
  test(uefi): reuse the driver file across firmware fixtures (#14570)
  feat(delivery)!: bound default results by an agent result budget (#14252)
vincentkoc added a commit that referenced this pull request Nov 25, 2026
* commit '3d4633176f15f3bd8072751af788bf31c7f2e0d8':
  refactor(views): reuse JSON record and request-line projections (#14582)
  test(cutter): share loopback listener and descriptor fixtures (#14578)
  ci(apple): give the macOS lane room for the discovered macOS-gated tests
  test(native): accept plutil nesting diagnostics on stdout
  fix(native): admit the missing-UUID dyld_info refusal when it exits 0
  refactor(ghidra): share the executable file probe (#14573)
  refactor(artifacts): reuse carrier ranges and Mach-O field decoding (#14574)
  perf(tar): update global PAX map in place after budget accounting (#14580)
  refactor(manifest): share ordered sibling group traversal (#14571)
  test(browser): reuse page and Evidence inspection fixtures (#14581)
  ci(apple): run the macOS lane when a pull request changes a macOS-gated test
  test(cli): use the registered argument schemas directly (#14586)
  test(bun): share the file-handle read observer (#14577)
  test(mcp): share the successful tool assertion (#14576)
  test(uefi): reuse the driver file across firmware fixtures (#14570)
  feat(delivery)!: bound default results by an agent result budget (#14252)
  ci(apple): discover and run every macOS-gated test on macOS
  test(apple): expect path-selected inspect_artifact in resource-only sessions
  fix(errors)!: keep only changed reader integrity checks retryable
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