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#
| Area | Today | Grant work |
|---|---|---|
| Clarity contracts | Today: deployed on testnet, read by an external consumer | Independent security and readiness review |
| Attestations | Today: live, throttled, confirmed back by Chainhook | Reliability work: retries, nonce handling, publisher key management, monitoring |
| TypeScript SDK | Today: published as @rivisk/sdk@0.1.1 | Iterate on feedback from external developers; versioning and release discipline |
| Hosted API | Today: beta on one small server, on temporary AWS credits | Architecture review, then sustainable paid hosting: persistent database with tested backups and restores, monitoring, recovery, rate-limit and abuse handling |
| Liquidity | Today: capital accessibility, labelled as a proxy | Real market-depth and exit-risk modelling |
| Risk explanations | Not built | Optional AI layer that explains an existing report in plain language |
| External integration | Today: reference consumer contract only | One real external Stacks project integrating against the API or the trait |
| Mainnet | Not deployed | Review 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#
| Milestone | Focus | Amount | Target |
|---|---|---|---|
| 1 | Beta hardening and infrastructure review | $2,000 | 14 Oct 2026 |
| 2 | Advanced risk intelligence and AI explanations | $3,000 | 11 Nov 2026 |
| 3 | Ecosystem integration and production readiness | $5,000 | 2 Dec 2026 |
Budget#
| Milestone | Engineering | Infrastructure and external costs | Total |
|---|---|---|---|
| 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:
| Never | protocol data → AI → risk score |
| Always | protocol 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
reportHashplus 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.

