Skip to content

[ci] Audit live CI inputs against policy - #3578

Open
joshlf wants to merge 1 commit into
Gt4itljw3xh6tci2mjqj4z245i6pwle2ifrom
Gocqawbn3p3zj7xyfo7etk6vo4633r3tn
Open

[ci] Audit live CI inputs against policy#3578
joshlf wants to merge 1 commit into
Gt4itljw3xh6tci2mjqj4z245i6pwle2ifrom
Gocqawbn3p3zj7xyfo7etk6vo4633r3tn

Conversation

@joshlf

@joshlf joshlf commented Aug 25, 2026

Copy link
Copy Markdown
Member

Collect repository packages, features, and Cargo targets with locked,
offline Cargo metadata, then validate every policy reference against the
live checkout before planning work. Disable rustup's automatic toolchain
installation separately because Cargo cannot apply --offline until
after the rustup proxy has selected a toolchain.

Derive the stable feature closure and its nightly-only complement from
Cargo's complete feature graph. Follow plain and strong optional-
dependency edges according to Cargo semantics while leaving dep: and
weak edges non-activating. Require an explicit no-default profile if a
future manifest introduces default features. Accept Rust's two-component
and dotted target names without assuming every target is a three-part
triple.

Canonicalize trusted manifest, Cargo-target, and configured baseline
paths before using them. Reject symbolic links which leave the checkout,
distinguish missing baseline inputs from other file-system errors, and
require pinned stable and semantic build-rs compilers not to predate the
package MSRV.

Fail when packages, target kinds, examples, required features, baseline
paths, or toolchain sources escape classification. Also validate the
narrower line-oriented Cargo.toml grammar consumed by build.rs. This
keeps valid TOML formatting changes from silently breaking the build
script's separate parser.

Keep all collected data deterministic and report independent inventory
errors together. Cargo metadata remains authoritative; this layer checks
coordination without copying its package or feature lists into policy.

Tests: focused feature, target, version, build.rs, path-containment,
live-audit, and mutation tests.

Authored by an agent, posting via joshlf's account


Latest Update: v9 — Compare vs v8

📚 Full Patch History

Links show the diff between the row version and the column version.

Version v8 v7 v6 v5 v4 v3 v2 v1 Base
v9 v8 v7 v6 v5 v4 v3 v2 v1 Base
v8 v7 v6 v5 v4 v3 v2 v1 Base
v7 v6 v5 v4 v3 v2 v1 Base
v6 v5 v4 v3 v2 v1 Base
v5 v4 v3 v2 v1 Base
v4 v3 v2 v1 Base
v3 v2 v1 Base
v2 v1 Base
v1 Base
⬇️ Download this PR

Branch

git fetch origin refs/heads/Gocqawbn3p3zj7xyfo7etk6vo4633r3tn && git checkout -b pr-Gocqawbn3p3zj7xyfo7etk6vo4633r3tn FETCH_HEAD

Checkout

git fetch origin refs/heads/Gocqawbn3p3zj7xyfo7etk6vo4633r3tn && git checkout FETCH_HEAD

Cherry Pick

git fetch origin refs/heads/Gocqawbn3p3zj7xyfo7etk6vo4633r3tn && git cherry-pick FETCH_HEAD

Pull

git pull origin refs/heads/Gocqawbn3p3zj7xyfo7etk6vo4633r3tn

Stacked PRs enabled by GHerrit.

@codecov-commenter

codecov-commenter commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.85%. Comparing base (55a8694) to head (fded6e0).

Additional details and impacted files
@@                        Coverage Diff                         @@
##           Gt4itljw3xh6tci2mjqj4z245i6pwle2i    #3578   +/-   ##
==================================================================
  Coverage                              91.85%   91.85%           
==================================================================
  Files                                     20       20           
  Lines                                   6093     6093           
==================================================================
  Hits                                    5597     5597           
  Misses                                   496      496           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5070ce31b1

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/zc/src/inventory.rs Outdated
Comment thread tools/zc/src/inventory.rs
Comment thread tools/zc/src/inventory.rs Outdated
@joshlf
joshlf force-pushed the Gocqawbn3p3zj7xyfo7etk6vo4633r3tn branch from 5070ce3 to fac6e43 Compare August 25, 2026 18:32

joshlf commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

Authored by an agent, posting via joshlf's account

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: fac6e434ce

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

joshlf commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

Authored by an agent, posting via joshlf's account

@codex review

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 77f85fe605

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/zc/src/inventory.rs Outdated
Comment thread tools/zc/src/inventory.rs Outdated
Collect repository packages, features, and Cargo targets with locked,
offline Cargo metadata, then validate every policy reference against the
live checkout before planning work. Disable rustup's automatic toolchain
installation separately because Cargo cannot apply `--offline` until
after the rustup proxy has selected a toolchain.

Derive the stable feature closure and its nightly-only complement from
Cargo's complete feature graph. Follow plain and strong optional-
dependency edges according to Cargo semantics while leaving `dep:` and
weak edges non-activating. Require an explicit no-default profile if a
future manifest introduces default features. Accept Rust's two-component
and dotted target names without assuming every target is a three-part
triple.

Canonicalize trusted manifest, Cargo-target, and configured baseline
paths before using them. Reject symbolic links which leave the checkout,
distinguish missing baseline inputs from other file-system errors, and
require pinned stable and semantic build-rs compilers not to predate the
package MSRV.

Fail when packages, target kinds, examples, required features, baseline
paths, or toolchain sources escape classification. Also validate the
narrower line-oriented Cargo.toml grammar consumed by build.rs. This
keeps valid TOML formatting changes from silently breaking the build
script's separate parser.

Keep all collected data deterministic and report independent inventory
errors together. Cargo metadata remains authoritative; this layer checks
coordination without copying its package or feature lists into policy.

Tests: focused feature, target, version, build.rs, path-containment,
live-audit, and mutation tests.

*Authored by an agent, posting via joshlf's account*

gherrit-pr-id: Gocqawbn3p3zj7xyfo7etk6vo4633r3tn
@joshlf
joshlf force-pushed the Gocqawbn3p3zj7xyfo7etk6vo4633r3tn branch from 77f85fe to fded6e0 Compare August 26, 2026 01:28

joshlf commented Aug 26, 2026

Copy link
Copy Markdown
Member Author

Authored by an agent, posting via joshlf's account

@codex review

Please review the current head. Treat earlier reviews of older commits as stale.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: fded6e0d56

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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