Builder tax notice on payout screens + CR2 independent-review UI plan (sketch) #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/nov9-tax-notice-cr2-plan"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Not deployed; awaiting George's approval. This is a branch PR into
feat/phase1-scaffold. Please don't merge without sign-off.This reopens the work from web #1 under Taskuler-bot so George can review it. Head:
feat/nov9-tax-notice-cr2-plan@786e1f7. The CR2 plan matches contracts PR #5 @1f2e460 (CR2) and PR #6 @c988b9c (BuilderBonus), which replace the earlier contracts #2/#3. Each point was checked against the source at1f2e460(and the bonus headc988b9c). ABIs are not synced intosrc/contractsyet and are unchanged from the previous877e607/9b2c41dheads; after the contracts merge they will come fromout/TaskulerMarket.sol,out/ReviewerRegistry.sol,out/BuilderBonus.solandout/WorkHistory.sol(PayoutLib and ReviewLib events are mirrored on the Market ABI).Builder tax notice
src/components/TaxNotice.tsxhas the verbatim text from docsdecisions/0005-legal-review.md(adopted Nov 7, 2026):/withdrawand/history, both with and without a connected wallet, as a small.noticeaside. There are no compliance claims.CR2 plan (current version at
786e1f7, mapped to contracts #5 @1f2e460 / #6 @c988b9c)docs/cr2-independent-review-ui.mdis the UI plan.docs/indexer-queries.mdis updated for the newCredited.reasonfield.CreditedABI change (new topic hash):Credited(address indexed account, address indexed token, uint256 amount, uint256 indexed jobId, uint8 reason).CreditReasoncodes: 0 Payout, 1 Refund, 2 DepositReturn, 3 DepositForfeit, 4 ProtocolFee, 5 ReviewerFee, 6 ReviewerFeeRefund, 7 ArbitrationRefund, 8 ArbitrationReimbursement. Each resolution component emits its ownCredited. The app adds aCreditReasontype and labels insrc/data/types.ts(there is no top-levelsrc/types.ts) andsrc/data/mock.ts, and shows those labels on/withdrawand/history.ReviewerFeeSettled(jobId, to, amount, paidToReviewer). The fee is no longer credited onsubmitRecommendation. It is paid to the reviewer onexecuteRecommendation, or when Kleros matches the recommendation. Otherwise it is refunded to the customer (j.customer, the Safe on build tasks).rulingToPct(0) == 50and the earned check isbuilderPct == r.builderPct). Otherwise the fee is refunded to the customer. This is no longer provisional. ABI unchanged.reviewEndsAtreturnsuint256.max;releaseAfterReviewrevertsTooEarly. After 2 reassignments and a missed deadline,reviewLapsed(jobId)is true (a view only).requestArbitrationat any time after delivery until execution;reviewLapsedis not required. Funds stay in escrow until someone files.OBJECTION_WINDOW()is a constant fixed at 5 days (DECIDED 2026-11-10), independent of the settablesettlementWindow.objectionEndsAtuses it.(governance, tskr, market, allocationVault).allocationVault()replacesfunder().PERIODfollows the vault's monthly release.ExcessReturned.tois always the vault. New errorsBadAllocationVaultandMissingReason(exclusions require a reason URI). minBounty is a Safe setting, default 0; the Safe will set USDC100e6after deploy.src/sketch/Cr2Sketch.tsxat/sketch/cr2is a SKETCH. It uses hardcoded mock data, has disabled buttons, isn't linked in the nav, and changes no data source, contract or indexer code. It shows the reviewer list, the Safe assignment panel (fee escrowed until resolution; ruling 0 pays a 50% recommendation), the review panel with the 5-dayOBJECTION_WINDOWcountdown and "auto-release: never", a lapsed panel with no Safe duty and the ERC-20 prepay rule, the reviewer submit form, and a one-line BuilderBonus note. Local preview (not hosted):/workspace/tw/previews/web-cr2-sketch.png.npm run buildpasses (tsc + vite). Local previews (not hosted) are on the bot box:/workspace/tw/previews/web-withdraw-tax-notice.png,web-history-tax-notice.png,web-cr2-sketch.png.