Skip to content

chore(tests): add forensics ops to run-sdk harness#20

Merged
caballeto merged 1 commit into
mainfrom
chore/parity-forensics-harness
May 4, 2026
Merged

chore(tests): add forensics ops to run-sdk harness#20
caballeto merged 1 commit into
mainfrom
chore/parity-forensics-harness

Conversation

@caballeto
Copy link
Copy Markdown
Member

Summary

Adds 5 dispatch branches in tests/run_sdk.py for the new forensics resource (design 046, shipped in v0.6.0):

  • forensics.incident-timelineclient.forensics.incident_timeline
  • forensics.check-traceclient.forensics.check_trace
  • forensics.policy-snapshotclient.forensics.policy_snapshot
  • forensics.monitor-rule-evaluationsclient.forensics.monitor_rule_evaluations
  • forensics.monitor-transitionsclient.forensics.monitor_transitions

The two paginated ops use the existing **opts pattern (same convention as monitors.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-js and a parity-classification PR in devhelmhq/mono.

Test plan

  • Verified Forensics class has all 5 methods with expected signatures
  • Mono parity tests (TestHarnessCompleteness::test_sdk_python_harness_complete) pass locally with this branch checked out as the SDK source
  • npm run lint / pytest in this repo

Made with Cursor

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>
@caballeto caballeto merged commit 731bbb7 into main May 4, 2026
4 checks passed
@caballeto caballeto deleted the chore/parity-forensics-harness branch May 4, 2026 14:58
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