Repository navigation
Spec 033: the last ContentService operations move to node - #1121
Merged
Merged
Conversation
The nine operations the old Java ContentService still answers: the four PSICQUIC queries, cached and bounded by a timeout, and the five custom-interactor uploads and tokens, every existing token kept. Then the old service is switched off and its repository archived. PSICQUIC answers are to match Java's to its three decimal places and its order. The library service is the fallback for any part that cannot. This supersedes #1042's amendment and spec 006 T101 and T102. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
R1 and R2 come from reading the deployed versions (micluster 1.7.14, miscore 1.3.14, psimitab 1.8.6, not interactors-core main's). A prototype built from that reading matched three of beta's Java answers byte for byte. The MI-score depends on the ontology service serving only its first page of 50 terms, so node's snapshot is that page. The port is a clean reimplementation: the EMBL-EBI libraries declare no licence. The timeout is per fetch, and handled as Java handles a failed fetch: Java took 102 s for two accessions, so a timeout on the whole request would fail large diagrams. The cache is on disk: one resource's answer for a small pathway is 472 KB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 tasks: the deployed versions pinned and beta's answers recorded; the contract, Java's float and concurrent-map formats, and the settings; Story 1 in parts (MITAB, clustering, the MI-score with the first-page ontology snapshot, the clients, the answer, fetching, the cache, the endpoints, parity, routing); Story 2 (the token conversion by Java, the parsers, the store, the endpoints with the security differences, parity for every token, routing); Story 3 (the catch-all, then switching off and archiving). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing means after the port Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each finding was checked against content-service 7b9eceb and interactors-core 7513f42 before it was fixed: - A custom PSICQUIC token is "PSI-" and a hash product, not an MD5, and Java overwrites on a collision: both forms are allowed, and node refuses to overwrite (declared). - Reading a custom PSICQUIC token fetches a user's address: it gets its own fetch with Java's URL and error, guarded like uploads (every redirect, the address connected to). - A timed-out fetch is dropped from POST details but is the 500 for POST summary, which is what the panel's counts use. - The cache keys on the resource as typed and on Java's iteration order, never sorted accessions. - Uploaded scores are not all 1.0, and the order needs each identifier's stored-set order, which the conversion now records. - Java does bound the store (past 2 GB, files unread for a week go), and node does the same. - Token parity runs on every server before its route moves. - The registry reading is a declared difference. - The settings separate host and container names, and nothing in the checkout is mounted read-write. - Upload limits and statuses (50 MB, 431, 422, 415), and a rate limit keyed on X-Real-IP. - The descriptions of how beta was inspected are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Specifies moving the last nine operations off the old Java ContentService, so it can be switched off and
reactome/content-servicearchived. Decided on 28 Nov 2026.Supersedes: #1042's amendment to spec 010, which kept the nine in Java, and spec 006 T101 and T102.
Stories:
Fidelity: answers byte-identical to Java's, with scores matched to Java's three decimals and Java's order. Node calls the library service only for any part that can't reach parity.
Research:
Review: an adversarial review against content-service 7b9eceb and interactors-core 7513f42 found nine blocking and nine minor problems. I checked each against the source before fixing it.
PSI-and a hash product, they collide easily, and Java overwrites on a collision. Node allows both forms and refuses the overwrite.X-Real-IP; the tasks' dependencies and tooling chores; and wording that described how beta was inspected.33 tasks. Docs only.
🤖 Generated with Claude Code