Skip to content

docs: fix cases extension accuracy against implementation#172

Merged
steveatlc merged 1 commit intomasterfrom
fix/cases-docs-accuracy
Apr 3, 2026
Merged

docs: fix cases extension accuracy against implementation#172
steveatlc merged 1 commit intomasterfrom
fix/cases-docs-accuracy

Conversation

@maximelb
Copy link
Copy Markdown
Contributor

@maximelb maximelb commented Apr 3, 2026

Summary

Deep review of the Cases extension documentation against the ext-cases implementation revealed multiple inaccuracies and missing content.

Fixes

  • Audit trail event names wrong: All events were documented without the case_ prefix (e.g. created instead of case_created). Fixed all 28 event names to match implementation.
  • Missing case_acknowledged event: Added to audit trail table — fires on first transition to in_progress (TTA milestone).
  • Detection link REST API example wrong: Was showing flat fields (detection_cat, detection_source, detection_priority). Fixed to use the correct {"detection": {...}} wrapper with proper LC detection structure (cat, source, routing, detect_mtd).
  • Telemetry add REST API example wrong: Was showing flat atom/sid/event_type fields. Fixed to use {"event": {"routing": {"this": "...", "sid": "...", "event_type": "..."}}}.
  • Missing operations: Added REST API examples for telemetry update/remove, artifact list/remove, and note visibility update (PATCH).
  • Undocumented endpoint: Added GET /api/v1/orgs for listing subscribed organizations.
  • ingestion_mode config: Clarified it's extension-level config (UI only), not available through the REST config API.
  • get_case_count: Removed nonexistent filter params, documented actual response format.

Test plan

  • Verify documentation renders correctly with mkdocs
  • Cross-check event names against ext-cases/internal/cases/types.go
  • Verify REST API examples match ext-cases/internal/api/handlers*.go request structs

🤖 Generated with Claude Code

- Fix audit trail event names: add `case_` prefix to match implementation
  (e.g. `created` → `case_created`, `status_changed` → `case_status_changed`)
- Add missing `case_acknowledged` event to audit trail table
- Fix detection link REST API example: use correct `{"detection": {...}}`
  wrapper with proper field names (cat, source, routing, detect_mtd)
- Fix telemetry add REST API example: use correct `{"event": {"routing": {...}}}`
  structure instead of flat fields
- Add missing telemetry update/remove REST API examples
- Add missing artifact list/remove REST API examples
- Add missing note visibility update (PATCH) documentation
- Document GET /api/v1/orgs endpoint for listing subscribed organizations
- Clarify ingestion_mode is extension-level config (UI only), not available
  through the REST config API
- Fix get_case_count docs: remove nonexistent filter params, document actual
  response format (counts by status + total)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@steveatlc steveatlc merged commit d5d08b3 into master Apr 3, 2026
2 checks passed
@steveatlc steveatlc deleted the fix/cases-docs-accuracy branch April 3, 2026 18:13
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.

2 participants