Skip to content

fix(supervise): classify agent-provider-tangle's typed JSON bound refusal - #1268

Merged
drewstone merged 1 commit into
mainfrom
fix/classify-json-bound-code
Sep 16, 2026
Merged

drewstone merged 1 commit into
mainfrom
fix/classify-json-bound-code

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Follow-up to #1266 (#1204). Pairs with tangle-network/agent-sdk#338.

0.235.0 could only leave #1204's exhibit 6 (value exceeds its JSON bound) on 'unobservable' because the provider threw it as a plain Error with no code. agent-sdk#338 makes it a JsonBoundError with code: 'JSON_BOUND_VIOLATION'; this recognises the code and files it with the schema violations — 'request-rejected' at admission, 'provider-contract' after — and pins both phases in the unit test, alongside the pre-1.5.0 plain-Error shape that still lands on the safe side.

Exhibit 3 (an event without a stable id) is delivered rather than thrown since provider 1.4.0 (agent-sdk#334) and no longer reaches this path; the classifier's doc says so instead of calling it uncovered.

Patch: 0.235.1 (no exported shape changes). typecheck, biome, docs:api, docs:freshness, fixtures all exit 0; retained-pending-cause + retained-environment-release 26 / 26. Merge-clean against main. Merge order: agent-sdk#338 first is not required — this only reads a code string — but the Lab bump to provider 1.5.0 is what makes exhibit 6 classify in practice.

🤖 Generated with Claude Code

…usal

Provider 1.5.0 throws JsonBoundError (code JSON_BOUND_VIOLATION) where it threw
a plain Error; the classifier files it with the schema violations — a rejected
request at admission, a provider contract violation after — closing #1204's
exhibit 6. Exhibit 3 is delivered rather than thrown since provider 1.4.0; the
doc says so instead of calling it uncovered. 0.235.1.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@drewstone
drewstone merged commit 625b7df into main Sep 16, 2026
4 checks passed
@drewstone

Copy link
Copy Markdown
Contributor Author

Cutting v0.235.1 at the merge commit now (tip of main, no Publish in flight, latest tag v0.235.0).

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