chore(tests): add forensics ops to run-sdk harness#20
Merged
Conversation
The Forensics resource (design 046) was added to the SDK in v0.6.0 but the test harness was never updated to dispatch the 5 ops, which caused the mono parity check (TestHarnessCompleteness) to fail after the release. Adds dispatch branches for: - forensics.incident-timeline → client.forensics.incident_timeline - forensics.check-trace → client.forensics.check_trace - forensics.policy-snapshot → client.forensics.policy_snapshot - forensics.monitor-rule-evaluations → client.forensics.monitor_rule_evaluations - forensics.monitor-transitions → client.forensics.monitor_transitions The two paginated ops use the existing `**opts` pattern (same as monitors.results / monitors.versions) — callers pass keyword-only args via JSON, mirroring the SDK signature. Co-authored-by: Cursor <cursoragent@cursor.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
Adds 5 dispatch branches in
tests/run_sdk.pyfor the newforensicsresource (design 046, shipped in v0.6.0):forensics.incident-timeline→client.forensics.incident_timelineforensics.check-trace→client.forensics.check_traceforensics.policy-snapshot→client.forensics.policy_snapshotforensics.monitor-rule-evaluations→client.forensics.monitor_rule_evaluationsforensics.monitor-transitions→client.forensics.monitor_transitionsThe two paginated ops use the existing
**optspattern (same convention asmonitors.results/monitors.versions).Why
The Forensics resource was added to the SDK in v0.6.0 but the harness was never updated, causing the monorepo parity check (
TestHarnessCompleteness::test_sdk_python_harness_complete) to fail after the release (failed run).This is paired with corresponding harness fixes in
devhelmhq/sdk-jsand a parity-classification PR indevhelmhq/mono.Test plan
Forensicsclass has all 5 methods with expected signaturesTestHarnessCompleteness::test_sdk_python_harness_complete) pass locally with this branch checked out as the SDK sourcenpm run lint/ pytest in this repoMade with Cursor