Repository navigation
fix(tasks): parse pool claims and pool cards from the server - #125
Merged
Merged
Conversation
…uirements from the server Order views list pool claims as proposals with kind "claim" and preset proof fills; the client reused its request schema and rejected them, so task claim, show and cancel failed on any pool with a claim. Response payloads now mirror the server view (kinds, proof bounds, invite codes) and keep signed proof bytes unchanged. Public cards accept shape "pool"; pr requirements accept repository, merged and challenge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: vAPI Development <336934719+vapi-development@users.noreply.github.com>
…nding fields go together Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: vAPI Development <336934719+vapi-development@users.noreply.github.com>
vapi-development
force-pushed
the
fix/pool-claim-kind
branch
from
December 2, 2026 22:16
789ae35 to
731e3e7
Compare
Merged
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.
What & why
On Base mainnet (2026-12-02)
vapi task claim <pool> --claimant <addr>failed before signing withinvalid_response … workOrder.proposals.0.signedPayload.kind: expected "proposal"|"submission".The vAPI server lists pool claims in
GET /v1/work-orders/:idas proposals withkind: "claim",preset proof fills (
[{ preset: "text", value }]) and an optional invite code. The client's responseschema reused the request proposal schema, so any pool with one claim broke
task claim,showandcancel … pool. The 0.17.1 fixture only covered a pool without claims.Changes
proposalPayloadViewSchemamirrors the server view (vapi-apporder-view.tsworkProposalPayloadViewSchema): kindsproposal | submission | claim, 1–20 legacy orpreset proof fills, preset fills only on claims, proof forbidden on plain proposals, invite code
/^[A-Z2-7]{8}$/only on claims. Values are validated with the existing request validators butreturned unchanged, so a parsed claim keeps its exact signed bytes. The request schema stays narrow.
shape: "pool"(one listed pool broketask boardand signed-outtask show); theprproof requirement accepts the server'srepository,merged,challengebinding (all three or none).Review
Codex
gpt-6.2-astrareview, then repair, then narrow re-review. The re-review's two remaining points(value validation, all-or-none
prbinding) were applied afterwards with tests, without a third review round.(or a parity test against the server's view schemas) would stop this drift class.
Test evidence
packages/core/src/tasks/server-parity.test.ts: red onmain(claim kind + preset proofrejected) and red against the first commit for the review cases; green now.
pnpm build,pnpm typecheck,pnpm lintexit 0.(
swarm-capital.test.tstimed out once in a full run, passes alone: known flake.)587fd51b-…with 9 claims (task showok).🤖 Generated with Claude Code