Commit b8bb2be
committed
v0.19.0: 69.4% code coverage (+3.9%), session null-byte validation
Coverage gains across all packages:
- cmd/odek: 44.1% → 49.9% (wsapprover, readFile O_NOFOLLOW, writeFile
path confinement, searchFiles, isBinary, patch error paths, jsonResult,
shorten, expandHome, buildSandboxArgs, loadMCPTools)
- internal/danger: 77.3% → 82.8% (NewTTYApprover, SetTrustedClasses,
PromptCommand/PromptOperation error paths, classifier helpers)
- internal/resource: 74.1% → 91.1% (describeFile, formatDuration,
SessionResolver.Search/Load, ParseRefs edge cases)
- internal/session: 74.1% → 79.3% (ValidateSessionID edge cases,
NewStore invalid dir, null byte validation, generateID, Latest)
- internal/memory: 80.4% → 82.5% (sanitizeLine, BuildSystemPrompt
injection scan, EpisodeStore.Write error paths, ReplaceFact)
- internal/skills: 83.0% → 84.5% (fetchLocal path traversal/file-not-found,
LoadFromDir with empty dir, RecordUsage concurrency)
Security fix: ValidateSessionID now rejects null bytes (\\x00)1 parent 2ec3db0 commit b8bb2be
17 files changed
Lines changed: 2900 additions & 3 deletions
File tree
- cmd/odek
- internal
- danger
- memory
- resource
- session
- skills
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
336 | 401 | | |
337 | 402 | | |
338 | 403 | | |
| |||
0 commit comments