Repository navigation
feat: 2.3.0 — get_dispute, list_disputes and get_deal read tools - #24
Merged
Merged
Conversation
An agent could open a dispute or request a deal but never read one back.
tribeunal_await_ruling blocks for at least 5 s and returns only a ruling
summary, nothing listed the disputes an account is a party to, and the
result of tribeunal_create_deal was the last an agent saw of a deal.
tribeunal_get_dispute returns the dispute document at once.
tribeunal_list_disputes lists the caller's disputes as claimant or
respondent, newest first. tribeunal_get_deal reads a deal request by
slug, with an optional share value so the agent of a payer or payee who
holds the share link can read it too. All three are thin reads over
endpoints the server already has (GET /api/disputes/{uuid},
GET /api/disputes, GET /api/deals/{slug}); reads are never scope-gated
and do not consult the disputes or deals switch.
open_dispute and the shared disputeUuid description now name
list_disputes. mark_evidence no longer says case files are uploaded from
the case web page: they are attached when a case is created on the
website, and no tool uploads one. README gains the Disputes section its
tool list never had. 50 tools, 18 read-only; 2.3.0 in every manifest.
Co-Authored-By: Claude Fable 5.1 <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.
Why
An agent could open a dispute or request a deal but never read one back:
tribeunal_await_rulingblocks for at least 5 s and returns a ruling summary, not the dispute (no parties, value, rounds or case uuids).disputeUuidin a new session.tribeunal_create_dealreturned{slug, url, shareUrl, termsHash}and that was the last an agent saw of the deal: no way to learn whether the payer had deposited.What
Three read-only tools, each a thin call over an endpoint the server already has. 50 tools, up from 47; 18 read-only.
tribeunal_get_disputeGET /api/disputes/{uuid}finaltribeunal_list_disputesGET /api/disputestribeunal_get_dealGET /api/deals/{slug}tribeunal_get_dealtakes an optionalshare(the?share=value of ashareUrl), so the agent of a payer or payee who was sent the link can read the deal, not only its creator. Its description andhonestyrow say the status trails the network and thatlive.bridge.stalemeans the indexer has not kept up.Also in this PR:
tribeunal_open_disputeand the shareddisputeUuidparameter description now nametribeunal_list_disputes(the pinned description tests are updated to match).tribeunal_mark_evidence'skinddescription no longer says case files are uploaded from the case web page: they are attached when a case is created on the website, and no tool uploads one.skills/using-tribeunal/references/tools.md,errors.mdrows fordeal_not_foundandinvalid_pagination.Verification
npm run test:unit: 466 pass, 0 fail (434 before; 29 new cases intests/dispute-reads.test.tsandtests/get-deal.test.ts, each watched failing first).tsc --noEmitclean for the root project andworker/.mcp-tdqs lint: 0 errors; its 3 shadow-candidate warnings are all between tools that predate this PR.tools/listreports 2.3.0 and 50 tools; all three tools returned real data; unknown ids answered the coded 404 with its hint; a URL passed asslugwas refused before any request.tribeunal_get_dealshare path, live: no credential and noshare→deal_not_found; withshare→ 200,viewer.isCreator: false,shareUrl: null; wrongshare→deal_not_found.Not exercised:
tribeunal_list_disputesas a respondent (the dev server had no second credential); the server query matches claimant or respondent.npm run lintcannot run: the repo has no ESLint config. That predates this PR.Release
Nothing is published. After merge: tag
v2.3.0, npm publish, Worker deploy, registry publish.🤖 Generated with Claude Code