Repository navigation
QMeshPy + NEAR #143
Winter-Soren
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
QMeshPy now connects NEAR AI Cloud to its research assistant and uses NEAR testnet to publish verifiable experiment commitments. The integrations cover the conversation with the agent and the evidence we share after a research run.
NEAR AI Cloud private inference - PR #91
Agent Chat can use the NEAR inference SDK and a Confidential TEE model. Response signatures are checked on each completion round, verification metadata is saved with the conversation, and the interface distinguishes model-TEE, gateway and unverified responses. Provider errors do not silently switch services. This integration uses the Cloud API and required no NEAR contract deployment.
In QMeshPy, a NEAR AGENT is a research agent configured to use NEAR AI Cloud. Each agent has its own AgentKit wallet, research preferences, daily and per-proposal budgets, and spending history. MCP tools let the assistant inspect balances and submit or track jobs. The payment layer supports USDC proposal funding, x402-gated compute APIs, and owner-approved Toju storage charged to the agent's Base Sepolia wallet through x402/EIP-712 authorization. NEAR AI inference is billed through the configured Cloud API key.
NEAR provenance anchoring - PR #142
We added a publisher-controlled registry and backend receipt verification for QMeshPy's SHA-256 Merkle bundles. Inputs, configuration and results stay off-chain; the registry records commitments that reviewers can compare with the original evidence.
The evidence path is:
Experiment run → recorded inputs and outputs → bundle hash → Merkle root → registry publication → receipt and inclusion-proof checks.
Deployed testnet contract
qmesh-provenance-20261110.testnetThe configured publisher calls
anchor. Each record contains the root, leaf count, hash profile and registration block/time. Identical retries preserve the original record, conflicting writes are rejected, and excess storage deposits are refunded. The deployed WASM matched the CI artifact. The registry operator retains upgrade authority; verification trusts the configured contract, publisher and RPC.Experiments and explorer records
The recorded computations used local CPU simulators. The explorer links below point to the transactions publishing their evidence commitments.
00 = 2,036;11 = 2,060.000 = 2,074;111 = 2,022.11measured in all 4,096 shots.101in all 4,096 shots.0 = 3,083;1 = 1,013.5 × 10⁻¹⁰Hartree against exact active-space energies. QED0.377 < 0.400: candidate rejected.SYN_A + SYN_B. Objective0.554655045676matched the exact optimum; 4,096/4,096 samples were0101. The greedy starting portfolio was already optimal.The same results also have shared batch anchors:
All nine experiment anchor transactions finalized. Fourteen inclusion proofs passed verification across individual and batch roots, and deliberately modified commitments were rejected. These records verify the committed evidence and its publication. The NEAR AI chat integration and the experiment-publication path are separate parts of the project.
Why this helps QMeshPy
NEAR AI gives our research assistant private inference with visible verification status. The registry lets reviewers check the exact evidence behind our molecule screening and portfolio results. We kept the rejected drug candidate in the record alongside the portfolio matching its classical baseline, so a review can follow both outcomes back to their inputs and outputs.
Feedback is welcome on the agent workflow, evidence-verification experience and which research workloads would be useful to demonstrate next.
All reactions