Skip to content

refactor(views): share bounded parent and report limitations - #14902

Merged
morluto merged 1 commit into
mainfrom
refactor-analysis-view-limitations
Nov 27, 2026
Merged

morluto merged 1 commit into
mainfrom
refactor-analysis-view-limitations

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Forty-one report views now use one helper to include limitations from their parent Evidence. The change removes 132 production lines net. It follows the view refactors in #14877 and #14878.

Problem and expected behavior

Each caller supplied the same message field and parent Evidence ID. Fourteen callers use only parent limitations, twenty-five also include report limitations, and two give selected warnings priority. Omission notices must identify the same parent and count the same omitted messages.

Change and scope

Add boundedViewLimitations beside the existing message-budget implementation. The helper accepts optional report limitations and priority messages. Each view continues to choose its own sources and warnings. The existing implementation owns sorting, deduplication, and byte accounting.

Contract and verification

Compared the syntax trees of all 41 callers and checked their exact message arrays against the previous implementations. All 6,642 differential cases matched, including 3,624 omission notices. The cases cover empty lists, duplicate and Unicode messages, messages near and above the byte limit, and required warnings. Scoped formatting and git diff --check passed. Hosted CI passed on e3ccf2c4f. All 262 selected tests passed across 19 files.

Author readiness

Human owner: @vincentkoc

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Author checklist (completed by the PR author before requesting review)

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.
  • I ran every test, build, or measurement needed to validate this change, reported a browser, GPU, or environment gap only when that runtime or hardware is unavailable, and reported the checks I ran and their results without presenting inferred correctness or speedups as measured.
  • Comments explain constraints or non-obvious decisions; task history and conversations stay out of code and docs.
  • Documentation is concise and factual, without punchy slogans or promotional language.
  • This change fixes the root cause and follows the engineering rules in AGENTS.md.
  • Formatted input is interpreted once at the owning boundary, and consumers use the owner's parsed facts. See Interpret boundary facts once.
  • Combined failures preserve partial observations, remaining resources, and cleanup facts. See Own the lifecycle.
  • A hardcoded limit is an REA_ runtime setting with a default, floor, and maximum, unless a fixed ceiling has a stated reason. See Adding a runtime setting.

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The refactor appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The refactor appears safe to merge; no actionable issues were found.

Summary

Adds boundedViewLimitations and replaces repeated calls across 41 report views.

  • Analysis views share one helper for assembling limitation messages.

Reviews (2) · Last reviewed commit: "refactor(views): share bounded parent an..." · Reviewed by Greptile

@morluto
morluto marked this pull request as ready for review November 27, 2026 15:55
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T15:56:56.621588Z e3ccf2c 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.

@morluto
morluto merged commit 2874a6e into main Nov 27, 2026
42 checks passed
@morluto
morluto deleted the refactor-analysis-view-limitations branch November 27, 2026 15:55
vincentkoc added a commit that referenced this pull request Nov 27, 2026
…pgp-633-20261127

* commit '3097263763611eb0c32c502d5a222060cf02f468':
  fix(cli): describe universal Mach-O slice selection without a single-dash flag (#14912)
  fix(iso9660): read Joliet trees whose .. records name their own directory (#14817)
  feat(gpu)!: add per-call object, work, report, metadata, structure, and parser budgets to inspect_gpu_code_objects (#14882)
  fix(macho)!: select arm64e.x1 slices of universal Mach-O files by exact subtype (#14881)
  refactor(views): share bounded parent and report limitations (#14902)
  refactor(desktop): share XML parent pointers in task drafts (#14905)
  feat(ghidra): define function-pointer members and typedefs (#14889)
  refactor(setup): share publication destination checks (#14904)
  perf(ci): skip unused test runtime uploads (#14903)
  fix(nuget): preserve explicitly spaced publisher metadata (#14906)
  fix(artifacts): keep uImage coverage unknown when bytes follow the declared payload (#14896)
  fix(artifacts): report incomplete Android sparse coverage (#14883)
  fix(tar): require both end-of-archive blocks for complete coverage (#14884)
  refactor(views): centralize indexed row paging (#14878)
  refactor(views): reuse optional filters in report projections (#14877)
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.

2 participants