Skip to content

refactor: simplify acquisition, caching, and progress - #1873

Merged
mldangelo-oai merged 85 commits into
mainfrom
mdangelo/codex/modelaudit-06-acquisition
Oct 4, 2026
Merged

mldangelo-oai merged 85 commits into
mainfrom
mdangelo/codex/modelaudit-06-acquisition

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Acquisition adapters, cache bookkeeping, progress reporting, and SBOM generation repeated shared decisions and conversions. Consolidate those implementations while preserving authentication and redirect checks, path containment, download budgets, cache identity and race handling, callback order, and exported results. SBOM conversion uses the existing result model, size formatting is shared, and cache operations avoid redundant intermediate state.

This is PR 6 of the six-PR simplification stack, following merged PR 5. It includes the original meaningful force_update() callback assertion alongside the consolidated callback-order coverage.

Validation:

Current-main integration (2a5185a): preserves the upstream SafeTensors FDICT fix and deterministic initial/retried cache interruption fixture. Focused cache/routing checks and five neighboring compression cases pass on this branch; real benign/malicious CLI scans preserve scanner selection, JSON findings, SHA-256 metadata, and exit codes 0/1. Ruff checks pass. Changed-file mypy passes; full local mypy retains the previously documented optional TensorFlow baseline error. Hosted CI validates the published head.

  • The integrated committed prefix passed 1,964 affected tests with three Windows-only and two opt-in integration skips, including fresh-process imports and public reporting paths. Ruff passed; mypy checked 498 files with only the known optional TensorFlow diagnostic.

  • On the prior committed PR6 prefix based on PR5, four completed local cohorts passed 2,023 tests covering cache/progress, SARIF/SBOM and acquisition, Hugging Face, cloud storage, Hub and streaming. Nine environment-dependent cases were skipped and two live/slow cases deselected. Import checks confirmed the actual checkout and expected native extension throughout.

  • Twenty-eight actual CLI executions produced fourteen matching JSON/SARIF, SBOM and operational-error pairs, covering exits 0, 1 and 2. Comparisons preserve findings, errors, order, evidence and identifiers, with only run metadata, checkout locations and generated temporary path components normalized.

  • Ruff lint/format passed across both packages and tests. Full mypy checked 496 files and reports only the existing unreachable optional TensorFlow import in test_weight_distribution_scanner.py:2122. Earlier focused prototype checks include local DVC, redirect containment, license integration and cache isolation; an interrupted aggregate runner is not counted as a successful process.

Measured reduction: 790 maintained lines — production −690; tests −100. Generated code is unchanged. Live remote acquisition and cross-platform execution remain unverified locally.

Latest integration: merged main 5fd039f after #1872 landed. The original 27-path incremental patch and blob/mode changes are preserved exactly. The branch gains only two upstream dependency-test guards and one validated cache-fixture isolation line. Squash-ancestry conflicts and an incorrect automatic fixture merge were resolved against an independently reconstructed full tree. All 594 focused dependency/cache/progress/acquisition tests, two real benign/malicious CLI scans, full Ruff lint/format checks, and focused mypy passed. Full local mypy retains the known optional-TensorFlow baseline error. Hosted CI will validate c943c5b.

PRs 1: tooling, 2: tests, 3: raw evidence, 4: picklescan, and 5: scanning/results have landed. This final 6: acquisition/cache/progress PR now targets main.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 4f56307a9a

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

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.

Copilot review overview

🟡 Changes recommended

Security-sensitive JFrog host trust policy is duplicated across multiple call sites and can drift.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)

Comment thread modelaudit/utils/sources/jfrog.py
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 4f56307a9a

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@mldangelo-oai

Copy link
Copy Markdown
Contributor Author

@codex review

Please review the current head after integration with main 2a5185a. The new changes preserve the upstream SafeTensors FDICT fix and deterministic cache cleanup regressions. Existing review-thread replies document validated fixes, parent comparisons, and the explicit raw local evidence policy in AGENTS.md. Please verify current source and avoid repeating already addressed or intentional behavior.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 204b447ec1

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

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.

Copilot review overview

🔵 Needs a closer look

It refactors multiple security-sensitive remote acquisition and cache boundaries while live remote and cross-platform behavior remain locally unverified.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 204b447ec1

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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

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

Base automatically changed from mdangelo/codex/modelaudit-05-scanning to main October 4, 2026 11:53
@mldangelo-oai
mldangelo-oai merged commit 17c9efa into main Oct 4, 2026
32 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/modelaudit-06-acquisition branch October 4, 2026 12:54
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