musiclink/docs/reviews/issues.md

1.5 KiB
Raw Blame History

Code Review Issues (Aggregated)

CLI Entrypoints

  1. Smoketest depends on external API availability
    • Live integration check; can fail offline or if idonthavespotify is down.

Matrix Bot Runtime

  1. Shutdown drops pending queue items

    • Queue length is logged but pending items are not drained.
  2. Encryption prefetch fails fast

    • A non-M_NOT_FOUND error aborts prefetch for subsequent rooms.
  3. Health endpoint unauthenticated

    • /healthz exposes counters; should be bound to localhost or protected at the edge.
  1. Detector regex is brittle

    • Central regex risks missing edge cases; per-service patterns might be safer.
  2. Plain-text only parsing

    • Formatted/HTML links are ignored (by design).
  3. Single-link handling

    • Only first link is handled (by design).

Config & Packaging

  1. vendorHash = null

    • Nix doesnt enforce vendor integrity; should pin a hash if vendor tree stabilizes.
  2. Go toolchain mismatch in dev shell

    • go.mod requires 1.24.0 but devShell uses default go.
  3. Config file only (no env overrides)

  • Token/secret loading relies on file config; document best practices.

Docs & Ops

  1. Design doc still references Matterbridge migration
  • docs/design-matrix-native-routing.md is outdated.
  1. README Go version outdated
  • README says Go 1.22+ but module requires 1.24.0.
  1. WORKLOG is stale
  • Mentions Matterbridge and old crash loops; should be updated or archived.