Skip to content

Comprehensive Feature Audit: Verify All Features Are Fully Implemented #84

Closed

Description

@neuromechanist

Context

Issue #83 revealed that admin publish approve was missing --sandbox support despite it being documented and appearing to be implemented. Our tests also failed to catch this gap.

This raises the question: What else might be incomplete or not fully wired up?

Objective

Conduct a systematic audit of ALL CLI commands and backend endpoints to verify:

  1. CLI flags are honored - Options shown in --help actually work
  2. Backend endpoints use parameters - Parameters aren't just accepted but ignored
  3. End-to-end flows work - Data flows from CLI → API client → backend → services
  4. Tests cover critical paths - Integration tests verify actual behavior
  5. Documentation matches reality - Docs describe what actually works

Priority

High - About trust in the system. If features appear to work but don't, we risk data corruption, security issues, and user frustration.

See full audit checklist and methodology in issue description.

Activity

  1. added
    enhancement
    on Jan 28, 2026
  2. neuromechanist commented on Feb 2, 2026

    @neuromechanist
    ContributorAuthor

    E2E Feature Audit Results - 2026-02-02

    Dataset

    • ID: nm000152
    • Name: HBN R3 Mini L100 BDF
    • Source: R3_mini_L100_bdf (984 files, 2.82 GB, 20 subjects, 10 tasks, EEG BDF)
    • Uploaded by: cool-vibers (from mba)
    • DOI: 10.5072/zenodo.433406 (sandbox)

    Phase Results

    Phase 0: Prerequisites - PASS

    Step Result
    Versions mcm=0.3.8, mba=0.3.8-dev.163 (updated during audit)
    Auth mcm=yahya (admin), mba=cool-vibers
    Sandbox completed
    Dataset access accessible on mba via Nextcloud
    Validation PASS (warnings only: missing recommended sidecar keys)
    Publish list clean
    Dataset list BUG #95: crash on null visibility -- FIXED

    Phase 1: Upload - PASS

    • Prerequisites missing on mba: installed git-annex (pip), deno (curl)
    • Upload ran via nohup on mba (SSH would timeout for 2.82 GB)
    • brew shellenv not loaded in SSH zsh -i, required zsh -i -l with explicit eval
    • 240 data files to S3, 758 metadata to git, 8 parallel jobs
    • Dataset created: nm000152, GitHub repo: nemarDatasets/nm000152 (private)

    Phase 2: Publish Request + Denial - PASS

    • Request submitted by cool-vibers: status = "requested"
    • Admin listed requests: nm000152 appeared
    • Admin denied with reason: "Testing denial workflow - please resubmit"
    • cool-vibers sees status = "denied" with reason displayed

    Phase 3: Re-request + Approval - PASS (with fixes)

    • Re-request after denial succeeded (no 409 error)
    • BUG: DOI creation failed with "Unexpected token '<'" - Zenodo sandbox returned HTML
      • Root cause: Worker's zenodo.ts relied on response.json() after content-type check; content-type said JSON but body was HTML (possible proxy issue from CF Workers)
      • Fix: Parse response as text first, then JSON.parse with proper error message
      • After fix: DOI creation succeeded
    • BUG: dataset_description.json missing Version field
      • Added Version: "1.0.0" via GitHub API
      • Orchestrator should handle missing Version more gracefully (future improvement)
    • BUG dataset status/list don't authenticate, hiding private datasets #98: getDataset()/listDatasets() not authenticated
      • Private datasets returned "Dataset not found" for their owners
      • Fix: Use optional auth (send token if available, don't require it)
    • BUG: DB visibility not updated to "public" after repo_public step
      • Orchestrator code has the UPDATE but it didn't take effect (needs investigation)
      • Manually fixed via D1 query
    • BUG: README.md created even when dataset has README (no extension)
      • Resulted in duplicate: README (original content) + README.md (badge only)
      • Fix: Search for README.md, README.rst, README.txt, README in order
      • Cleaned up nm000152 manually

    All 12 orchestrator steps completed:

    • ci_check
    • repo_public
    • tag_protect
    • doi_create
    • update_metadata
    • update_readme
    • create_tag
    • create_release
    • upload_to_zenodo
    • publish_doi
    • s3_lock
    • notify_user

    Phase 4: Verification - PASS

    Check Result
    Publish status (mba) published, 2026-02-02 16:23:40
    Dataset status (both) DOI field populated (10.5072/zenodo.433406)
    GitHub visibility PUBLIC
    Download test (mcm) Public clone works, 240 annex pointers
    Dataset list (mba --mine) nm000152 appears as public
    Dataset list (admin catalog) nm000152 excluded (is_sandbox=1, correct)

    Bugs Found & Fixed

    Issue Severity Status Version
    #95: dataset list crash on null visibility High Fixed 0.3.9
    #98: dataset list/status not authenticated High Fixed 0.3.11
    Zenodo HTML response handling High Fixed 0.3.11 (backend)
    README duplicate on publish Medium Fixed 0.3.11 (backend)
    dataset list --mine not passing query param Medium Fixed 0.3.11
    DB visibility not updated in repo_public Medium Needs investigation
    Missing Version in dataset_description.json Low Manual fix (future: better error msg)
    Biome formatting Low Fixed 0.3.11

    Final CLI Version

    • mcm: 0.3.11 (source)
    • mba: 0.3.11-dev.167
    • Backend: deployed with all fixes

    Commits

    • f64f502 Fix dataset list crash on null visibility
    • 6ba2d34 Fix dataset visibility and auth in list/status
    • a2ef988 Fix dataset list --mine and README badge placement
    • 47b3dcf Use optional auth for dataset list/status endpoints
  3. neuromechanist commented on Feb 24, 2026

    @neuromechanist
    ContributorAuthor

    Closing as stale. Individual issues have been filed for specific items.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions