Repository navigation
Closed
8 / 88 of 8 issues completedClosed
8 / 88 of 8 issues completed
Copy link
Labels
featureNew feature or enhancement
Description
Context
Follow-ups from the cross-system architecture review (2026-07-02: 5 parallel deep-dives + 2 independent code reviews). The review confirmed strong, disciplined engineering; the remaining risks are systemic, not local. This epic groups the verified P0/P1 items into phased, shippable work.
Separate from the in-flight #885 (Infisical) epic — this epic uses its own named state doc (.claude/epic-<this>-arch-hardening.local.md); do not touch epic.local.md (=#885, resting).
Integration branch: dev (repo convention; epics finalize to dev, then dev→main is the release pipeline).
Flagship theme — the missing website↔CLI/backend contract
The website, CLI, and data plane are separately deployed with no shared, enforced contract, and it has already drifted in production more than once:
- Catalog file_size ignores git-annex content: annexed datasets report ~36 B (should sum resolved/manifest sizes) #895 — catalog
file_sizeis computed from git-committed blobs only, ignoring git-annex content, so annexed datasets render as "36 B" on public cards. Same issue inarchive.size. - Catalog file_size ignores git-annex content: annexed datasets report ~36 B (should sum resolved/manifest sizes) #895 (secondary) — catalog serves
latest_version: "1.0.0"butdata.nemar.orgrequiresv1.0.0; any consumer building a data-plane path from the catalog 404s. The website dodges this by reading the landing doc instead. - nemar-cli#864 —
/datasets/:iddropsparticipants/latest_versionthat list/search carry; the website hand-merges a workaround. - CLI
getCurrentUser()unwraps the wrong response level ({user,token}vs flatUserInfo) with no test — silently writesundefinedover stored account config and disables upload ORCID auto-match. neuroschemaappears only in comments;shared/covers only DOI constants; the CLIapi.tshand-declares 87 response shapes with nothing checking them against the backend.
Phases
- P0 · Release/deploy safety —
deploy-backend.ymlhas noconcurrency:group and notest.ymlgate, so every release double-deploys to prod in parallel with tests. - P0 · Large-file upload integrity — S3 upload of files >5 GB fails silently: buildS3RemoteArgs omits partsize (git-annex single-part PUT hits S3 5 GB cap) #886 (S3 >5 GB single-part PUT silently fails;
partsizeomitted) + client upload progress/timeout. - P1 · Contract foundation — shared, versioned contract types + canonical field formats (version prefix
vX.Y.Z, response envelopes) + a CI contract test validating live dev API responses against declared shapes. - P1 · Fix known contract drift — Catalog file_size ignores git-annex content: annexed datasets report ~36 B (should sum resolved/manifest sizes) #895 (annex-aware
file_size+ backfill; version-prefix normalize),getCurrentUsershape,/datasets/:idparity (Release: detail-endpoint parity + channel/montage classification #864). - P1 · DOI version-mint reconciliation —
createEzidVersionDoiearly-returns a still-reservedDOI on the "already exists" retry path without ever callingmakePublic; the webhook records it aslatest_version_doianyway. Add mint-progress state + a reconciliation sweep. - P1 · Data-plane + credential hardening —
zarr.nemar.orgbypasses the API rate limiter (index.ts:225); per-session STS grants unconditionals3:ListBucketon the whole bucket (any user can enumerate every dataset's keys, incl. private).
Out-of-repo follow-ups (filed separately, referenced here)
- nemar-observability — no alerting;
/healthreportsok:truewhile a section throwsno such column: nemar_sync_status(dropped by migration 0053); no CD. - nemarOrg/website — no CI and no branch protection; the landing-page cache-poisoning fix (PR Improve role management CLI discoverability and onboarding #141) needs backporting before the
issue-139branch ships.
Corrections captured during re-review
- The ~1,182 legacy DOI re-point is DONE (Phase 1/2 of epic Epic: Complete separation from legacy nemar.org dataexplorer + DOI re-targeting #837, scripts removed in chore: remove epic #837 one-off scripts + legacy-purge client #850). DOIs resolve to
nemar.org/dataset/<id>. Not in scope. zarr.nemar.orgdoes have edge caching; only the rate-limit bypass is real (downgraded P0→P1).
Sub-issues
Collapse Sub-issuesSub-issues
Loading 8 sub-issues
Metadata
Metadata
Assignees
Labels
featureNew feature or enhancement
Activity
git annex add .re-reads the whole dataset each run (~5 h for 3.25 TB) and resume restarts it #884Phase 1: serialize + gate backend deploys (#897) (#934)
Phase 2: S3 partsize for >5GB uploads (#886) (#935)
Phase 3: shared wire-contract foundation (#898) (#938)
Phase 4: fix contract drift (getCurrentUser, version prefix) (#899) (#…
Phase 5: DOI version-mint reconciliation (#900) (#940)
Phase 6: rate-limit the zarr data plane (#901) (#942)
Merge pull request #943 from nemarOrg/feature/issue-896-epic-arch-har…
neuromechanist commentedon Jul 7, 2026
All 6 phases merged to dev via #943 (regular merge, per-phase history preserved). Follow-ups: #936 (backend lint), #937 (@nemar/contract pkg + flip contract warn->hard), #941 (STS scoping), #909 (zarr per-recording too-large). Operational for dev->main: deploy nemarDatasets/.github#61 on Hallu before #899 hits prod; run 'nemar admin reindex --stale' for #895 file_size backfill; merge website#145.