fix(roles): fail closed on missing windows and lock identity tests - #876
Closed
cursor[bot] wants to merge 33 commits into
Closed
fix(roles): fail closed on missing windows and lock identity tests#876cursor[bot] wants to merge 33 commits into
cursor[bot] wants to merge 33 commits into
Conversation
- 레지스터 중복 감지 이중 루프를 필터-루프로 개선하여 O(N^2) 성능 오버헤드 완화 - 대형 배열 오디오 처리에 의한 Unbounded Memory Consumption 완화 위해 사이즈 제한 적용 - trivy-fs 스캔에서 보고된 pdfjs-dist 취약점 패치 및 예외 처리
- 레지스터 중복 감지 이중 루프를 필터-루프로 개선하여 O(N^2) 성능 오버헤드 완화 - 대형 배열 오디오 처리에 의한 Unbounded Memory Consumption 완화 위해 최대 1억 샘플 사이즈 제한 적용 - 수많은 stem 인풋으로 인한 Denial of Service 방지를 위해 최대 stem 갯수 100개 제한 적용 - trivy-fs 스캔에서 보고된 pdfjs-dist 취약점 패치 및 예외 처리
- 레지스터 중복 감지 이중 루프를 필터-루프로 개선하여 O(N^2) 성능 오버헤드 완화 - 대형 배열 오디오 처리에 의한 Unbounded Memory Consumption 완화 위해 최대 1억 샘플 사이즈 제한 적용 - 수많은 stem 인풋으로 인한 Denial of Service 방지를 위해 최대 stem 갯수 100개 제한 적용 - trivy-fs 스캔에서 보고된 pdfjs-dist 취약점 패치 및 예외 처리
- 레지스터 중복 감지 이중 루프를 필터-루프로 개선하여 O(N^2) 성능 오버헤드 완화 - 대형 배열 오디오 처리에 의한 Unbounded Memory Consumption 완화 위해 최대 1억 샘플 사이즈 제한 적용 - 수많은 stem 인풋으로 인한 Denial of Service 방지를 위해 최대 stem 갯수 100개 제한 적용 - trivy-fs 스캔에서 보고된 pdfjs-dist 취약점 패치 및 예외 처리
- 레지스터 중복 감지 이중 루프를 필터-루프로 개선하여 O(N^2) 성능 오버헤드 완화 - 대형 배열 오디오 처리에 의한 Unbounded Memory Consumption 완화 위해 최대 10,000,000 샘플 사이즈 제한 적용 - 수많은 stem 인풋으로 인한 Denial of Service 방지를 위해 최대 stem 갯수 10개 제한 적용 - trivy-fs 스캔에서 보고된 pdfjs-dist 취약점 패치 및 예외 처리
Revert the latest branch-wide dependency, Trivy, Jules-note, and altered resource-limit drift. Preserve the previously reviewed two-file register-overlap optimization and its focused resource-guard regressions; coordinated dependency security remains owned by #783.
Drop the Bolt-head 10M-sample and 10-stem silent guards, the Trivy ignore, and the npm/PDF.js lock churn so this change stays an overlap optimization. Keep fail-closed invalid thresholds and the policy-owned admission regressions. Co-authored-by: Seongho Bae <[email protected]>
Stop fabricating keyboard and vocal clash copy. Slice admitted stems to each section, format honest accompaniment labels, and refresh rehearsal priority from measured occupancy. Co-authored-by: Seongho Bae <[email protected]>
Keep mixed accompaniment evidence off named keyboard and guitar roles in the RoleExtractor suite, and omit overlap warnings when section windows are missing or do not match the section list so a song-wide FFT cannot repeat on every card. Co-authored-by: Seongho Bae <[email protected]>
Collaborator
|
Superseded by canonical PR #873 with all unique work preserved. Immediately before consolidation, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Successor to #873. The identity-safety repair in
_STEM_TO_ROLE_IDSwas already in production, but the onlyRoleExtractormeasured-overlap test still requiredkeys-leftto share Bass Guitar's warning. Missing or mismatched section windows also failed open into a song-wide FFT, repeating one average clash on every card.Buyer-visible contract on this head:
other + vocalswarns Lead Vocal only.Do not merge #873 in parallel. Leave dependency remediation on #783 and audio resource admission on #781/#866.
Verification
uv run --project services/analysis-engine pytest --cov=src/bandscope_analysis --cov-report=term-missing --cov-fail-under=100— 679 passed, 24 skipped, 100% statement coverage./scripts/harness/quickcheck.sh(hosted CI on this head is the merge evidence; this environment is not counted as a substitute)Security Notes
Attack surface
Trust boundary
Mitigations
.get(..., ())so a later label cannot KeyError into the extractor fail-soft pathotherremains usable in player-facing copy but cannot authorize named keyboard-hand or guitar rolesTest points
other + vocalswarns onlylead-vocalDependency and Supply Chain
i18n impact
Engine warning copy is already English next-action text from #873. This successor does not add or change locale keys.
Reviewer checklist
developKeep this Draft-equivalent until the unchanged resulting exact head has realistic focused/full tests GREEN, 100% owned production coverage, and ordinary branch-protection acceptance. Queued, skipped, predecessor, or self/author evidence is not success.