feat: update cases SDK/CLI for ext-cases data model changes#268
Merged
feat: update cases SDK/CLI for ext-cases data model changes#268
Conversation
Align the Python SDK and CLI with the latest ext-cases backend: - Remove `acknowledged` and `escalated` case statuses (now: new, in_progress, resolved, closed) - Simplify status transitions to match new state machine - Replace `assignee` (singular) with `assignees` (array) on update - Remove `escalation_group` and `investigation_id` fields - Standardize evidence fields across entities, telemetry, artifacts: use `note` + `verdict` instead of name/context/first_seen/last_seen (entities), event_summary/relevance (telemetry), description (artifacts) - Artifact add now requires `path` + `source` (artifact_type is optional) - Add `to_stakeholder` and `from_stakeholder` note types - Update all explain texts, docstrings, and tests Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The ext-cases backend reads q.Get("sid") not q.Get("sensor_id").
The old param name was silently ignored, making --sid filtering a no-op.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
acknowledgedandescalatedcase statuses — now onlynew,in_progress,resolved,closedassigneewithassigneesarray on case updateescalation_groupandinvestigation_idfieldsnote+verdictaddnow requirespath+source(withartifact_typeoptional)to_stakeholderandfrom_stakeholdernote typesChanges by file
limacharlie/sdk/cases.pyupdate_casedocstring,add_entity/update_entity(note+verdict),add_telemetry/update_telemetry(note+verdict),add_artifact(path+source required)limacharlie/commands/case_cmd.pytests/unit/test_sdk_cases.pytests/unit/test_cli_case.pyTest plan
🤖 Generated with Claude Code