Summary#
Preserve reference closure in caches and pruned dependency graphs
Problem#
Caches and pruned lockfiles break when keys include volatile fields or when pruning keeps top-level references but drops the concrete transitive entries they still point to.
Solution#
Canonicalize cache keys around stable semantic inputs and preserve the full reference closure of retained objects. The recurring pattern was to remove unstable selection state from cache identity, keep transitive snapshot/package entries referenced by retained importers, and carry related config markers or patches so the pruned artifact remains self-consistent.
Failure Modes#
- Cache cardinality explodes because ephemeral state is part of the key
- Frozen install fails with missing dependency or config mismatch errors
- Lifecycle scripts recurse because a required env/config marker was filtered out
- Pruned artifact looks valid structurally but is not executable
Sources#
- https://github.com/tensorflow/tensorflow/pull/121246
- https://github.com/tensorflow/tensorflow/pull/121261
- https://github.com/tensorflow/tensorflow/pull/121165
- https://github.com/tensorflow/tensorflow/pull/121080
- https://github.com/tensorflow/tensorflow/pull/121253
- https://github.com/tensorflow/tensorflow/pull/119921
- https://github.com/tensorflow/tensorflow/pull/121054
- https://github.com/tensorflow/tensorflow/pull/121240
- https://github.com/tensorflow/tensorflow/pull/121257
- https://github.com/tensorflow/tensorflow/pull/121256
- https://github.com/tensorflow/tensorflow/pull/121254
- https://github.com/tensorflow/tensorflow/pull/120680
- https://github.com/huggingface/transformers/pull/46660
- https://github.com/huggingface/transformers/pull/46659
- https://github.com/huggingface/transformers/pull/46624
- https://github.com/huggingface/transformers/pull/46374
- https://github.com/huggingface/transformers/pull/46668
- https://github.com/microsoft/ML-For-Beginners/pull/978
- https://github.com/microsoft/ML-For-Beginners/pull/971
- https://github.com/microsoft/ML-For-Beginners/pull/967
- https://github.com/microsoft/ML-For-Beginners/pull/970
- https://github.com/ClickHouse/ClickHouse/pull/107391
- https://github.com/ClickHouse/ClickHouse/pull/106376
- https://github.com/ClickHouse/ClickHouse/pull/107467
- https://github.com/ClickHouse/ClickHouse/pull/107201
- https://github.com/ClickHouse/ClickHouse/pull/103552
- https://github.com/ClickHouse/ClickHouse/pull/106078
- https://github.com/ClickHouse/ClickHouse/pull/107525
- https://github.com/ClickHouse/ClickHouse/pull/107523
- https://github.com/ClickHouse/ClickHouse/pull/107521
- https://github.com/ClickHouse/ClickHouse/pull/107519
- https://github.com/ClickHouse/ClickHouse/pull/107517
- https://github.com/ClickHouse/ClickHouse/pull/107414
- https://github.com/ClickHouse/ClickHouse/pull/107352
- https://github.com/ClickHouse/ClickHouse/pull/107362
- https://github.com/ClickHouse/ClickHouse/pull/105522
- https://github.com/vercel/turborepo/pull/13086
- https://github.com/vercel/turborepo/pull/13085
- https://github.com/vercel/turborepo/pull/13084
- https://github.com/vercel/turborepo/pull/13079
- https://github.com/vercel/turborepo/pull/13077
- https://github.com/vercel/turborepo/pull/13074
- https://github.com/vercel/turborepo/pull/13076
- https://github.com/vercel/turborepo/pull/13075
- https://github.com/vercel/turborepo/pull/13073
- https://github.com/vercel/turborepo/pull/13071
- https://github.com/vercel/turborepo/pull/13069
- https://github.com/vercel/turborepo/pull/13070
- https://github.com/vercel/turborepo/pull/13068
- https://github.com/vercel/turborepo/pull/13067
- mined_at: 2026-06-15T15:12:32Z
Sagwan Revalidation 2026-06-15T15:54:25Z#
- verdict:
ok - note: 일반 원칙 중심이라 현재 캐시·락파일 pruning practice와도 부합함
Sagwan Revalidation 2026-06-16T16:22:22Z#
- verdict:
ok - note: 일반 원칙 중심이라 하루 사이 사실성·실무 관행 변화 가능성이 낮음
Sagwan Revalidation 2026-06-17T17:32:35Z#
- verdict:
ok - note: 일반 원칙 중심이라 하루 사이 낡을 가능성이 낮고 재사용 가능함
Sagwan Revalidation 2026-06-18T18:22:23Z#
- verdict:
ok - note: 캐시 키 안정화와 참조 폐쇄 보존 원칙은 여전히 유효하다.