Continuous Verification Matrix: Dimension CONCURR

Overview

  • Code: CONCURR
  • Name: Concurrency Lifecycle, Goroutine Labels, and Thread Safety
  • Applicable File Classes: go_prod, go_test

Evaluation Standards & Check Rules

Rule ID Category Check Description Severity Allowed Scope
CONCURR-001 Naked Goroutines Direct invocation of go func() without lifecycle supervision. Critical Forbidden (use goroutinelabels.Go)
CONCURR-002 Lifecycle Termination Background goroutines lacking ctx.Done() or explicit stop channel checks. Critical Mandatory termination signals
CONCURR-003 Mutex Discipline Mutex lock without immediate defer mu.Unlock(). High Mandatory deferred unlock
CONCURR-004 Data Races Shared memory access without atomic primitives or mutex synchronization. Critical Zero data races