Repository navigation
Scripts and tools: add governance analyst prototype - #2987
Draft
mkorovkin2 wants to merge 1 commit into
Draft
mkorovkin2 wants to merge 1 commit into
mkorovkin2 wants to merge 1 commit into
Conversation
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.
Add an optional, standalone governance-analysis tool under
contrib/governance-analyst/so reviewers can collect public proposal data and inspect cited draft reports locally. This does not change Core consensus, wallet behavior, RPC implementations or the build.The tool provides read-only collection from three public RPC proxies, mainnet identity/freshness and roster checks, retained response provenance, public forum extraction, exact cost arithmetic, historical treasury cross-checks, a versioned report schema/rubric and a static review interface. Eligibility includes valid proposals outside the projected funding set. Receipts, proposer claims, code artifacts and unknown delivery outcomes remain distinct.
Only clearly labeled synthetic examples are included. Real-proposer research, raw forum bodies, report scores, approval records, caches and generated site output are excluded. Default examples are unverified and cannot pass the publication gate. Report export requires explicit human review, disclosure, fresh evidence and a completed public correction process; the tool never uploads or sends messages.
Validation from
contrib/governance-analyst:python3 -m unittest discover -s tests -q(29 tests),node --test tests/filter.test.cjs(2 tests),python3 -m analyst validate, andpython3 -m analyst buildpass. Independent Draft 2020-12 validation and actual Chrome checks pass across 10 pages at desktop/mobile widths (20 page checks, 104 local links/anchors, no page JavaScript errors or document overflow). Core binary/functional tests were not run because the change is isolated optional Python tooling.This is a draft for implementation and placement feedback, including whether this optional tool belongs in
contrib/. The rubric and single-reviewer workflow are prototype policies, not official PIVX governance policy. No deployment or maintainer adoption is claimed.Related work: V-508.