Skip to content

Epic: Platform hardening + website↔CLI contract (arch-review follow-ups, 2026-07) #896

Closed
8 of 8 issues completed

Description

@neuromechanist

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:

Phases

  1. P0 · Release/deploy safety — deploy-backend.yml has no concurrency: group and no test.yml gate, so every release double-deploys to prod in parallel with tests.
  2. 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; partsize omitted) + client upload progress/timeout.
  3. 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.
  4. 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), getCurrentUser shape, /datasets/:id parity (Release: detail-endpoint parity + channel/montage classification #864).
  5. P1 · DOI version-mint reconciliation — createEzidVersionDoi early-returns a still-reserved DOI on the "already exists" retry path without ever calling makePublic; the webhook records it as latest_version_doi anyway. Add mint-progress state + a reconciliation sweep.
  6. P1 · Data-plane + credential hardening — zarr.nemar.org bypasses the API rate limiter (index.ts:225); per-session STS grants unconditional s3:ListBucket on 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; /health reports ok:true while a section throws no 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-139 branch ships.

Corrections captured during re-review

Sub-issues

Sub-issues

8 of 8 Issues completed
Loading 8 sub-issues

Activity

  1. added
    feature
    on Jul 2, 2026
  2. neuromechanist commented on Jul 7, 2026

    @neuromechanist
    ContributorAuthor

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions