Skip to content

brainchain-verify 0.12.0: the weighted grade rule and schema-check outcomes - #80

Merged
kurokawasato merged 9 commits into
mainfrom
verify-weighted
Nov 22, 2026
Merged

kurokawasato merged 9 commits into
mainfrom
verify-weighted

Conversation

@kurokawasato

Copy link
Copy Markdown
Contributor

BrainChain's next brain release grades by a weighted rule: work is paid when 0.25 x Jev's probability of a paid level plus 0.75 x the second judge's reaches the bar. Each record names the rule and its weights inside the evidence hash, so anyone can recompute the decision. This release teaches the verifier to do that.

  • Weighted rule. The verifier reads panel.weights from the record (Jev first, then each judge), checks they sum to 1 and match the panel, and recomputes the probability of paying. A panel short of a member divides the answering members' weights by their sum and applies the 0.9 bar, as the brain does.
  • Schema checks. Evidence v2 now holds the schema-check outcome (shape) beside the checks outcome, and a result is checked against the JSON schema its brief fences.
  • Older versions. 0.10.0 and 0.11.0 report MISMATCH on a weighted record and fail the evidence check on any record with shape. Records from the current release verify as before.

Tests: 221 pass, including fixtures built with the brain's own grading code: a weighted grade, a weighted grade short a member, and a failed schema check. Their evidence hashes match the brain's.

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

The review of 48490cf is taking longer than this job waits for it. Re-running the job posts it once Jev accepts it, without paying again.

@kurokawasato
kurokawasato merged commit 5ccd183 into main Nov 22, 2026
5 checks passed
@kurokawasato
kurokawasato deleted the verify-weighted branch November 22, 2026 12:48
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.

2 participants