Architecture Decision Records#
Design decisions that are not obvious from reading the code. Each ADR documents why a decision was made, not just what. The code already shows the what.
ADRs come in two layers:
Implementation decisions (numbered
001-009): runtime, data model and operational choices discovered while building PROTEA. They explain trade-offs of concrete code paths (KNN algorithm choice, queue topology, deduplication strategy, retries, etc.).Strategic decisions (
D1-D58): plan-level decisions. TheD1-D31block was taken in the master plan revision 3 (2026-05-05) and drives the structure of the project, the deployment story, and the thesis writing cadence. Later records (D34onward) were added as the work progressed and carry their own dates and phases in the table below. ThisD-series is a PROTEA-local ledger (see the cross-repo note under Strategic decisions).
Implementation decisions#
All implementation ADRs (001-009) follow the MADR template (Status / Context / Decision / Consequences sections). They are numbered in discovery order, not superseded by the D-series, and remain the authoritative record for the runtime, data model, and operational choices described.
ADR |
Status |
Decision |
Problem it solves |
|---|---|---|---|
001 |
Accepted |
pgvector does not scale to 500K+ vectors; GPU must be reserved for inference |
|
002 |
Accepted |
A mid-operation crash left the job invisible to monitoring |
|
003 |
Accepted |
Thousands of batch jobs per pipeline flooded the jobs table |
|
004 |
Accepted |
Failed messages were lost; retries without backoff amplified failures |
|
005 |
Accepted |
A coordinator dispatching 500 batches opened 500 TCP connections |
|
006 |
Accepted |
30K duplicate sequences in Swiss-Prot waste hours of GPU time |
|
007 |
Accepted |
Re-ranker iteration cadence would contaminate the production dependency tree |
|
008 |
Accepted |
Upstream cafaeval reports coverage > 1 in PK; precision is under-divided |
|
009 |
Accepted |
Cancelled messages held a prefetch slot and could deadlock the predictions queue |
Strategic decisions#
Decisions taken in the master plan revision 3 (2026-05-05), plus later records added as the work progressed. Statuses: Accepted, Pending (gate opens at the indicated phase), Deferred (scheduled later in the timeline), Obsolete (superseded by a later revision) or Superseded (a named later decision replaces it).
Cross-repo D-number scope (disambiguation)
This D-series is the PROTEA-local ledger. protea-reranker-lab
keeps its own independent D-series, and the numbers are NOT a shared
namespace. D34 (selective rerank resurrection) is deliberately the
same decision in both repositories, cross-referenced. But D39,
D40 and D41 collide: in this ledger they are destructive-op
guards, the leakage-free temporal evaluation protocol, and the lean f32
reference pool; in protea-reranker-lab the same three numbers denote
FAIR dataset packaging, IA-aligned training, and the universal booster
pipeline. These are not renumbered here because PROTEA D39/D40/
D41 are already cited across the docs, memory, and thesis; a rename
would break those citations for no gain. Read a bare D39/D40/
D41 as the PROTEA decision; qualify it as lab-D39 and so on when
the intended record lives in protea-reranker-lab.
ID |
Decision |
Status |
Phase / Gate |
|---|---|---|---|
D1 |
Accepted |
F0 (closed); enacted F0-F2 |
|
D2 |
Accepted |
F1 |
|
D3 |
Accepted |
F3 |
|
D4 |
Pending |
gate at F4 |
|
D5 |
Accepted |
F1 |
|
D6 |
Pending |
gate at F5 |
|
D7 |
Pending |
gate at F-OPS |
|
D8 |
Accepted |
F8a |
|
D9 |
Obsolete |
superseded by D1 |
|
D10 |
Pending |
T1.6 (requires_human) |
|
D11 |
Accepted |
F3 |
|
D12 |
Accepted |
F-EXP |
|
D13 |
Accepted |
F8a / F8b |
|
D14 |
Deferred |
F9 post-defense |
|
D15 |
Accepted |
F-OPS |
|
D16 |
Accepted |
F0 |
|
D17 |
Obsolete |
n/a |
|
D18 |
Accepted |
F-THESIS |
|
D19 |
Accepted |
F-RESEARCH |
|
D20 |
Accepted |
F-THESIS |
|
D21 |
Accepted |
F-THESIS |
|
D22 |
Accepted |
F-THESIS |
|
D23 |
Accepted |
F-LAFA |
|
D24 |
Accepted |
F0 (closed) |
|
D25 |
Pending |
gate at F-OPS |
|
D26 |
Accepted |
F-OPS |
|
D27 |
Pending |
gate at F-OPS |
|
D28 |
Pending |
gate at F-OPS |
|
D29 |
Pending |
gate at F-OPS |
|
D30 |
Accepted |
F7 |
|
D31 |
Accepted |
F2C / ยง24 |
|
D34 |
Accepted |
F-EXP-RESET |
|
D35 |
Accepted |
F-EXP-RESET |
|
D36 |
Accepted |
F-EXP-RESET |
|
D37 |
Single auth system, manual approvals, multi-instance (FEAT-AUTH) |
Accepted |
F-AUTH (complete, FARM-AUTH.1-11) |
D38 |
Defer neural-head champion; pivot to curated dataset packaging (F-DATA-PACK) |
Superseded |
F-DATA-PACK (champion designation superseded; see Results) |
D39 |
Accepted |
F-SEC |
|
D40 |
Leakage-free temporal evaluation protocol (rolling-origin TRAIN/VALID/TEST) |
Accepted |
F-EVAL |
D41 |
Accepted |
fix/refpool-lean-f32-highdim-plm |
|
D42 |
Export decouple via a content-addressed stable-feature cache |
Accepted |
feat/export-stable-feature-cache |
D43 |
Stacked meta-reranker (evidence scorers plus a shallow per-category combiner) |
Accepted |
feat/mr-foundation |
D44 |
Continuous local deployment of the LAFA container at the current best |
Proposed |
T-PRODUCTO |
D45 |
Accepted |
T-GOBERNANZA |
|
D46 |
Information Accretion is a corpus artifact, not an ontology attribute |
Accepted |
F-EVAL |
D47 |
Accepted |
F-EVAL |
|
D48 |
Accepted |
T-CAMPANA |
|
D49 |
The corpus is four tiers of the GAF series, built in two operations |
Accepted |
T-CAMPANA |
D50 |
GO term identity has to survive the series, so alt_id becomes data |
Proposed |
T-CAMPANA |
D51 |
The sparse code of every residue, from a frozen vocabulary, stored as shards |
Proposed |
T-PLATFORM |
D52 |
Representations by granularity in one registry, sparse first |
Accepted |
T-PLATFORM |
D53 |
A laboratory method runs as a platform job, from an image pinned by id |
Proposed |
T-PLATFORM |
D54 |
Model weights in one registry, uploaded or registered, and used from the instrument |
Accepted |
T-PLATFORM |
D55 |
Evaluated explorations, one unit for a hypothesis, its rules, its arms, its report and its review |
Accepted in principle |
T-PLATFORM |
D56 |
The transitions dataset is tables keyed by what they depend on |
Proposed |
T-WORLD-MODEL |
D57 |
The vocabulary exams run inside the platform, on the codes it stores |
Proposed |
T-PLATFORM |
D58 |
Every cited entity carries a short descriptor and a long one |
Proposed |
T-PLATFORM |