Skip to content

feat: emit behavior.* change codes from probe failures (#61) - #125

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/behavior-codes-c2a5
Sep 18, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/behavior-codes-c2a5

Conversation

@askmy-stack

@askmy-stack askmy-stack commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Implements #61 — emit stable behavior.* change codes from model-backed probe and stability outcomes so CI can treat selection/arg failures as first-class changes.

Type of change

  • Enhancement / feature
  • Documentation
  • Tests / CI

What changed

  • New tool_semantics.behavior_codes helpers:
    • changes_from_model_probe_report / changes_from_stability_report
    • merge_behavior_changes to attach onto a CompatibilityReport
  • Codes: behavior.tool_selection_failed, arguments_invalid, risk_expectation_failed, confirmation_expectation_failed, unstable_probe, deterministic_failure, missing_data (info), evaluation_failed
  • Unstable vs deterministic failures map to distinct codes
  • Missing-data / skipped probes do not emit breaking codes
  • probe JSON (model + stability modes) includes behavior_changes
  • Catalog updated in docs/change-codes.md

Severity impact for adopters

Merging behavior changes into a structural report can flip is_compatible / exit 1 under default breaking policy when probes fail selection or args. Info-level behavior.missing_data alone does not fail. Treat as a behavior-compatible adoption step when wiring into compare/eval gates.

Test plan

  • Fixture ModelProbeResult / StabilityReport tests
  • ruff / mypy / full pytest
  • CI green on this PR

Closes #61

Open in Web Open in Cursor 

Map model-backed probe and stability outcomes to stable behavior.* Change
codes with documented severities. Missing-data is info-only; unstable vs
deterministic failures use distinct codes. Probe JSON reports include
behavior_changes; merge_behavior_changes attaches them to CompatibilityReport.

Co-authored-by: Abhinaysai Kamineni  <askmy-stack@users.noreply.github.com>
@askmy-stack
askmy-stack marked this pull request as ready for review September 18, 2026 18:22
Co-authored-by: Abhinaysai Kamineni  <askmy-stack@users.noreply.github.com>
@cursor
cursor Bot merged commit 33697a3 into main Sep 18, 2026
3 checks passed
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.

Emit behavior.* change codes from model-backed probe failures

2 participants