Skip to content

docs(repo-fleet-hygiene): replace ghost MERGED_PR_* constants in security-review - #2750

Merged
kyle-sexton merged 2 commits into
mainfrom
cursor/2709-fleet-docs-8f91
Aug 15, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
cursor/2709-fleet-docs-8f91

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #2709

Summary

security-review.md still named REST-era MERGED_PR_BATCH_LIMIT / MERGED_PR_HEAD_LIMIT constants that died with the #2604 GraphQL migration, so a security auditor could not reconcile the review against the collector. SKILL.md also restated the alias-page size as a bare 100 instead of the owning constant.

Fix

Verification

  • git grep -n 'MERGED_PR_BATCH_LIMIT\|MERGED_PR_HEAD_LIMIT' -- plugins/repo-fleet-hygiene returns no matches.
  • Every MERGED_PR_* name cited in security-review.md (MERGED_PR_GRAPHQL_ALIAS_PAGE, MERGED_PR_GRAPHQL_JQ) exists in audit-fleet.sh.
  • SKILL.md names MERGED_PR_GRAPHQL_ALIAS_PAGE rather than a bare 100 for the alias-page size; GitHub upstream ceilings remain literals.

Related

Refs #2604

…rity-review

Mark the 2026-07-31 REST batch/head-limit re-check as historical and
superseded by the 2026-08-14 GraphQL migration. Cite the live collector
constants MERGED_PR_GRAPHQL_ALIAS_PAGE and MERGED_PR_GRAPHQL_JQ, and name
MERGED_PR_GRAPHQL_ALIAS_PAGE in SKILL.md instead of a bare 100.

Co-authored-by: Kyle Sexton <[email protected]>
@cursor

cursor Bot commented Aug 15, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@claude

claude Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 36s —— View job


Claude code review

  • Gather context (PR diff, repo guidelines)
  • Apply skip gate (open/draft/trivial/already-reviewed checks)
  • Review changed files against code-review lane criteria
  • Post findings (inline + summary)

Scope: docs-only change in repo-fleet-hygiene — two files, SKILL.md and reference/security-review.md. No script/behavior change, so this stays entirely in the code-review lane (nothing security-relevant to defer).

Verification performed:

  • git grep -n 'MERGED_PR_BATCH_LIMIT\|MERGED_PR_HEAD_LIMIT' across the whole repo → no matches; the ghost constants are fully retired from docs.
  • Both constants now cited in prose (MERGED_PR_GRAPHQL_ALIAS_PAGE, MERGED_PR_GRAPHQL_JQ) actually exist in audit-fleet.sh (MERGED_PR_GRAPHQL_ALIAS_PAGE=100, line 275) and line 279 (MERGED_PR_GRAPHQL_JQ), and are actually used at the call sites (lines 2163, 2174) — the doc now points at names that really back the described behavior.
  • The rewritten 2026-07-31 (#1795) paragraph reads as explicitly historical and correctly points forward to the superseding 2026-08-14 entry, which is the entry that now carries the live constant names — no dangling forward/back references.
  • SKILL.md §3 "Merged branch" now names MERGED_PR_GRAPHQL_ALIAS_PAGE instead of the bare 100, consistent with the script.
  • Checked for other stale copies of the old names or the value ⁠— none found outside this diff.

Note (non-blocking, out of scope for this PR): reference/security-review.md line 63 (untouched by this diff) still says ≤100 aliases / ≤100 nodes per page as a bare literal rather than citing MERGED_PR_GRAPHQL_ALIAS_PAGE, which is the same kind of drift this PR is fixing elsewhere in the file. Pre-existing/untouched, so not flagged as a finding here — worth a follow-up if the goal is to fully eliminate bare-literal restatements of that constant.

No correctness or maintainability issues found on the changed lines. This is a well-scoped, verifiable doc-accuracy fix — approving from a code-review-lane standpoint.

@claude

claude Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 39s —— View job


Security review (/review:security-review)

  • Gather context (read PR diff, changed files)
  • Run /review:security-review skip-gate + criteria
  • Post findings

Skip gate hit: no security-relevant surface.

This PR touches only two documentation files:

The diff (git diff origin/main...HEAD) is prose-only: it replaces stale MERGED_PR_BATCH_LIMIT / MERGED_PR_HEAD_LIMIT constant references with the live MERGED_PR_GRAPHQL_ALIAS_PAGE / MERGED_PR_GRAPHQL_JQ names, reframes the 2026-07-31 #1795 note as historical, and swaps a bare 100 for the constant name in SKILL.md. No script, workflow, or config file is touched — audit-fleet.sh and all .github/workflows/* are unchanged.

No logic, trust-boundary, authorization, injection, secret-handling, or GitHub Actions surface is introduced or modified. This is a documentation-accuracy fix with no executable behavior change, per the PR description and confirmed by the diff itself. Per the skip gate, no findings to report.

@github-actions

Copy link
Copy Markdown
Contributor

Last security-reviewed head: fe5ce734a1b23fc882f2754324b53daf8119542c. On the next push, the relevance gate compares only the commits since this SHA; delete this comment to force a full re-review.

@github-actions

github-actions Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Claude has reviewed this PR 2 times. The lane skips further automatic reviews after 5; deleting this comment resets the count.

… fix

Changelog parity requires a new manifest version whenever shipped plugin
files change under a published number.

Co-authored-by: Kyle Sexton <[email protected]>
@claude

claude Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @cursor[bot]'s task in 1m 45s —— View job


Claude code review (/review:code-review)

  • Gather context (PR diff via gh pr diff, repo/plugin guidelines)
  • Apply skip gate (open/draft/trivial/already-reviewed checks)
  • Review changed files against code-review lane criteria
  • Post findings

Scope: This re-run covers the full current diff (aca5229), including the version-bump commit (fe5ce73 → aca5229) added since the prior review round on this PR. That commit only touches plugin.json (0.22.2 → 0.22.3) and adds the matching CHANGELOG.md entry — the two doc files (SKILL.md, reference/security-review.md) are unchanged since the last review and were already covered.

Verification performed on the new commit:

  • plugin.json version bump (0.22.2 → 0.22.3) matches the new ## [0.22.3] CHANGELOG.md header — consistent with this plugin's existing pattern of a patch bump per fix entry (0.22.1, 0.22.2 follow the same shape).
  • The new changelog entry's constant names (MERGED_PR_BATCH_LIMIT, MERGED_PR_HEAD_LIMIT, MERGED_PR_GRAPHQL_ALIAS_PAGE, MERGED_PR_GRAPHQL_JQ) and issue reference (#2709) match the PR's actual fix.
  • Re-confirmed the underlying doc fix independently: MERGED_PR_GRAPHQL_ALIAS_PAGE and MERGED_PR_GRAPHQL_JQ are real, live constants in audit-fleet.sh (L275, L279), used at the call sites (L2163, L2174); repo-wide grep confirms MERGED_PR_BATCH_LIMIT/MERGED_PR_HEAD_LIMIT no longer appear anywhere.
  • The rewritten 2026-07-31 (repo-fleet-hygiene:audit PR-list batch window caps merged-PR evidence at 200/repo and never discloses the truncation #1795) paragraph in security-review.md reads as unambiguously historical and correctly forward-references the superseding 2026-08-14 entry, which now carries the live constant names — no dangling references either direction.
  • SKILL.md §3 "Merged branch" now names MERGED_PR_GRAPHQL_ALIAS_PAGE rather than restating the bare 100, matching the script's actual constant.

No correctness or maintainability issues found. This is a well-scoped, verifiable doc-accuracy fix — no findings to report on the changed lines. (Prior review rounds on this PR flagged one pre-existing, out-of-scope note: reference/security-review.md line 63 still states ≤100 aliases / ≤100 nodes per page as a bare literal rather than citing MERGED_PR_GRAPHQL_ALIAS_PAGE — untouched by any commit in this PR, so not a finding here, but worth a follow-up if the goal is to eliminate all bare-literal restatements of that constant.)
· branch cursor/2709-fleet-docs-8f91

@kyle-sexton
kyle-sexton merged commit e44b175 into main Aug 15, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the cursor/2709-fleet-docs-8f91 branch August 15, 2026 20:11
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.

docs(repo-fleet-hygiene): security-review.md names two constants that do not exist

2 participants