tracegrpo / docs /REPOSITORY_AUDIT.md
Dhruv1000's picture
Publish preservation audit and proposed cleanup plan
f7f28fc verified
|
Raw History Blame Contribute Delete
15.4 kB

Repository audit — 12 October 2026

Status: audit complete; cleanup proposed, not executed. No existing dataset, checkpoint, result, source file, figure or document was deleted, moved or deduplicated. Pre-existing payload contents remain unchanged. The only additions are this audit's reports and metadata. Training and inference remain closed. TEST data and raw TEST outputs were not reopened.

Scope and method

The actual Git root is /home/ubuntu/ib_connect_research/project; the scientific project and HF root are /home/ubuntu/ib_connect_research/project/tracegrpo and Dhruv1000/tracegrpo. Inventory covers every regular file beneath the project, including installed dependencies and nested dataset-checkout metadata. Parent-root prompt files and Git object storage were checked separately. Symlinks were recorded without recursively counting their targets.

The audit inventoried 108,402 regular files / 50.137 GB of logical bytes. It freshly SHA-256 hashed 2,322 files / 33.335 GB; 18,545 protected-data/output entries reuse frozen manifest hashes, explicitly not fresh verification. 62 protected entries lack a size-matching manifest hash: nested upstream Git metadata and the eight historically redacted API originals. 87,473 environment/generated files were inventoried by metadata without hashing. Filesystem allocated bytes and inode IDs are in the inventory; logical sizes do not imply recoverable disk space.

Internal imports were parsed using AST; literal artifact paths, directory references and Markdown targets were checked. Dynamic path construction, environment-specific services and external base-model availability cannot be proven by static analysis. No training or evaluation script was executed.

Audit sidecars are in workspace/repository_audit_20261012/ locally and in the downloadable audit bundle. The bundle contains inventories and hashes, not datasets, checkpoint payloads, credentials or sealed answer-key contents.

Storage and research value

Area Regular files Logical GB
.venv/ 87,160 15.001
releases/ 26 13.513
results/ 1,160 9.678
archives/ 22 4.539
checkpoints/ 222 3.843
.tools/ 5 1.798
data/ 18,636 1.743
models/ 8 0.011
SYNC_MANIFEST_20261009.json/ 1 0.004
scripts/ 327 0.003
audit/ 169 0.001

The working tree is larger than the approximate 40 GB estimate because it includes a 15 GB Python environment and multiple recovery layers. Large recovery bundles overlap in subject matter but are not byte-identical duplicates. Compression ratios and different snapshot times make size alone an invalid deletion rule. The separate Git object database reports 1.67 GiB of pack storage plus 51.94 MiB of loose storage.

Area Value / treatment
src/, scripts/, configs/, tests/ Preserve implementation and import paths; distinguish maintenance scripts from documented research entry points.
data/ Unique frozen inputs, split manifests, teacher data and cached program evidence; preserve all. No new TEST access.
checkpoints/, checkpoint subdirectories of results/ Preserve adapter, optimizer, scheduler, RNG and step state together. The same adapter bytes do not imply the same resumable state.
results/ Immutable scientific record, including negative results and interrupted runs; preserve paths and raw bytes.
models/ Persisted classical artifacts and hashes; preserve.
audit/, exported judge package Preserve grades, guides, mappings by hash, and all audit provenance. Answer keys stay sealed.
releases/, archives/ Verified disaster-recovery layers and historical snapshots; no pruning proposed in the initial phase.
.venv/, caches, bytecode, egg metadata Installed/generated material, not unique experiment evidence. Environment removal is not part of the proposed initial cleanup.

Findings and priorities

1. Presentation is cluttered by pointer pages

There are 114 Markdown wrappers under docs/reports/historical/, totaling 64,906 bytes. They contain a heading, a link to the original report and repeated pipeline/milestone images; they are not the full original reports. Every wrapper's source exists. Their paths, hashes and original-report mappings are recorded in documentation_wrappers.json.

These pages are low-value navigation duplication, although their bytes are unique. Replace them with one indexed history page after preserving the wrapper archive and obtaining approval. Keep original reports in results/ unchanged. Original prompt documents and binding decisions have research value and remain preserved.

There are two figure hierarchies: docs/figures/ and figures/. Their overlap is conceptual; the audit does not classify visually similar images as exact duplicates. The plan replaces generic decorative panels with figures that communicate a specific experiment or result, each with source data, caption and generation code. Historical figure bytes are archived first.

2. Exact duplicates exist, but are not automatically removable

614 non-empty hash groups contain repeated bytes. 228 groups are freshly verified across every member, representing 1.555 GB of repeated logical bytes. The broader total including manifest-only evidence is 1.579 GB; do not present that broader total as freshly verified disk savings.

Fresh duplicate bytes include approximately 1.133 GB of adapters and 0.243 GB of tokenizer files. Empty files and .gitkeep markers are excluded from the duplicate savings estimate. Inode IDs identify already-shared storage; release archives are not treated as deduplicable simply because they contain some repeated members.

Copies MB per file Repeated logical MB Example member; all paths/hashes are in duplicates.json
5 94.39 377.56 results/phase6/review16_smoke_20261005T202659Z/live_adapters/adapter-step-000000/adapter_model.safetensors
3 94.39 188.78 results/phase6/review17_smoke_20261006T042616Z/live_adapters/adapter-step-000008/adapter_model.safetensors
15 11.42 159.92 checkpoints/sft-final/tokenizer.json
2 94.39 94.39 results/phase6/review19_resume_20261006T105346Z/live_adapters/adapter-step-000020/adapter_model.safetensors
2 94.39 94.39 results/phase6/review26/e4b_balanced_reward/live_adapters/adapter-step-000200/adapter_model.safetensors
2 94.39 94.39 checkpoints/sft-final/adapter_model.safetensors
2 94.39 94.39 checkpoints/sft-weighted-v1/adapter_model.safetensors
2 94.39 94.39 checkpoints/cl1-label-only/adapter_model.safetensors
2 94.39 94.39 checkpoints/sft-contract-v2/adapter_model.safetensors
17 2.78 44.43 results/phase6/review19_resume_20261006T105346Z/adapter-final/vocab.json

The two judge package trees contain 152 freshly verified small duplicate file candidates. However, scripts/analyze_review34_llm_judge.py and scripts/export_llm_judge_package.py still reference the root audit_package_llm_judge/ directory, and the export tests reference it as well. Removing that tree without updating those consumers would break the pipeline. A zero literal reference to an individual card filename does not prove its parent directory unused.

3. Local Git and HF have different LFS behavior

Local git lfs ls-files is empty and there is no applicable .gitattributes in the local Git root. One currently tracked file exceeds 10 MB: tracegrpo/results/phase7/graph_feature_table.jsonl (22,888,376 bytes), stored as ordinary Git content.

The HF repository has 6,817 LFS entries. All live HF files above 10 MB have LFS metadata. The HF .gitattributes is therefore not a substitute for configuring the local parent Git root. Proposed attributes must match paths rooted at project/, or be located inside tracegrpo/ with its own relative scope.

An unreachable 1,797,772,730-byte Git blob was verified by Git SHA-1 to equal the existing .tools/joern-cli-linux-x86_64.zip. It is not reachable from the current refs enumerated by git rev-list --all. No Git garbage collection, history rewrite or deletion was performed. Any later pruning requires separate approval and preservation of the tooling archive.

4. Several important source files are not committed locally

These files exist and were hashed, but are absent from the local Git index. Many are already covered by newer HF source archives; a Git checkout alone should not be advertised as complete recovery. Their exact backup entries appear in hf_content_comparison.json.

Source / test Fresh SHA-256
src/rewards/counterfactual.py f91e0184eae3f6612fcab4d2e5b498b0b5d18b4dacf5426af8404bbc7e93614f
scripts/analyze_review22_reward_counterfactuals.py c55cff677edb89c096d1757abd6cc4f1f33a29a2004505a77538bf6e19abd130
scripts/compute_classical_threshold_free_baseline.py 9178ef2f861906abd490837570a33329e96bb72c027eed5c0d16226ca934337d
scripts/analyze_oracle_slice_ceiling.py b80d2df8ae273e3cddc89b4a79e6616159c813cfdebb730667ab5a5ceca5f256
scripts/analyze_review34_llm_judge.py e88edd5a7224e77438a45411033b72547deeb8598fd1c65405a0f387d0ec680a
scripts/audit_review22_dataset_structure.py 0660f8561fcf5cce572e29affb86001b225758e3d5b33336ea42dd01388c0079
scripts/run_review35_final_test.py e90b07b043bf2df21d0679ce0fbca75d5fc49800aa4a87184c058b6f4fd66c4b
tests/test_reward_counterfactual.py ef8340b7738c404353d570fee40a9a8fc38b9336eec5d6779871a0bcf4c33112
tests/test_review35_final_test_metrics.py 8c13d77414f8cb27746bf8ab71334a675ed7810e5c9caecaad82588661969498

5. Reproduction and links require consolidation

Static analysis resolved 490 internal import edges with zero unresolved internal modules and zero source syntax errors. Three code/config files contain absolute /home/ubuntu/ literals; they are listed in hardcoded_paths.json. Three checkpoint aliases use absolute machine-specific targets and should become validated relative aliases during an approved migration; all current symlinks resolve.

There are 13 missing local Markdown targets, including several incorrectly relative master-report links and five absent historical prompt images. Preserve original prompt bytes; fix links through a provenance note or archival rendering rather than silently revising the original prompt.

Referencing file Missing target
docs/prompts/AI_Vulnerability_Detection_Literature_Review_and_Research_Proposal.md figures/fig1_evolution.png
docs/prompts/AI_Vulnerability_Detection_Literature_Review_and_Research_Proposal.md figures/fig3_datasets.png
docs/prompts/AI_Vulnerability_Detection_Literature_Review_and_Research_Proposal.md figures/fig2_results.png
docs/prompts/AI_Vulnerability_Detection_Literature_Review_and_Research_Proposal.md figures/fig5_gaps.png
docs/prompts/AI_Vulnerability_Detection_Literature_Review_and_Research_Proposal.md figures/fig4_architecture.png
docs/prompts/README.md ../../MASTER_REPORT.md
docs/reviews/README.md ../../MASTER_REPORT.md
docs/paper_draft/README.md ../../MASTER_REPORT.md
docs/figures/README.md ../../MASTER_REPORT.md
docs/reports/README.md ../../MASTER_REPORT.md
models/classical_phase7_v1/README.md ../docs/MASTER_REPORT.md
audit/llm_judge/README.md ../docs/MASTER_REPORT.md
audit/llm_judge/report.md ../../../scripts/analyze_review34_llm_judge.py

There are also 18 missing live-HF link targets. A file existing in a tarball is not directly browsable at its project path. The official layout must either publish the current target or point explicitly to the relevant archive. The complete list is hf_missing_markdown_targets.json.

Backup and integrity findings

The complete paginated HF tree at revision b78cd9aa73dd2feb1210cc63f4346f40ed049ef1 has 17,665 files, including 16,005 under data/. All 16,005 live data paths have entries in the complete release manifest; this proves path coverage, not a fresh byte check of sealed data. No data deletion follows from that observation.

35/35 local recovery archives have matching remote LFS SHA-256s. Two are stored at their releases/ paths rather than the same local archives/ path. This verifies the archived bytes against HF metadata; a complete restore of every release was not repeated during this audit.

Five currently browsable HF files differ from local bytes:

Path Audit disposition
DECISIONS.md Matching newer archive: releases/2026-10-12-final-archive/tracegrpo_review36_report_update_20261012.tar.gz
.gitignore Inspect saved overlay or publish current source after approval
scripts/check_review31_blinding.py Matching newer archive: releases/2026-10-12-final-archive/tracegrpo_review36_20261012.tar.gz
results/hf_sync_20261009_review23_status.json Matching newer archive: releases/2026-10-12-final-archive/tracegrpo_review36_20261012.tar.gz
results/phase10/README.md Matching newer archive: releases/2026-10-12-final-archive/tracegrpo_review36_20261012.tar.gz

Two documentation/source archive overlays resolve 285 changed-or-absent live-path entries. Some additional entries are alternate audit-package locations, metadata-only indexes or later TEST/grade archive contents; those are explicitly not described as missing data. The raw TEST backup is preserved under its final-test release and was not unpacked for this audit. A full per-member restore proof for those protected outputs remains an archival verification limitation.

The two loaded frozen manifests matched 1,817 freshly hashed files; six differ, mostly post-snapshot documents/source updates. The exact differences are in manifest_coverage.json. No unrecorded raw-result corruption was detected by these checks; this statement does not fresh-verify protected data whose hashes came from manifests.

Verification completed

PYTHONDONTWRITEBYTECODE=1 .venv/bin/pytest -q -p no:cacheprovider
550 passed in 30.93s

No existing file was cleaned up to obtain this result. The suite refreshed the modification time of results/phase10/human_audit/blinding_check.json; its post-suite SHA-256 exactly equals its pre-audit SHA-256, so its content is unchanged. This side effect is recorded in post_audit_integrity.json; future test isolation should use a temporary output directory. This validates the present working tree; a future reorganization must pass the suite again. Test-source dependencies, loader paths and the CPU full-state restore regression remain gates for any approved artifact consolidation.

Proposed next step

Read CLEANUP_PLAN.md. Approve the limited presentation/consolidation phase before any removal. Large datasets, checkpoints, result evidence, recovery releases, the Python environment and Git history stay outside that initial phase. The machine-readable plan lists exact wrapper and duplicate candidates and explicit preservation gates.