Skip to content

policy: allow cargo-allow conformance metadata - #1846

Closed
EffortlessSteven wants to merge 1 commit into
mainfrom
fix/allow-conformance-json
Closed

EffortlessSteven wants to merge 1 commit into
mainfrom
fix/allow-conformance-json

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

What this does

cargo xtask check-file-policy rejected the existing .allow/conformance/legacy-dialect.json fixture on current main, which made the routed Rust, coverage, and test-analytics checks fail before dependent PRs could be evaluated.

Fix: allow the owned cargo-allow conformance JSON metadata surface with explicit ownership, classification, reason, and checker coverage. No file-policy rule is weakened for unrelated JSON files.

Verification

Check Result
arget/debug/xtask.exe check-file-policy Passes on the exact PR worktree.
git diff --check Clean.

Review map

  • policy/non-rust-allowlist.toml: adds the narrow .allow/conformance/*.json metadata allowance tied to cargo-allow audit and the file-policy checker.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 2 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 Plus

Run ID: 6c4e48a8-38e1-4f6c-8dcf-670c1a792d17

📥 Commits

Reviewing files that changed from the base of the PR and between ee6c515 and 49a4883.

📒 Files selected for processing (1)
  • policy/non-rust-allowlist.toml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/allow-conformance-json

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

@github-actions github-actions 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.

Reporter summary

The diff adds a narrowly-scoped, well-formed allow entry in policy/non-rust-allowlist.toml for the owned .allow/conformance/*.json metadata surface, attributed to product-swarm with classification metadata and checker coverage linking both cargo-allow audit and the xtask check-file-policy gate; this directly resolves the cited PR-body failure mode (xtask rejecting the conformance fixture) without weakening rules for unrelated JSON. Most lanes completed but correctness, tests-red-green, source-route, and architecture returned degraded outputs (preserved but not fully reasoned); opposition and refuter returned ok and did not surface blockers, and late cargo-test evidence arrived ok, providing a positive (though modest) corroboration that this policy-only change does not regress test behavior. artifact-verifier failed earlier but its scope is unrelated to TOML policy metadata. Verification question worth confirming: whether the new glob intentionally exposes the entire .allow/conformance/ tree or whether a more specific pattern (e.g. .allow/conformance/legacy-dialect.json) would better limit blast radius; functionally the existing wording matches the PR intent.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm claim that 'cargo xtask check-file-policy' references non-rust-allowlist.toml needs verification; only one hunk, no caller change.
  • Confirm glob .allow/conformance/*.json is broad; PR claims it does not weaken other JSON file-policy rules.
  • Confirm resolve cross-lane conflict before treating tests-red-green as confirmed: tests-red-green reports Allowlist addition has no co-committed test exercising the new .allow/conformance/*.json path under cargo xtask check-file-policy. Red/green correctness relies solely on xtask invocation; no regression test guards aga..., while correctness refutes the same concern.

Refuted

  • No regression test accompanies the new allowlist entry, so the change is unverifiable.; refuted because: Diff class is policy/configuration, not Rust behavior. tests-red-green lane scope is changed-behavior proof; policy allowlist changes are validated by the file-policy checker itself, not unit tests. PR body supplies xtask invocation result.
  • This allowance weakens the file-policy rule for unrelated JSON files.; refuted because: Diff shows only an additive [[allow]] with a single-conformance-dir glob; no existing rule is modified and the glob cannot match JSON outside .allow/conformance/.

Evidence gaps

  • artifact-verifier exit 2 is not a correctness regression of the allowlist rule itself; needs separate triage to determine scope.
  • PR body claims cargo xtask check-file-policy passes on exact PR worktree; verification table provided but no CI receipt captured. artifact-verifier failed exit 2 — receipt gap.
  • cargo-allow receipt and xtask receipt are independent; PR claims both covered, but no cargo-allow sensor ran (skipped).

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Superseded by merged PR #1848 on current main. The live branch now contains the .allow/conformance/*.json policy allowance in policy/non-rust-allowlist.toml:303, so this duplicate unblock PR has no remaining review-visible delta.

EffortlessSteven added a commit that referenced this pull request Jul 18, 2026
…isory corpus entry (#1729)

The evidence-promotion-honesty gate iterates its corpus language-agnostically,
so the tier-`pure` `source_report` Perl charter case
(`perl_preview_card_advisory_no_repair_packet`) is already enforced on every
default `check-evidence-promotion-honesty` run. This adds the proof #1729 asked
for, with no production behavior change:

- `evidence_promotion_honesty_catches_dishonest_perl_advisory_rebless`: a
  red/green witness — an honest advisory report stays clean, a dishonest
  re-bless to `exposed` trips the `must_not_promote` assertion.
- `perl_advisory_charter_case_stays_enforced_in_live_corpus`: guards the real
  corpus so a future silent demotion/removal of the Perl entry is caught.
- Both registered under RIPR-SPEC-0108 in the traceability map.

Verified locally (both tests + real gate green, fmt/clippy/static-language
clean). Adversarial review verdict: solid. Required "Ripr Rust Small" CI lane is
red on pre-existing main breakage unrelated to this diff (#1836's unlisted
.allow/conformance/legacy-dialect.json fails check-file-policy; fix in flight in
PR #1846).

Closes #1729
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