Skip to content

feat: implement issue #797 — Story: STANDARDIZE — .gitignore secrets baseline → standalone standard + marker-wrapped block - #802

Merged
don-petry merged 2 commits into
mainfrom
dev-lead/issue-797-20260719-1924
Jul 19, 2026
Merged

feat: implement issue #797 — Story: STANDARDIZE — .gitignore secrets baseline → standalone standard + marker-wrapped block#802
don-petry merged 2 commits into
mainfrom
dev-lead/issue-797-20260719-1924

Conversation

@don-petry

@don-petry don-petry commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Closes #797

Implemented by dev-lead agent. Please review.

Summary by CodeRabbit

  • Documentation
    • Added a standardized two-layer .gitignore model with managed baseline markers and repository-specific extension guidance.
    • Documented rules for preserving required ignore patterns, handling overrides, and auditing compliance.
    • Updated push-protection guidance to reference the new .gitignore standard.

…baseline → standalone standard + marker-wrapped block
@don-petry
don-petry requested a review from a team as a code owner July 19, 2026 19:30
Copilot AI review requested due to automatic review settings July 19, 2026 19:30
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@don-petry, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 53 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4b939649-81dc-47d8-b983-bf9b3ef7f52a

📥 Commits

Reviewing files that changed from the base of the PR and between b5ae7e1 and 75b8f7a.

📒 Files selected for processing (1)
  • standards/gitignore-standard.md
📝 Walkthrough

Walkthrough

Changes

.gitignore baseline standardization

Layer / File(s) Summary
Baseline marker boundaries
.gitignore
Adds managed BEGIN/END markers and an L2 ecosystem/OS extension area to the root ignore file.
L1/L2 standard and compliance rules
standards/gitignore-standard.md
Defines the required secrets baseline, repository extensions, marker detection, negation rules, compliance checks, and adoption procedure.
Push-protection standard cross-reference
standards/push-protection.md
Replaces duplicated baseline guidance with references to the standalone gitignore standard.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the .gitignore baseline standardization and marker wrapping in this PR.
Linked Issues check ✅ Passed The changes add the new standard, wrap the baseline with markers, and repoint push-protection as required by #797.
Out of Scope Changes check ✅ Passed The changes stay focused on the .gitignore standard, marker block, and documentation pointer with no unrelated scope visible.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev-lead/issue-797-20260719-1924

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

Comment @coderabbitai help to get the list of available commands.

@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — waiting on PR blockers (intent: review-changes)

PR: #802
No changes were committed, but the PR still has blocking checks or reviews (failing or cancelled checks, or changes-requested reviews). The retry cron will re-attempt automatically. Next attempt after: 2026-07-19T20:01:38Z

@don-petry

Copy link
Copy Markdown
Contributor Author

Note

@don-petry I reviewed this PR and no code changes were needed, but it still has blocking checks or reviews (failing or cancelled checks, or changes-requested reviews), so I cannot mark it done yet. I'll re-check automatically.
Next attempt after: 2026-07-19T20:01:38Z

@don-petry
don-petry enabled auto-merge (squash) July 19, 2026 19:31

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request introduces a dedicated .gitignore standard (gitignore-standard.md) that codifies the two-layer model consisting of an org-managed secrets baseline (L1) and per-repository extensions (L2). It updates push-protection.md to reference this new standard and adds the corresponding managed-block markers to the root .gitignore. The review feedback suggests minor documentation improvements to accurately reflect that the L1 baseline covers standard agent worktrees and CI tool artifacts in addition to secrets.

Comment thread standards/gitignore-standard.md Outdated
Comment thread standards/gitignore-standard.md Outdated
@don-petry
don-petry disabled auto-merge July 19, 2026 19:33

Copilot AI left a comment

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.

Pull request overview

Promotes the org-wide .gitignore secrets baseline into a standalone standard and makes the managed L1 block mechanically identifiable via canonical BEGIN/END markers, so compliance tooling and drift detection can reliably target the baseline.

Changes:

  • Added a new standards/gitignore-standard.md defining the L1/L2 model, managed-block markers, and negation discipline.
  • Updated standards/push-protection.md to point “Required gitignore entries” at the new standard (removing duplicated rule text).
  • Wrapped the root /.gitignore L1 baseline with canonical BEGIN/END markers and added a short L2 guidance footer below the END marker.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
standards/push-protection.md Repoints the “Required gitignore entries” section to the new standalone .gitignore standard and links it under “Related Standards”.
standards/gitignore-standard.md New standard document describing the baseline model, markers, negation rules, and compliance check.
.gitignore Adds canonical BEGIN/END markers around the managed baseline and appends L2 guidance below the END marker.

Comment thread standards/gitignore-standard.md Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@standards/push-protection.md`:
- Around line 319-322: Restore the “Required gitignore entries” heading above
the onboarding cross-reference so the existing `#required-gitignore-entries` link
remains valid, without duplicating the rules already defined in
gitignore-standard.md; alternatively, update that onboarding link to target
gitignore-standard.md directly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: b7b42ced-7b84-4f6e-9a9a-2d1a29e54ec0

📥 Commits

Reviewing files that changed from the base of the PR and between 1a338e8 and b5ae7e1.

📒 Files selected for processing (3)
  • .gitignore
  • standards/gitignore-standard.md
  • standards/push-protection.md

Comment thread standards/push-protection.md
@don-petry

Copy link
Copy Markdown
Contributor Author

@coderabbitai resolve

@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — fix-reviews (applied)

Changes committed and pushed.

@don-petry
don-petry enabled auto-merge (squash) July 19, 2026 19:37
@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown
✅ Action performed

Comments resolved and changes approved.

@sonarqubecloud

Copy link
Copy Markdown

@don-petry
don-petry disabled auto-merge July 19, 2026 19:37
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — waiting on PR blockers (intent: fix-reviews)

PR: #802
No changes were committed, but the PR still has blocking checks or reviews (failing or cancelled checks, or changes-requested reviews). The retry cron will re-attempt automatically. Next attempt after: 2026-07-19T20:10:53Z

@don-petry
don-petry enabled auto-merge (squash) July 19, 2026 19:40

@donpetry-bot donpetry-bot left a comment

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.

Automated review — APPROVED ✓

Risk: LOW
Reviewed commit: 75b8f7a1e73f890208d83e5c912781aa3221eed5
Review mode: triage-approved (single reviewer)

Summary

Promotes the org .gitignore secrets baseline into a standalone standard (standards/gitignore-standard.md), wraps the L1 block in /.gitignore with canonical BEGIN/END markers (comment-only lines — no ignore pattern changed), and repoints push-protection.md to the new standard. Confirms the triage low-risk assessment.

Linked issue analysis

Closes #797. All three deliverables are met: (1) gitignore-standard.md exists with the L1/L2 two-layer model and the negation-discipline rules preserved; (2) the L1 block in /.gitignore is wrapped in the BEGIN/END markers with byte-content otherwise unchanged (all added lines are comments); (3) push-protection.md § 'Required gitignore entries' now points to the new standard without duplicating rule text, and the heading (anchor target) is retained. Verified against the head repo that the documented enforcement chain is accurate: compliance-audit.sh sources scripts/lib/push-protection.sh and calls pp_check_gitignore_secrets_block via pp_run_all_checks, and the documented anchors (.env, *.pem, *.key) match the library. Note: the issue named the check 'check_gitignore_baseline', but the doc correctly references the real function name.

Findings

No blocking findings. All 4 review threads (gemini-code-assist ×2, copilot ×1, coderabbitai ×1) are resolved; CodeRabbit's earlier changes-requested review was superseded by its approval after the fix commit 75b8f7a. The 'secrets-only' wording flagged by reviewers was corrected to acknowledge agent/CI paths. The run_secret_scanning MCP tool was not available in this environment; the gitleaks CI secret scan passed. The .gitignore diff adds only comment lines, so no secrets-protection behavior changes.

CI status

All checks green: Lint, ShellCheck, CodeQL, SonarCloud, agent-shield, Agent Security Scan, Secret scan (gitleaks), npm audit all SUCCESS; ecosystem audits skipped (not applicable). Cancelled dev-lead dispatch/ci-relay entries are superseded runs — the final dev-lead dispatch succeeded and ci-relay was intentionally skipped via [skip ci-relay].


Reviewed automatically by the PR-review agent (single-reviewer mode: fable 5). Reply if you need a human review.

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.

Story: STANDARDIZE — .gitignore secrets baseline → standalone standard + marker-wrapped block

3 participants