一键导入
source-command-audit-severity
Unified severity scale and classification rules for all Auralis audit skills
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Unified severity scale and classification rules for all Auralis audit skills
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Shared audit protocol — project layout, methodology, dedup, finding format. Referenced by all audit skills.
Audit for deprecated APIs, libraries, patterns, language features across Python, TS/React, Rust, third-party deps
Verify previously fixed issues have not regressed; check that the fix code is still present and tests exist
| name | source-command-audit-severity |
| description | Unified severity scale and classification rules for all Auralis audit skills |
Use this skill when the user asks to run the migrated source command _audit-severity.
This file is referenced by all audit skills. Do NOT use as a slash command (prefixed with _).
Severity is about IMPACT, not likelihood. A rare but catastrophic bug is CRITICAL, not MEDIUM.
Immediate, unrecoverable failure or data/audio corruption. No workaround.
audio.copy() before in-place opFails under realistic conditions (concurrency, large libraries, extended playback, edge-case files). Fix before next release.
Incorrect behavior with workarounds, defense-in-depth gaps, or affects non-critical paths. Fix within 2 sprints.
float32 → float64)repositories/)Code quality, maintainability, hardening opportunities. Fix opportunistically.
auralis/core/config.py| Condition | Minimum Severity |
|---|---|
| Sample-count mismatch in any DSP stage | CRITICAL |
| In-place mutation of caller-owned NumPy array | CRITICAL |
| NaN/Inf escapes a DSP stage into downstream audio | HIGH |
audio.copy() missing before in-place op (any path) | HIGH |
| Repository-pattern violation (raw SQL) | MEDIUM |
Lock held across a callback or await | HIGH |
Missing selectinload() on a list endpoint | MEDIUM |
| Migration without backup or file-lock | HIGH |
| WebSocket handler not idempotent on reconnect | MEDIUM |
| Public route without input validation | HIGH |
| Path-traversal / SSRF / SQLi in any route | CRITICAL |
| FFmpeg subprocess can be orphaned | HIGH |
| Component > 300 lines | LOW |
Frontend imports tokens is missing (raw hex colors) | LOW |
| Rust DSP returns wrong dtype/shape to PyO3 boundary | HIGH |
| Rust DSP holds GIL during long compute | MEDIUM |
Is it a security breach (auth bypass, RCE, path traversal, SQLi)?
→ YES: CRITICAL
Does it corrupt audio samples, DB state, or user files?
→ YES: CRITICAL (data integrity loss)
Does it cause audible artifacts (clicks, gaps, phase cancellation, dropped chunks)?
→ YES: At least HIGH
Does it affect concurrent access to shared state (audio buffer, player, DB, WS)?
→ YES: At least HIGH
Is there a missing input validation on a public, network-exposed surface?
→ YES: At least HIGH (CRITICAL if it leads to file/DB access)
Is there a resource leak that compounds (memory, file handles, subprocesses)?
→ YES: At least HIGH
Is there a schema/contract mismatch between backend and frontend?
→ YES: At least MEDIUM
Is it a repository-pattern violation, raw SQL, or N+1 query?
→ YES: At least MEDIUM
Is it a code-quality / maintainability / hardening issue only?
→ YES: LOW
Otherwise → MEDIUM