Skip to content

Review of 25 Nov: what the content service lets the CDN store, made finite (spec 011 T035) - #1089

Merged
adamjohnwright merged 3 commits into
mainfrom
review25/finite-cache
Nov 25, 2026
Merged

adamjohnwright merged 3 commits into
mainfrom
review25/finite-cache

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Fixes from the 25 Nov review, slice B (content service and contract). Each has a test seen failing without it. Nothing is cached yet: the Cloudflare rule is turned on only at the production release.

  • Empty answers (cache-label.ts, server.ts): an empty answer (no body, empty text, []) is never stored, rule empty. Several endpoints answer a made-up id with an empty 200, as Java does: /data/participants/987654321 is [], and so are instance/{id}/referrers and entity/{id}/in-depth. Any id of the right shape was cacheable, so the stored set had no bound. Tested on the label and through the server.
  • Events hierarchy (parameters.ts): stored only without resource. Without a token Java ignores it but answers the whole hierarchy, 3.9 MB, for any text. The site sends it only with a token, which is private.
  • A diagram's entities: stored only without pathways, free text the site never sends.
  • Contract: Polymerisation and Depolymerisation no longer require eventOfPathways, which live answers (R-HSA-874079, R-HSA-8952903) leave out. This is FailedReaction's fix carried to the two types it missed. The test now holds every event type to it.
  • Spec 011: research.md notes the decisions T034 superseded; cache-labels.md gains the empty row; CACHING.md explains it; T035 is ticked.

🤖 Generated with Claude Code

adamjohnwright and others added 3 commits November 25, 2026 12:48
- An empty answer (no body, empty text, []) is never stored: several
  endpoints answer a made-up id with an empty 200, as Java does, and any
  id of the right shape was cacheable.
- The events hierarchy is stored only without `resource`, which Java
  ignores without a token but answers, 4 MB, for any text.
- A diagram's entities are stored only without `pathways`, free text the
  site never sends.
- Polymerisation and Depolymerisation no longer require eventOfPathways,
  which live answers leave out, as FailedReaction's fix did; the test now
  holds every event type to it.
- Spec 011's research notes the decisions T034 superseded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1089)

The Pathway Browser sends its resource filter with the events hierarchy
even after an analysis is cleared, without a token, so storing only
without one would have sent every such Reacfoam load to the origin. The
analysis service's resource names are stored; any other text is not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 57c66c4 into main Nov 25, 2026
9 checks passed
@adamjohnwright
adamjohnwright deleted the review25/finite-cache branch November 25, 2026 14:09
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