Skip to content

[codex] Add large asset guardrails - #37

Merged
rudrankriyam merged 1 commit into
mainfrom
codex/repo-hygiene-guardrails
Jul 3, 2026
Merged

[codex] Add large asset guardrails#37
rudrankriyam merged 1 commit into
mainfrom
codex/repo-hygiene-guardrails

Conversation

@rudrankriyam

Copy link
Copy Markdown
Owner

Summary

Adds non-destructive repository hygiene guardrails for model assets:

  • expands Git LFS attributes for common future Core AI/Core ML/checkpoint formats
  • adds Scripts/check_large_files.py, which fails when a tracked file over 10 MiB is not LFS-attributed
  • wires the guard into the hosted software workflow
  • documents the current tracked large assets and the no-history-rewrite cleanup boundary in Documentation/MODEL_ASSETS.md

Validation

  • python3 Scripts/check_large_files.py
  • python3 Scripts/ci_matrix.py validate
  • python3 -m compileall -q Scripts
  • python3 -m unittest discover -s Scripts/tests -p 'test_*.py'

Notes

This PR does not delete large files and does not rewrite history. The current tracked files over 10 MiB are LFS-attributed main.mlirb model resources. Any deeper repository-size cleanup should be handled as an owner-level history/LFS migration plan because it affects clones, forks, tags, branches, and open PRs.

@rudrankriyam
rudrankriyam marked this pull request as ready for review July 3, 2026 10:13
@rudrankriyam
rudrankriyam merged commit 8c77c5a into main Jul 3, 2026
3 checks passed
@rudrankriyam
rudrankriyam deleted the codex/repo-hygiene-guardrails branch July 3, 2026 10:17
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