Skip to content

docs(cache): ADR 040 and policy docs misstate segment re-observation and deny filtering #2267

Closed

Description

@yigitdot

Found while reviewing #2261 (out of scope there).

  • adr/040-cache-policy.md (Known limitations, segment bullet): says a cached blob returns to an uncapped state "until traffic re-observes it". set_segment runs only on fill admission (crates/cache/src/engine.rs, the admit paths), so a pre-restart blob served as a hit stays Main for good; traffic does not re-observe it into a segment.
  • adr/040-cache-policy.md ~L69–71 and crates/cache/src/policy/mod.rs (~L52, L57, L88): say eviction candidates are filtered of / stripped of deny-listed hashes. CacheEngine::eviction_candidates deliberately keeps deny-listed hashes so deny wins over pin (see the comment at the top of that function).
  • Separately: on macOS, a few decdn-node node_origin_pull tests flake locally (a_partial_cached_budget_falls_through_to_the_cold_path_and_meters_once, a_probe_cache_hit_still_honours_the_negative_cache, a_probe_cache_hit_still_honours_the_wedged_provider_filter, node_origin_not_found_refusal_does_not_tar_upstream): 2–4 of 90 fail per --retries 0 run, at the same rate on main's behaviour. CI is green, so this may be machine-specific.

Activity

  1. added
    kind:docs
    design:adr
    kind:test
    prio:low
    on Oct 1, 2026
  2. self-assigned this
    on Oct 1, 2026
  3. moved this from Backlog to In progress in deCDNon Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:adrkind:docskind:testprio:low

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions