Rivisk

Operate

Grant scope

What Rivisk already has, and what the Stacks Endowment grant would fund from here. The two are kept apart deliberately: nothing already built is being asked for again.

Today, and what comes next#

AreaTodayGrant work
Clarity contractsToday: deployed on testnet, read by an external consumerIndependent security and readiness review
AttestationsToday: live, throttled, confirmed back by ChainhookReliability work: retries, nonce handling, publisher key management, monitoring
TypeScript SDKToday: published as @rivisk/sdk@0.1.1Iterate on feedback from external developers; versioning and release discipline
Hosted APIToday: beta on one small server, on temporary AWS creditsArchitecture review, then sustainable paid hosting: persistent database with tested backups and restores, monitoring, recovery, rate-limit and abuse handling
LiquidityToday: capital accessibility, labelled as a proxyReal market-depth and exit-risk modelling
Risk explanationsNot builtOptional AI layer that explains an existing report in plain language
External integrationToday: reference consumer contract onlyOne real external Stacks project integrating against the API or the trait
MainnetNot deployedReview the current contracts, make any changes they call for, redeploy and revalidate on testnet if the code changes, then deploy the reviewed contracts to mainnet if no blocking finding remains

The contracts on testnet today are a working beta deployment, not a claim that the design is final. Reviewing that design is part of the grant. If the review calls for changes, a revised version is deployed and validated on testnet before any mainnet release — a Clarity contract cannot be edited in place, so a change means a new deployment.

Milestones#

MilestoneFocusAmountTarget
1Beta hardening and infrastructure review$2,00014 Oct 2026
2Advanced risk intelligence and AI explanations$3,00011 Nov 2026
3Ecosystem integration and production readiness$5,0002 Dec 2026

Budget#

MilestoneEngineeringInfrastructure and external costsTotal
1$1,100 architecture and hardening$600 hosting · $300 monitoring and backups$2,000
2$2,300 risk depth and AI implementation$200 model usage · $500 market data and testing$3,000
3$2,200 integration and release work$1,200 independent review · $1,100 production infrastructure · $500 validation and docs$5,000

Infrastructure is listed openly because the current hosting is credit-funded and those credits run out; the grant pays for hosting that does not depend on them.

The full breakdown, with acceptance criteria per milestone, is in 22-grant-milestones.md.

The AI explainer#

Rivisk already produces technically correct risk data. Health factor, liquidation distance, concentration, valuation coverage and stress results are still hard for most people to read together, which is the gap this closes.

Where it sits#

The AI never computes risk. It reads a finished, deterministic report and explains it:

Neverprotocol data → AI → risk score
Alwaysprotocol data → adapters → risk engine → report → AI → explanation

Every number stays reproducible from the report hash, with or without the explainer, and nothing about attestations changes: no model output is ever hashed or published on chain.

Keeping the cost bounded#

  • No model call during indexing, scoring, pricing or attestation.
  • A call happens only when someone asks for an explanation.
  • Answers are cached by reportHash plus question type, so the same report is never explained twice.
  • A small, low-cost model by default, and the provider is replaceable.
  • The core API keeps working with the explainer disabled, which is how the beta runs today.

Cost therefore scales with how often people ask, not with how many wallets are indexed. The milestone carries an explicit line for model evaluation and beta usage rather than hiding it.