Skip to content

OnceCache-keyed caches (shadings, default colour spaces, UseCMap) miss object removals #304

Closed

Description

@michaelstonis

Parent

#87 → #33 Spec: Broadside v1

What is wrong

Found by #303: caches whose OnceCache key includes a container version still serve stale results after a RemoveObject that leaves their containers unchanged: ColorSpaceCache default colour spaces, ShadingCache shadings and patterns (a removed Function or ColorSpace object under an unchanged shading is still used), and CMaps with an indirect UseCMap. Adding ObjectsVersion to the keys would orphan one entry per AddObject, so they need a replace-when-stale design. Stream-keyed decode caches are fine except where Filter/DecodeParms is an indirect reference.

Spec clauses

ADR 0004 (live views)

Notes

Builds on #303.

Acceptance criteria

  • Each named cache replaces a stale entry (recorded ObjectsVersion differs) instead of keying on it, with no unbounded growth.
  • One test per family: build, RemoveObject an object it resolved, re-read, see the removal.
  • Rendering and content allocation tests stay green.

Blocked by

Deliverables (every ticket)

  • A failing test first that reproduces the defect, through the public seam
  • XML docs citing clauses on public types touched
  • Conformance map rows updated in the same PR
  • PublicAPI.Unshipped.txt updated if the public surface changes

Activity

  1. added a commit that references this issue on Oct 14, 2026
  2. added
    integratedMerged into the spec integration branch; closes when the integration PR merges
    and removed
    in-progressClaimed and being worked on
    on Oct 14, 2026
  3. michaelstonis commented on Oct 16, 2026

    @michaelstonis
    OwnerAuthor

    Done: implemented, tested and merged into the integration branch spec/33-broadside-v1 (full gate green). It reaches main with PR #277.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:cosArea: cosbugSomething isn't workingintegratedMerged into the spec integration branch; closes when the integration PR mergesphase:4Phase 4ready-for-agentTriaged: an agent can pick this up without further clarificationtrack:4A-canvasTrack 4A-canvas

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions