Skip to content

feat: v0.1.0 quality hardening — R1-R20#1

Merged
epicsagas merged 2 commits into
mainfrom
feat/v0.1.0-hardening
Jun 5, 2026
Merged

feat: v0.1.0 quality hardening — R1-R20#1
epicsagas merged 2 commits into
mainfrom
feat/v0.1.0-hardening

Conversation

@epicsagas

Copy link
Copy Markdown
Owner

llm-kernel v0.1.0 Quality Hardening

라이브러리 성능/안정성/완성도 평가에서 식별된 20개 이슈 전부 개선.

Critical (R1-R3)

  • NoopSink 공개 + prelude re-export (옵트아웃 경로 복구)
  • TelemetrySink: Send + Sync supertrait 추가
  • mask_secrets 모든 발생 마스킹 — Bearer, sk-*, password=, token=, key=, secret=

Performance (R4-R6)

  • cosine_similarity 단일 패스 accumulation (3-pass → 1-pass fold)
  • classify_failure error[EXXXX] byte-prefix fast path (regex 우회)
  • estimate_tokens match-based char_cpt — CPT_TABLE linear scan 제거

Stability (R7-R11)

  • related_nodes depth 파라미터 CTE 실제 적용 (기존 _depth 무시)
  • wizard.rs 4개 동일 분기 단일 경로로 통합
  • BearerAuth::generate xorshift 한계 Security Note 문서화
  • embed_batch 부분 실패 동작 문서화
  • 4개 ignore 독테스트 → no_run (컴파일 검증 활성화)

Completeness (R12-R20)

  • JSON-RPC 2.0 배치 요청 지원
  • MCP resources/read 디스패치 (set_resource_handler / read_resource)
  • McpNotification enum + format_notification (ToolsListChanged, ResourcesListChanged, Progress)
  • strip_ansi ANSI 이스케이프 제거 (ECMA-48 compliant)
  • FailureCategory FromStr 구현 (roundtrip 검증)
  • tiktoken 독스트링 참조 제거
  • EmbeddingResult.dim 필드 → dim() 메서드
  • TelemetryEvent enum-gated (ToolName, FeatureName, ProviderCategory)
  • Cargo.toml keywords/categories 메타데이터

Verification

cargo test --all-features  →  195 passed (176 unit + 7 integration + 12 doctest)
cargo clippy --all-features -- -D warnings  →  0 warnings
cargo fmt --check  →  PASS
cargo build --all-features --release  →  PASS

🤖 Generated with Claude Code

epicsagas added 2 commits June 5, 2026 14:47
Critical (R1-R3):
- NoopSink public + prelude re-export
- TelemetrySink Send + Sync bounds
- mask_secrets regex-based full masking

Performance (R4-R6):
- cosine_similarity single-pass accumulation
- classify_failure fast-path byte-prefix for error[EXXXX]
- estimate_tokens match-based char_cpt replacing CPT_TABLE

Stability (R7-R11):
- related_nodes depth parameter applied to recursive CTE
- wizard.rs 4 duplicate branches collapsed to single path
- BearerAuth::generate xorshift limitations documented
- embed_batch partial failure behavior documented
- 4 ignored doc tests changed to no_run with compile-check

Completeness (R12-R20):
- JSON-RPC 2.0 batch request support
- MCP resources/read dispatch
- McpNotification enum + format_notification
- strip_ansi for ANSI escape removal
- FailureCategory FromStr implementation
- tiktoken docstring reference removed
- EmbeddingResult.dim field -> dim() method
- TelemetryEvent enum-gated (ToolName, FeatureName, ProviderCategory)
- Cargo.toml keywords/categories metadata
…_secrets all-occurrence

- Add NoopSink to telemetry/mod.rs re-exports and prelude
- Add Send + Sync supertraits to TelemetrySink
- Fix mask_secrets infinite loop: track search_from position
- mask_secrets now masks ALL occurrences of each pattern
- Add standalone sk-* API key masking
- Add 3 new tests: mask_multiple_passwords, mask_multiple_bearer,
  mask_standalone_sk_key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant